support raw running via node
All checks were successful
Build / build (pull_request) Successful in 1m8s

This commit is contained in:
Sainan 2025-08-25 22:41:25 +02:00
parent 1a83f1ea3f
commit 9a70db1921
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@
"dev:bun": "bun scripts/dev.cjs",
"verify": "tsgo --noEmit",
"verify:tsc": "tsc --noEmit",
"bun-run": "bun src/index.ts",
"raw": "node --experimental-transform-types src/index.ts",
"raw:bun": "bun src/index.ts",
"lint": "eslint --ext .ts .",
"lint:ci": "eslint --ext .ts --rule \"prettier/prettier: off\" .",
"lint:fix": "eslint --fix --ext .ts .",

View File

@ -39,7 +39,7 @@ function run(changedFile) {
buildproc = undefined;
if (code === 0) {
console.log(`${process.versions.bun ? "Verified" : "Built"} in ${Date.now() - thisbuildstart} ms`);
runproc = spawn("npm", ["run", process.versions.bun ? "bun-run" : "start", "--", ...args], spawnopts);
runproc = spawn("npm", ["run", process.versions.bun ? "raw:bun" : "start", "--", ...args], spawnopts);
runproc.on("exit", () => {
runproc = undefined;
});