es-toolkit/.scripts/check-peer.sh
2024-05-31 16:54:41 +09:00

8 lines
310 B
Bash
Executable File

OUT=$(yarn | grep -E "(YN0002|YN0059|YN0060)" | grep -E $1)
if [ -z "$OUT" ]; then
echo "No Peer Dependency Errors Found."
else
echo "$OUT"
echo "Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code"
exit 1
fi