This repository has no description
940 B
32 lines
1import { defineConfig } from 'tsup';
2
3export default defineConfig({
4 entry: {
5 index: 'src/index.ts',
6 'workers/feed-worker': 'src/workers/feed-worker.ts',
7 'workers/search-worker': 'src/workers/search-worker.ts',
8 'workers/firehose-worker': 'src/workers/firehose-worker.ts',
9 'workers/notification-worker': 'src/workers/notification-worker.ts',
10 'workers/sync-worker': 'src/workers/sync-worker.ts',
11 },
12 outDir: 'dist',
13 target: 'node18',
14 format: ['cjs'],
15 clean: true,
16 sourcemap: true,
17 // Bundle workspace dependencies
18 noExternal: ['@semble/types'],
19 // Enable type checking
20 // This will make tsup type-check all files including workspace packages
21 tsconfig: './tsconfig.json',
22 // Add watch exclusions to prevent continuous rebuilds
23 ignoreWatch: [
24 'dist/**',
25 'node_modules/**',
26 '**/*.test.ts',
27 '**/*.spec.ts',
28 'src/webapp/**',
29 'src/types/**',
30 'src/packages/**',
31 ],
32});