build: check for npx before calling

This commit is contained in:
Matilde Park 2021-06-21 15:56:37 -05:00
parent 0930dea484
commit 306eb57ae5

View File

@ -1,4 +1,10 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
cd pkg/interface && npx lint-staged
cd pkg/interface
command -v npx > /dev/null || {
exit 0
}
npx lint-staged