From 22288a2b1ef381e1168b7d9a87334cf4469c9535 Mon Sep 17 00:00:00 2001 From: cte Date: Mon, 12 Jan 2026 16:20:29 -0800 Subject: [PATCH] Fix the build --- apps/cli/tsup.config.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/cli/tsup.config.ts b/apps/cli/tsup.config.ts index eff2c14e2c..8cbec03aa5 100644 --- a/apps/cli/tsup.config.ts +++ b/apps/cli/tsup.config.ts @@ -11,8 +11,18 @@ export default defineConfig({ banner: { js: "#!/usr/bin/env node", }, - // Bundle workspace packages that export TypeScript - noExternal: ["@roo-code/core", "@roo-code/core/cli", "@roo-code/types", "@roo-code/vscode-shim"], + // Bundle workspace packages and ESM-only npm dependencies to create a self-contained CLI + noExternal: [ + // Workspace packages + "@roo-code/core", + "@roo-code/core/cli", + "@roo-code/types", + "@roo-code/vscode-shim", + // ESM-only npm dependencies that need to be bundled + "@agentclientprotocol/sdk", + "p-wait-for", + "zod", + ], external: [ // Keep native modules external "@anthropic-ai/sdk",