nyxmuks/.pre-commit-tsc.sh
Sumner Evans 0133e7c037
pre-commit: use full relative path to eslint and tsc (#542)
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-12-08 17:11:26 +02:00

5 lines
128 B
Bash
Executable file

#!/usr/bin/env bash
cd web > /dev/null
if [[ -f "./node_modules/.bin/tsc" ]]; then
./node_modules/.bin/tsc --build --noEmit
fi