mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
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
|
cd web > /dev/null
|
||||||
if [[ -f "./node_modules/.bin/eslint" ]]; then
|
if [[ -f "./node_modules/.bin/eslint" ]]; then
|
||||||
ARGS=("$@")
|
ARGS=("$@")
|
||||||
eslint --fix ${ARGS[@]/#web\// }
|
./node_modules/.bin/eslint --fix ${ARGS[@]/#web\// }
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
cd web > /dev/null
|
cd web > /dev/null
|
||||||
if [[ -f "./node_modules/.bin/tsc" ]]; then
|
if [[ -f "./node_modules/.bin/tsc" ]]; then
|
||||||
tsc --build --noEmit
|
./node_modules/.bin/tsc --build --noEmit
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue