Skip to content

Commit bc460c8

Browse files
committed
fix(utils): better cross-version support
1 parent 2d11e9f commit bc460c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: @commitlint/utils/dep-check.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ function check(args) {
2020

2121
main()
2222
.then(args => {
23-
const [err, out] = args;
23+
const err = args[0];
24+
const out = args[1];
2425
console.log(`Checking ${path.join(cwd, 'package.json')}`);
2526
if (err) {
2627
console.error(err.stderr);

0 commit comments

Comments
 (0)