082ab08e0b
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
17 lines
715 B
TypeScript
17 lines
715 B
TypeScript
import { defineConfig } from "tsup";
|
|
|
|
export default defineConfig({
|
|
// launcher.ts is a second entry on purpose: scripts/stage.mjs imports dist/launcher.js
|
|
// at stage time (plain node, no Electron) to generate the CLI launcher scripts.
|
|
entry: ["src/main.ts", "src/launcher.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"],
|
|
});
|