#!/usr/bin/env node import { resolve } from "node:path"; import { fileURLToPath } from "node:url"; import { runWeb } from "../server/run-web.js"; export { runWeb }; const __filename = fileURLToPath(import.meta.url); const isMain = process.argv[1] !== undefined && resolve(process.argv[1]) === resolve(__filename); if (isMain) { runWeb(process.argv) .then((code) => process.exit(code ?? 0)) .catch((e) => { console.error(e); process.exit(1); }); }