Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Commit

Permalink
fix(buildTree): use checkDepEnv here too
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Feb 26, 2018
1 parent c3f691f commit 41a4634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class Installer {
buildTree (tree) {
this.log.silly('buildTree', 'finalizing tree and running scripts')
return tree.forEachAsync((dep, next) => {
if (dep.dev && this.config.get('production')) { return }
if (!this.checkDepEnv(dep)) { return }
const spec = npa.resolve(dep.name, dep.version)
const depPath = dep.path(this.prefix)
return readPkgJson(path.join(depPath, 'package.json'))
Expand Down

0 comments on commit 41a4634

Please sign in to comment.