From bcc5e5f59ad36eb9c66341322d91187e2584b484 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Wed, 11 Feb 2026 21:36:06 -0800 Subject: [PATCH] fix: restrict installerArgs push to npm client only Currently, when pnpm is set as the package manager, '--' is inserted before arguments that are meant to be passed on to a script being run. This is incorrect. --- packages/@ionic/cli/src/lib/utils/npm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ionic/cli/src/lib/utils/npm.ts b/packages/@ionic/cli/src/lib/utils/npm.ts index c717b1924d..74b2f9de56 100644 --- a/packages/@ionic/cli/src/lib/utils/npm.ts +++ b/packages/@ionic/cli/src/lib/utils/npm.ts @@ -158,7 +158,7 @@ export async function pkgManagerArgs(npmClient: NpmClient, options: PkgManagerOp } if (cmd === 'run' && options.script && options.scriptArgs && options.scriptArgs.length > 0) { - if (npmClient === 'npm' || npmClient === 'pnpm') { + if (npmClient === 'npm') { installerArgs.push('--'); }