Skip to content

Commit

Permalink
[fix] passed filenames instead of paths to .path
Browse files Browse the repository at this point in the history
  • Loading branch information
fb55 committed Sep 7, 2012
1 parent f08e5fc commit 55faa29
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions lib/require-analyzer.js
Expand Up @@ -239,21 +239,14 @@ analyzer.dir = function (options, callback) {
//
// skip all files from "node_modules" directories
//
// as the checked direcotry might already be
// in a node_modules directory, only the relative path
// is checked
//
var relativePath = path.relative(target, file);
if (relativePath.indexOf("node_modules") >= 0) {
return;
}
if(file === "node_modules") return;

//
// call analyzer.path and currate all dependencies
//
analyzer.path({
__proto__: options,
target: file,
target: path.join(target, file),
fileFilter: filterFiles
}, function(err, deps){
if(err && err.code !== "UNSUPPORTED_TYPE"){
Expand Down

0 comments on commit 55faa29

Please sign in to comment.