From daf6e6426bcb55b3cb757cd5ddd0ea0d8f269e7b Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 25 Jan 2019 14:27:26 +0000 Subject: [PATCH] fix: allow to use embark in dev deps --- src/bin/embark.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/embark.js b/src/bin/embark.js index bc811e05e..8e206ceb6 100755 --- a/src/bin/embark.js +++ b/src/bin/embark.js @@ -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; } }