Skip to content

Commit cd55fb8

Browse files
committed
[changed] make "actual running" by default
#19 (comment) The '--run' command line option and "defaultDryRun" have been removed.
1 parent ac330fe commit cd55fb8

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

src/release.js

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ const altPkgRootFolder = configOptions.altPkgRootFolder;
5252

5353
const 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

120116
let 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

135121
if (argv.preid) console.log('"--preid" detected. Documents will not be published'.yellow);
136122
if (argv.onlyDocs && !argv.preid) console.log('Publish only documents'.yellow);

0 commit comments

Comments
 (0)