@lerna/version
Advanced tools
Comparing version 3.0.2 to 3.0.5
@@ -6,2 +6,17 @@ # Change Log | ||
<a name="3.0.5"></a> | ||
## [3.0.5](https://github.com/lerna/lerna/compare/v3.0.4...v3.0.5) (2018-08-15) | ||
### Bug Fixes | ||
* **help:** Insert line break before describing boolean negations ([da2f886](https://github.com/lerna/lerna/commit/da2f886)) | ||
* **options:** Provide -y alias for --yes ([3ea460c](https://github.com/lerna/lerna/commit/3ea460c)) | ||
* **publish:** Add confirmation prompt before execution ([47766e5](https://github.com/lerna/lerna/commit/47766e5)), closes [#1566](https://github.com/lerna/lerna/issues/1566) | ||
* **version:** Log skipped publish when composed ([89645b7](https://github.com/lerna/lerna/commit/89645b7)) | ||
<a name="3.0.2"></a> | ||
@@ -8,0 +23,0 @@ ## [3.0.2](https://github.com/lerna/lerna/compare/v3.0.1...v3.0.2) (2018-08-11) |
@@ -69,3 +69,3 @@ "use strict"; | ||
push: { | ||
describe: "Push tagged commit to git remote. Pass --no-push to disable.", | ||
describe: "Push tagged commit to git remote.\nPass --no-push to disable.", | ||
type: "boolean", | ||
@@ -88,4 +88,5 @@ defaultDescription: "true", | ||
}, | ||
yes: { | ||
y: { | ||
describe: "Skip all confirmation prompts.", | ||
alias: "yes", | ||
type: "boolean", | ||
@@ -100,2 +101,5 @@ }, | ||
}); | ||
// set argv.composed for wrapped execution logic | ||
yargs.default("composed", composed).hide("composed"); | ||
} else { | ||
@@ -102,0 +106,0 @@ exports.addBumpPositional(yargs); |
13
index.js
@@ -133,4 +133,8 @@ "use strict"; | ||
if (!this.updates.length) { | ||
this.logger.success("No updated packages to version"); | ||
const message = this.options.composed | ||
? "No changed packages to publish" | ||
: "No changed packages to version"; | ||
this.logger.success(message); | ||
// still exits zero, aka "ok" | ||
@@ -327,3 +331,8 @@ return false; | ||
return PromptUtilities.confirm("Are you sure you want to create these versions?"); | ||
// When composed from `lerna publish`, use this opportunity to confirm publishing | ||
const message = this.options.composed | ||
? "Are you sure you want to publish these packages?" | ||
: "Are you sure you want to create these versions?"; | ||
return PromptUtilities.confirm(message); | ||
} | ||
@@ -330,0 +339,0 @@ |
{ | ||
"name": "@lerna/version", | ||
"version": "3.0.2", | ||
"version": "3.0.5", | ||
"description": "Bump version of packages changed since the last release", | ||
@@ -36,4 +36,4 @@ "keywords": [ | ||
"@lerna/child-process": "^3.0.0", | ||
"@lerna/collect-updates": "^3.0.0", | ||
"@lerna/command": "^3.0.0", | ||
"@lerna/collect-updates": "^3.0.5", | ||
"@lerna/command": "^3.0.5", | ||
"@lerna/conventional-commits": "^3.0.2", | ||
@@ -55,3 +55,3 @@ "@lerna/output": "^3.0.0", | ||
}, | ||
"gitHead": "784d64e7dbd1275175bc080d148656916e2f5d76" | ||
"gitHead": "882b52eb4eec60f161c77feb0bb175efea0f2909" | ||
} |
43619
774
Updated@lerna/command@^3.0.5