From a52fbc9a85918de4c9a6b4df0265abfe6ec698d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 3 Apr 2024 09:34:26 +0200 Subject: [PATCH] build: add packageManager field to package.json MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- package.json | 3 ++- ui/web/package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 3f1359ea..cf3b8111 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/ui/web/package.json b/ui/web/package.json index 9e9a076b..99e49fd0 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -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", -- 2.34.1