From 906278360f75c93ee673d6bd2b51212bf2dc2e31 Mon Sep 17 00:00:00 2001 From: a flying potato <80830782+a-flying-potato@users.noreply.github.com> Date: Sun, 19 Dec 2021 19:15:00 +0100 Subject: [PATCH] :robot: 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/457d6d9bfb7d08d917f0c3a95108832fc88fe176/src/transforms/husky:configure.js Please contact the author of the transform if you believe there was an error. --- .husky/.gitignore | 1 + package.json | 6 ++++++ yarn.lock | 17 +++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 .husky/.gitignore diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/package.json b/package.json index 4292487..d2807fd 100644 --- a/package.json +++ b/package.json @@ -28,10 +28,14 @@ "build-gh-pages": "npm run build-docs", "cover": "c8 --all --src src --reporter=lcov npm test", "dev": "npm run lint -- --fix && npm run cover -- -- -st --fail-fast", + "install-hooks": "husky install", "lint": "xo", "lint-config": "fixpack --dryRun", "lint-config-and-fix": "fixpack || fixpack", + "postinstall": "npm run install-hooks", + "postpublish": "pinst --enable", "prepare": "npm run build", + "prepublishOnly": "pinst --disable", "release": "np", "test": "ava", "travis": "npm run lint && npm run cover" @@ -58,7 +62,9 @@ "esdoc-inject-style-plugin": "1.0.0", "esdoc-standard-plugin": "1.0.0", "fixpack": "4.0.0", + "husky": "7.0.4", "np": "7.6.0", + "pinst": "2.1.6", "power-assert": "1.6.1", "regenerator-runtime": "0.13.9", "xo": "0.47.0" diff --git a/yarn.lock b/yarn.lock index 27c8ac1..a8c49db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3877,6 +3877,11 @@ form-data@~2.3.2: combined-stream "^1.0.6" mime-types "^2.1.12" +fromentries@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a" + integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg== + fs-extra@1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-1.0.0.tgz#cd3ce5f7e7cb6145883fcae3191e9877f8587950" @@ -4273,6 +4278,11 @@ human-signals@^2.1.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== +husky@7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535" + integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ== + ice-cap@0.0.4: version "0.0.4" resolved "https://registry.yarnpkg.com/ice-cap/-/ice-cap-0.0.4.tgz#8a6d31ab4cac8d4b56de4fa946df3352561b6e18" @@ -6198,6 +6208,13 @@ pify@^4.0.1: resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== +pinst@2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/pinst/-/pinst-2.1.6.tgz#8d968b8ec1dac5dddcfc976c735592dbec58b42c" + integrity sha512-B4dYmf6nEXg1NpDSB+orYWvKa5Kfmz5KzWC29U59dpVM4S/+xp0ak/JMEsw04UQTNNKps7klu0BUalr343Gt9g== + dependencies: + fromentries "^1.3.2" + pirates@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.1.tgz#643a92caf894566f91b2b986d2c66950a8e2fb87"