-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtsup.config.ts
More file actions
58 lines (57 loc) · 1.1 KB
/
tsup.config.ts
File metadata and controls
58 lines (57 loc) · 1.1 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { defineConfig } from 'tsup'
export default defineConfig([
// CLI build configuration
{
entry: ['src/cli.ts'],
format: ['esm'],
target: 'node16',
outDir: 'dist',
clean: true,
sourcemap: true,
dts: false,
banner: {
js: '#!/usr/bin/env node',
},
// Copy templates directory to dist
publicDir: 'templates',
outExtension() {
return {
js: '.js',
}
},
},
// MCP Server build configuration
{
entry: ['src/mcp/issue-management-server.ts', 'src/mcp/recap-server.ts', 'src/mcp/harness-server.ts'],
format: ['esm'],
target: 'node16',
outDir: 'dist/mcp',
clean: false,
sourcemap: true,
dts: false,
banner: {
js: '#!/usr/bin/env node',
},
outExtension() {
return {
js: '.js',
}
},
},
// Library build configuration
{
entry: ['src/index.ts'],
format: ['esm'],
target: 'node16',
outDir: 'dist',
clean: false,
sourcemap: true,
dts: true,
splitting: false,
outExtension() {
return {
js: '.js',
}
},
},
])