Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
shrinkwrap: Stop special-casing fake children in shrinkwraps
Browse files Browse the repository at this point in the history
  • Loading branch information
iarna committed May 24, 2018
1 parent 3f2e306 commit 442d248
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/shrinkwrap.js
Expand Up @@ -107,10 +107,6 @@ function shrinkwrapDeps (deps, top, tree, seen) {
if (seen.has(tree)) return
seen.add(tree)
sortModules(tree.children).forEach(function (child) {
if (child.fakeChild) {
deps[moduleName(child)] = child.fakeChild
return
}
var childIsOnlyDev = isOnlyDev(child)
var pkginfo = deps[moduleName(child)] = {}
var requested = getRequested(child) || child.package._requested || {}
Expand Down

0 comments on commit 442d248

Please sign in to comment.