diff options
Diffstat (limited to 'apps/workers/tsdown.config.ts')
| -rw-r--r-- | apps/workers/tsdown.config.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/apps/workers/tsdown.config.ts b/apps/workers/tsdown.config.ts new file mode 100644 index 00000000..0d8b31c0 --- /dev/null +++ b/apps/workers/tsdown.config.ts @@ -0,0 +1,21 @@ +import { defineConfig } from "tsdown"; + +export default defineConfig({ + entry: ["index.ts"], + format: ["esm"], + target: "node22", + outDir: "dist", + clean: true, + minify: false, + sourcemap: true, + platform: "node", + shims: true, + external: [ + // Keep native binaries external (transitive deps of bundled workspace packages) + "better-sqlite3", + ], + noExternal: [ + // Bundle workspace packages (since they're not published to npm) + /^@karakeep\//, + ], +}); |
