From 3993e390fa86ab1a6a6b3946115a722c0fe1df79 Mon Sep 17 00:00:00 2001 From: Michael Dowse Date: Thu, 7 Mar 2024 19:01:27 +0100 Subject: [PATCH] chore: Upgrade husky to latest version --- .husky/commit-msg | 2 +- .husky/pre-commit | 2 +- .husky/prepare-commit-msg | 2 +- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 3468f42..d4a7dd6 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -5,7 +5,7 @@ # Section for git-secrets -if ! command -v git-secrets &> /dev/null +if ! command -v git-secrets > /dev/null 2>&1 then echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets" exit 1 diff --git a/.husky/pre-commit b/.husky/pre-commit index ee39b81..932c0e4 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -7,7 +7,7 @@ npx --no-install lint-staged # Section for git-secrets -if ! command -v git-secrets &> /dev/null +if ! command -v git-secrets > /dev/null 2>&1 then echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets" exit 1 diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 96f2369..34897ed 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -5,7 +5,7 @@ # Section for git-secrets -if ! command -v git-secrets &> /dev/null +if ! command -v git-secrets > /dev/null 2>&1 then echo "git-secrets is not installed. Please run 'brew install git-secrets' or visit https://github.com/awslabs/git-secrets#installing-git-secrets" exit 1 diff --git a/package-lock.json b/package-lock.json index 68a88ae..98d7303 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,7 @@ "eslint-plugin-header": "3.1.0", "eslint-plugin-prettier": "^3.4.1", "eslint-plugin-unicorn": "^34.0.1", - "husky": "^7.0.0", + "husky": "^9.0.11", "jest": "^27.4.7", "lint-staged": "^13.2.1", "normalize.css": "^8.0.1", @@ -3421,15 +3421,15 @@ } }, "node_modules/husky": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", - "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", + "version": "9.0.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -9710,9 +9710,9 @@ "dev": true }, "husky": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", - "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", + "version": "9.0.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "dev": true }, "iconv-lite": { diff --git a/package.json b/package.json index 2deec54..3fc149d 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "THIRD_PARTY_LICENSES.txt" ], "scripts": { - "prepare": "husky install", + "prepare": "husky", "build": "node postcss.js && tsc", "lint": "eslint .", "test": "jest --coverage" @@ -36,7 +36,7 @@ "eslint-plugin-header": "3.1.0", "eslint-plugin-prettier": "^3.4.1", "eslint-plugin-unicorn": "^34.0.1", - "husky": "^7.0.0", + "husky": "^9.0.11", "jest": "^27.4.7", "lint-staged": "^13.2.1", "normalize.css": "^8.0.1",