Use user installed binaries
This commit is contained in:
parent
e382a52cf1
commit
a08e8e9a74
4 changed files with 4 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ FILES=$(git diff --cached --name-only --diff-filter=ACM "*.js" | sed 's| |\\ |g'
|
|||
|
||||
if [ ! -z "$FILES" ]; then
|
||||
# Prettify all selected files
|
||||
echo "$FILES" | xargs ./node_modules/.bin/prettier --write
|
||||
echo "$FILES" | xargs prettier --write
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
|
|
|
|||
Reference in a new issue