mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:01:05 +08:00
Merge pull request #15989 from storybookjs/fix/repro-link-yarn3
CLI: Fix sb link to yarn3 repos
This commit is contained in:
commit
8a56e94dc9
@ -38,8 +38,8 @@ export const link = async ({ target, local }: LinkOptions) => {
|
||||
stdio: 'pipe',
|
||||
}).stdout.toString();
|
||||
|
||||
if (!version.startsWith('2.')) {
|
||||
logger.warn(`🚨 Expected yarn 2 in ${reproDir}!`);
|
||||
if (!/^[23]\./.test(version)) {
|
||||
logger.warn(`🚨 Expected yarn 2 or 3 in ${reproDir}!`);
|
||||
logger.warn('');
|
||||
logger.warn('Please set it up with `yarn set version berry`,');
|
||||
logger.warn(`then link '${reproDir}' with the '--local' flag.`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user