Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[fix] passed filenames instead of paths to .path

  • Loading branch information...
commit 55faa2957f5f28040d5a15dea6b0ef51f2f721af 1 parent f08e5fc
Felix Böhm authored

Showing 1 changed file with 2 additions and 9 deletions. Show diff stats Hide diff stats

  1. 11  lib/require-analyzer.js
11  lib/require-analyzer.js
@@ -239,21 +239,14 @@ analyzer.dir = function (options, callback) {
239 239
       //
240 240
       // skip all files from "node_modules" directories
241 241
       //
242  
-      // as the checked direcotry might already be
243  
-      // in a node_modules directory, only the relative path
244  
-      // is checked
245  
-      //
246  
-      var relativePath = path.relative(target, file);
247  
-      if (relativePath.indexOf("node_modules") >= 0) {
248  
-        return;
249  
-      }
  242
+      if(file === "node_modules") return;
250 243
 
251 244
       //
252 245
       // call analyzer.path and currate all dependencies
253 246
       //
254 247
       analyzer.path({
255 248
         __proto__: options,
256  
-        target: file,
  249
+        target: path.join(target, file),
257 250
         fileFilter: filterFiles
258 251
       }, function(err, deps){
259 252
         if(err && err.code !== "UNSUPPORTED_TYPE"){

0 notes on commit 55faa29

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