fix(web): configure ESM exports for registry packages
This commit is contained in:
parent
c4430fb1bf
commit
c4ea363497
3 changed files with 23 additions and 1 deletions
|
|
@ -12,7 +12,11 @@ const nextConfig: NextConfig = {
|
|||
'@tpmjs/registry-execute',
|
||||
],
|
||||
reactStrictMode: true,
|
||||
serverExternalPackages: ['@tpmjs/package-executor'],
|
||||
serverExternalPackages: [
|
||||
'@tpmjs/package-executor',
|
||||
'@tpmjs/registry-search',
|
||||
'@tpmjs/registry-execute',
|
||||
],
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2,8 +2,17 @@
|
|||
"name": "@tpmjs/registry-execute",
|
||||
"version": "0.1.3",
|
||||
"description": "Execute tools from the TPMJS registry in any AI SDK agent",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsc --watch",
|
||||
|
|
|
|||
|
|
@ -2,8 +2,17 @@
|
|||
"name": "@tpmjs/registry-search",
|
||||
"version": "0.1.2",
|
||||
"description": "Search the TPMJS tool registry from any AI SDK agent",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"dev": "tsc --watch",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue