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;
52
52
53
53
const skipBuildStep = configOptions . skipBuildStep ;
54
54
55
- const defaultDryRun = configOptions . defaultDryRun !== 'false' ;
56
55
57
56
//------------------------------------------------------------------------------
58
57
// command line options
@@ -80,12 +79,9 @@ const yargsConf = yargs
80
79
alias : 'docs' ,
81
80
describe : 'Publish only documents'
82
81
} )
83
- . option ( 'run' , {
84
- describe : 'Actually execute command'
85
- } )
86
82
. option ( 'dry-run' , {
87
83
alias : 'n' ,
88
- describe : 'With "defaultDryRun" option set this toggles "dry run" mode'
84
+ describe : 'This option toggles "dry run" mode'
89
85
} )
90
86
. option ( 'verbose' , {
91
87
describe : 'Increased debug output'
@@ -119,18 +115,8 @@ if (!argv.skipVersionBumping && versionBumpOptions.type === undefined && version
119
115
120
116
let notesForRelease = argv . notes ;
121
117
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 ) ;
134
120
135
121
if ( argv . preid ) console . log ( '"--preid" detected. Documents will not be published' . yellow ) ;
136
122
if ( argv . onlyDocs && ! argv . preid ) console . log ( 'Publish only documents' . yellow ) ;
You can’t perform that action at this time.
0 commit comments