Skip to content

Commit f8f14e1

Browse files
fix: cracks CLI, closes #5
1 parent dd57a75 commit f8f14e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ export default function () {
1212
}
1313

1414
const opts = defaults(arguments.length > 1 && arguments[0] || {}, {
15-
silent: true,
16-
paths: ['tests', 'package.json']
15+
silent: true
1716
})
1817

19-
const { nextRelease } = arguments.length > 2 && arguments[1] || {}
18+
opts.paths = opts.paths || ['tests', 'package.json']
19+
20+
const { nextRelease } = arguments.length > 2 && arguments[1] || { nextRelease: {} }
2021

2122
const type = nextRelease.type || opts.type
2223
if (type === 'major' || type === 'initial') return callback(null)

0 commit comments

Comments
 (0)