module-deps
Advanced tools
Comparing version 0.7.1 to 0.8.0
@@ -12,2 +12,4 @@ var fs = require('fs'); | ||
module.exports = function (mains, opts) { | ||
if (!opts) opts = {}; | ||
if (!Array.isArray(mains)) mains = [ mains ].filter(Boolean); | ||
@@ -24,5 +26,3 @@ mains = mains.map(function (file) { | ||
if (!opts) opts = {}; | ||
var transforms = [].concat(opts.transform).filter(Boolean); | ||
var resolve = opts.resolve || browserResolve; | ||
@@ -105,5 +105,8 @@ | ||
var deps; | ||
if (/\.json$/.test(file)) { | ||
if (opts.noParse && opts.noParse.indexOf(file) >= 0) { | ||
deps = []; | ||
} | ||
else if (/\.json$/.test(file)) { | ||
deps = []; | ||
} | ||
else { | ||
@@ -110,0 +113,0 @@ try { deps = detective(src) } |
{ | ||
"name": "module-deps", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "walk the dependency graph to generate json output that can be fed into browser-pack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20492
39
430
136
5