Skip to content

Commit ffc7eaa

Browse files
authored
chore: update husky to v5 (#2463)
1 parent 96f0d98 commit ffc7eaa

File tree

8 files changed

+20
-49
lines changed

8 files changed

+20
-49
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
node @commitlint/cli/lib/cli.js --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scripts": {},
33
"devDependencies": {
4-
"husky": "4.2.1"
4+
"husky": "^5.1.1"
55
}
66
}
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scripts": {},
33
"devDependencies": {
4-
"husky": "4.2.1"
4+
"husky": "^5.1.1"
55
}
66
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"scripts": {},
33
"devDependencies": {
4-
"husky": "4.2.1"
4+
"husky": "^5.1.1"
55
}
66
}

package.json

+3-8
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"reinstall": "yarn clean && yarn install",
2121
"start": "yarn watch",
2222
"test": "jest",
23-
"test-ci": "jest --runInBand"
23+
"test-ci": "jest --runInBand",
24+
"postinstall": "yarn husky install"
2425
},
2526
"commitlint": {
2627
"extends": [
@@ -89,7 +90,7 @@
8990
"eslint-config-prettier": "^7.0.0",
9091
"eslint-plugin-import": "^2.20.1",
9192
"eslint-plugin-jest": "^24.0.0",
92-
"husky": "4.3.8",
93+
"husky": "^5.1.1",
9394
"jest": "26.6.3",
9495
"lerna": "^3.22.1",
9596
"lerna-v3": "npm:lerna@3",
@@ -98,12 +99,6 @@
9899
"ts-jest": "26.5.1",
99100
"typescript": "4.1.5"
100101
},
101-
"husky": {
102-
"hooks": {
103-
"commit-msg": "node @commitlint/cli/lib/cli.js -E HUSKY_GIT_PARAMS",
104-
"pre-commit": "lint-staged"
105-
}
106-
},
107102
"resolutions": {
108103
"**/lodash": "^4.17.19"
109104
}

yarn.lock

+5-38
Original file line numberDiff line numberDiff line change
@@ -3451,11 +3451,6 @@ compare-func@^2.0.0:
34513451
array-ify "^1.0.0"
34523452
dot-prop "^5.1.0"
34533453

3454-
compare-versions@^3.6.0:
3455-
version "3.6.0"
3456-
resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62"
3457-
integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==
3458-
34593454
component-emitter@^1.2.1:
34603455
version "1.3.0"
34613456
resolved "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
@@ -4788,13 +4783,6 @@ find-up@^5.0.0:
47884783
locate-path "^6.0.0"
47894784
path-exists "^4.0.0"
47904785

4791-
find-versions@^4.0.0:
4792-
version "4.0.0"
4793-
resolved "https://registry.npmjs.org/find-versions/-/find-versions-4.0.0.tgz#3c57e573bf97769b8cb8df16934b627915da4965"
4794-
integrity sha512-wgpWy002tA+wgmO27buH/9KzyEOQnKsG/R0yrcjPT9BOFm0zRBVQbZ95nRGXWMywS8YR5knRbpohio0bcJABxQ==
4795-
dependencies:
4796-
semver-regex "^3.1.2"
4797-
47984786
findup-sync@^3.0.0:
47994787
version "3.0.0"
48004788
resolved "https://registry.npmjs.org/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1"
@@ -5464,21 +5452,10 @@ humanize-ms@^1.2.1:
54645452
dependencies:
54655453
ms "^2.0.0"
54665454

5467-
5468-
version "4.3.8"
5469-
resolved "https://registry.npmjs.org/husky/-/husky-4.3.8.tgz#31144060be963fd6850e5cc8f019a1dfe194296d"
5470-
integrity sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow==
5471-
dependencies:
5472-
chalk "^4.0.0"
5473-
ci-info "^2.0.0"
5474-
compare-versions "^3.6.0"
5475-
cosmiconfig "^7.0.0"
5476-
find-versions "^4.0.0"
5477-
opencollective-postinstall "^2.0.2"
5478-
pkg-dir "^5.0.0"
5479-
please-upgrade-node "^3.2.0"
5480-
slash "^3.0.0"
5481-
which-pm-runs "^1.0.0"
5455+
husky@^5.1.1:
5456+
version "5.1.1"
5457+
resolved "https://registry.npmjs.org/husky/-/husky-5.1.1.tgz#8678953fd8deb86f387cbf1ad50bb2f7f96e83f2"
5458+
integrity sha512-80LZ736V0Nr4/st0c2COYaMbEQhHNmAbLMN8J/kLk7/mo0QdUkUGNDjv/7jVkhug377Wh8wfbWyaVXEJ/h2B/Q==
54825459

54835460
[email protected], iconv-lite@^0.4.24, iconv-lite@~0.4.13:
54845461
version "0.4.24"
@@ -8121,7 +8098,7 @@ pirates@^4.0.1:
81218098
dependencies:
81228099
node-modules-regexp "^1.0.0"
81238100

8124-
[email protected], pkg-dir@^5.0.0:
8101+
81258102
version "5.0.0"
81268103
resolved "https://registry.npmjs.org/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafdfe6b8e760"
81278104
integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA==
@@ -8976,11 +8953,6 @@ semver-diff@^3.1.1:
89768953
dependencies:
89778954
semver "^6.3.0"
89788955

8979-
semver-regex@^3.1.2:
8980-
version "3.1.2"
8981-
resolved "https://registry.npmjs.org/semver-regex/-/semver-regex-3.1.2.tgz#34b4c0d361eef262e07199dbef316d0f2ab11807"
8982-
integrity sha512-bXWyL6EAKOJa81XG1OZ/Yyuq+oT0b2YLlxx7c+mrdYPaPbnj6WgVULXhinMIeZGufuUBu/eVRqXEhiv4imfwxA==
8983-
89848956
"semver@2 || 3 || 4 || 5", "[email protected] || 3.x || 4 || 5", semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1:
89858957
version "5.7.1"
89868958
resolved "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
@@ -10262,11 +10234,6 @@ which-module@^2.0.0:
1026210234
resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
1026310235
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
1026410236

10265-
which-pm-runs@^1.0.0:
10266-
version "1.0.0"
10267-
resolved "https://registry.npmjs.org/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
10268-
integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=
10269-
1027010237
which@^1.2.14, which@^1.2.9, which@^1.3.1:
1027110238
version "1.3.1"
1027210239
resolved "https://registry.npmjs.org/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"

0 commit comments

Comments
 (0)