Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit a9844ee

Browse files
fix(cna-template): use npx to invoke locally installed binaries (#774)
1 parent 0352862 commit a9844ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/cna-template/template/nuxt/.husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33
. "$(dirname "$0")/common.sh"
44

5-
<%= pmRun %> commitlint --edit $1
5+
<%= pmRun === 'yarn' ? 'yarn' : 'npx' %> commitlint --edit $1

packages/cna-template/template/nuxt/.husky/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
. "$(dirname "$0")/_/husky.sh"
33
. "$(dirname "$0")/common.sh"
44

5-
<%= pmRun %> lint-staged
5+
<%= pmRun === 'yarn' ? 'yarn' : 'npx' %> lint-staged

0 commit comments

Comments
 (0)