From a7ded1bb001d9c51c8f3b9b19f6a3a20e3ea45ac Mon Sep 17 00:00:00 2001 From: Gregg Tavares Date: Thu, 7 Mar 2024 08:41:46 -0800 Subject: [PATCH] fix server start for windows --- build/tools/serve.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build/tools/serve.js b/build/tools/serve.js index fa6cb45f..78cab7dc 100644 --- a/build/tools/serve.js +++ b/build/tools/serve.js @@ -13,7 +13,7 @@ spawn('node', ['build/tools/copy.js', '1'], { stdio: 'inherit', }); -spawn('./node_modules/.bin/servez', ['out'], { +spawn('npm', ['run', 'server'], { shell: true, stdio: 'inherit', }); diff --git a/package.json b/package.json index 738f4d69..d1d50e62 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "build": "node build/tools/build.js", "start": "node build/tools/serve.js", "serve": "node build/tools/serve.js", + "server": "servez out", "watch": "rollup -c -w", "export": "npm run build" },