@lerna/command
Advanced tools
Comparing version 3.0.0-beta.17 to 3.0.0-beta.18
@@ -6,2 +6,20 @@ # Change Log | ||
<a name="3.0.0-beta.18"></a> | ||
# [3.0.0-beta.18](https://github.com/lerna/lerna/compare/v3.0.0-beta.17...v3.0.0-beta.18) (2018-04-24) | ||
### Features | ||
* **command:** Move GitUtilities.isInitialized into class method ([abecfcc](https://github.com/lerna/lerna/commit/abecfcc)) | ||
* **filters:** Add `--include-filtered-dependents` flag ([#1393](https://github.com/lerna/lerna/issues/1393)) ([2838260](https://github.com/lerna/lerna/commit/2838260)) | ||
### BREAKING CHANGES | ||
* **command:** GitUtilities.isInitialized no longer exists. You shouldn't be using GitUtilities. | ||
<a name="3.0.0-beta.17"></a> | ||
@@ -8,0 +26,0 @@ # [3.0.0-beta.17](https://github.com/lerna/lerna/compare/v3.0.0-beta.16...v3.0.0-beta.17) (2018-04-13) |
25
index.js
@@ -5,5 +5,5 @@ "use strict"; | ||
const dedent = require("dedent"); | ||
const execa = require("execa"); | ||
const log = require("npmlog"); | ||
const GitUtilities = require("@lerna/git-utils"); | ||
const PackageGraph = require("@lerna/package-graph"); | ||
@@ -162,7 +162,16 @@ const Project = require("@lerna/project"); | ||
gitInitialized() { | ||
const opts = { | ||
cwd: this.project.rootPath, | ||
// don't throw, just want boolean | ||
reject: false, | ||
// only return code, no stdio needed | ||
stdio: "ignore", | ||
}; | ||
return execa.sync("git", ["rev-parse"], opts).code === 0; | ||
} | ||
runValidations() { | ||
if ( | ||
(this.options.since !== undefined || this.requiresGit) && | ||
!GitUtilities.isInitialized(this.execOpts) | ||
) { | ||
if ((this.options.since !== undefined || this.requiresGit) && !this.gitInitialized()) { | ||
throw new ValidationError("ENOGIT", "The git binary was not found, or this is not a git repository."); | ||
@@ -219,2 +228,8 @@ } | ||
if (this.options.includeFilteredDependents) { | ||
chain = chain.then(() => { | ||
this.filteredPackages = this.packageGraph.addDependents(this.filteredPackages); | ||
}); | ||
} | ||
if (this.options.includeFilteredDependencies) { | ||
@@ -221,0 +236,0 @@ chain = chain.then(() => { |
{ | ||
"name": "@lerna/command", | ||
"version": "3.0.0-beta.17", | ||
"version": "3.0.0-beta.18", | ||
"description": "TODO", | ||
@@ -36,6 +36,5 @@ "keywords": [ | ||
"@lerna/collect-packages": "^3.0.0-beta.17", | ||
"@lerna/collect-updates": "^3.0.0-beta.15", | ||
"@lerna/collect-updates": "^3.0.0-beta.18", | ||
"@lerna/filter-packages": "^3.0.0-beta.10", | ||
"@lerna/git-utils": "^3.0.0-beta.15", | ||
"@lerna/package-graph": "^3.0.0-beta.14", | ||
"@lerna/package-graph": "^3.0.0-beta.18", | ||
"@lerna/project": "^3.0.0-beta.17", | ||
@@ -45,6 +44,7 @@ "@lerna/validation-error": "^3.0.0-beta.10", | ||
"dedent": "^0.7.0", | ||
"execa": "^0.9.0", | ||
"lodash": "^4.17.5", | ||
"npmlog": "^4.1.2" | ||
}, | ||
"gitHead": "5e462676b3793b8d4981fc7f8b81af2fc839adf7" | ||
"gitHead": "7995561e8d010d9fa2e59109b57b9ad8573baba1" | ||
} |
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
15749
259
+ Addedexeca@^0.9.0
+ Addedcross-spawn@5.1.0(transitive)
+ Addedexeca@0.9.0(transitive)
+ Addedget-stream@3.0.0(transitive)
+ Addedlru-cache@4.1.5(transitive)
+ Addedpseudomap@1.0.2(transitive)
+ Addedyallist@2.1.2(transitive)
- Removed@lerna/git-utils@^3.0.0-beta.15
- Removed@lerna/git-utils@3.0.0-beta.15(transitive)
- Removedtemp-dir@1.0.0(transitive)
- Removedtemp-write@3.4.0(transitive)
- Removeduuid@3.4.0(transitive)