@lerna/command
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
20
index.js
@@ -53,6 +53,6 @@ "use strict"; | ||
chain.then( | ||
() => { | ||
result => { | ||
warnIfHanging(); | ||
resolve(); | ||
resolve(result); | ||
}, | ||
@@ -160,7 +160,7 @@ err => { | ||
runValidations() { | ||
if (this.requiresGit && !GitUtilities.isInitialized(this.execOpts)) { | ||
throw new ValidationError( | ||
"ENOGIT", | ||
"git binary missing, or this is not a git repository. Did you already run `git init` or `lerna init`?" | ||
); | ||
if ( | ||
(this.options.since !== undefined || this.requiresGit) && | ||
!GitUtilities.isInitialized(this.execOpts) | ||
) { | ||
throw new ValidationError("ENOGIT", "The git binary was not found, or this is not a git repository."); | ||
} | ||
@@ -206,7 +206,7 @@ | ||
chain = chain.then(() => collectPackages({ rootPath, packageConfigs })); | ||
chain = chain.then(() => collectPackages(rootPath, packageConfigs)); | ||
chain = chain.then(packages => { | ||
this.packages = packages; | ||
this.packageGraph = new PackageGraph(packages); | ||
this.filteredPackages = filterPackages(packages, { scope, ignore }); | ||
this.filteredPackages = filterPackages(packages, { scope, ignore }, this.options.private); | ||
}); | ||
@@ -216,3 +216,3 @@ | ||
// updates. That's okay because it further filters based on what's already been filtered. | ||
if (typeof this.options.since === "string") { | ||
if (this.options.since !== undefined) { | ||
chain = chain.then(() => collectUpdates(this)); | ||
@@ -219,0 +219,0 @@ chain = chain.then(updates => { |
{ | ||
"name": "@lerna/command", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.1", | ||
"description": "TODO", | ||
@@ -35,8 +35,8 @@ "keywords": [ | ||
"@lerna/child-process": "^3.0.0-beta.0", | ||
"@lerna/collect-packages": "^3.0.0-beta.0", | ||
"@lerna/collect-packages": "^3.0.0-beta.1", | ||
"@lerna/collect-updates": "^3.0.0-beta.0", | ||
"@lerna/filter-packages": "^3.0.0-beta.0", | ||
"@lerna/filter-packages": "^3.0.0-beta.1", | ||
"@lerna/git-utils": "^3.0.0-beta.0", | ||
"@lerna/package-graph": "^3.0.0-beta.0", | ||
"@lerna/project": "^3.0.0-beta.0", | ||
"@lerna/package-graph": "^3.0.0-beta.1", | ||
"@lerna/project": "^3.0.0-beta.1", | ||
"@lerna/validation-error": "^3.0.0-beta.0", | ||
@@ -48,3 +48,3 @@ "@lerna/write-log-file": "^3.0.0-beta.0", | ||
}, | ||
"gitHead": "349b9c765bcbf38988d1fcd48313422417a04c8f" | ||
"gitHead": "5a527968bb9f7b7c3af0d5d86391d6d2650ddc7a" | ||
} |
11671
7