Skip to content

Commit

Permalink
fix(upgrade): dont upgrade nx packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini committed May 5, 2023
1 parent 68c2444 commit e03f684
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/lib/cli/src/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ export const checkVersionConsistency = () => {
const storybookPackages = lines
.map(getStorybookVersion)
.filter(Boolean)
.filter((pkg) => isCorePackage(pkg.package));
.filter((pkg) => isCorePackage(pkg.package))
.filter((pkg) => pkg.package !== '@nrwl/storybook' && pkg.package !== '@nx/storybook'); // do not update nx packages
if (!storybookPackages.length) {
logger.warn('No storybook core packages found.');
logger.warn(`'npm ls | grep storybook' can show if multiple versions are installed.`);
Expand Down

0 comments on commit e03f684

Please sign in to comment.