Add TypeScript watching to watch.sh

This commit is contained in:
Brandon Presley 2022-09-20 12:54:52 +12:00
parent e4a06c1dfb
commit ceda1cecf4
1 changed files with 8 additions and 1 deletions

View File

@ -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
) &