Skip to content

Commit

Permalink
exclude package installs of mapped dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jun 5, 2015
1 parent 68a427e commit aee594e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -660,10 +660,12 @@ exports.processPackage = function(pkg, dir, pjson, postload, isCDN) {
// if we gained a new dependency, download it
if (pjson.dependencies && Object.keys(pjson.dependencies).length > curDeps.length) {
var newDepMap = processDeps(pjson.dependencies, pjson.registry);
// remove dependencies already downloaded
// remove dependencies already downloaded or mapped
Object.keys(newDepMap).forEach(function(dep) {
if (curDeps.indexOf(dep) !== -1)
delete newDepMap[dep];
if (pjson.map && pjson.map[dep])
delete newDepMap[dep];
});
postload(newDepMap);
}
Expand Down

0 comments on commit aee594e

Please sign in to comment.