Skip to content

Commit

Permalink
Replace npm exec with npx. (#16360)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Sep 20, 2021
1 parent adff6bb commit 0974b02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generators/common/templates/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm exec --no lint-staged
npx --no-install lint-staged
2 changes: 1 addition & 1 deletion generators/init/templates/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm exec --no lint-staged
npx --no-install lint-staged

0 comments on commit 0974b02

Please sign in to comment.