From 8d80a242031a50417502687c8e38d2991b095523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Wed, 22 Oct 2025 00:48:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(husky):=20=E5=9C=A8=E9=92=A9=E5=AD=90?= =?UTF-8?q?=E4=B8=AD=E6=B7=BB=E5=8A=A0=E6=97=B6=E9=97=B4=E8=B7=9F=E8=B8=AA?= =?UTF-8?q?=E4=BB=A5=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .husky/commit-msg | 4 ++-- .husky/post-merge | 4 ++-- .husky/pre-commit | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.husky/commit-msg b/.husky/commit-msg index 8467957..72d126d 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -8,6 +8,6 @@ cat $1 echo "🟢 [Commit-msg] Node 版本:$(node -v)" # pnpm exec commitlint --edit $1 -node node_modules/@commitlint/cli/cli.js --edit $1 +time node node_modules/@commitlint/cli/cli.js --edit $1 -echo "✅ [Commit-msg] commit-msg 钩子完成!" +echo "📝 [Commit-msg] commit-msg 钩子完成!" diff --git a/.husky/post-merge b/.husky/post-merge index 9fc6aff..254eb53 100644 --- a/.husky/post-merge +++ b/.husky/post-merge @@ -1,4 +1,4 @@ # 此钩子在 git merge 或 git pull 成功完成后运行。 echo "🔗 [Post-merge] 正在安装依赖..." -pnpm install -echo "✅ [Post-merge] 依赖安装完成!" +time pnpm install +echo "🔗 [Post-merge] 依赖安装完成!" diff --git a/.husky/pre-commit b/.husky/pre-commit index 16e49d7..f1780a6 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ # 此钩子在执行 git commit 命令时,在创建提交之前运行。 echo "🧹 [Pre-commit] 正在运行 lint-staged..." -pnpm exec lint-staged -echo "✅ [Pre-commit] lint-staged 完成!" +time pnpm exec lint-staged +echo "🧹 [Pre-commit] lint-staged 完成!"