Files
open-design/apps/packaged/esbuild.config.mjs
Jheison Martinez BolivarandGitHub 4368b8f163 feat(linux): add headless mode for install/start/stop operations (#686)
* 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
2026-05-07 01:52:03 +08:00

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",
});