-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathtsup.config.ts
More file actions
32 lines (31 loc) · 886 Bytes
/
tsup.config.ts
File metadata and controls
32 lines (31 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { defineConfig } from "tsup";
export default defineConfig({
entry: {
index: "src/index.ts",
"hooks/smart-install": "src/hooks/smart-install.ts",
"hooks/session-start": "src/hooks/session-start.ts",
"hooks/post-tool-use": "src/hooks/post-tool-use.ts",
"hooks/stop": "src/hooks/stop.ts",
// SDK-based scripts (no CLI dependency)
"scripts/find": "src/scripts/find.ts",
"scripts/ask": "src/scripts/ask.ts",
"scripts/stats": "src/scripts/stats.ts",
"scripts/timeline": "src/scripts/timeline.ts",
},
format: ["esm"],
dts: { entry: { index: "src/index.ts" } },
clean: true,
sourcemap: true,
target: "node18",
outDir: "dist",
splitting: false,
treeshake: true,
minify: false,
external: ["@memvid/sdk"],
esbuildOptions(options) {
// Add shebang only to hook files
options.banner = {
js: "",
};
},
});