From e6c34a0d84d34409d3571c69026cb1d43a61214d Mon Sep 17 00:00:00 2001 From: Ioanna Kyprianou <51630004+ioanna0@users.noreply.github.com> Date: Mon, 1 Mar 2021 15:10:06 +0200 Subject: [PATCH] Revert "chore(deps-dev): bump husky from 4.3.8 to 5.1.0 (#175)" (#184) This reverts commit b406e84fcec0c51fea8d0ca617b9ba585c3cc788. --- .husky/.gitignore | 1 - .husky/pre-commit | 4 ---- .husky/pre-push | 4 ---- package.json | 13 ++++++++----- yarn.lock | 41 +++++++++++++++++++++++++++++++++++++---- 5 files changed, 45 insertions(+), 18 deletions(-) delete mode 100644 .husky/.gitignore delete mode 100755 .husky/pre-commit delete mode 100755 .husky/pre-push diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec13..000000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 151b6193b..000000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -yarn npm-run-all precommit:* diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index 36c0023ad..000000000 --- a/.husky/pre-push +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -yarn npm-run-all prepush:* diff --git a/package.json b/package.json index 59f885d62..2b2c1302a 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,13 @@ "prepush:test": "jest --verbose --runInBand --onlyChanged", "test": "jest", "tsc": "tsc --noEmit", - "validate": "npm-run-all tsc lint test build", - "postinstall": "husky install", - "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable" + "validate": "npm-run-all tsc lint test build" + }, + "husky": { + "hooks": { + "pre-commit": "npm-run-all precommit:*", + "pre-push": "npm-run-all prepush:*" + } }, "commitlint": { "extends": [ @@ -61,7 +64,7 @@ "eslint-plugin-import": "^2.22.1", "eslint-plugin-jest": "24.1.5", "eslint-plugin-prettier": "^3.3.1", - "husky": "^5.1.0", + "husky": "^4.3.8", "jest": "^26.6.3", "lint-staged": "^10.5.4", "npm-run-all": "^4.1.5", diff --git a/yarn.lock b/yarn.lock index cf5452d21..c416c7f7f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1981,6 +1981,11 @@ compare-func@^2.0.0: array-ify "^1.0.0" dot-prop "^5.1.0" +compare-versions@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/compare-versions/-/compare-versions-3.6.0.tgz#1a5689913685e5a87637b8d3ffca75514ec41d62" + integrity sha512-W6Af2Iw1z4CB7q4uU4hv646dW9GQuBM+YpC0UvUCWSD8w90SJjp+ujJuXaEMtAXBtSqGfMPuFOVn4/+FlaqfBA== + component-emitter@^1.2.1: version "1.3.0" resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" @@ -3697,10 +3702,21 @@ humanize-ms@^1.2.1: dependencies: ms "^2.0.0" -husky@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/husky/-/husky-5.1.0.tgz#68b1148523acc838af0655ead71bf4671adb9f93" - integrity sha512-Os0EY2haOO+59YZSwMiUDsHY43RFwBVIRStHcnnT8/kvA+sFfaA/YS4uLFRiymXYgQl6E6TQTt3y4v/Z2ctEtw== +husky@^4.3.8: + version "4.3.8" + resolved "https://registry.yarnpkg.com/husky/-/husky-4.3.8.tgz#31144060be963fd6850e5cc8f019a1dfe194296d" + integrity sha512-LCqqsB0PzJQ/AlCgfrfzRe3e3+NvmefAdKQhRYpxS4u6clblBoDdzzvHi8fmxKRzvMxPY/1WZWzomPZww0Anow== + dependencies: + chalk "^4.0.0" + ci-info "^2.0.0" + compare-versions "^3.6.0" + cosmiconfig "^7.0.0" + find-versions "^4.0.0" + opencollective-postinstall "^2.0.2" + pkg-dir "^5.0.0" + please-upgrade-node "^3.2.0" + slash "^3.0.0" + which-pm-runs "^1.0.0" iconv-lite@0.4.24, iconv-lite@^0.4.24: version "0.4.24" @@ -6017,6 +6033,11 @@ onetime@^5.1.0, onetime@^5.1.2: dependencies: mimic-fn "^2.1.0" +opencollective-postinstall@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.3.tgz#7a0fff978f6dbfa4d006238fbac98ed4198c3259" + integrity sha512-8AV/sCtuzUeTo8gQK5qDZzARrulB3egtLzFgteqB2tcT4Mw7B8Kt7JcDHmltjz6FOAHsvTevk70gZEbhM4ZS9Q== + opener@^1.5.2: version "1.5.2" resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" @@ -6389,6 +6410,13 @@ pkg-dir@^4.2.0: dependencies: find-up "^4.0.0" +pkg-dir@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-5.0.0.tgz#a02d6aebe6ba133a928f74aec20bafdfe6b8e760" + integrity sha512-NPE8TDbzl/3YQYY7CSS228s3g2ollTFnc+Qi3tqmqJp9Vg2ovUpixcJEo2HJScN2Ez+kEaal6y70c0ehqJBJeA== + dependencies: + find-up "^5.0.0" + please-upgrade-node@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.2.0.tgz#aeddd3f994c933e4ad98b99d9a556efa0e2fe942" @@ -8233,6 +8261,11 @@ which-module@^2.0.0: resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= +which-pm-runs@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb" + integrity sha1-Zws6+8VS4LVd9rd4DKdGFfI60cs= + which@^1.2.14, which@^1.2.9, which@^1.3.0, which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"