From d86df928d970224398b441720f51e2b316f0297b Mon Sep 17 00:00:00 2001 From: uiolee <22849383+uiolee@users.noreply.github.com> Date: Fri, 26 Jan 2024 18:27:22 +0800 Subject: [PATCH] migrate to husky v9 --- .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 c37466e2b3..2312dc587f 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged \ No newline at end of file +npx lint-staged diff --git a/package.json b/package.json index 114cee9634..6de3ed713f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "scripts": { "build": "hexo generate", "eslint": "eslint .", - "prepare": "husky install" + "prepare": "husky" }, "dependencies": { "cheerio": "^0.22.0",