We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd57a75 commit f8f14e1Copy full SHA for f8f14e1
lib/index.js
@@ -12,11 +12,12 @@ export default function () {
12
}
13
14
const opts = defaults(arguments.length > 1 && arguments[0] || {}, {
15
- silent: true,
16
- paths: ['tests', 'package.json']
+ silent: true
17
})
18
19
- const { nextRelease } = arguments.length > 2 && arguments[1] || {}
+ opts.paths = opts.paths || ['tests', 'package.json']
+
20
+ const { nextRelease } = arguments.length > 2 && arguments[1] || { nextRelease: {} }
21
22
const type = nextRelease.type || opts.type
23
if (type === 'major' || type === 'initial') return callback(null)
0 commit comments