@lerna/collect-updates
Advanced tools
Comparing version 3.16.5 to 3.18.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [3.18.0](https://github.com/lerna/lerna/compare/v3.17.0...v3.18.0) (2019-10-15) | ||
### Features | ||
* **filter-options:** Add `--exclude-dependents` option ([ff50e29](https://github.com/lerna/lerna/commit/ff50e299aa990b121e1bd987548252376177c68a)), closes [#2198](https://github.com/lerna/lerna/issues/2198) | ||
## [3.16.5](https://github.com/lerna/lerna/compare/v3.16.4...v3.16.5) (2019-10-07) | ||
@@ -8,0 +19,0 @@ |
@@ -16,3 +16,3 @@ "use strict"; | ||
function collectUpdates(filteredPackages, packageGraph, execOpts, commandOptions) { | ||
const { forcePublish, conventionalCommits, conventionalGraduate } = commandOptions; | ||
const { forcePublish, conventionalCommits, conventionalGraduate, excludeDependents } = commandOptions; | ||
@@ -73,2 +73,3 @@ // If --conventional-commits and --conventional-graduate are both set, ignore --force-publish | ||
onInclude: name => log.verbose("updated", name), | ||
excludeDependents, | ||
}); | ||
@@ -91,3 +92,4 @@ } | ||
onInclude: name => log.verbose("updated", name), | ||
excludeDependents, | ||
}); | ||
} |
@@ -7,3 +7,3 @@ "use strict"; | ||
function collectPackages(packages, { isCandidate = () => true, onInclude } = {}) { | ||
function collectPackages(packages, { isCandidate = () => true, onInclude, excludeDependents } = {}) { | ||
const candidates = new Set(); | ||
@@ -17,4 +17,5 @@ | ||
const dependents = collectDependents(candidates); | ||
dependents.forEach(node => candidates.add(node)); | ||
if (!excludeDependents) { | ||
collectDependents(candidates).forEach(node => candidates.add(node)); | ||
} | ||
@@ -21,0 +22,0 @@ // The result should always be in the same order as the input |
{ | ||
"name": "@lerna/collect-updates", | ||
"version": "3.16.5", | ||
"version": "3.18.0", | ||
"description": "An internal Lerna tool", | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "f0574092a2db90142b3a27ec1a4941cddbdcdf62" | ||
"gitHead": "0ea8fb136f408fb4de3fd39bb7069d976235d53d" | ||
} |
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
20586
216