Skip to content

Commit

Permalink
Merge pull request #29448 from storybookjs/norbert/fix-yarn-detection
Browse files Browse the repository at this point in the history
CLI: Fix `yarn` detection
  • Loading branch information
ndelangen authored Oct 28, 2024
2 parents 5b7713f + db73a58 commit 9fb3d98
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function hasNPM(cwd?: string) {
cwd,
shell: true,
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
},
});
Expand All @@ -140,6 +141,7 @@ function hasPNPM(cwd?: string) {
cwd,
shell: true,
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
},
});
Expand All @@ -151,6 +153,7 @@ function getYarnVersion(cwd?: string): 1 | 2 | undefined {
cwd,
shell: true,
env: {
...process.env,
COREPACK_ENABLE_STRICT: '0',
},
});
Expand Down

0 comments on commit 9fb3d98

Please sign in to comment.