-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsup.config.ts
More file actions
23 lines (22 loc) · 1020 Bytes
/
Copy pathtsup.config.ts
File metadata and controls
23 lines (22 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { defineConfig } from "tsup";
// ui-lineage ships as a single self-contained package: the internal @coderadar/*
// workspace packages are bundled into the output, while the heavy third-party
// deps (ts-morph, yaml, commander) stay external and install normally.
export default defineConfig({
entry: {
index: "src/index.ts", // CLI bin (keeps its #!/usr/bin/env node shebang)
mcp: "src/mcp.ts", // ui-lineage-mcp bin (MCP stdio server)
lib: "src/lib.ts", // library entry
vision: "src/vision.ts", // ui-lineage/vision subpath
},
format: ["esm"],
target: "node20",
// Inline the workspace packages' TYPES too, so the published .d.ts has no
// dangling references to the unpublished @coderadar/* internals.
dts: { resolve: true },
clean: true,
sourcemap: true,
noExternal: [/^@coderadar\//],
// @anthropic-ai/sdk is a lazy, optional runtime dep of the vision adapter.
external: ["ts-morph", "yaml", "commander", "@anthropic-ai/sdk", "@modelcontextprotocol/sdk", "zod"],
});