From e7087ab059a84184e965f5de24853e5c0daa4447 Mon Sep 17 00:00:00 2001 From: Michael Dowse Date: Tue, 27 Feb 2024 11:09:55 +0100 Subject: [PATCH] chore: Update husky version --- .husky/commit-msg | 6 +----- .husky/pre-commit | 5 +---- .husky/prepare-commit-msg | 8 +------- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 5 files changed, 14 insertions(+), 27 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 80a987b..7e83887 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,10 +1,6 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - - # 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 33e88dc..b4aaed5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,13 +1,10 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - 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 5a4fa07..a8c5f8d 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,10 +1,4 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - - -# 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 4dac5c5..8516988 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-unicorn": "^11.0.2", - "husky": "^7.0.4", + "husky": "^9.0.0", "jest": "^26.6.3", "jest-ts-webcompat-resolver": "^1.0.0", "lint-staged": "^13.2.1", @@ -4355,15 +4355,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" @@ -12992,9 +12992,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 59b8fed..e72e53a 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "build": "tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json", "generate-deep-package": "node ./scripts/generate-deep-package.js", "prepublishOnly": "npm run clean && npm run build && npm run generate-deep-package", - "prepare": "husky install" + "prepare": "husky" }, "type": "module", "main": "./dist/cjs/index.js", @@ -55,7 +55,7 @@ "eslint-plugin-react": "^7.27.1", "eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-unicorn": "^11.0.2", - "husky": "^7.0.4", + "husky": "^9.0.0", "jest": "^26.6.3", "jest-ts-webcompat-resolver": "^1.0.0", "lint-staged": "^13.2.1",