diff --git a/watch.sh b/watch.sh index e5f0536..106d064 100755 --- a/watch.sh +++ b/watch.sh @@ -6,4 +6,11 @@ ls *.ts* | entr yarn lint | tee >( notify-send "${ln}" fi done -) +) & +yarn tsc --watch --preserveWatchOutput | tee >( + while read ln; do + if echo "${ln}" | grep -q "Found [^0][0-9]* error"; then + notify-send "${ln}" + fi + done +) &