Skip to content

Commit 5a78444

Browse files
authored
chore: update husky to 5.0.9 (#3056)
1 parent 30b45c8 commit 5a78444

File tree

7 files changed

+22
-59
lines changed

7 files changed

+22
-59
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+
yarn commitlint --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 pre-commit

.husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn pre-push

.lintstagedrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"*.{ts,js,json,md}": [
3-
"prettier --write",
4-
"git add"
3+
"prettier --write"
54
]
65
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"lint:markdown:fix": "yarn lint:markdown --fix",
3333
"lint:markdown": "markdownlint \"**/*.md\" --config=.markdownlint.json --ignore-path=.markdownlintignore",
3434
"lint": "eslint . --ext .js,.ts",
35-
"postinstall": "yarn lerna:init && yarn build",
35+
"postinstall": "yarn husky install && yarn lerna:init && yarn build",
3636
"pre-commit": "yarn lint-staged",
3737
"pre-push": "yarn check:format",
3838
"test": "lerna run test --concurrency 1",
@@ -93,7 +93,7 @@
9393
"eslint-plugin-import": "^2.22.0",
9494
"eslint-plugin-jest": "^24.1.3",
9595
"glob": "^7.1.6",
96-
"husky": "^4.2.5",
96+
"husky": "^5.0.9",
9797
"isomorphic-fetch": "^3.0.0",
9898
"jest": "^26.6.3",
9999
"jest-specific-snapshot": "^4.0.0",

yarn.lock

+6-55
Original file line numberDiff line numberDiff line change
@@ -2834,11 +2834,6 @@ compare-func@^2.0.0:
28342834
array-ify "^1.0.0"
28352835
dot-prop "^5.1.0"
28362836

2837-
compare-versions@^3.6.0:
2838-
version "3.6.0"
2839-
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62"
2840-
integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==
2841-
28422837
component-emitter@^1.2.1:
28432838
version "1.3.0"
28442839
resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0"
@@ -3040,17 +3035,6 @@ cosmiconfig@^5.1.0:
30403035
js-yaml "^3.13.1"
30413036
parse-json "^4.0.0"
30423037

3043-
cosmiconfig@^6.0.0:
3044-
version "6.0.0"
3045-
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-6.0.0.tgz#da4fee853c52f6b1e6935f41c1a2fc50bd4a9982"
3046-
integrity sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==
3047-
dependencies:
3048-
"@types/parse-json" "^4.0.0"
3049-
import-fresh "^3.1.0"
3050-
parse-json "^5.0.0"
3051-
path-type "^4.0.0"
3052-
yaml "^1.7.2"
3053-
30543038
cosmiconfig@^7.0.0:
30553039
version "7.0.0"
30563040
resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.0.tgz#ef9b44d773959cae63ddecd122de23853b60f8d3"
@@ -4055,13 +4039,6 @@ find-up@^5.0.0:
40554039
locate-path "^6.0.0"
40564040
path-exists "^4.0.0"
40574041

4058-
find-versions@^3.2.0:
4059-
version "3.2.0"
4060-
resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-3.2.0.tgz#10297f98030a786829681690545ef659ed1d254e"
4061-
integrity sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww==
4062-
dependencies:
4063-
semver-regex "^2.0.0"
4064-
40654042
findup-sync@^3.0.0:
40664043
version "3.0.0"
40674044
resolved "https://registry.yarnpkg.com/findup-sync/-/findup-sync-3.0.0.tgz#17b108f9ee512dfb7a5c7f3c8b27ea9e1a9c08d1"
@@ -4618,21 +4595,10 @@ humanize-ms@^1.2.1:
46184595
dependencies:
46194596
ms "^2.0.0"
46204597

4621-
husky@^4.2.5:
4622-
version "4.2.5"
4623-
resolved "https://registry.yarnpkg.com/husky/-/husky-4.2.5.tgz#2b4f7622673a71579f901d9885ed448394b5fa36"
4624-
integrity sha512-SYZ95AjKcX7goYVZtVZF2i6XiZcHknw50iXvY7b0MiGoj5RwdgRQNEHdb+gPDPCXKlzwrybjFjkL6FOj8uRhZQ==
4625-
dependencies:
4626-
chalk "^4.0.0"
4627-
ci-info "^2.0.0"
4628-
compare-versions "^3.6.0"
4629-
cosmiconfig "^6.0.0"
4630-
find-versions "^3.2.0"
4631-
opencollective-postinstall "^2.0.2"
4632-
pkg-dir "^4.2.0"
4633-
please-upgrade-node "^3.2.0"
4634-
slash "^3.0.0"
4635-
which-pm-runs "^1.0.0"
4598+
husky@^5.0.9:
4599+
version "5.0.9"
4600+
resolved "https://registry.yarnpkg.com/husky/-/husky-5.0.9.tgz#6d38706643d66ed395bcd4ee952d02e3f15eb3a3"
4601+
integrity sha512-0SjcaY21a+IRdx7p7r/X33Vc09UR2m8SbP8yfkhUX2/jAmwcz+GR7i9jXkp2pP3GfX23JhMkVP6SWwXB18uXtg==
46364602

46374603
[email protected], iconv-lite@^0.4.24:
46384604
version "0.4.24"
@@ -4678,7 +4644,7 @@ import-fresh@^2.0.0:
46784644
caller-path "^2.0.0"
46794645
resolve-from "^3.0.0"
46804646

4681-
import-fresh@^3.0.0, import-fresh@^3.1.0, import-fresh@^3.2.1:
4647+
import-fresh@^3.0.0, import-fresh@^3.2.1:
46824648
version "3.2.1"
46834649
resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.2.1.tgz#633ff618506e793af5ac91bf48b72677e15cbe66"
46844650
integrity sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==
@@ -6702,11 +6668,6 @@ onetime@^5.1.0:
67026668
dependencies:
67036669
mimic-fn "^2.1.0"
67046670

6705-
opencollective-postinstall@^2.0.2:
6706-
version "2.0.3"
6707-
resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz#7a0fff978f6dbfa4d006238fbac98ed4198c3259"
6708-
integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q==
6709-
67106671
optionator@^0.8.1:
67116672
version "0.8.3"
67126673
resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495"
@@ -7707,11 +7668,6 @@ semver-compare@^1.0.0:
77077668
resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"
77087669
integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w=
77097670

7710-
semver-regex@^2.0.0:
7711-
version "2.0.0"
7712-
resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338"
7713-
integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw==
7714-
77157671
"semver@2 || 3 || 4 || 5", "[email protected] || 3.x || 4 || 5", semver@^5.3.0, semver@^5.4.1, semver@^5.5.0, semver@^5.5.1, semver@^5.6.0, semver@^5.7.0, semver@^5.7.1:
77167672
version "5.7.1"
77177673
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
@@ -8882,11 +8838,6 @@ which-module@^2.0.0:
88828838
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
88838839
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
88848840

8885-
which-pm-runs@^1.0.0:
8886-
version "1.0.0"
8887-
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
8888-
integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=
8889-
88908841
which@^1.2.14, which@^1.2.9, which@^1.3.1:
88918842
version "1.3.1"
88928843
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
@@ -9055,7 +9006,7 @@ yallist@^4.0.0:
90559006
resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72"
90569007
integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==
90579008

9058-
yaml@^1.10.0, yaml@^1.7.2:
9009+
yaml@^1.10.0:
90599010
version "1.10.0"
90609011
resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.0.tgz#3b593add944876077d4d683fee01081bd9fff31e"
90619012
integrity sha512-yr2icI4glYaNG+KWONODapy2/jDdMSDnrONSjblABjD9B4Z5LgiircSt8m8sRZFNi08kG9Sm0uSHtEmP3zaEGg==

0 commit comments

Comments
 (0)