mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 09:37:28 +00:00
🔧 fix: update pre-commit hook to conditionally run type-check on dev and main branches
This commit is contained in:
parent
1fc833b80b
commit
01f927bf5f
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue