forked from mirrors/thatmattlove-hyperglass
13 lines
223 B
Bash
Executable file
13 lines
223 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
$UI_DIR="hyperglass/ui"
|
|
|
|
if git diff --cached --name-only | grep --quiet "$UI_DIR"
|
|
then
|
|
echo "No frontend files have changed, skipping pre-commit check..."
|
|
exit 0
|
|
fi
|
|
|
|
cd $UI_DIR
|
|
|
|
yarn typecheck
|