Skip to content

Commit 253f891

Browse files
committed
build: upgrade dependencies and fix rollup
1 parent 7981209 commit 253f891

File tree

4 files changed

+1401
-459
lines changed

4 files changed

+1401
-459
lines changed

.size-snapshot.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

package.json

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
"scripts": {
4040
"coveralls": "cat ./coverage/lcov.info | coveralls",
4141
"build": "rm -rf dist && yarn run build:lib && yarn run build:flow",
42-
"build:lib": "rollup -c && git add .size-snapshot.json",
42+
"build:lib": "rollup -c",
4343
"build:storybook": "build-storybook --output-dir example",
4444
"build:flow": "node scripts/create-flow",
4545
"dev": "concurrently -k -r 'jest --watch' 'yarn run storybook'",
46-
"lint": "eslint {src,stories,tests}/**/*.js ",
46+
"lint": "eslint {src,stories}/**/*.js ",
4747
"prepare": "yarn build",
4848
"pretty": "prettier '**/*.{js,md,json,yml,html}' --write",
4949
"storybook": "start-storybook -p 9000",
@@ -69,7 +69,12 @@
6969
"eslintConfig": {
7070
"extends": [
7171
"insilico"
72-
]
72+
],
73+
"settings": {
74+
"react": {
75+
"version": "detect"
76+
}
77+
}
7378
},
7479
"jest": {
7580
"testEnvironment": "jsdom",
@@ -85,50 +90,50 @@
8590
]
8691
},
8792
"dependencies": {
88-
"@babel/runtime": "^7.1.0",
93+
"@babel/runtime": "^7.2.0",
8994
"invariant": "^2.2.4"
9095
},
9196
"peerDependencies": {
9297
"react": "^15.0.0 || ^16.0.0 || ^17.0.0"
9398
},
9499
"devDependencies": {
95-
"@babel/cli": "^7.1.5",
96-
"@babel/core": "^7.1.5",
97-
"@babel/plugin-proposal-class-properties": "^7.0.0",
98-
"@babel/preset-env": "^7.1.5",
100+
"@babel/cli": "^7.2.3",
101+
"@babel/core": "^7.2.2",
102+
"@babel/plugin-proposal-class-properties": "^7.2.3",
103+
"@babel/plugin-transform-runtime": "^7.2.0",
104+
"@babel/preset-env": "^7.2.3",
99105
"@babel/preset-flow": "^7.0.0",
100106
"@babel/preset-react": "^7.0.0",
101-
"@storybook/addon-actions": "^4.0.9",
102-
"@storybook/addon-options": "^4.0.4",
103-
"@storybook/react": "^4.0.9",
107+
"@storybook/addon-actions": "^4.1.4",
108+
"@storybook/addon-options": "^4.1.4",
109+
"@storybook/react": "^4.1.4",
104110
"babel-core": "^7.0.0-bridge.0",
105111
"babel-jest": "^23.4.2",
106-
"babel-loader": "^8.0.4",
112+
"babel-loader": "^8.0.5",
107113
"concurrently": "4.1.0",
108114
"coveralls": "^3.0.2",
109-
"enzyme": "^3.7.0",
110-
"enzyme-adapter-react-16": "^1.7.0",
111-
"enzyme-to-json": "^3.3.4",
112-
"eslint": "^5.9.0",
113-
"eslint-config-insilico": "^5.2.0",
114-
"flow-bin": "^0.87.0",
115+
"enzyme": "^3.8.0",
116+
"enzyme-adapter-react-16": "^1.7.1",
117+
"enzyme-to-json": "^3.3.5",
118+
"eslint": "^5.12.0",
119+
"eslint-config-insilico": "^6.0.0",
120+
"flow-bin": "^0.89.0",
115121
"flow-copy-source": "^2.0.2",
116-
"husky": "^1.1.3",
122+
"husky": "^1.3.1",
117123
"intersection-observer": "^0.5.1",
118124
"jest": "^23.5.0",
119-
"jest-dom": "^2.1.1",
125+
"jest-dom": "^3.0.0",
120126
"lint-staged": "^8.0.4",
121127
"npm-run-all": "^4.1.5",
122-
"prettier": "^1.15.2",
128+
"prettier": "^1.15.3",
123129
"react": "^16.7.0-alpha",
124130
"react-dom": "^16.7.0-alpha",
125131
"react-test-renderer": "^16.7.0-alpha",
126-
"rollup": "^0.67.1",
127-
"rollup-plugin-babel": "^4.0.1",
132+
"rollup": "^1.0.2",
133+
"rollup-plugin-babel": "^4.2.0",
128134
"rollup-plugin-commonjs": "^9.2.0",
129-
"rollup-plugin-node-resolve": "^3.3.0",
135+
"rollup-plugin-node-resolve": "^4.0.0",
130136
"rollup-plugin-replace": "^2.1.0",
131-
"rollup-plugin-size-snapshot": "^0.7.0",
132137
"rollup-plugin-uglify": "^6.0.0"
133138
}
134139
}

rollup.config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/* eslint-disable import/no-extraneous-dependencies */
2-
const pkg = require('./package')
32
import path from 'path'
43
import babel from 'rollup-plugin-babel'
54
import resolve from 'rollup-plugin-node-resolve'
65
import commonjs from 'rollup-plugin-commonjs'
76
import { uglify } from 'rollup-plugin-uglify'
8-
import { sizeSnapshot } from 'rollup-plugin-size-snapshot'
7+
import pkg from './package.json'
98

109
const root = process.platform === 'win32' ? path.resolve('/') : '/'
1110
const external = id => !id.startsWith('.') && !id.startsWith(root)
@@ -26,10 +25,7 @@ export default [
2625
input: './src/index.js',
2726
output: { file: pkg.module, format: 'esm', exports: 'named' },
2827
external,
29-
plugins: [
30-
babel(getBabelOptions({ useESModules: true })),
31-
sizeSnapshot(),
32-
],
28+
plugins: [babel(getBabelOptions({ useESModules: true }))],
3329
}
3430
: null,
3531
pkg.main
@@ -56,7 +52,6 @@ export default [
5652
babel(getBabelOptions({ useESModules: true })),
5753
commonjs({ include: '**/node_modules/**' }),
5854
uglify(),
59-
sizeSnapshot(),
6055
],
6156
}
6257
: null,

0 commit comments

Comments
 (0)