-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtsup.config.ts
More file actions
33 lines (32 loc) · 977 Bytes
/
tsup.config.ts
File metadata and controls
33 lines (32 loc) · 977 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
import { defineConfig } from 'tsup';
export default defineConfig({
entry: {
index: 'src/index.ts',
instrument: 'src/instrument.ts',
'workers/feed-worker': 'src/workers/feed-worker.ts',
'workers/search-worker': 'src/workers/search-worker.ts',
'workers/firehose-worker': 'src/workers/firehose-worker.ts',
'workers/notification-worker': 'src/workers/notification-worker.ts',
'workers/sync-worker': 'src/workers/sync-worker.ts',
},
outDir: 'dist',
target: 'node18',
format: ['cjs'],
clean: true,
sourcemap: true,
// Bundle workspace dependencies
noExternal: ['@semble/types'],
// Enable type checking
// This will make tsup type-check all files including workspace packages
tsconfig: './tsconfig.json',
// Add watch exclusions to prevent continuous rebuilds
ignoreWatch: [
'dist/**',
'node_modules/**',
'**/*.test.ts',
'**/*.spec.ts',
'src/webapp/**',
'src/types/**',
'src/packages/**',
],
});