diff --git a/.github/husky/commit-msg b/.github/husky/commit-msg index 0ae4bda..7fbd0ad 100755 --- a/.github/husky/commit-msg +++ b/.github/husky/commit-msg @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install commitlint --edit "${1}" diff --git a/.github/husky/pre-commit b/.github/husky/pre-commit index 95456c4..f3c2e31 100755 --- a/.github/husky/pre-commit +++ b/.github/husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx --no-install lint-staged --config .github/lint-staged.js diff --git a/package-lock.json b/package-lock.json index 1de6606..d9f31d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@semantic-release/exec": "6.0.3", "@semantic-release/git": "10.0.1", "@vidavidorra/commitlint-config": "6.0.5", - "husky": "8.0.3", + "husky": "9.0.10", "lint-staged": "15.2.2", "prettier": "3.2.5", "semantic-release": "23.0.2" @@ -2866,15 +2866,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.0.10", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.10.tgz", + "integrity": "sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index c7e814d..a1ddb5a 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "format:check": "prettier --ignore-path .gitignore --check \"**/*.{vue,css,less,scss,html,htm,json,md,markdown,yml,yaml}\" --log-level warn", "lint": "npm run format:check", "lint:fix": "npm run format", - "prepare": "husky install .github/husky" + "prepare": "husky .github/husky" }, "commitlint": { "extends": [ @@ -147,7 +147,7 @@ "@semantic-release/exec": "6.0.3", "@semantic-release/git": "10.0.1", "@vidavidorra/commitlint-config": "6.0.5", - "husky": "8.0.3", + "husky": "9.0.10", "lint-staged": "15.2.2", "prettier": "3.2.5", "semantic-release": "23.0.2"