Something went wrong. Try again.
Fork of backnotprop/plannotator with reduced surface area
Something went wrong. Try again.
12345678910111213141516171819202122232425#!/usr/bin/env nodeconst childProcess = require("node:child_process");const fs = require("node:fs");const path = require("node:path");
const repoRoot = path.resolve(path.dirname(__filename), "..");const sourceEntry = path.join(repoRoot, "apps", "hook", "server", "index.ts");
if (!fs.existsSync(sourceEntry)) { console.error(`Could not find Plannotator source entry at ${sourceEntry}`); process.exit(1);}
const result = childProcess.spawnSync("bun", [sourceEntry, ...process.argv.slice(2)], { cwd: process.cwd(), stdio: "inherit",});
if (result.error) { console.error(result.error.message); process.exit(1);}
process.exit(typeof result.status === "number" ? result.status : 0);