File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed
Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ const altPkgRootFolder = configOptions.altPkgRootFolder;
5252
5353const skipBuildStep = configOptions . skipBuildStep ;
5454
55- const defaultDryRun = configOptions . defaultDryRun !== 'false' ;
5655
5756//------------------------------------------------------------------------------
5857// command line options
@@ -80,12 +79,9 @@ const yargsConf = yargs
8079 alias : 'docs' ,
8180 describe : 'Publish only documents'
8281 } )
83- . option ( 'run' , {
84- describe : 'Actually execute command'
85- } )
8682 . option ( 'dry-run' , {
8783 alias : 'n' ,
88- describe : 'With "defaultDryRun" option set this toggles "dry run" mode'
84+ describe : 'This option toggles "dry run" mode'
8985 } )
9086 . option ( 'verbose' , {
9187 describe : 'Increased debug output'
@@ -119,18 +115,8 @@ if (!argv.skipVersionBumping && versionBumpOptions.type === undefined && version
119115
120116let notesForRelease = argv . notes ;
121117
122- let dryRunMode = argv . dryRun || defaultDryRun ;
123- if ( argv . run ) {
124- dryRunMode = false ;
125- }
126- if ( dryRunMode ) {
127- console . log ( 'DRY RUN' . magenta ) ;
128- if ( defaultDryRun ) {
129- console . log ( '------------------------------------------------------' ) ;
130- console . log ( 'To actually run your command please add "--run" option' . yellow ) ;
131- console . log ( '------------------------------------------------------' ) ;
132- }
133- }
118+ const dryRunMode = argv . dryRun ;
119+ if ( dryRunMode ) console . log ( 'DRY RUN' . magenta ) ;
134120
135121if ( argv . preid ) console . log ( '"--preid" detected. Documents will not be published' . yellow ) ;
136122if ( argv . onlyDocs && ! argv . preid ) console . log ( 'Publish only documents' . yellow ) ;
You can’t perform that action at this time.
0 commit comments