@lerna/filter-packages
Advanced tools
Comparing version 3.0.0-beta.2 to 3.0.0-beta.9
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="3.0.0-beta.9"></a> | ||
# [3.0.0-beta.9](https://github.com/lerna/lerna/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2018-03-24) | ||
### Bug Fixes | ||
* **filter-options:** Move include/exclude validation into filter-packages ([503251d](https://github.com/lerna/lerna/commit/503251d)) | ||
<a name="3.0.0-beta.2"></a> | ||
@@ -13,3 +25,3 @@ # [3.0.0-beta.2](https://github.com/lerna/lerna/compare/v3.0.0-beta.1...v3.0.0-beta.2) (2018-03-10) | ||
* Replace [@lerna](https://github.com/lerna)/match-package-name with multimatch ([423f82c](https://github.com/lerna/lerna/commit/423f82c)) | ||
* Replace @lerna/match-package-name with multimatch ([423f82c](https://github.com/lerna/lerna/commit/423f82c)) | ||
* **filter-packages:** Simplify method signature ([47e1c86](https://github.com/lerna/lerna/commit/47e1c86)) | ||
@@ -16,0 +28,0 @@ |
@@ -24,3 +24,3 @@ "use strict"; | ||
const filtered = new Set(packagesToFilter); | ||
const patterns = [].concat(include, exclude); | ||
const patterns = [].concat(arrify(include), negate(exclude)); | ||
@@ -60,1 +60,17 @@ if (showPrivate === false) { | ||
} | ||
function arrify(thing) { | ||
if (!thing) { | ||
return []; | ||
} | ||
if (!Array.isArray(thing)) { | ||
return [thing]; | ||
} | ||
return thing; | ||
} | ||
function negate(patterns) { | ||
return arrify(patterns).map(pattern => `!${pattern}`); | ||
} |
{ | ||
"name": "@lerna/filter-packages", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0-beta.9", | ||
"description": "TODO", | ||
@@ -37,3 +37,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ca9561a1ffe6292cceaeca30e4f7d5d85757c710" | ||
"gitHead": "70528f23cad0186fdf7529fe32148cc1eff21272" | ||
} |
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
4139
59