build: avoid npx prompt at pnpm i
[e-mobility-charging-stations-simulator.git] / package.json
index 094574106464c1c1d0157fc321a1edbf73b3a97c..525b99de880d521875abae5721b02e2504b32916 100644 (file)
@@ -4,6 +4,9 @@
   "engines": {
     "node": ">=16.9.0"
   },
+  "volta": {
+    "node": "20.0.0"
+  },
   "repository": {
     "type": "git",
     "url": "https://github.com/sap/e-mobility-charging-stations-simulator.git"
@@ -39,7 +42,7 @@
     "useTsNode": true
   },
   "scripts": {
-    "preinstall": "node skip-preinstall.cjs || npx only-allow pnpm",
+    "preinstall": "node skip-preinstall.cjs || npx --yes only-allow pnpm",
     "prepare": "node prepare.cjs",
     "build-requirements": "node --no-warnings build-requirements.mjs",
     "start": "pnpm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/start.mjs",