@lerna/command
Advanced tools
Comparing version 3.1.0 to 3.1.2
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="3.1.2"></a> | ||
## [3.1.2](https://github.com/lerna/lerna/compare/v3.1.1...v3.1.2) (2018-08-20) | ||
### Bug Fixes | ||
* **command:** Remove redundant filteredPackages calculation ([e0a361f](https://github.com/lerna/lerna/commit/e0a361f)) | ||
<a name="3.1.0"></a> | ||
@@ -8,0 +20,0 @@ # [3.1.0](https://github.com/lerna/lerna/compare/v3.0.6...v3.1.0) (2018-08-17) |
33
index.js
@@ -11,4 +11,2 @@ "use strict"; | ||
const writeLogFile = require("@lerna/write-log-file"); | ||
const collectUpdates = require("@lerna/collect-updates"); | ||
const filterPackages = require("@lerna/filter-packages"); | ||
const ValidationError = require("@lerna/validation-error"); | ||
@@ -211,35 +209,4 @@ | ||
this.packageGraph = new PackageGraph(packages); | ||
this.filteredPackages = filterPackages( | ||
packages, | ||
this.options.scope, | ||
this.options.ignore, | ||
this.options.private | ||
); | ||
}); | ||
// collectUpdates requires that filteredPackages be present prior to checking for | ||
// updates. That's okay because it further filters based on what's already been filtered. | ||
if (this.options.since !== undefined) { | ||
chain = chain.then(() => | ||
collectUpdates(this.filteredPackages, this.packageGraph, this.execOpts, this.options) | ||
); | ||
chain = chain.then(updates => { | ||
const updated = new Set(updates.map(({ pkg }) => pkg.name)); | ||
this.filteredPackages = this.filteredPackages.filter(pkg => updated.has(pkg.name)); | ||
}); | ||
} | ||
if (this.options.includeFilteredDependents) { | ||
chain = chain.then(() => { | ||
this.filteredPackages = this.packageGraph.addDependents(this.filteredPackages); | ||
}); | ||
} | ||
if (this.options.includeFilteredDependencies) { | ||
chain = chain.then(() => { | ||
this.filteredPackages = this.packageGraph.addDependencies(this.filteredPackages); | ||
}); | ||
} | ||
return chain; | ||
@@ -246,0 +213,0 @@ } |
{ | ||
"name": "@lerna/command", | ||
"version": "3.1.0", | ||
"version": "3.1.2", | ||
"description": "Lerna's internal base class for commands", | ||
@@ -35,5 +35,3 @@ "keywords": [ | ||
"@lerna/child-process": "^3.0.0", | ||
"@lerna/collect-updates": "^3.1.0", | ||
"@lerna/filter-packages": "^3.0.0", | ||
"@lerna/package-graph": "^3.0.0", | ||
"@lerna/package-graph": "^3.1.2", | ||
"@lerna/project": "^3.0.0", | ||
@@ -47,3 +45,3 @@ "@lerna/validation-error": "^3.0.0", | ||
}, | ||
"gitHead": "7f97c7bca038c690e2dd5d897e222fb5bca0a5e8" | ||
"gitHead": "6abc0c95ae6fc6e613e74618d86a060ae218938c" | ||
} |
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
9
19119
235
- Removed@lerna/collect-updates@^3.1.0
- Removed@lerna/filter-packages@^3.0.0
- Removed@lerna/collect-updates@3.20.0(transitive)
- Removed@lerna/describe-ref@3.16.5(transitive)
- Removed@lerna/filter-packages@3.18.0(transitive)
- Removedarray-differ@2.1.0(transitive)
- Removedarrify@1.0.1(transitive)
- Removedmultimatch@3.0.0(transitive)
Updated@lerna/package-graph@^3.1.2