pre-commit 307 B

1234567891011121314151617
  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. PATH=$PATH:/usr/local/bin:/usr/local/sbin
  6. yarn tsc
  7. if [[ "$?" == 0 ]]; then
  8. printf "\t\033[32mTSC Passed \e[0m"
  9. else
  10. printf "\t\033[41mTSC Failed \e[0m"
  11. exit 1
  12. fi