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

Commit

Permalink
fix(_from): do not add _from to directory deps
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Mar 1, 2018
1 parent 0988ed2 commit 7405360
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 @@ -240,7 +240,7 @@ class Installer {
const depPath = dep.path(this.prefix)
return next()
.then(() => readJson(depPath, 'package.json'))
.then(pkg => spec.registry
.then(pkg => (spec.registry || spec.type === 'directory')
? pkg
: this.updateFromField(dep, pkg).then(() => pkg)
)
Expand Down

0 comments on commit 7405360

Please sign in to comment.