Files
penguin-harness/packages/desktop/tsup.config.ts
T
2026-08-04 16:57:28 +08:00

15 lines
523 B
TypeScript

import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/main.ts"],
format: ["esm"],
target: "node22",
platform: "node",
clean: true,
sourcemap: true,
// `electron` is a runtime builtin inside the Electron main process; the workspace
// packages stay external so the server entry keeps its own file identity (the shell
// forks it as a child by path) and lock.js resolves from node_modules.
external: ["electron", "@prismshadow/penguin-server", "@prismshadow/penguin-core"],
});