diff --git a/packages/server/package.json b/packages/server/package.json index e6680f0b86..d7c0bf4851 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -10,7 +10,7 @@ }, "scripts": { "prebuild": "rimraf dist/", - "build": "./scripts/build.js", + "build": "node ./scripts/build.js", "tsbuild": "tsc -p tsconfig.build.json && mv dist/src/* dist/ && rimraf dist/src/", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput", "debug": "yarn build && node --expose-gc --inspect=9222 dist/index.js", diff --git a/packages/worker/package.json b/packages/worker/package.json index f91a83dcab..ded8abbecb 100644 --- a/packages/worker/package.json +++ b/packages/worker/package.json @@ -13,7 +13,7 @@ ], "scripts": { "prebuild": "rimraf dist/", - "build": "../../scripts/build.js", + "build": "node ../../scripts/build.js", "tsbuild": "tsc -p tsconfig.build.json", "postbuild": "copyfiles -u 1 src/**/*.hbs dist/", "build:dev": "yarn prebuild && tsc --build --watch --preserveWatchOutput",