From ceda1cecf4ed0bedb22e8af96321b41230dc983f Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Tue, 20 Sep 2022 12:54:52 +1200 Subject: [PATCH] Add TypeScript watching to watch.sh --- watch.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 +) &