fix: allow to use embark in dev deps

This commit is contained in:
Anthony Laibe 2019-01-25 14:27:26 +00:00 committed by Iuri Matias
parent 387d33a076
commit daf6e6426b
1 changed files with 2 additions and 2 deletions

View File

@ -630,9 +630,9 @@ PkgJsonLocalExpected.prototype.logMissingFile = function () {
PkgJsonLocalExpected.prototype.setEmbarkDep = function () {
if (isObject(this.json)) {
if (this.json.dependencies) {
if (this.json.dependencies && this.json.dependencies.embark) {
this.embarkDep = this.json.dependencies.embark;
} else if (this.json.devDependencies) {
} else if (this.json.devDependencies && this.json.devDependencies.embark) {
this.embarkDep = this.json.devDependencies.embark;
}
}