Socket
Socket
Sign inDemoInstall

@lerna/command

Package Overview
Dependencies
Maintainers
4
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lerna/command - npm Package Compare versions

Comparing version 3.0.6 to 3.1.0

13

CHANGELOG.md

@@ -6,2 +6,15 @@ # Change Log

<a name="3.1.0"></a>
# [3.1.0](https://github.com/lerna/lerna/compare/v3.0.6...v3.1.0) (2018-08-17)
### Bug Fixes
* **command:** Detect composed commands more accurately ([1e51b39](https://github.com/lerna/lerna/commit/1e51b39))
* **command:** Log lerna CLI version with less ambiguity ([67494e7](https://github.com/lerna/lerna/commit/67494e7))
<a name="3.0.6"></a>

@@ -8,0 +21,0 @@ ## [3.0.6](https://github.com/lerna/lerna/compare/v3.0.5...v3.0.6) (2018-08-16)

15

index.js

@@ -29,10 +29,13 @@ "use strict";

if (!argv.composed) {
// "FooCommand" => "foo"
this.name = this.constructor.name.replace(/Command$/, "").toLowerCase();
// composed commands are called from other commands, like publish -> version
this.composed = typeof argv.composed === "string" && argv.composed !== this.name;
if (!this.composed) {
// composed commands have already logged the lerna version
log.info("version", argv.lernaVersion);
log.notice("cli", `v${argv.lernaVersion}`);
}
// "FooCommand" => "foo"
this.name = this.constructor.name.replace(/Command$/, "").toLowerCase();
// launch the command

@@ -198,3 +201,3 @@ let runner = new Promise((resolve, reject) => {

runPreparations() {
if (!this.options.composed && this.project.isIndependent()) {
if (!this.composed && this.project.isIndependent()) {
// composed commands have already logged the independent status

@@ -201,0 +204,0 @@ log.info("versioning", "independent");

6

package.json
{
"name": "@lerna/command",
"version": "3.0.6",
"version": "3.1.0",
"description": "Lerna's internal base class for commands",

@@ -35,3 +35,3 @@ "keywords": [

"@lerna/child-process": "^3.0.0",
"@lerna/collect-updates": "^3.0.5",
"@lerna/collect-updates": "^3.1.0",
"@lerna/filter-packages": "^3.0.0",

@@ -47,3 +47,3 @@ "@lerna/package-graph": "^3.0.0",

},
"gitHead": "f2e67db8dbd6966288d7b351604a7a554ba905fa"
"gitHead": "7f97c7bca038c690e2dd5d897e222fb5bca0a5e8"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc