Skip to content

Commit

Permalink
try short circut for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 7, 2023
1 parent f55616a commit ecd0561
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/spawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export function runCorepack(
argv: string[],
options: RunCommandOptions = {}
): Promise<boolean> {
if (pm === "npm") {
return runCommand("npm", argv, options);
}
return runCommand("corepack", [pm, ...argv], options);
}

Expand Down

0 comments on commit ecd0561

Please sign in to comment.