From fd4c4d1c81f93c3052c565a7d5b3202f55fd0cc2 Mon Sep 17 00:00:00 2001 From: Christoph Witzko Date: Fri, 15 May 2015 20:38:55 +0200 Subject: [PATCH] fix(pre): use `path` instead of `name` at verification hook object --- src/pre.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pre.js b/src/pre.js index 766523a9..67ca98d1 100644 --- a/src/pre.js +++ b/src/pre.js @@ -38,10 +38,11 @@ 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 @@ -49,7 +50,7 @@ module.exports = function (options, plugins, cb) { opts.version = res.version opts.nextVersion = pkg.version - var verification = require(opts.name) + var verification = require(opts.path) console.log('Running verification hook...')