aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/tsdown.config.ts
blob: 4f1cdfb7a0b7e064b73e7303723cc7103733498b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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",
    "liteque",
  ],
  noExternal: [
    // Bundle workspace packages (since they're not published to npm)
    /^@karakeep\//,
  ],
});