Skip to content

Commit

Permalink
Merge pull request #24551 from storybookjs/yann/fix-link-command
Browse files Browse the repository at this point in the history
Build: Allow yarn 4 in link command
(cherry picked from commit 4ee42ac)
  • Loading branch information
JReinhold authored and storybook-bot committed Oct 26, 2023
1 parent 1e9c7b4 commit c557ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/lib/cli/src/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ export const link = async ({ target, local, start }: LinkOptions) => {
shell: true,
}).stdout.toString();

if (!/^[23]\./.test(version)) {
logger.warn(`🚨 Expected yarn 2 or 3 in ${reproDir}!`);
if (!/^[2-4]\./.test(version)) {
logger.warn(`🚨 Expected yarn 2 or higher in ${reproDir}!`);
logger.warn('');
logger.warn('Please set it up with `yarn set version berry`,');
logger.warn(`then link '${reproDir}' with the '--local' flag.`);
Expand Down

0 comments on commit c557ae0

Please sign in to comment.