Browse Source

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>
pull/30204/head
Tom Xu 4 years ago
committed by GitHub
parent
commit
48b7edc35f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      .husky/.gitignore
  2. 4
      .husky/pre-commit
  3. 8
      package.json

1
.husky/.gitignore

@ -0,0 +1 @@
_

4
.husky/pre-commit

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

8
package.json

@ -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",

Loading…
Cancel
Save