diff --git a/.husky/pre-commit b/.husky/pre-commit index 36af219892..d0a778429a 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged +npx lint-staged \ No newline at end of file diff --git a/package.json b/package.json index 0150fb28b1..f08b04da40 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "pretest": "npm run clean && npm run build", "test": "mocha test/index.js --require ts-node/register", "test-cov": "c8 --reporter=lcovonly npm test -- --no-parallel", - "prepare": "husky install" + "prepare": "husky" }, "files": [ "dist/", @@ -80,7 +80,7 @@ "eslint": "^8.48.0", "eslint-config-hexo": "^5.0.0", "hexo-renderer-marked": "^6.0.0", - "husky": "^8.0.1", + "husky": "^9.0.6", "lint-staged": "^15.2.0", "mocha": "^10.0.0", "sinon": "^17.0.1",