🔧 fix: update pre-commit hook to conditionally run type-check on dev and main branches

This commit is contained in:
Innei
2026-02-10 23:38:37 +08:00
committed by arvinxx
parent 1fc833b80b
commit 01f927bf5f

View File

@@ -1,2 +1,5 @@
npm run type-check
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "dev" ] || [ "$BRANCH" = "main" ]; then
npm run type-check
fi
npx --no-install lint-staged