mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
🔧 fix: update pre-commit hook to conditionally run type-check on dev and main branches
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user