Skip to content

Commit 75720d2

Browse files
authored
chore(package): husky v6 (chimurai#599)
1 parent f2c49f1 commit 75720d2

File tree

6 files changed

+12
-53
lines changed

6 files changed

+12
-53
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
2525
- name: yarn install
2626
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
27-
run: yarn install --frozen-lockfile
27+
run: yarn install --frozen-lockfile --ignore-scripts
2828

2929
- name: yarn lint
3030
run: yarn lint
@@ -57,7 +57,7 @@ jobs:
5757
5858
- name: yarn install
5959
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
60-
run: yarn install --frozen-lockfile
60+
run: yarn install --frozen-lockfile --ignore-scripts
6161

6262
- name: yarn test
6363
run: yarn test
@@ -86,7 +86,7 @@ jobs:
8686
8787
- name: yarn install
8888
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
89-
run: yarn install --frozen-lockfile
89+
run: yarn install --frozen-lockfile --ignore-scripts
9090

9191
- name: yarn coverage
9292
run: yarn coverage

.husky/.gitignore

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

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn commitlint --edit $1

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn lint-staged

package.json

+2-8
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"test": "jest",
2222
"precoverage": "yarn build",
2323
"coverage": "jest --coverage --coverageReporters=lcov",
24-
"prepare": "yarn build && rm dist/tsconfig.tsbuildinfo"
24+
"prepare": "husky install && yarn build && rm dist/tsconfig.tsbuildinfo"
2525
},
2626
"repository": {
2727
"type": "git",
@@ -69,7 +69,7 @@
6969
"eslint-config-prettier": "^8.3.0",
7070
"eslint-plugin-prettier": "^3.4.0",
7171
"express": "^4.17.1",
72-
"husky": "^4.3.0",
72+
"husky": "^6.0.0",
7373
"jest": "^26.6.3",
7474
"lint-staged": "^11.0.0",
7575
"mockttp": "^1.2.2",
@@ -90,12 +90,6 @@
9090
"engines": {
9191
"node": ">=12.0.0"
9292
},
93-
"husky": {
94-
"hooks": {
95-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
96-
"pre-commit": "lint-staged"
97-
}
98-
},
9993
"commitlint": {
10094
"extends": [
10195
"@commitlint/config-conventional"

yarn.lock

+4-42
Original file line numberDiff line numberDiff line change
@@ -1910,11 +1910,6 @@ compare-func@^2.0.0:
19101910
array-ify "^1.0.0"
19111911
dot-prop "^5.1.0"
19121912

1913-
compare-versions@^3.6.0:
1914-
version "3.6.0"
1915-
resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62"
1916-
integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA==
1917-
19181913
component-bind@1.0.0:
19191914
version "1.0.0"
19201915
resolved "https://registry.yarnpkg.com/component-bind/-/component-bind-1.0.0.tgz#00c608ab7dcd93897c0009651b1d3a8e1e73bbd1"
@@ -2911,13 +2906,6 @@ find-up@^5.0.0:
29112906
locate-path "^6.0.0"
29122907
path-exists "^4.0.0"
29132908

2914-
find-versions@^3.2.0:
2915-
version "3.2.0"
2916-
resolved "https://registry.yarnpkg.com/find-versions/-/find-versions-3.2.0.tgz#10297f98030a786829681690545ef659ed1d254e"
2917-
integrity sha512-P8WRou2S+oe222TOCHitLy8zj+SIsVJh52VP4lvXkaFVnOFFdoWv1H1Jjvel1aI6NCFOAaeAVm8qrI0odiLcww==
2918-
dependencies:
2919-
semver-regex "^2.0.0"
2920-
29212909
flat-cache@^3.0.4:
29222910
version "3.0.4"
29232911
resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11"
@@ -3368,21 +3356,10 @@ human-signals@^2.1.0:
33683356
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
33693357
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
33703358

3371-
husky@^4.3.0:
3372-
version "4.3.0"
3373-
resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.0.tgz#0b2ec1d66424e9219d359e26a51c58ec5278f0de"
3374-
integrity sha512-tTMeLCLqSBqnflBZnlVDhpaIMucSGaYyX6855jM4AguGeWCeSzNdb1mfyWduTZ3pe3SJVvVWGL0jO1iKZVPfTA==
3375-
dependencies:
3376-
chalk "^4.0.0"
3377-
ci-info "^2.0.0"
3378-
compare-versions "^3.6.0"
3379-
cosmiconfig "^7.0.0"
3380-
find-versions "^3.2.0"
3381-
opencollective-postinstall "^2.0.2"
3382-
pkg-dir "^4.2.0"
3383-
please-upgrade-node "^3.2.0"
3384-
slash "^3.0.0"
3385-
which-pm-runs "^1.0.0"
3359+
husky@^6.0.0:
3360+
version "6.0.0"
3361+
resolved "https://registry.yarnpkg.com/husky/-/husky-6.0.0.tgz#810f11869adf51604c32ea577edbc377d7f9319e"
3362+
integrity sha512-SQS2gDTB7tBN486QSoKPKQItZw97BMOd+Kdb6ghfpBc0yXyzrddI0oDV5MkDAbuB4X2mO3/nj60TRMcYxwzZeQ==
33863363

33873364
iconv-lite@0.4.24:
33883365
version "0.4.24"
@@ -4992,11 +4969,6 @@ open@^8.0.8:
49924969
is-docker "^2.1.1"
49934970
is-wsl "^2.2.0"
49944971

4995-
opencollective-postinstall@^2.0.2:
4996-
version "2.0.2"
4997-
resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz#5657f1bede69b6e33a45939b061eb53d3c6c3a89"
4998-
integrity sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw==
4999-
50004972
openurl@1.1.1:
50014973
version "1.1.1"
50024974
resolved "https://registry.yarnpkg.com/openurl/-/openurl-1.1.1.tgz#3875b4b0ef7a52c156f0db41d4609dbb0f94b387"
@@ -5759,11 +5731,6 @@ semver-compare@^1.0.0:
57595731
resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc"
57605732
integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w=
57615733

5762-
semver-regex@^2.0.0:
5763-
version "2.0.0"
5764-
resolved "https://registry.yarnpkg.com/semver-regex/-/semver-regex-2.0.0.tgz#a93c2c5844539a770233379107b38c7b4ac9d338"
5765-
integrity sha512-mUdIBBvdn0PLOeP3TEkMH7HHeUP3GjsXCwKarjv/kGmUFOYg1VqEemKhoQpWMu6X2I8kHeuVdGibLGkVK+/5Qw==
5766-
57675734
"semver@2 || 3 || 4 || 5", semver@^5.4.1, semver@^5.5.0:
57685735
version "5.7.1"
57695736
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7"
@@ -6819,11 +6786,6 @@ which-module@^2.0.0:
68196786
resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a"
68206787
integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=
68216788

6822-
which-pm-runs@^1.0.0:
6823-
version "1.0.0"
6824-
resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb"
6825-
integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs=
6826-
68276789
which@^1.2.9:
68286790
version "1.3.1"
68296791
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"

0 commit comments

Comments
 (0)