Skip to content

Commit f66add9

Browse files
committed
commitlint.sh: rather use result of 'npm i'
It could happen that someone modifies this .sh file in the future, changing the `npm install` to not install the proper package(s) anymore, but npx still works. By changing it to use ./node_modules/ we force this line to depend on the results of the previous line (so that it has a raison-d'etre).
1 parent fa69e03 commit f66add9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commitlint.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ set -euxo pipefail
55
cd "$(dirname "$0")"
66
npm install
77
npm install conventional-changelog-conventionalcommits commitlint@latest
8-
npx commitlint --version
9-
npx commitlint $@
8+
./node_modules/commitlint/cli.js --version
9+
./node_modules/commitlint/cli.js $@
1010
cd ..

0 commit comments

Comments
 (0)