From f6b718161a73f1efad5551edbc35d7c14f3a127a Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Fri, 6 Dec 2024 11:03:14 +0100 Subject: [PATCH] force install dependencies to ignore peer dep warnings --- scripts/bench/bench-packages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/bench/bench-packages.ts b/scripts/bench/bench-packages.ts index 1651f5507301..e7dd22ff1a87 100644 --- a/scripts/bench/bench-packages.ts +++ b/scripts/bench/bench-packages.ts @@ -92,10 +92,10 @@ export const benchPackage = async (packageName: PackageName) => { 2 ) ); - const npmInstallResult = await x( 'npm', - `install --registry http://localhost:6001 --omit peer --json`.split(' '), + // --force to ignore peer dependency warnings, we aren't installing peer dependencies anyway + `install --registry http://localhost:6001 --omit peer --json --force`.split(' '), { nodeOptions: { cwd: tmpBenchPackagePath }, }