From: Jérôme Benoit Date: Mon, 11 May 2026 23:32:27 +0000 (+0200) Subject: build: add dev profiling script and fix prod profiling X-Git-Tag: cli@v4.7.3~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5294fbd61100140155b7a523802817031a735af9;p=e-mobility-charging-stations-simulator.git build: add dev profiling script and fix prod profiling --- diff --git a/package.json b/package.json index bbb80d83..4ba90d74 100644 --- a/package.json +++ b/package.json @@ -49,9 +49,10 @@ "prepare": "node scripts/prepare.js", "build-requirements": "node scripts/build-requirements.js", "start": "pnpm build && cross-env NODE_ENV=production node dist/start.js", - "start:prof": "cross-env NODE_ENV=production node --enable-source-maps --prof dist/start.js", + "start:prof": "pnpm build && cross-env NODE_ENV=production node --prof 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:dev:prof": "pnpm build:dev && cross-env NODE_ENV=development node --enable-source-maps --prof dist/start.js", "esbuild": "pnpm build-requirements && node scripts/bundle.js", "build": "pnpm esbuild", "build:dev": "cross-env BUILD=development pnpm esbuild",