b1e168b207
This is a team tooling thing to let each other know if `yarn` needs to be run upon checkout of a branch. ### Change Type - [x] `internal` — Any other changes that don't affect the published package[^2]
15 lines
433 B
Bash
Executable file
15 lines
433 B
Bash
Executable file
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
set -e
|
|
|
|
rm -rf *.tsbuildinfo */*.tsbuildinfo */*/*.tsbuildinfo */*/*/*.tsbuildinfo */*/*/*/*.tsbuildinfo
|
|
|
|
# This notifies the user if the yarn.lock file has changed.
|
|
CHANGED=$(git diff "$1" "$2" --stat -- ./yarn.lock | wc -l)
|
|
if (( CHANGED > 0 )); then
|
|
echo
|
|
echo "🚨 🚨 🚨 yarn.lock has changed! 🚨 🚨 🚨 "
|
|
echo "run 'yarn' to get the latest!"
|
|
echo
|
|
fi
|