diff --git a/.husky/commit-msg b/.husky/commit-msg index b5a5eb07..e81b0510 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx commitlint --edit "$1" diff --git a/package-lock.json b/package-lock.json index 616fbcf6..b47a982c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -39,7 +39,7 @@ "get-stream": "^3.0.0", "gulp": "^4.0.2", "handlebars": "^4.7.8", - "husky": "^8.0.3", + "husky": "^9.1.7", "lint-staged": "^15.2.10", "memoizee": "^0.4.17", "minimist": "^1.2.8", @@ -7705,16 +7705,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.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", "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 9047a5ef..4c764094 100644 --- a/package.json +++ b/package.json @@ -57,8 +57,7 @@ "start": "node ./sandbox/server.js", "examples": "node ./examples/server.js", "fix": "eslint --fix lib/**/*.js", - "prepare": "husky install && npm run prepare:hooks", - "prepare:hooks": "npx husky set .husky/commit-msg \"npx commitlint --edit $1\"" + "prepare": "husky" }, "repository": { "type": "git", @@ -108,7 +107,7 @@ "get-stream": "^3.0.0", "gulp": "^4.0.2", "handlebars": "^4.7.8", - "husky": "^8.0.3", + "husky": "^9.1.7", "lint-staged": "^15.2.10", "memoizee": "^0.4.17", "minimist": "^1.2.8",