| 123456789101112131415161718192021222324 |
- import { defineConfig } from "tsup"
- export default defineConfig({
- entry: ["src/index.ts"],
- format: ["esm"],
- dts: true,
- clean: true,
- sourcemap: true,
- target: "node20",
- platform: "node",
- banner: {
- js: "#!/usr/bin/env node",
- },
- // Bundle workspace packages that export TypeScript
- noExternal: ["@roo-code/types", "@roo-code/vscode-shim"],
- external: [
- // Keep native modules external
- "@anthropic-ai/sdk",
- "@anthropic-ai/bedrock-sdk",
- "@anthropic-ai/vertex-sdk",
- // Keep @vscode/ripgrep external - we bundle the binary separately
- "@vscode/ripgrep",
- ],
- })
|