Skip to content

Commit

Permalink
fix: cracks CLI, closes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Jan 13, 2016
1 parent dd57a75 commit f8f14e1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ export default function () {
}

const opts = defaults(arguments.length > 1 && arguments[0] || {}, {
silent: true,
paths: ['tests', 'package.json']
silent: true
})

const { nextRelease } = arguments.length > 2 && arguments[1] || {}
opts.paths = opts.paths || ['tests', 'package.json']

const { nextRelease } = arguments.length > 2 && arguments[1] || { nextRelease: {} }

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

0 comments on commit f8f14e1

Please sign in to comment.