fix: debug log all options
This commit is contained in:
parent
053c9edf9b
commit
7e785fa757
@ -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)};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user