XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

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>

b2749765
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +8 -4
Modified scripts/dev.cjs +8 -4
@@ -41,8 +41,7 @@ function run(changedFile) {
41 41 }
42 42
43 43 const thisbuildproc = spawn(
44 process.versions.bun ? "bun" : "npm",
45 ["run", cangoraw ? "verify" : "build:dev"],
44 [process.versions.bun ? "bun" : "npm", "run", cangoraw ? "verify" : "build:dev"].join(" "),
46 45 spawnopts
47 46 );
48 47 const thisbuildstart = Date.now();
@@ -55,8 +54,13 @@ function run(changedFile) {
55 54 if (code === 0) {
56 55 console.log(`${cangoraw ? "Verified" : "Built"} in ${Date.now() - thisbuildstart} ms`);
57 56 runproc = spawn(
58 process.versions.bun ? "bun" : "npm",
59 ["run", cangoraw ? (process.versions.bun ? "raw:bun" : "raw") : "start", "--", ...args],
57 [
58 process.versions.bun ? "bun" : "npm",
59 "run",
60 cangoraw ? (process.versions.bun ? "raw:bun" : "raw") : "start",
61 "--",
62 ...args
63 ].join(" "),
60 64 spawnopts
61 65 );
62 66 runproc.on("exit", () => {