build(simulator): production build does not include source maps
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 5 Nov 2023 22:11:15 +0000 (23:11 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 5 Nov 2023 22:11:15 +0000 (23:11 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.vscode/settings.json
docker/start.sh
package.json

index 3768a728b4de18b4acc3baf57c675c5e154d6bd0..b2c6818a3095ec1ca6ac86aaeaf434533294dcc4 100644 (file)
@@ -32,6 +32,7 @@
     "mnemonist",
     "ocpp",
     "olivierbagot",
+    "outdir",
     "parens",
     "piment",
     "poolifier",
index a47dc38591cd072edbe054750d4b17903bbac65a..bcfe3b6407109a825d986eba9bfe804a3f61272e 100755 (executable)
@@ -1,4 +1,4 @@
 #!/usr/bin/env sh
 
-node --enable-source-maps dist/start.js &
+node dist/start.js &
 node webui/start.js
index 42d00538fccca76ab241e3f1e4aaed938449ffbf..b186101169dcce7668fb39f85ae017cce952b595 100644 (file)
@@ -56,7 +56,7 @@
     "preinstall": "node skip-preinstall.js || npx --yes only-allow pnpm",
     "prepare": "node prepare.js",
     "build-requirements": "node --no-warnings build-requirements.js",
-    "start": "pnpm build && cross-env NODE_ENV=production node --enable-source-maps dist/start.js",
+    "start": "pnpm build && cross-env NODE_ENV=production node dist/start.js",
     "start:dev": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps dist/start.js",
     "start:dev:debug": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps --inspect dist/start.js",
     "start:prof": "cross-env NODE_ENV=production node --enable-source-maps --prof dist/start.js",