From ff423027fccf3b43c29f74e154c0de3ca9a3e1dd Mon Sep 17 00:00:00 2001 From: Ricardo Costa <48949546+ripecosta@users.noreply.github.com> Date: Mon, 12 Aug 2024 17:06:14 +0100 Subject: [PATCH] chore: upgrade husky to v9 (#1776) --- .husky/pre-commit | 5 +---- package-lock.json | 18 +++++++++--------- package.json | 4 ++-- 3 files changed, 12 insertions(+), 15 deletions(-) mode change 100755 => 100644 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 index d24fdfc60..5c3e95f02 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx lint-staged +npm exec lint-staged diff --git a/package-lock.json b/package-lock.json index 1e5499063..0f5a65987 100644 --- a/package-lock.json +++ b/package-lock.json @@ -50,7 +50,7 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-testing-library": "^5.11.0", "happy-dom": "^12.10.3", - "husky": "^8.0.3", + "husky": "^9.1.4", "i18next": "^23.12.2", "lint-staged": "^15.2.8", "mkdirp": "^1.0.4", @@ -7898,15 +7898,15 @@ } }, "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.4", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.4.tgz", + "integrity": "sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -18702,9 +18702,9 @@ "dev": true }, "husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.1.4", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.4.tgz", + "integrity": "sha512-bho94YyReb4JV7LYWRWxZ/xr6TtOTt8cMfmQ39MQYJ7f/YE268s3GdghGwi+y4zAeqewE5zYLvuhV0M0ijsDEA==", "dev": true }, "i18next": { diff --git a/package.json b/package.json index c7ef6ce4a..d9775fc79 100644 --- a/package.json +++ b/package.json @@ -105,7 +105,7 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-testing-library": "^5.11.0", "happy-dom": "^12.10.3", - "husky": "^8.0.3", + "husky": "^9.1.4", "i18next": "^23.12.2", "lint-staged": "^15.2.8", "mkdirp": "^1.0.4", @@ -151,7 +151,7 @@ "test:typescript": "vitest --workspace vitest.workspace.typescript.mts", "contributors:add": "all-contributors add", "contributors:generate": "all-contributors generate", - "prepare": "husky install" + "prepare": "husky" }, "author": "Jan Mühlemann (https://github.com/jamuhl)", "license": "MIT",