Skip to content

Commit

Permalink
fix: allow to use embark in dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
alaibe authored and iurimatias committed Jan 25, 2019
1 parent 387d33a commit daf6e64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin/embark.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit daf6e64

Please sign in to comment.