2023-04-21 16:06:21 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
|
2024-02-28 10:50:48 +00:00
|
|
|
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
|