pre-commit 264 B

123456789101112131415
  1. #!/bin/sh
  2. # Run this command after repo checkout to enable git hooks
  3. # git config core.hooksPath .githooks
  4. printf "\nRunning TSC:\n"
  5. yarn tsc
  6. if [[ "$?" == 0 ]]; then
  7. printf "\t\033[32mTSC Passed \e[0m"
  8. else
  9. printf "\t\033[41mTSC Failed \e[0m"
  10. exit 1
  11. fi