diff --git a/lib/require-analyzer.js b/lib/require-analyzer.js index 10fc2d2..a1b38bd 100755 --- a/lib/require-analyzer.js +++ b/lib/require-analyzer.js @@ -225,9 +225,7 @@ analyzer.dir = function (options, callback) { // If there is a package.json in the directory // then analyze the require(s) based on `package.main` // - if (files.indexOf('package.json') !== -1 || - (options.target && files.indexOf(options.target) !== -1) // TODO undestand this - ) { + if (files.indexOf('package.json') !== -1) { return analyzer.package(options, callback); }