mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-29 01:12:46 +00:00
Switch to 'npx' for lint-staged in pre-commit hook (#3658)
This way we get rid of the script entry in the `package.json` and the whole thing becomes a little less complex.
This commit is contained in:
committed by
GitHub
parent
c485ff670d
commit
0b3a04c520
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
if command -v npm &> /dev/null; then
|
||||
npm run lint:staged
|
||||
if command -v npx &> /dev/null; then
|
||||
npx lint-staged
|
||||
fi
|
||||
|
Reference in New Issue
Block a user