Cleanup npm scripts
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 29 Oct 2022 13:06:01 +0000 (15:06 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 29 Oct 2022 13:06:01 +0000 (15:06 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.vscode/launch.json
package.json

index 075bb3f99ecac7fdbc71a7f8df7ca0d6a958b370..47cb8a6a112bb2611be99eade7eb98e6e8344cc4 100644 (file)
@@ -9,7 +9,6 @@
       "request": "launch",
       "name": "Debug Simulator via npm",
       "cwd": "${workspaceFolder}",
-      "preLaunchTask": "npm: build",
       "runtimeExecutable": "npm",
       "runtimeArgs": ["run-script", "start:debug"],
       "skipFiles": ["<node_internals>/**"],
@@ -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": ["<node_internals>/**"],
index af2a7a721363d8f0381ea1a60613d17addf04c9d..d4533f3c878e9fb44d835293ea475d324018e616 100644 (file)
   },
   "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",