Skip to content

Commit

Permalink
look for storybook instead of @storybook/cli
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Jan 26, 2024
1 parent d332158 commit 154d979
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/lib/cli/src/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ export const doUpgrade = async ({

// If we can't determine the existing version (Yarn PnP), fallback to v0.0.0 to not block the upgrade
const beforeVersion =
(await packageManager.findInstallations(['@storybook/cli']))?.dependencies[
'@storybook/cli'
]?.[0].version ?? '0.0.0';
(await packageManager.findInstallations(['@storybook/cli']))?.dependencies['storybook']?.[0]
.version ?? '0.0.0';

const currentVersion = versions['@storybook/cli'];
const isCanary = currentVersion.startsWith('0.0.0');
Expand Down

0 comments on commit 154d979

Please sign in to comment.