chore: add type check and unit test git hooks

This commit is contained in:
dayuan.jiang
2026-01-05 01:11:34 +09:00
parent fc2086e408
commit cef3a8de8f
3 changed files with 14 additions and 4 deletions

View File

@@ -1 +1,2 @@
npx lint-staged
npx tsc --noEmit

4
.husky/pre-push Normal file
View File

@@ -0,0 +1,4 @@
# Skip if node_modules not installed (e.g., on EC2 push server)
if [ -d "node_modules" ]; then
npm run test -- --run
fi