From 3a3ef4a19e811067d3a41f08c062c4dca163cecc Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Sun, 24 Oct 2021 17:48:17 +0100 Subject: [PATCH] chore: upgrade to husky v7 --- package.json | 10 +++------- yarn.lock | 8 ++++---- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 11c5c10..138e2a6 100644 --- a/package.json +++ b/package.json @@ -28,12 +28,8 @@ "release": "standard-version", "postinstall": "husky install", "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } + "postpublish": "pinst --enable", + "prepare": "husky install" }, "lint-staged": { "*.js": [ @@ -47,7 +43,7 @@ "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^5.1.1", "eslint-plugin-standard": "^5.0.0", - "husky": "5", + "husky": "^7.0.0", "jest": "^27.3.1", "lint-staged": "^10.5.4", "pinst": "^2.1.6", diff --git a/yarn.lock b/yarn.lock index d8c3bf3..a471bf0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2235,10 +2235,10 @@ human-signals@^2.1.0: resolved "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== -husky@5: - version "5.2.0" - resolved "https://registry.npmjs.org/husky/-/husky-5.2.0.tgz#fc5e1c2300d34855d47de4753607d00943fc0802" - integrity sha512-AM8T/auHXRBxlrfPVLKP6jt49GCM2Zz47m8G3FOMsLmTv8Dj/fKVWE0Rh2d4Qrvmy131xEsdQnb3OXRib67PGg== +husky@^7.0.4: + version "7.0.4" + resolved "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535" + integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ== iconv-lite@0.4.24: version "0.4.24"