From 081645629c716e278214942de390fd669759f460 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 5 Nov 2023 23:11:15 +0100 Subject: [PATCH] build(simulator): production build does not include source maps MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .vscode/settings.json | 1 + docker/start.sh | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 3768a728..b2c6818a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,6 +32,7 @@ "mnemonist", "ocpp", "olivierbagot", + "outdir", "parens", "piment", "poolifier", diff --git a/docker/start.sh b/docker/start.sh index a47dc385..bcfe3b64 100755 --- a/docker/start.sh +++ b/docker/start.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh -node --enable-source-maps dist/start.js & +node dist/start.js & node webui/start.js diff --git a/package.json b/package.json index 42d00538..b1861011 100644 --- a/package.json +++ b/package.json @@ -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", -- 2.34.1