Skip to content

Commit 1ca0041

Browse files
committed
Upgrade dependencies
1 parent 769e8b7 commit 1ca0041

File tree

7 files changed

+42
-85
lines changed

7 files changed

+42
-85
lines changed

.huskyrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"hooks": {
3-
"pre-commit": "lint-staged && npm run update:size"
3+
"pre-commit": "lint-staged"
44
}
55
}

.lintstagedrc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"*.js": [
33
"prettier --write",
4-
"eslint --fix --no-ignore .*.js",
5-
"git add"
4+
"eslint --fix --no-ignore .*.js"
65
],
7-
"*.md": ["prettier --write", "git add"]
6+
"*.md": ["prettier --write"]
87
}

.size-limit.js

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

example/rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import nodeResolve from 'rollup-plugin-node-resolve';
2-
import commonjs from 'rollup-plugin-commonjs';
1+
import nodeResolve from '@rollup/plugin-node-resolve';
2+
import commonjs from '@rollup/plugin-commonjs';
33
import babel from 'rollup-plugin-babel';
44
import replace from 'rollup-plugin-replace';
55

package.json

Lines changed: 35 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -34,57 +34,54 @@
3434
"docs:publish": "npm run docs:build && cd example && rimraf .git && git init && git commit --allow-empty -m 'update docs' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update docs' && git push [email protected]:andreypopp/react-textarea-autosize gh-pages --force",
3535
"clean": "rimraf dist",
3636
"lint": "eslint src",
37-
"update:size": "cross-env ROLLUP_BUILDS=browser_esm npm run build && node scripts/update-size.js && git add README.md",
3837
"prepare": "npm run build",
3938
"preversion": "npm run lint && npm test",
4039
"release:patch": "npm version patch && npm publish && git push --follow-tags",
4140
"release:minor": "npm version minor && npm publish && git push --follow-tags",
4241
"release:major": "npm version major && npm publish && git push --follow-tags",
43-
"size": "size-limit",
4442
"test": "jest",
4543
"test:watch": "npm test -- --watch"
4644
},
4745
"peerDependencies": {
4846
"react": ">=0.14.0 <17.0.0"
4947
},
5048
"dependencies": {
51-
"@babel/runtime": "^7.1.2",
52-
"prop-types": "^15.6.0"
49+
"@babel/runtime": "^7.8.4",
50+
"prop-types": "^15.7.2"
5351
},
5452
"devDependencies": {
55-
"@babel/core": "^7.2.2",
56-
"@babel/helper-module-imports": "^7.0.0",
57-
"@babel/plugin-proposal-class-properties": "^7.3.0",
58-
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
59-
"@babel/plugin-transform-runtime": "^7.2.0",
60-
"@babel/preset-env": "^7.3.1",
61-
"@babel/preset-react": "^7.0.0",
62-
"@rollup/plugin-replace": "^2.2.0",
63-
"@testing-library/jest-dom": "^4.2.0",
64-
"@testing-library/react": "^9.3.0",
65-
"babel-eslint": "11.0.0-beta.0",
66-
"babel-plugin-macros": "^2.2.2",
67-
"babel-plugin-transform-define": "^1.3.0",
68-
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
69-
"bytes": "^3.0.0",
70-
"cross-env": "^5.0.1",
71-
"eslint": "^5.13.0",
72-
"eslint-config-prettier": "^4.0.0",
73-
"eslint-plugin-prettier": "^3.0.1",
74-
"eslint-plugin-react": "^7.12.4",
75-
"husky": "^1.0.1",
76-
"jest": "^24.1.0",
77-
"lint-staged": "^8.1.3",
78-
"prettier": "^1.16.4",
79-
"react": "^16.5.2",
80-
"react-dom": "^16.5.2",
81-
"rimraf": "^2.6.1",
82-
"rollup": "^1.1.2",
83-
"rollup-plugin-babel": "^4.0.3",
84-
"rollup-plugin-commonjs": "^9.1.8",
85-
"rollup-plugin-node-resolve": "^4.0.0",
86-
"rollup-plugin-uglify": "^6.0.0",
87-
"size-limit": "^0.21.1",
88-
"terser": "^3.7.6"
53+
"@babel/core": "^7.8.6",
54+
"@babel/helper-module-imports": "^7.8.3",
55+
"@babel/plugin-proposal-class-properties": "^7.8.3",
56+
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
57+
"@babel/plugin-transform-runtime": "^7.8.3",
58+
"@babel/preset-env": "^7.8.6",
59+
"@babel/preset-react": "^7.8.3",
60+
"@rollup/plugin-commonjs": "^11.0.2",
61+
"@rollup/plugin-node-resolve": "^7.1.1",
62+
"@rollup/plugin-replace": "^2.3.1",
63+
"@testing-library/jest-dom": "^5.1.1",
64+
"@testing-library/react": "^9.4.1",
65+
"babel-eslint": "11.0.0-beta.2",
66+
"babel-plugin-macros": "^2.8.0",
67+
"babel-plugin-transform-define": "^2.0.0",
68+
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
69+
"bytes": "^3.1.0",
70+
"cross-env": "^7.0.0",
71+
"eslint": "^6.8.0",
72+
"eslint-config-prettier": "^6.10.0",
73+
"eslint-plugin-prettier": "^3.1.2",
74+
"eslint-plugin-react": "^7.18.3",
75+
"husky": "^4.2.3",
76+
"jest": "^25.1.0",
77+
"lint-staged": "^10.0.8",
78+
"prettier": "^1.19.1",
79+
"react": "^16.13.0",
80+
"react-dom": "^16.13.0",
81+
"rimraf": "^3.0.2",
82+
"rollup": "^1.32.0",
83+
"rollup-plugin-babel": "^4.3.3",
84+
"rollup-plugin-uglify": "^6.0.4",
85+
"terser": "^4.6.4"
8986
}
9087
}

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import nodeResolve from 'rollup-plugin-node-resolve';
2-
import commonjs from 'rollup-plugin-commonjs';
1+
import nodeResolve from '@rollup/plugin-node-resolve';
2+
import commonjs from '@rollup/plugin-commonjs';
33
import babel from 'rollup-plugin-babel';
44
import replace from '@rollup/plugin-replace';
55
import { uglify } from 'rollup-plugin-uglify';

scripts/update-size.js

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

0 commit comments

Comments
 (0)