chore: make use of raw running when dev script is used with newer node #2748

Merged
Sainan merged 2 commits from dev-raw into main 2025-09-03 22:46:04 -07:00
Showing only changes of commit c17cb4ee51 - Show all commits

View File

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