From b2749765a307a3bc91a8158361b2e58f1f30e9e3 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 29 Oct 2025 06:24:32 -0700 Subject: [PATCH] chore: fix nodejs deprecation warning in dev script (#2947) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2947 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- scripts/dev.cjs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/dev.cjs b/scripts/dev.cjs index 031355ed..4d65b924 100644 --- a/scripts/dev.cjs +++ b/scripts/dev.cjs @@ -41,8 +41,7 @@ function run(changedFile) { } const thisbuildproc = spawn( - process.versions.bun ? "bun" : "npm", - ["run", cangoraw ? "verify" : "build:dev"], + [process.versions.bun ? "bun" : "npm", "run", cangoraw ? "verify" : "build:dev"].join(" "), spawnopts ); const thisbuildstart = Date.now(); @@ -55,8 +54,13 @@ function run(changedFile) { if (code === 0) { console.log(`${cangoraw ? "Verified" : "Built"} in ${Date.now() - thisbuildstart} ms`); runproc = spawn( - process.versions.bun ? "bun" : "npm", - ["run", cangoraw ? (process.versions.bun ? "raw:bun" : "raw") : "start", "--", ...args], + [ + process.versions.bun ? "bun" : "npm", + "run", + cangoraw ? (process.versions.bun ? "raw:bun" : "raw") : "start", + "--", + ...args + ].join(" "), spawnopts ); runproc.on("exit", () => {