Skip to content

Commit

Permalink
feat: upgrade to Storybook v5
Browse files Browse the repository at this point in the history
  • Loading branch information
P0lip committed Jan 13, 2019
1 parent f5e5ba8 commit 8086c5b
Show file tree
Hide file tree
Showing 3 changed files with 2,595 additions and 1,074 deletions.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
"test.watch": "yarn test --watch"
},
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
"react": ">=16.8",
"react-dom": ">=16.8"
},
"dependencies": {
"@babel/core": "7.x.x",
"@storybook/addon-actions": "4.0.x",
"@storybook/addon-info": "4.0.x",
"@storybook/addon-knobs": "4.0.x",
"@storybook/addon-links": "4.0.x",
"@storybook/addon-options": "4.0.x",
"@storybook/addons": "4.0.x",
"@storybook/core": "4.0.x",
"@storybook/react": "4.0.x",
"@storybook/addon-actions": "5.0.0-debug.3",
"@storybook/addon-info": "5.0.0-debug.3",
"@storybook/addon-knobs": "5.0.0-debug.3",
"@storybook/addon-links": "5.0.0-debug.3",
"@storybook/addon-options": "5.0.0-debug.3",
"@storybook/addons": "5.0.0-debug.3",
"@storybook/core": "5.0.0-debug.3",
"@storybook/react": "5.0.0-debug.3",
"@types/storybook__addon-actions": "3.4.x",
"@types/storybook__addon-info": "3.4.x",
"@types/storybook__addon-knobs": "3.4.x",
"@types/storybook__addon-knobs": "4.0.0",
"@types/storybook__addon-links": "3.3.x",
"@types/storybook__addon-options": "4.0.x",
"@types/storybook__react": "4.0.x",
Expand All @@ -60,9 +60,9 @@
"webpack": "4.x.x"
},
"devDependencies": {
"@stoplight/scripts": "4.x.x",
"react": ">=16",
"react-dom": ">=16",
"@stoplight/scripts": "4.1.0",
"react": "16.8.0-alpha.0",
"react-dom": "16.8.0-alpha.0",
"typescript": "3.2.x"
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion src/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const pkg = require.resolve('package.json', {
paths: [process.cwd()],
}) as any;

module.exports = (baseConfig: any, env: any, config: any) => {
module.exports = ({ config }: any, env: string) => {
config.context = cwd;
config.mode = 'development';
config.resolve.alias['@project/stories'] = require.resolve('src/__stories__/index.ts', { paths: [cwd] });
Expand Down
Loading

0 comments on commit 8086c5b

Please sign in to comment.