From b4299a287212d01aad2f0f1837defc0d887e4c13 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Tue, 8 Jan 2019 18:09:42 -0800 Subject: [PATCH] chore: pass dryRun arg correctly (#16333) * chore: pass dryRun arg correctly * no log --- script/prepare-release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/prepare-release.js b/script/prepare-release.js index a74c1863a34a..9c89afd3b0f0 100755 --- a/script/prepare-release.js +++ b/script/prepare-release.js @@ -35,7 +35,7 @@ async function getNewVersion (dryRun) { } const bumpScript = path.join(__dirname, 'bump-version.js') const scriptArgs = ['node', bumpScript, `--bump=${bumpType}`] - if (dryRun) scriptArgs.push('--dry-run') + if (dryRun) scriptArgs.push('--dryRun') try { let bumpVersion = execSync(scriptArgs.join(' '), { encoding: 'UTF-8' }) bumpVersion = bumpVersion.substr(bumpVersion.indexOf(':') + 1).trim()