-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathtsup.config.ts
More file actions
37 lines (36 loc) · 874 Bytes
/
tsup.config.ts
File metadata and controls
37 lines (36 loc) · 874 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
33
34
35
36
37
import { defineConfig } from 'tsup';
export default defineConfig([
// Main MCP server build
{
entry: ['src/index.ts'],
outDir: 'dist',
format: ['esm'],
target: 'node20',
bundle: true,
minify: false,
sourcemap: false,
clean: true,
dts: false,
platform: 'node',
splitting: false,
external: ['selenium-webdriver'],
noExternal: ['@modelcontextprotocol/sdk', 'zod', 'dotenv'],
},
// Injected snapshot script (browser context)
{
entry: {
'snapshot.injected': 'src/firefox/snapshot/injected/snapshot.injected.ts',
},
outDir: 'dist',
format: ['iife'],
target: 'es2020',
bundle: true,
minify: true,
sourcemap: false,
clean: false,
dts: false,
platform: 'browser',
globalName: '__SnapshotInjected',
onSuccess: 'echo "✅ Build completed successfully!"',
},
]);