Comparing version 2.0.0-beta.14 to 2.0.0-beta.15
@@ -25,3 +25,4 @@ #!/usr/bin/env node | ||
" --npm-tag [tagname] Publish packages with the specified npm dist-tag", | ||
" --force-publish Force publish for the specified packages (comma-separated) or all packages using * (skips the git diff check for changed packages)" | ||
" --force-publish Force publish for the specified packages (comma-separated) or all packages using * (skips the git diff check for changed packages)", | ||
" --yes Skip all confirmation prompts" | ||
], { | ||
@@ -28,0 +29,0 @@ alias: { |
@@ -279,5 +279,10 @@ "use strict"; | ||
_PromptUtilities2.default.confirm("Are you sure you want to publish the above changes?", function (confirm) { | ||
callback(null, confirm); | ||
}); | ||
if (!this.flags.yes) { | ||
_PromptUtilities2.default.confirm("Are you sure you want to publish the above changes?", function (confirm) { | ||
callback(null, confirm); | ||
}); | ||
} else { | ||
this.logger.info("Assuming confirmation."); | ||
callback(null, true); | ||
} | ||
} | ||
@@ -284,0 +289,0 @@ }, { |
{ | ||
"name": "lerna", | ||
"version": "2.0.0-beta.14", | ||
"version": "2.0.0-beta.15", | ||
"description": "Tool for managing JavaScript projects with multiple packages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -15,10 +15,2 @@ <p align="center"> | ||
## Background | ||
While developing [Babel](https://github.com/babel/babel) I followed a | ||
[monorepo](https://github.com/babel/babel/blob/master/doc/design/monorepo.md) approach where the entire project was split into individual packages but everything lived in the same repo. This was great. It allowed super easy modularisation which meant the core was easier to approach and meant others could use the useful parts of Babel in their own projects. | ||
This tool was abstracted out of that and deals with bootstrapping packages by linking them together as well as publishing them to npm. You can see the | ||
[Babel repo](https://github.com/babel/babel/tree/master/packages) for an example of a large Lerna project. | ||
## About | ||
@@ -242,2 +234,11 @@ | ||
#### --yes | ||
```sh | ||
$ lerna publish --canary --yes | ||
# skips `Are you sure you want to publish the above changes?` | ||
``` | ||
Skip all confirmation prompts. Would be useful in CI to automatically answer the publish confirmation prompt. | ||
### Updated | ||
@@ -244,0 +245,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
311
120454
33
2287