Skip to content

Commit 48dc57c

Browse files
committed
fix(tools): update storybook packages
Obsolete storybook packages were trying to install dependencies, removed from npm
1 parent ecf7f09 commit 48dc57c

File tree

15 files changed

+1787
-888
lines changed

15 files changed

+1787
-888
lines changed

packages/react-kit/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,20 +55,16 @@
5555
},
5656
"devDependencies": {
5757
"@devexperts/tools": "^1.0.0-alpha.9",
58-
"@storybook/addon-actions": "^5.1.11",
59-
"@storybook/addon-info": "^5.1.11",
60-
"@storybook/addon-knobs": "^5.1.11",
61-
"@storybook/react": "5.1.11",
58+
"@storybook/addon-actions": "^5.3.5",
59+
"@storybook/addon-info": "^5.3.5",
60+
"@storybook/addon-knobs": "^5.3.5",
61+
"@storybook/react": "^5.3.5",
6262
"@storybook/storybook-deployer": "^2.8.1",
6363
"@types/enzyme": "^3.10.3",
6464
"@types/enzyme-adapter-react-16": "^1.0.5",
6565
"@types/jest": "^24.0.18",
6666
"@types/react": "^16.9.2",
6767
"@types/react-dom": "^16.9.0",
68-
"@types/storybook__addon-actions": "^3.4.3",
69-
"@types/storybook__addon-info": "^4.1.2",
70-
"@types/storybook__addon-knobs": "^5.0.3",
71-
"@types/storybook__react": "^4.0.2",
7268
"enzyme": "^3.10.0",
7369
"enzyme-adapter-react-16": "^1.14.0",
7470
"eslint": "^6.7.2",

packages/tools/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,12 @@
4949
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
5050
"@babel/preset-env": "^7.4.3",
5151
"@babel/preset-react": "^7.0.0",
52-
"@storybook/addon-actions": "^5.1.11",
53-
"@storybook/addon-info": "^5.1.11",
54-
"@storybook/addon-knobs": "^5.1.11",
55-
"@storybook/react": "5.1.11",
52+
"@storybook/addon-actions": "^5.3.5",
53+
"@storybook/addon-info": "^5.3.5",
54+
"@storybook/addon-knobs": "^5.3.5",
55+
"@storybook/react": "^5.3.5",
5656
"@types/html-webpack-plugin": "^3.2.0",
5757
"@types/node": ">=8.0.57",
58-
"@types/storybook__addon-actions": "^3.4.3",
59-
"@types/storybook__addon-info": "^4.1.2",
60-
"@types/storybook__addon-knobs": "^5.0.3",
61-
"@types/storybook__react": "^4.0.2",
6258
"@types/strong-log-transformer": "^1.0.0",
6359
"@types/webpack": "^4.4.3",
6460
"autoprefixer": "^9.5.1",

packages/tools/src/config/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* tslint:disable:no-var-requires */
22

3-
import * as path from 'path';
4-
import * as fs from 'fs';
3+
import path from 'path';
4+
import fs from 'fs';
55
let OVERRIDES: any = {};
66

77
export const TOOLS_ROOT = path.join(__dirname, '../../');

packages/tools/src/config/storybook/webpack.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as webpack from 'webpack';
1+
import webpack from 'webpack';
22
import * as ENV from '../env';
33

44
import {

packages/tools/src/config/webpack/loaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Loader } from 'webpack';
2-
import * as autoprefixer from 'autoprefixer';
2+
import autoprefixer from 'autoprefixer';
33

44
// JavaScript and Typescript compilation
55

packages/tools/src/config/webpack/plugins.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ROOT } from '../env';
2-
import * as ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
3-
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
4-
import * as ExtractTextPlugin from 'extract-text-webpack-plugin';
2+
import ForkTsCheckerWebpackPlugin from 'fork-ts-checker-webpack-plugin';
3+
import HtmlWebpackPlugin from 'html-webpack-plugin';
4+
import ExtractTextPlugin from 'extract-text-webpack-plugin';
55

66
export const createHtmlPlugin = () =>
77
new HtmlWebpackPlugin({

packages/tools/src/scripts/build-lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getProgramForScript } from '../utils/program';
22
import { Scripts } from './constants';
33
import { ROOT } from '../config/env';
4-
import * as path from 'path';
4+
import path from 'path';
55

66
import { startTransform } from '../tasks/ts-transform';
77
import { startSync } from '../tasks/sync';

packages/tools/src/scripts/clean.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as path from 'path';
1+
import path from 'path';
22
import { ROOT } from '../config/env';
3-
import * as rimraf from 'rimraf';
3+
import rimraf from 'rimraf';
44
import { getProgramForScript } from '../utils/program';
55
import { Scripts } from './constants';
66

packages/tools/src/scripts/dev-server.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import * as path from 'path';
2-
import * as WebpackDevServer from 'webpack-dev-server';
1+
import path from 'path';
2+
import WebpackDevServer from 'webpack-dev-server';
33
import { PKG, ROOT } from '../config/env';
4-
import * as webpack from 'webpack';
4+
import webpack from 'webpack';
55
import devConfig from '../config/build/dev';
66

77
import { getProgramForScript } from '../utils/program';

packages/tools/src/scripts/storybook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as path from 'path';
1+
import path from 'path';
22
import { choosePort } from 'react-dev-utils/WebpackDevServerUtils';
33
import { getProgramForScript } from '../utils/program';
44
import { Scripts } from './constants';

0 commit comments

Comments
 (0)