build: add packageManager field to package.json
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 3 Apr 2024 07:34:26 +0000 (09:34 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 3 Apr 2024 07:34:26 +0000 (09:34 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package.json
ui/web/package.json

index 3f1359ea252af4e5b2f02f917c7f44898f95f405..cf3b8111352bb2431a3c6f2ee2fb23d1bf7767b0 100644 (file)
@@ -10,6 +10,7 @@
     "node": "20.12.0",
     "pnpm": "8.15.6"
   },
+  "packageManager": "pnpm@8.15.6",
   "repository": {
     "type": "git",
     "url": "https://github.com/sap/e-mobility-charging-stations-simulator.git"
@@ -51,7 +52,7 @@
     "useTsNode": true
   },
   "scripts": {
-    "preinstall": "node skip-preinstall.js || npx --yes only-allow pnpm",
+    "preinstall": "node skip-preinstall.js",
     "prepare": "node prepare.js",
     "build-requirements": "node --no-warnings build-requirements.js",
     "start": "pnpm build && cross-env NODE_ENV=production node dist/start.js",
index 9e9a076b5d87543a469d7d5322b63b6ad0a02d41..99e49fd0f4eb70f886830ce40ab7dbdc85c917ba 100644 (file)
@@ -11,9 +11,9 @@
     "node": "20.12.0",
     "pnpm": "8.15.6"
   },
+  "packageManager": "pnpm@8.15.6",
   "type": "module",
   "scripts": {
-    "preinstall": "npx --yes only-allow pnpm",
     "build": "vite build",
     "preview": "pnpm build && vite preview",
     "start": "pnpm build && node start.js",