Skip to content

Commit

Permalink
Merge pull request #29627 from storybookjs/yann/disable-corepack-pin-…
Browse files Browse the repository at this point in the history
…issue

CLI: Disable corepack auto pin behavior
(cherry picked from commit b2f3fc9)
  • Loading branch information
yannbf authored and shilman committed Nov 20, 2024
1 parent c9c8e05 commit 2d1f527
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ function hasNPM(cwd?: string) {
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
COREPACK_ENABLE_AUTO_PIN: '0',
},
});
return npmVersionCommand.status === 0;
Expand All @@ -143,6 +144,7 @@ function hasPNPM(cwd?: string) {
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
COREPACK_ENABLE_AUTO_PIN: '0',
},
});
return pnpmVersionCommand.status === 0;
Expand All @@ -155,6 +157,7 @@ function getYarnVersion(cwd?: string): 1 | 2 | undefined {
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
COREPACK_ENABLE_AUTO_PIN: '0',
},
});

Expand Down

0 comments on commit 2d1f527

Please sign in to comment.