Skip to content

Commit 49e396d

Browse files
🤖 config(git-hooks): Setup husky.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/1e99a03141f51bbb455be0733469df94f868e671/src/transforms/husky:configure.js Please contact the author of the transform if you believe there was an error.
1 parent e6f5aa7 commit 49e396d

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@
4848
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",
4949
"debug": "NODE_ENV=debug npm run test -- -st --fail-fast",
5050
"dev": "npm run lint-config-and-fix && npm run lint-and-fix && npm run cover -- -- -st --fail-fast",
51+
"install-hooks": "husky install",
5152
"lint": "xo",
5253
"lint-and-fix": "npm run lint -- --fix",
5354
"lint-config": "fixpack --dryRun",
5455
"lint-config-and-fix": "fixpack || fixpack",
56+
"postinstall": "npm run install-hooks",
57+
"postpublish": "pinst --enable",
5558
"prepare": "npm run build",
59+
"prepublishOnly": "pinst --disable",
5660
"release": "np --message ':hatching_chick: release: Bumping to v%s.'",
5761
"test": "ava"
5862
},
@@ -71,8 +75,10 @@
7175
"esdoc-inject-style-plugin": "1.0.0",
7276
"esdoc-standard-plugin": "1.0.0",
7377
"fixpack": "4.0.0",
78+
"husky": "8.0.1",
7479
"microbundle": "0.15.0",
7580
"np": "7.6.2",
81+
"pinst": "3.0.0",
7682
"power-assert": "1.6.1",
7783
"regenerator-runtime": "0.13.9",
7884
"xo": "0.50.0"

yarn.lock

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@
14111411
dependencies:
14121412
"@types/node" "*"
14131413

1414-
"@typescript-eslint/eslint-plugin@*":
1414+
"@typescript-eslint/eslint-plugin@^5.27.1":
14151415
version "5.30.0"
14161416
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.30.0.tgz#524a11e15c09701733033c96943ecf33f55d9ca1"
14171417
integrity sha512-lvhRJ2pGe2V9MEU46ELTdiHgiAFZPKtLhiU5wlnaYpMc2+c1R8fh8i80ZAa665drvjHKUJyRRGg3gEm1If54ow==
@@ -1426,7 +1426,7 @@
14261426
semver "^7.3.7"
14271427
tsutils "^3.21.0"
14281428

1429-
"@typescript-eslint/parser@*":
1429+
"@typescript-eslint/parser@^5.27.1":
14301430
version "5.30.0"
14311431
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.30.0.tgz#a2184fb5f8ef2bf1db0ae61a43907e2e32aa1b8f"
14321432
integrity sha512-2oYYUws5o2liX6SrFQ5RB88+PuRymaM2EU02/9Ppoyu70vllPnHVO7ioxDdq/ypXHA277R04SVjxvwI8HmZpzA==
@@ -3418,7 +3418,7 @@ eslint-config-prettier@^8.5.0:
34183418
resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1"
34193419
integrity sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==
34203420

3421-
eslint-config-xo-typescript@*:
3421+
eslint-config-xo-typescript@^0.51.1:
34223422
version "0.51.1"
34233423
resolved "https://registry.yarnpkg.com/eslint-config-xo-typescript/-/eslint-config-xo-typescript-0.51.1.tgz#0f9166edffb06cbb1dabddf84d295c843e43cd1f"
34243424
integrity sha512-bqUYpPLylgOtuueawFJnLFX/t2W6shKYR+IwbwBZhw9ivr2sLd+8I2vLfKDDzxMrHzij8bkdVoRoDLRvugQoXg==
@@ -4448,6 +4448,11 @@ human-signals@^2.1.0:
44484448
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
44494449
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
44504450

4451+
husky@8.0.1:
4452+
version "8.0.1"
4453+
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9"
4454+
integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==
4455+
44514456
ice-cap@0.0.4:
44524457
version "0.0.4"
44534458
resolved "https://registry.yarnpkg.com/ice-cap/-/ice-cap-0.0.4.tgz#8a6d31ab4cac8d4b56de4fa946df3352561b6e18"
@@ -6461,6 +6466,11 @@ pify@^5.0.0:
64616466
resolved "https://registry.yarnpkg.com/pify/-/pify-5.0.0.tgz#1f5eca3f5e87ebec28cc6d54a0e4aaf00acc127f"
64626467
integrity sha512-eW/gHNMlxdSP6dmG6uJip6FXN0EQBwm2clYYd8Wul42Cwu/DK8HEftzsapcNdYe2MfLiIwZqsDk2RDEsTE79hA==
64636468

6469+
pinst@3.0.0:
6470+
version "3.0.0"
6471+
resolved "https://registry.yarnpkg.com/pinst/-/pinst-3.0.0.tgz#80dec0a85f1f993c6084172020f3dbf512897eec"
6472+
integrity sha512-cengSmBxtCyaJqtRSvJorIIZXMXg+lJ3sIljGmtBGUVonMnMsVJbnzl6jGN1HkOWwxNuJynCJ2hXxxqCQrFDdw==
6473+
64646474
pirates@^4.0.5:
64656475
version "4.0.5"
64666476
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b"

0 commit comments

Comments
 (0)