fix(simulator): fix CF build deployement
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 23 Mar 2023 08:46:06 +0000 (09:46 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 23 Mar 2023 08:46:06 +0000 (09:46 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package.json
pnpm-lock.yaml
skip-preinstall.cjs

index 6c794f56263965bc48539fcdb2955971dbca0e9d..10344b1e87a60cd11af8f2fc1c3c40489ed22c55 100644 (file)
@@ -52,7 +52,7 @@
     "start:heapprofiler": "cross-env NODE_ENV=production clinic heapprofiler -- node -r source-map-support/register dist/start.mjs",
     "rollup": "pnpm run build-requirements && rollup --config",
     "build": "pnpm run rollup",
-    "build:cf": "rimraf node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && npm run rollup",
+    "build:cf": "npx rimraf node_modules && npx cross-env SKIP_PREINSTALL=1 npm install && pnpm run rollup",
     "build:dev": "pnpm run rollup -- --environment BUILD:development",
     "build:dev:watch": "pnpm run rollup -- --environment BUILD:development --watch",
     "lint": "cross-env TIMING=1 eslint --cache --ext .js,.cjs,.mjs,.ts src",
index e5f506f64c0f2a7cb3c63a4a5d87fc476572c3ae..6fe783bb1eef9e4e0fcb9d2c87b42356f1ee0659 100644 (file)
@@ -551,8 +551,8 @@ packages:
       eslint-visitor-keys: 3.3.0
     dev: true
 
-  /@eslint-community/regexpp/4.4.0:
-    resolution: {integrity: sha512-A9983Q0LnDGdLPjxyXQ00sbV+K+O+ko2Dr+CZigbHWtX9pNfxlaBkMR8X1CztI73zuEyEBXTVjx7CE+/VSwDiQ==}
+  /@eslint-community/regexpp/4.4.1:
+    resolution: {integrity: sha512-BISJ6ZE4xQsuL/FmsyRaiffpq977bMlsKfGHTQrOGFErfByxIe6iZTxPf/00Zon9b9a7iUykfQwejN3s2ZW/Bw==}
     engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
     dev: true
 
@@ -1504,7 +1504,7 @@ packages:
       typescript:
         optional: true
     dependencies:
-      '@eslint-community/regexpp': 4.4.0
+      '@eslint-community/regexpp': 4.4.1
       '@typescript-eslint/parser': 5.56.0_j4766f7ecgqbon3u7zlxn5zszu
       '@typescript-eslint/scope-manager': 5.56.0
       '@typescript-eslint/type-utils': 5.56.0_j4766f7ecgqbon3u7zlxn5zszu
@@ -4096,7 +4096,7 @@ packages:
     hasBin: true
     dependencies:
       '@eslint-community/eslint-utils': 4.3.0_eslint@8.36.0
-      '@eslint-community/regexpp': 4.4.0
+      '@eslint-community/regexpp': 4.4.1
       '@eslint/eslintrc': 2.0.1
       '@eslint/js': 8.36.0
       '@humanwhocodes/config-array': 0.11.8
index 3d17131cddfb23371470894af9399331db73fa23..fffc7d878fad5f70f6e64e9649ab0b609fade478 100644 (file)
@@ -1,4 +1,5 @@
-if (process.env.SKIP_PREINSTALL) {
+const isCFEnvironment = process.env.VCAP_APPLICATION !== undefined;
+if (process.env.SKIP_PREINSTALL || isCFEnvironment) {
   // eslint-disable-next-line n/no-process-exit
   process.exit(0);
 } else {