Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

526 B
Raw Blame
import { defineConfig } from "tsdown";

export default defineConfig({
  entry: ["index.ts", "scripts/parseHtmlSubprocess.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\//,
  ],
});