mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 10:21:07 +08:00
CLI: Fix sb link to yarn3 repos
This commit is contained in:
parent
5d8a1e2f0c
commit
0065c80baf
@ -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