-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtsup.config.ts
More file actions
22 lines (21 loc) · 770 Bytes
/
Copy pathtsup.config.ts
File metadata and controls
22 lines (21 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { defineConfig } from "tsup";
// Bundle the server + CLI to a single ESM file with a node shebang so that
// `npx codeinspectus` starts fast. Data files (data/, detection-db/) are shipped
// alongside dist/ and resolved at runtime relative to the package root.
export default defineConfig({
entry: { index: "src/index.ts", "sdk/index": "src/sdk/index.ts" },
format: ["esm"],
target: "node22",
platform: "node",
outDir: "dist",
clean: true,
splitting: false,
minify: false,
sourcemap: false,
shims: true,
dts: true,
// Keep the SDK external so we don't re-bundle express/hono/etc.; resolved from
// node_modules at runtime. `npx codeinspectus` installs deps before running.
noExternal: [],
banner: { js: "#!/usr/bin/env node" },
});