@naturalcycles/dev-lib 19.0.0 → 19.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lint.util.js +2 -3
- package/package.json +1 -1
package/dist/lint.util.js
CHANGED
|
@@ -183,9 +183,8 @@ export function runCommitlintCommand() {
|
|
|
183
183
|
const env = {
|
|
184
184
|
GIT_BRANCH: git2.getCurrentBranchName(),
|
|
185
185
|
};
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
exec2.spawn(`node ./node_modules/.bin/commitlint --edit ${editMsg} --config ${config}`, {
|
|
186
|
+
const commitlintPath = findPackageBinPath('@commitlint/cli', 'commitlint');
|
|
187
|
+
exec2.spawn(`${commitlintPath} --edit ${editMsg} --config ${config}`, {
|
|
189
188
|
env,
|
|
190
189
|
passProcessEnv: true, // important to pass it through, to preserve $PATH
|
|
191
190
|
forceColor: false,
|