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 376dcff..10a3d64 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ "c8": "^8.0.0", "execa": "^8.0.1", "get-bin-path": "^11.0.0", - "husky": "^8.0.2", + "husky": "^9.0.7", "lint-staged": "^15.0.2", "nock": "^13.2.9", "xo": "^0.56.0" @@ -4012,15 +4012,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.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", + "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -10932,9 +10932,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.0.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.7.tgz", + "integrity": "sha512-vWdusw+y12DUEeoZqW1kplOFqk3tedGV8qlga8/SF6a3lOiWLqGZZQvfWvY0fQYdfiRi/u1DFNpudTSV9l1aCg==", "dev": true }, "ignore": { diff --git a/package.json b/package.json index dea0659..30c9185 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ }, "type": "module", "scripts": { + "prepare": "husky", "test": "xo && c8 --all ava", "test:coverage": "c8 report --reporter=lcov", "test:watch": "ava --watch" @@ -43,7 +44,7 @@ "c8": "^8.0.0", "execa": "^8.0.1", "get-bin-path": "^11.0.0", - "husky": "^8.0.2", + "husky": "^9.0.7", "lint-staged": "^15.0.2", "nock": "^13.2.9", "xo": "^0.56.0"