From: Jérôme Benoit Date: Sat, 29 Oct 2022 13:06:01 +0000 (+0200) Subject: Cleanup npm scripts X-Git-Tag: v1.1.87~18 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4544f162cf2984bf71c2ca242998ba22f470d4b3;p=e-mobility-charging-stations-simulator.git Cleanup npm scripts Signed-off-by: Jérôme Benoit --- diff --git a/.vscode/launch.json b/.vscode/launch.json index 075bb3f9..47cb8a6a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -9,7 +9,6 @@ "request": "launch", "name": "Debug Simulator via npm", "cwd": "${workspaceFolder}", - "preLaunchTask": "npm: build", "runtimeExecutable": "npm", "runtimeArgs": ["run-script", "start:debug"], "skipFiles": ["/**"], @@ -20,7 +19,6 @@ "request": "launch", "name": "Debug Simulator Development Build via npm", "cwd": "${workspaceFolder}", - "preLaunchTask": "npm: build:dev", "runtimeExecutable": "npm", "runtimeArgs": ["run-script", "start:dev:debug"], "skipFiles": ["/**"], diff --git a/package.json b/package.json index af2a7a72..d4533f3c 100644 --- a/package.json +++ b/package.json @@ -41,10 +41,9 @@ }, "scripts": { "prepare": "node prepare.js", - "prestart": "npm run build", "build-requirements": "node build-requirements.js", - "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.cjs", - "start:debug": "cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.cjs", + "start": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/start.cjs", + "start:debug": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.cjs", "start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.cjs", "start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.cjs", "start:dev:esm": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.mjs",