From: Jérôme Benoit Date: Fri, 3 Jun 2022 20:28:13 +0000 (+0200) Subject: Also build when testing the ESM support X-Git-Tag: v1.1.61~9 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fecfd0392d5644e389b6d6922a8b93050e5beab2;p=e-mobility-charging-stations-simulator.git Also build when testing the ESM support Signed-off-by: Jérôme Benoit --- diff --git a/package.json b/package.json index ff1c06e9..249db993 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "prepare": "node prepare.js", "prestart": "npm run build", "start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.cjs", - "start:esm": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.mjs", + "start:esm": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.mjs", "start:server": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/ui/httpd/start.cjs", "start:debug": "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",