From 236b711c738054ee33de49195d35bce1ba534de1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 11:06:35 +0200 Subject: [PATCH] chore(deps): update dependency husky to v9 (#341) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .husky/commit-msg | 5 +---- .husky/pre-commit | 6 ++---- .husky/pre-push | 5 +---- package-lock.json | 13 +++++++------ package.json | 4 ++-- 5 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index b5676766..70698824 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx --no -- commitlint --edit "$1" +commitlint --edit $1 \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index 83af4040..bf7e8df9 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,2 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm run lint:fix +eslint $(git diff --cached --name-only --diff-filter=ACMR | grep '\.js$') --fix --ignore-path .gitignore +git update-index --again diff --git a/.husky/pre-push b/.husky/pre-push index 610c2a54..1a85c293 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npm test +jest \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 0cb4545c..48b4213c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "cz-conventional-changelog": "3.3.0", "eslint": "8.57.1", "eslint-config-google": "0.14.0", - "husky": "8.0.3", + "husky": "9.1.6", "jest": "29.7.0", "restify": "^11.1.0", "restify-errors": "^8.0.2", @@ -5746,15 +5746,16 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.1.6", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.6.tgz", + "integrity": "sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A==", "dev": true, + "license": "MIT", "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index a6225aa7..c31aecab 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "node": ">= 4.0" }, "scripts": { - "prepare": "husky install", + "prepare": "husky", "lint": "eslint .", "lint:fix": "eslint . --fix", "test": "node node_modules/.bin/jest", @@ -52,7 +52,7 @@ "cz-conventional-changelog": "3.3.0", "eslint": "8.57.1", "eslint-config-google": "0.14.0", - "husky": "8.0.3", + "husky": "9.1.6", "jest": "29.7.0", "restify": "^11.1.0", "restify-errors": "^8.0.2",