aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workers/tsdown.config.ts
blob: 0d8b31c0d4a27af0ef3b979c61570c08e5e5b662 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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\//,
  ],
});