Skip to content

Commit e0d8479

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

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
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
@@ -61,10 +61,14 @@
6161
"build-gh-pages": "npm run build-docs",
6262
"cover": "c8 --all --src src --reporter=lcov npm test",
6363
"dev": "npm run lint -- --fix && npm run cover -- -- -st --fail-fast",
64+
"install-hooks": "husky install",
6465
"lint": "true",
6566
"lint-config": "fixpack --dryRun",
6667
"lint-config-and-fix": "fixpack || fixpack",
68+
"postinstall": "npm run install-hooks",
69+
"postpublish": "pinst --enable",
6770
"prepare": "npm run build",
71+
"prepublishOnly": "pinst --disable",
6872
"release": "np",
6973
"test": "ava",
7074
"travis": "npm run lint && npm run cover"
@@ -95,7 +99,9 @@
9599
"esdoc-inject-style-plugin": "1.0.0",
96100
"esdoc-standard-plugin": "1.0.0",
97101
"fixpack": "4.0.0",
102+
"husky": "5.2.0",
98103
"np": "7.4.0",
104+
"pinst": "2.1.6",
99105
"power-assert": "1.6.1",
100106
"regenerator-runtime": "0.13.7",
101107
"xo": "0.38.2"

yarn.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4191,6 +4191,11 @@ fragment-cache@^0.2.1:
41914191
dependencies:
41924192
map-cache "^0.2.2"
41934193

4194+
fromentries@^1.3.2:
4195+
version "1.3.2"
4196+
resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a"
4197+
integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==
4198+
41944199
fs-extra@1.0.0:
41954200
version "1.0.0"
41964201
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
@@ -4665,6 +4670,11 @@ human-signals@^2.1.0:
46654670
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
46664671
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
46674672

4673+
husky@5.2.0:
4674+
version "5.2.0"
4675+
resolved "https://registry.yarnpkg.com/husky/-/husky-5.2.0.tgz#fc5e1c2300d34855d47de4753607d00943fc0802"
4676+
integrity sha512-AM8T/auHXRBxlrfPVLKP6jt49GCM2Zz47m8G3FOMsLmTv8Dj/fKVWE0Rh2d4Qrvmy131xEsdQnb3OXRib67PGg==
4677+
46684678
ice-cap@0.0.4:
46694679
version "0.0.4"
46704680
resolved "https://registry.yarnpkg.com/ice-cap/-/ice-cap-0.0.4.tgz#8a6d31ab4cac8d4b56de4fa946df3352561b6e18"
@@ -6815,6 +6825,13 @@ pify@^4.0.1:
68156825
resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"
68166826
integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==
68176827

6828+
pinst@2.1.6:
6829+
version "2.1.6"
6830+
resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.6.tgz#8d968b8ec1dac5dddcfc976c735592dbec58b42c"
6831+
integrity sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g==
6832+
dependencies:
6833+
fromentries "^1.3.2"
6834+
68186835
pirates@^4.0.0:
68196836
version "4.0.1"
68206837
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"

0 commit comments

Comments
 (0)