chore: upgrade husky to v6 (#29535)

* chore: upgrade husky to v5

* Update package.json

* add prepare for husky

* fix chmod

Co-authored-by: yoyo837 <yoyo837@hotmail.com>
This commit is contained in:
Tom Xu 2021-04-19 11:30:51 +08:00 committed by GitHub
parent 5c4aa4065f
commit 48b7edc35f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 6 deletions

1
.husky/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no-install pretty-quick --staged

View File

@ -46,6 +46,7 @@
"unpkg": "dist/antd.min.js",
"typings": "lib/index.d.ts",
"scripts": {
"prepare": "husky install",
"api-collection": "antd-tools run api-collection",
"authors": "node ./scripts/generate-authors",
"build": "npm run compile && NODE_OPTIONS='--max-old-space-size=4096' npm run dist",
@ -97,11 +98,6 @@
"install-react-16": "npm i --no-save react@16 react-dom@16 react-test-renderer@16 enzyme-adapter-react-16",
"argos": "argos upload imageSnapshots"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"browserslist": [
"> 0.5%",
"last 2 versions",
@ -217,7 +213,7 @@
"full-icu": "^1.3.0",
"glob": "^7.1.4",
"http-server": "^0.12.0",
"husky": "^4.0.3",
"husky": "^6.0.0",
"identity-obj-proxy": "^3.0.0",
"ignore-emit-webpack-plugin": "^2.0.6",
"immer": "^9.0.1",