mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
* feat(linux): add headless mode for install/start/stop operations * docs(linux): document headless mode commands and usage * refactor(linux-headless): write web-root.json instead of polling IPC for URL * fix(linux-headless): fail start when web identity never appears instead of returning success * docs(linux-headless): add use-case context and clarify launcher path dependency * fix(linux-headless): ensure launcher, identity and shutdown align with tools-pack - Bake OD_DATA_DIR into launcher so manual runs use the same paths as tools-pack - Validate web-root.json fields before accepting to reject stale identity - Remove web-root.json on successful stop - Add IPC server for graceful STATUS/SHUTDOWN handling * fix(linux-headless): create IPC server before writing web-root.json
22 lines
374 B
JavaScript
22 lines
374 B
JavaScript
import { build } from "esbuild";
|
|
|
|
const sharedOptions = {
|
|
bundle: true,
|
|
format: "esm",
|
|
packages: "external",
|
|
platform: "node",
|
|
target: "node24",
|
|
};
|
|
|
|
await build({
|
|
...sharedOptions,
|
|
entryPoints: ["./src/index.ts"],
|
|
outfile: "./dist/index.mjs",
|
|
});
|
|
|
|
await build({
|
|
...sharedOptions,
|
|
entryPoints: ["./src/headless.ts"],
|
|
outfile: "./dist/headless.mjs",
|
|
});
|