From c4ea3634979428568a28bd284d76a9ec138e030f Mon Sep 17 00:00:00 2001 From: Ajax Davis Date: Fri, 23 Jan 2026 18:11:55 +1000 Subject: [PATCH] fix(web): configure ESM exports for registry packages --- apps/web/next.config.ts | 6 +++++- packages/tools/registryExecute/package.json | 9 +++++++++ packages/tools/registrySearch/package.json | 9 +++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 10b857e..88bd105 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -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 [ { diff --git a/packages/tools/registryExecute/package.json b/packages/tools/registryExecute/package.json index fbba93c..d92bd94 100644 --- a/packages/tools/registryExecute/package.json +++ b/packages/tools/registryExecute/package.json @@ -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", diff --git a/packages/tools/registrySearch/package.json b/packages/tools/registrySearch/package.json index f964bd7..3e1831a 100644 --- a/packages/tools/registrySearch/package.json +++ b/packages/tools/registrySearch/package.json @@ -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",