mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Co-authored-by: Roo Code <roomote@roocode.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com> Co-authored-by: Daniel <57051444+daniel-lxs@users.noreply.github.com>
31 lines
838 B
TypeScript
31 lines
838 B
TypeScript
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/core", "@roo-code/core/cli", "@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",
|
|
// Optional dev dependency of ink - not needed at runtime
|
|
"react-devtools-core",
|
|
],
|
|
esbuildOptions(options) {
|
|
// Enable JSX for React/Ink components
|
|
options.jsx = "automatic"
|
|
options.jsxImportSource = "react"
|
|
},
|
|
})
|