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

Commit

Permalink
install: Move computation of the _location field to a more appropriat…
Browse files Browse the repository at this point in the history
…e place

PR-URL: #8977
Fixes: #8891
  • Loading branch information
iarna committed Jul 18, 2015
1 parent 395ca17 commit 59bb0d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install/deps.js
Expand Up @@ -101,6 +101,7 @@ var recalculateMetadata = exports.recalculateMetadata = function (tree, log, nex
], function () {
tree.userRequired = tree.package._requiredBy.some(function (req) { req === '#USER' })
tree.existing = tree.package._requiredBy.some(function (req) { req === '#EXISTING' })
tree.package._location = flatNameFromTree(tree)
next(null, tree)
})
}
Expand Down Expand Up @@ -348,7 +349,6 @@ function addDependency (name, versionSpec, tree, log, done) {
function resolveWithExistingModule (child, tree, log, next) {
validate('OOOF', arguments)
addRequiredDep(tree, child)
child.package._location = flatNameFromTree(child)

if (tree.parent && child.parent !== tree) updatePhantomChildren(tree.parent, child)

Expand Down

0 comments on commit 59bb0d7

Please sign in to comment.