From ab11815041aa71687b53549f1d9ecb1134583d92 Mon Sep 17 00:00:00 2001 From: Katerina Skroumpelou Date: Wed, 19 Jul 2023 16:56:06 +0300 Subject: [PATCH] feat(storybook): update storybook to 7.1 (#18183) --- packages/storybook/migrations.json | 109 ++++++++++++++++++ .../generators/configuration/configuration.ts | 1 - .../init/__snapshots__/init.spec.ts.snap | 2 +- packages/storybook/src/utils/versions.ts | 2 +- 4 files changed, 111 insertions(+), 3 deletions(-) diff --git a/packages/storybook/migrations.json b/packages/storybook/migrations.json index 83aba454b486a..d759b005df8a5 100644 --- a/packages/storybook/migrations.json +++ b/packages/storybook/migrations.json @@ -68,6 +68,115 @@ } }, "packageJsonUpdates": { + "16.6.0": { + "version": "16.6.0-beta.6", + "packages": { + "@storybook/test-runner": { + "version": "^0.11.0", + "alwaysAddToPackageJson": false + }, + "@storybook/core-server": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/angular": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/react": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/react-vite": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/react-webpack5": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/web-components-vite": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/web-components-webpack5": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-a11y": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-actions": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-backgrounds": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-controls": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-docs": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-essentials": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-interactions": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-mdx-gfm": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-highlight": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-jest": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-links": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-measure": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-outline": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-storyshots": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-storyshots-puppeteer": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-storysource": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-toolbars": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + }, + "@storybook/addon-viewport": { + "version": "^7.1.0", + "alwaysAddToPackageJson": false + } + } + }, "16.5.0": { "version": "16.5.0-beta.0", "requires": { diff --git a/packages/storybook/src/generators/configuration/configuration.ts b/packages/storybook/src/generators/configuration/configuration.ts index 1465d010bece2..01caf2b602f1b 100644 --- a/packages/storybook/src/generators/configuration/configuration.ts +++ b/packages/storybook/src/generators/configuration/configuration.ts @@ -177,7 +177,6 @@ export async function configurationGenerator( const devDeps = {}; if (schema.tsConfiguration) { - devDeps['@storybook/core-common'] = storybookVersion; devDeps['ts-node'] = tsNodeVersion; } diff --git a/packages/storybook/src/generators/init/__snapshots__/init.spec.ts.snap b/packages/storybook/src/generators/init/__snapshots__/init.spec.ts.snap index 968d622768f5e..5d803c7d090ab 100644 --- a/packages/storybook/src/generators/init/__snapshots__/init.spec.ts.snap +++ b/packages/storybook/src/generators/init/__snapshots__/init.spec.ts.snap @@ -10,7 +10,7 @@ exports[`@nx/storybook:init dependencies for package.json should add angular rel "devDependencies": { "@angular/forms": "*", "@nx/js": "0.0.1", - "@nx/storybook": "^7.0.24", + "@nx/storybook": "^7.1.0", "@storybook/addon-essentials": "7.0.24", "@storybook/angular": "7.0.24", "@storybook/core-server": "7.0.24", diff --git a/packages/storybook/src/utils/versions.ts b/packages/storybook/src/utils/versions.ts index 06bcac3a97721..61075d24b1355 100644 --- a/packages/storybook/src/utils/versions.ts +++ b/packages/storybook/src/utils/versions.ts @@ -7,7 +7,7 @@ export const storybookJestVersion = '~0.1.0'; export const litVersion = '^2.6.1'; export const tsNodeVersion = '10.9.1'; -export const storybookVersion = '^7.0.24'; +export const storybookVersion = '^7.1.0'; export const reactVersion = '^18.2.0'; export const viteVersion = '~4.3.9';