Skip to content

Commit

Permalink
fix(pre): use path instead of name at verification hook object
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed May 15, 2015
1 parent 7ba1cb9 commit fd4c4d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pre.js
Expand Up @@ -38,18 +38,19 @@ module.exports = function (options, plugins, cb) {
var opts = {}

if (typeof plugins.verification === 'string') {
opts.name = plugins.verification
opts.path = plugins.verification
}
if (typeof plugins.verification === 'object') {
opts = plugins.verification
opts.path = opts.path || opts.name
}

opts.type = type
opts.commits = commits
opts.version = res.version
opts.nextVersion = pkg.version

var verification = require(opts.name)
var verification = require(opts.path)

console.log('Running verification hook...')

Expand Down

0 comments on commit fd4c4d1

Please sign in to comment.