build(simulator): add script to build CF source with source maps
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 5 Nov 2023 22:14:55 +0000 (23:14 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 5 Nov 2023 22:14:55 +0000 (23:14 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package.json

index b186101169dcce7668fb39f85ae017cce952b595..7799733ee9cc4f08dadc6f98a1db7586c1ea9dc8 100644 (file)
@@ -66,8 +66,9 @@
     "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node --enable-source-maps dist/start.js",
     "esbuild": "pnpm build-requirements && node bundle.js",
     "build": "pnpm esbuild",
-    "build:cf": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm esbuild",
     "build:dev": "cross-env BUILD=development pnpm esbuild",
+    "build:cf": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm build",
+    "build:cf:dev": "pnpm clean:node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm build:dev",
     "clean:dist": "npx rimraf dist",
     "clean:node_modules": "npx rimraf node_modules",
     "lint": "cross-env TIMING=1 eslint --cache src",