diff --git a/.husky/commit-msg b/.husky/commit-msg index c160a77..0398b7a 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} diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219..2312dc5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - npx lint-staged diff --git a/package-lock.json b/package-lock.json index ac067e1..eacd4d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,7 +26,7 @@ "eslint": "^8.51.0", "eslint-config-prettier": "^9.0.0", "globals": "^15.0.0", - "husky": "^8.0.3", + "husky": "^9.0.11", "jest": "^29.7.0", "lint-staged": "^15.0.2", "prettier": "^3.0.3", @@ -7453,15 +7453,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.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "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 8f33674..edfc224 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "lint": "eslint 'lib/**/*.ts'", "test": "jest", "test:dev": "jest --watch", - "prepare": "husky install" + "prepare": "husky" }, "repository": { "type": "git", @@ -53,7 +53,7 @@ "eslint": "^8.51.0", "eslint-config-prettier": "^9.0.0", "globals": "^15.0.0", - "husky": "^8.0.3", + "husky": "^9.0.11", "jest": "^29.7.0", "lint-staged": "^15.0.2", "prettier": "^3.0.3",