Skip to content

Commit 56b985e

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/17001e676fa44361155baf8a8e44894908dd6c6d/src/transforms/husky:configure.js Please contact the author of the transform if you believe there was an error.
1 parent 2ee5bfc commit 56b985e

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
@@ -26,9 +26,13 @@
2626
"build-docs": "esdoc",
2727
"build-gh-pages": "npm run build-docs",
2828
"cover": "c8 --all --src src --reporter=lcov npm test",
29+
"install-hooks": "husky install",
2930
"lint-config": "fixpack --dryRun",
3031
"lint-config-and-fix": "fixpack || fixpack",
32+
"postinstall": "npm run install-hooks",
33+
"postpublish": "pinst --enable",
3134
"prepare": "npm run build",
35+
"prepublishOnly": "pinst --disable",
3236
"release": "np",
3337
"test": "ava"
3438
},
@@ -51,7 +55,9 @@
5155
"esdoc-inject-style-plugin": "1.0.0",
5256
"esdoc-standard-plugin": "1.0.0",
5357
"fixpack": "4.0.0",
58+
"husky": "5.1.3",
5459
"np": "7.4.0",
60+
"pinst": "2.1.6",
5561
"power-assert": "1.6.1",
5662
"xo": "0.38.2"
5763
},

yarn.lock

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4169,6 +4169,11 @@ fragment-cache@^0.2.1:
41694169
dependencies:
41704170
map-cache "^0.2.2"
41714171

4172+
fromentries@^1.3.2:
4173+
version "1.3.2"
4174+
resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a"
4175+
integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==
4176+
41724177
41734178
version "1.0.0"
41744179
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950"
@@ -4634,6 +4639,11 @@ human-signals@^2.1.0:
46344639
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0"
46354640
integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==
46364641

4642+
4643+
version "5.1.3"
4644+
resolved "https://registry.yarnpkg.com/husky/-/husky-5.1.3.tgz#1a0645a4fe3ffc006c4d0d8bd0bcb4c98787cc9d"
4645+
integrity sha512-fbNJ+Gz5wx2LIBtMweJNY1D7Uc8p1XERi5KNRMccwfQA+rXlxWNSdUxswo0gT8XqxywTIw7Ywm/F4v/O35RdMg==
4646+
46374647
46384648
version "0.0.4"
46394649
resolved "https://registry.yarnpkg.com/ice-cap/-/ice-cap-0.0.4.tgz#8a6d31ab4cac8d4b56de4fa946df3352561b6e18"
@@ -6810,6 +6820,13 @@ pify@^4.0.1:
68106820
resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231"
68116821
integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==
68126822

6823+
6824+
version "2.1.6"
6825+
resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.6.tgz#8d968b8ec1dac5dddcfc976c735592dbec58b42c"
6826+
integrity sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g==
6827+
dependencies:
6828+
fromentries "^1.3.2"
6829+
68136830
pirates@^4.0.0:
68146831
version "4.0.1"
68156832
resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"

0 commit comments

Comments
 (0)