1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00
checktheroads-hyperglass/.tests/pre-commit-frontend.sh
2021-01-03 11:10:20 -07:00

13 lines
233 B
Bash
Executable File

#!/usr/bin/env bash
UI_DIR="./hyperglass/ui"
if git diff --cached --name-only | grep --quiet $UI_DIR
then
cd $UI_DIR
yarn typecheck
else
echo "No frontend files have changed, skipping pre-commit check..."
exit 0
fi