Skip to content

Commit

Permalink
fix(storybook): update storybook to latest 6 (#14110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandarini authored Jan 3, 2023
1 parent d913358 commit 00db9e3
Show file tree
Hide file tree
Showing 6 changed files with 473 additions and 328 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-url": "^7.0.0",
"@schematics/angular": "~15.0.1",
"@storybook/addon-essentials": "~6.5.9",
"@storybook/angular": "^6.5.12",
"@storybook/builder-webpack5": "~6.5.9",
"@storybook/core-server": "~6.5.9",
"@storybook/manager-webpack5": "~6.5.9",
"@storybook/react": "~6.5.9",
"@storybook/addon-essentials": "^6.5.15",
"@storybook/angular": "^6.5.15",
"@storybook/builder-webpack5": "^6.5.15",
"@storybook/core-server": "^6.5.15",
"@storybook/manager-webpack5": "^6.5.15",
"@storybook/react": "^6.5.15",
"@svgr/rollup": "^6.1.2",
"@svgr/webpack": "^6.1.2",
"@swc-node/register": "^1.4.2",
Expand Down
37 changes: 37 additions & 0 deletions packages/storybook/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,43 @@
}
},
"packageJsonUpdates": {
"15.4.3": {
"version": "15.4.3-beta.1",
"packages": {
"@storybook/core-server": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
},
"@storybook/angular": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
},
"@storybook/react": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
},
"@storybook/web": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
},
"@storybook/addon-essentials": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
},
"@storybook/builder-webpack5": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
},
"@storybook/manager-webpack5": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
},
"@storybook/builder-vite": {
"version": "^6.5.15",
"alwaysAddToPackageJson": false
}
}
},
"15.1.1": {
"version": "15.1.1-beta.0",
"packages": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ Object {
},
"devDependencies": Object {
"@angular/forms": "*",
"@nrwl/storybook": "~6.5.9",
"@storybook/addon-essentials": "~6.5.9",
"@storybook/angular": "~6.5.9",
"@storybook/builder-webpack5": "~6.5.9",
"@storybook/core-server": "~6.5.9",
"@storybook/manager-webpack5": "~6.5.9",
"@nrwl/storybook": "^6.5.15",
"@storybook/addon-essentials": "^6.5.15",
"@storybook/angular": "^6.5.15",
"@storybook/builder-webpack5": "^6.5.15",
"@storybook/core-server": "^6.5.15",
"@storybook/manager-webpack5": "^6.5.15",
"existing": "1.0.0",
"html-webpack-plugin": "^5.5.0",
"webpack": "^5.64.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/storybook/src/generators/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
storybookVersion,
svgrVersion,
urlLoaderVersion,
viteBuilderVeresion,
viteBuilderVersion,
webpack5Version,
htmlWebpackPluginVersion,
} from '../../utils/versions';
Expand All @@ -40,7 +40,7 @@ function checkDependenciesInstalled(host: Tree, schema: Schema) {
devDependencies['@storybook/addon-essentials'] = storybookVersion;

if (schema.bundler === 'vite') {
devDependencies['@storybook/builder-vite'] = viteBuilderVeresion;
devDependencies['@storybook/builder-vite'] = viteBuilderVersion;
} else {
devDependencies['@storybook/builder-webpack5'] = storybookVersion;
devDependencies['@storybook/manager-webpack5'] = storybookVersion;
Expand Down
4 changes: 2 additions & 2 deletions packages/storybook/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
export const nxVersion = require('../../package.json').version;
export const storybookVersion = '~6.5.9';
export const storybookVersion = '^6.5.15';
export const babelCoreVersion = '7.12.13';
export const babelLoaderVersion = '8.1.0';
export const babelPresetTypescriptVersion = '7.12.13';
export const svgrVersion = '^5.4.0';
export const urlLoaderVersion = '^3.0.0';
export const webpack5Version = '^5.64.0';
export const viteBuilderVeresion = '0.2.5';
export const viteBuilderVersion = '^0.2.6';
export const storybookReactNativeVersion = '^6.0.1-beta.9';
export const reactNativeStorybookLoader = '^2.0.5';
export const storybookSwcAddonVersion = '^1.1.7';
Expand Down
Loading

1 comment on commit 00db9e3

@vercel
Copy link

@vercel vercel bot commented on 00db9e3 Jan 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app
nx-dev-nrwl.vercel.app

Please sign in to comment.