Skip to content

Commit

Permalink
fix: add debug logs for plugins resolved options
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Nov 2, 2018
1 parent a99355e commit 6d0bd8c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/plugins/normalize.js
@@ -1,4 +1,5 @@
const {isPlainObject, isFunction, noop, cloneDeep, omit} = require('lodash');
const debug = require('debug')('semantic-release:plugins');
const getError = require('../get-error');
const {extractErrors} = require('../utils');
const PLUGINS_DEFINITIONS = require('../definitions/plugins');
Expand All @@ -14,6 +15,8 @@ module.exports = (context, type, pluginOpt, pluginsPath) => {
const pluginName = name.pluginName ? name.pluginName : isFunction(name) ? `[Function: ${name.name}]` : name;
const plugin = loadPlugin(context, name, pluginsPath);

debug(`options for ${pluginName}/${type}: %O`, config);

let func;
if (isFunction(plugin)) {
func = plugin.bind(null, cloneDeep({...options, ...config}));
Expand Down

0 comments on commit 6d0bd8c

Please sign in to comment.