Skip to content

Commit 22288a2

Browse files
committed
Fix the build
1 parent 7b01039 commit 22288a2

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

apps/cli/tsup.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,18 @@ export default defineConfig({
1111
banner: {
1212
js: "#!/usr/bin/env node",
1313
},
14-
// Bundle workspace packages that export TypeScript
15-
noExternal: ["@roo-code/core", "@roo-code/core/cli", "@roo-code/types", "@roo-code/vscode-shim"],
14+
// Bundle workspace packages and ESM-only npm dependencies to create a self-contained CLI
15+
noExternal: [
16+
// Workspace packages
17+
"@roo-code/core",
18+
"@roo-code/core/cli",
19+
"@roo-code/types",
20+
"@roo-code/vscode-shim",
21+
// ESM-only npm dependencies that need to be bundled
22+
"@agentclientprotocol/sdk",
23+
"p-wait-for",
24+
"zod",
25+
],
1626
external: [
1727
// Keep native modules external
1828
"@anthropic-ai/sdk",

0 commit comments

Comments
 (0)