SPB Git

Repository Public

build.mjs 459 B 6 lines javascript

1// Bundles the server and the operator CLI. Dependencies stay external (installed by pnpm on the node).2import { build } from "esbuild"3for (const [entry, out] of [["server/src/index.ts", "dist/server.mjs"], ["server/src/cli.ts", "dist/cli.mjs"]])4  await build({ entryPoints: [entry], outfile: out, bundle: true, platform: "node", format: "esm", target: "node22", packages: "external", sourcemap: false, logLevel: "warning" })5console.log("server build ok")6
Files main
Menu

Theme