From 9ea22166bccce4967be732e3e56205059acafc90 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 12 Nov 2024 02:08:29 +0100 Subject: [PATCH] chore(deps): update dependency husky to v9 (#844) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: intcreator --- .github/workflows/lint_pr_title.yml | 1 + .github/workflows/release.yml | 1 + .husky/commit-msg | 7 ------- package-lock.json | 12 ++++++------ package.json | 4 ++-- 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/lint_pr_title.yml b/.github/workflows/lint_pr_title.yml index 7527737f..d021ab62 100644 --- a/.github/workflows/lint_pr_title.yml +++ b/.github/workflows/lint_pr_title.yml @@ -24,6 +24,7 @@ jobs: id: lint_pr_title env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + HUSKY: 0 - uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2 # When the previous steps fails, the workflow would stop. By adding this diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0adf2540..925ef945 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,3 +47,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + HUSKY: 0 diff --git a/.husky/commit-msg b/.husky/commit-msg index 1ea5a3c0..8202d189 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,11 +1,4 @@ -#!/usr/bin/env sh - -# https://typicode.github.io/husky/guide.html#disable-husky-in-ci-docker-prod -[ -n "$CI" ] && exit 0 - # only run commitlint on main (for admins pushing directly to branch) [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ] && exit 0 -. "$(dirname -- "$0")/_/husky.sh" - npx --no -- commitlint --edit ${1} diff --git a/package-lock.json b/package-lock.json index 0813cac2..a37e7ced 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "eslint-config-prettier": "9.1.0", "eslint-plugin-jest": "27.9.0", "eslint-plugin-prettier": "5.2.1", - "husky": "8.0.3", + "husky": "9.1.6", "jest": "29.7.0", "prettier": "3.3.3", "semantic-release": "24.2.0", @@ -5828,16 +5828,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 d850682c..39e55b6f 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test": "jest --coverage", "test:watch": "jest --watch --coverage", "test:fuzz": "jest --testMatch='**/*.fuzz.ts' --coverage=false --testTimeout=120000", - "prepare": "husky install" + "prepare": "husky" }, "dependencies": { "@types/luxon": "~3.4.0", @@ -47,7 +47,7 @@ "eslint-config-prettier": "9.1.0", "eslint-plugin-jest": "27.9.0", "eslint-plugin-prettier": "5.2.1", - "husky": "8.0.3", + "husky": "9.1.6", "jest": "29.7.0", "prettier": "3.3.3", "semantic-release": "24.2.0",