From ecd0561a26c9e7f0fedbaf62787128addf69a373 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 7 Apr 2023 18:15:08 +0200 Subject: [PATCH] try short circut for npm --- src/spawn.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/spawn.ts b/src/spawn.ts index aa1e3da..e8d84e7 100644 --- a/src/spawn.ts +++ b/src/spawn.ts @@ -11,6 +11,9 @@ export function runCorepack( argv: string[], options: RunCommandOptions = {} ): Promise { + if (pm === "npm") { + return runCommand("npm", argv, options); + } return runCommand("corepack", [pm, ...argv], options); }