fix(web): configure ESM exports for registry packages

This commit is contained in:
Ajax Davis 2026-01-23 18:11:55 +10:00
parent c4430fb1bf
commit c4ea363497
3 changed files with 23 additions and 1 deletions

View file

@ -12,7 +12,11 @@ const nextConfig: NextConfig = {
'@tpmjs/registry-execute', '@tpmjs/registry-execute',
], ],
reactStrictMode: true, reactStrictMode: true,
serverExternalPackages: ['@tpmjs/package-executor'], serverExternalPackages: [
'@tpmjs/package-executor',
'@tpmjs/registry-search',
'@tpmjs/registry-execute',
],
async redirects() { async redirects() {
return [ return [
{ {

View file

@ -2,8 +2,17 @@
"name": "@tpmjs/registry-execute", "name": "@tpmjs/registry-execute",
"version": "0.1.3", "version": "0.1.3",
"description": "Execute tools from the TPMJS registry in any AI SDK agent", "description": "Execute tools from the TPMJS registry in any AI SDK agent",
"type": "module",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"dev": "tsc --watch", "dev": "tsc --watch",

View file

@ -2,8 +2,17 @@
"name": "@tpmjs/registry-search", "name": "@tpmjs/registry-search",
"version": "0.1.2", "version": "0.1.2",
"description": "Search the TPMJS tool registry from any AI SDK agent", "description": "Search the TPMJS tool registry from any AI SDK agent",
"type": "module",
"main": "dist/index.js", "main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
}
},
"scripts": { "scripts": {
"build": "tsc", "build": "tsc",
"dev": "tsc --watch", "dev": "tsc --watch",