forked from Mirrors/gomuks
pre-commit: use full relative path to eslint and tsc (#542)
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
parent
1b0a8d6192
commit
0133e7c037
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue