Skip to content

A local-first multi-agent app development platform, built on PenguinHarness

925 B
Raw Blame
import { defineConfig } from "tsup";

export default defineConfig({
  entry: ["src/index.ts"],
  format: ["esm"],
  target: "node24",
  dts: true,
  clean: true,
  sourcemap: true,
  // The DSH chain stays a dependency tree rather than being compiled in: it resolves its
  // per-platform rung by bare specifier at run time (`@deepseek-ai/dsh-sandbox-windows-acl`
  // on Windows), which a bundle turns into an unresolvable import — the Windows rung, the
  // one confinement on that platform that runs Git Bash, failed exactly there. A push carries
  // each of its packages as one archive, so the tree costs a handful of blobs, not a file each.
  external: [/^@deepseek-ai\//, "koffi"],
  // Bundled CommonJS calls require(); an ESM bundle has none of its own.
  banner: {
    js: 'import { createRequire as __penguinCreateRequire } from "node:module"; const require = __penguinCreateRequire(import.meta.url);',
  },
});