Skip to content

Commit

Permalink
fix: deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc MacLeod committed Dec 19, 2018
1 parent aa3abe4 commit f5e5ba8
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 743 deletions.
16 changes: 10 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"test.watch": "yarn test --watch"
},
"peerDependencies": {
"@storybook/react": "^4.1.2",
"react": ">=16",
"react-dom": ">=16"
},
"dependencies": {
"@babel/core": "7.x.x",
"@storybook/addon-actions": "4.0.x",
"@storybook/addon-info": "4.0.x",
"@storybook/addon-knobs": "4.0.x",
Expand All @@ -48,17 +48,21 @@
"@storybook/addons": "4.0.x",
"@storybook/core": "4.0.x",
"@storybook/react": "4.0.x",
"react-docgen-typescript-loader": "3.0.x",
"ts-loader": "5.3.x"
},
"devDependencies": {
"@stoplight/scripts": "3.x.x",
"@types/storybook__addon-actions": "3.4.x",
"@types/storybook__addon-info": "3.4.x",
"@types/storybook__addon-knobs": "3.4.x",
"@types/storybook__addon-links": "3.3.x",
"@types/storybook__addon-options": "4.0.x",
"@types/storybook__react": "4.0.x",
"babel-loader": "8.x.x",
"react-docgen-typescript-loader": "3.0.x",
"ts-loader": "5.3.x",
"webpack": "4.x.x"
},
"devDependencies": {
"@stoplight/scripts": "4.x.x",
"react": ">=16",
"react-dom": ">=16",
"typescript": "3.2.x"
},
"lint-staged": {
Expand Down
5 changes: 3 additions & 2 deletions src/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ const pkg = require.resolve('package.json', {
module.exports = (baseConfig: any, env: any, config: any) => {
config.context = cwd;
config.mode = 'development';
config.resolve.modules = [path.resolve(cwd, 'node_modules'), path.resolve(__dirname, '../node_modules')];
config.resolve.alias['@project/stories'] = require.resolve('src/__stories__/index.ts', { paths: [cwd] });
config.resolve.alias['@project/theme'] = require.resolve('.storybook/theme', { paths: [cwd] });
config.resolve.alias['@project/theme'] = require.resolve('.storybook/theme', {
paths: [cwd],
});

config.plugins.push(
new webpack.DefinePlugin({
Expand Down
Loading

0 comments on commit f5e5ba8

Please sign in to comment.