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
  • Loading branch information
yannbf authored Nov 18, 2024
2 parents 56952c7 + bd5a918 commit b2f3fc9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ function hasNPM(cwd?: string) {
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
COREPACK_ENABLE_AUTO_PIN: '0',
},
});
return npmVersionCommand.status === 0;
Expand All @@ -153,6 +154,7 @@ function hasBun(cwd?: string) {
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
COREPACK_ENABLE_AUTO_PIN: '0',
},
});
return pnpmVersionCommand.status === 0;
Expand All @@ -165,6 +167,7 @@ function hasPNPM(cwd?: string) {
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
COREPACK_ENABLE_AUTO_PIN: '0',
},
});
return pnpmVersionCommand.status === 0;
Expand All @@ -177,6 +180,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 b2f3fc9

Please sign in to comment.