From 0133e7c03706906a5e7f971b2ed7f926ebf46252 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Sun, 8 Dec 2024 08:11:26 -0700 Subject: [PATCH] pre-commit: use full relative path to eslint and tsc (#542) Signed-off-by: Sumner Evans --- .pre-commit-eslint.sh | 2 +- .pre-commit-tsc.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-eslint.sh b/.pre-commit-eslint.sh index 3dc1f7c..9fb77fd 100755 --- a/.pre-commit-eslint.sh +++ b/.pre-commit-eslint.sh @@ -2,5 +2,5 @@ cd web > /dev/null if [[ -f "./node_modules/.bin/eslint" ]]; then ARGS=("$@") - eslint --fix ${ARGS[@]/#web\// } + ./node_modules/.bin/eslint --fix ${ARGS[@]/#web\// } fi diff --git a/.pre-commit-tsc.sh b/.pre-commit-tsc.sh index c8ea37e..5af9767 100755 --- a/.pre-commit-tsc.sh +++ b/.pre-commit-tsc.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash cd web > /dev/null if [[ -f "./node_modules/.bin/tsc" ]]; then - tsc --build --noEmit + ./node_modules/.bin/tsc --build --noEmit fi