From 7e785fa757d40a65bdf31793a1895174155441a3 Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Thu, 8 Feb 2018 16:02:23 -0500 Subject: [PATCH] fix: debug log all options --- lib/get-config.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/get-config.js b/lib/get-config.js index 9373aa6e..cad06cad 100644 --- a/lib/get-config.js +++ b/lib/get-config.js @@ -45,23 +45,13 @@ module.exports = async (opts, logger) => { // Set default options values if not defined yet options = { branch: 'master', - repositoryUrl: (await pkgRepoUrl()) || (await repoUrl()), + repositoryUrl: getGitAuthUrl((await pkgRepoUrl()) || (await repoUrl())), tagFormat: `v\${version}`, // Remove `null` and `undefined` options so they can be replaced with default ones ...pickBy(options, option => !isUndefined(option) && !isNull(option)), }; - debug('options values: %O', Object.keys(options)); - debug('name: %O', options.name); - debug('branch: %O', options.branch); - debug('repositoryUrl: %O', options.repositoryUrl); - debug('analyzeCommits: %O', options.analyzeCommits); - debug('generateNotes: %O', options.generateNotes); - debug('verifyConditions: %O', options.verifyConditions); - debug('verifyRelease: %O', options.verifyRelease); - debug('publish: %O', options.publish); - - options.repositoryUrl = options.repositoryUrl ? getGitAuthUrl(options.repositoryUrl) : options.repositoryUrl; + debug('options values: %O', options); return {options, plugins: await plugins(options, pluginsPath, logger)}; };