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
 | ||||
|   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)}; | ||||
| }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user