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 91b4484 commit ea52c6b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/lib/cli/src/upgrade.ts
Expand Up @@ -46,6 +46,8 @@ const excludeList = [
'@storybook/test-runner',
'@storybook/testing-library',
'@storybook/testing-react',
'@nrwl/storybook',
'@nx/storybook',
];
export const isCorePackage = (pkg: string) =>
pkg.startsWith('@storybook/') &&
Expand Down Expand Up @@ -189,6 +191,8 @@ export const doUpgrade = async ({
if (!dryRun) flags.push('--upgrade');
flags.push('--target');
flags.push(target);
flags.push('--reject');
flags.push('@nrwl/storybook,@nx/storybook');
flags = addExtraFlags(EXTRA_FLAGS, flags, packageManager.retrievePackageJson());
const check = spawnSync('npx', ['npm-check-updates@latest', '/storybook/', ...flags], {
stdio: 'pipe',
Expand Down

0 comments on commit ea52c6b

Please sign in to comment.