Skip to content

Commit

Permalink
fix: stash so it is possible to commit staged files with unstaged unt…
Browse files Browse the repository at this point in the history
…yped files
  • Loading branch information
FrantisekMichalSebestyen committed Nov 22, 2023
1 parent 8436e64 commit a5bdfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run type-check
trap 'git stash pop -q' EXIT; git stash -q --keep-index && npm run type-check

0 comments on commit a5bdfea

Please sign in to comment.