Skip to content

Commit

Permalink
shrinkwrap: Prefer computed resolved from dep tree
Browse files Browse the repository at this point in the history
Credit: @iarna
  • Loading branch information
iarna committed May 5, 2018
1 parent aadbf3f commit 36f9984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shrinkwrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function shrinkwrapDeps (deps, top, tree, seen) {
}
var childIsOnlyDev = isOnlyDev(child)
var pkginfo = deps[moduleName(child)] = {}
var requested = child.package._requested || getRequested(child) || {}
var requested = getRequested(child) || child.package._requested || {}
pkginfo.version = childVersion(top, child, requested)
if (requested.type === 'git' && child.package._from) {
pkginfo.from = child.package._from
Expand Down

0 comments on commit 36f9984

Please sign in to comment.