🔨 chore: replace husky with native git hooks (#14941)

This commit is contained in:
Innei
2026-05-20 20:30:49 +08:00
committed by GitHub
parent c261c06098
commit 67cd059340
7 changed files with 16 additions and 9 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env sh
set -e
[ "${HUSKY-}" = "0" ] && exit 0
export PATH="node_modules/.bin:$PATH"
BRANCH=$(git branch --show-current)
if [ "$BRANCH" = "dev" ] || [ "$BRANCH" = "main" ]; then
npm run type-check
fi
lint-staged