chore: 更新 pre-commit 钩子,添加运行提示图标
Some checks failed
/ depcheck (push) Failing after 37s
/ playwright (push) Failing after 1m43s
/ build-and-deploy-to-vercel (push) Failing after 1m5s

This commit is contained in:
2024-10-19 15:44:24 +08:00
parent 3d03311ed7
commit f302a56d2c

View File

@ -1,5 +1,5 @@
#!/bin/bash
echo "Running pre-commit hook..."
echo "🔧 Running pre-commit hook..."
if command -v pnpm >/dev/null 2>&1; then
# 如果 pnpm 可用,直接使用它
@ -9,4 +9,4 @@ else
# ln -s $(which pnpm) $HOME/.local/bin/pnpm
echo "pnpm not found, using $HOME/.local/bin/pnpm"
"$HOME"/.local/bin/pnpm exec lint-staged
fi
fi