Use npx instead of manual ./node_modules/bin

This commit is contained in:
MareStare 2025-03-29 14:55:46 +00:00
parent 0cd0e350db
commit f855b99613

View file

@ -31,8 +31,8 @@ if command_exists typos; then
echo "$files" | step xargs typos
fi
if command_exists ./node_modules/.bin/prettier; then
echo "$files" | step xargs ./node_modules/.bin/prettier --ignore-unknown --write
if command_exists npx; then
echo "$files" | step xargs npx prettier --ignore-unknown --write
fi
if command_exists cargo; then