fix: debug log all options

This commit is contained in:
Pierre Vanduynslager 2018-02-08 16:02:23 -05:00
parent 053c9edf9b
commit 7e785fa757

View File

@ -45,23 +45,13 @@ module.exports = async (opts, logger) => {
// Set default options values if not defined yet // Set default options values if not defined yet
options = { options = {
branch: 'master', branch: 'master',
repositoryUrl: (await pkgRepoUrl()) || (await repoUrl()), repositoryUrl: getGitAuthUrl((await pkgRepoUrl()) || (await repoUrl())),
tagFormat: `v\${version}`, tagFormat: `v\${version}`,
// Remove `null` and `undefined` options so they can be replaced with default ones // Remove `null` and `undefined` options so they can be replaced with default ones
...pickBy(options, option => !isUndefined(option) && !isNull(option)), ...pickBy(options, option => !isUndefined(option) && !isNull(option)),
}; };
debug('options values: %O', Object.keys(options)); debug('options values: %O', 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;
return {options, plugins: await plugins(options, pluginsPath, logger)}; return {options, plugins: await plugins(options, pluginsPath, logger)};
}; };