tsup.config.ts 577 B

123456789101112131415161718192021222324
  1. import { defineConfig } from "tsup"
  2. export default defineConfig({
  3. entry: ["src/index.ts"],
  4. format: ["esm"],
  5. dts: true,
  6. clean: true,
  7. sourcemap: true,
  8. target: "node20",
  9. platform: "node",
  10. banner: {
  11. js: "#!/usr/bin/env node",
  12. },
  13. // Bundle workspace packages that export TypeScript
  14. noExternal: ["@roo-code/types", "@roo-code/vscode-shim"],
  15. external: [
  16. // Keep native modules external
  17. "@anthropic-ai/sdk",
  18. "@anthropic-ai/bedrock-sdk",
  19. "@anthropic-ai/vertex-sdk",
  20. // Keep @vscode/ripgrep external - we bundle the binary separately
  21. "@vscode/ripgrep",
  22. ],
  23. })