x/samlify/.pre-commit.sh
12345678910111213141516echo "Linting"npm run lintLINTRESULT=$?echo "Compiling"$(npm bin)/tscBUILDRESULT=$?if [[ $LINTRESULT -ne 0 || $BUILDRESULT -ne 0 ]]; then echo "Fix errors before commit" exit 1else echo "Ok to commit" exit 0fi