From f3ec8cf61081894ab3f8f0bc531a90d4c968d508 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 23:54:45 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump husky from 8.0.3 to 9.0.6 Bumps [husky](https://github.com/typicode/husky) from 8.0.3 to 9.0.6. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](https://github.com/typicode/husky/compare/v8.0.3...v9.0.6) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d3d765fed4..59d9788137 100644 --- a/package.json +++ b/package.json @@ -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", From 38e33a7b83ef9a11a838be75c1ec21c66c26f46b Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:38:14 +0800 Subject: [PATCH 2/2] migrate husky to v9 https://github.com/typicode/husky/releases/tag/v9.0.1 --- .husky/pre-commit | 5 +---- package.json | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) 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 59d9788137..edf87938f0 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/",