Skip to content
Browse files

set data.name to null for unrequirable packages, less hackishly

  • Loading branch information...
1 parent cbc3a0f commit 70ec0afdbd0b02e8cb443ed0d33577f704dc9589 @substack committed Jun 19, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/install.js
View
2 lib/install.js
@@ -132,7 +132,7 @@ function install (args, cb_) {
path.basename(path.dirname(where)) !== 'node_modules') {
// there's a pkg.name, but it can't be required, so shim the name out
// to something unresolvable so the real deps will resolve
- data.name = data.name + '_' + Math.random().toString(16).slice(2)
+ data.name = null
}
context.family[data.name] = context.ancestors[data.name] = data.version

0 comments on commit 70ec0af

Please sign in to comment.
Something went wrong with that request. Please try again.