module-deps
Advanced tools
Comparing version 3.7.3 to 3.7.4
15
index.js
@@ -39,10 +39,11 @@ var fs = require('fs'); | ||
this.paths = opts.paths || process.env.NODE_PATH; | ||
this.paths = opts.paths || process.env.NODE_PATH || ''; | ||
if (typeof this.paths === 'string') { | ||
this.paths = process.env.NODE_PATH.split(':'); | ||
this.paths = this.paths.split(path.delimiter); | ||
} | ||
if (!this.paths) this.paths = []; | ||
this.paths = this.paths.map(function (p) { | ||
return path.resolve(self.basedir, p); | ||
}); | ||
this.paths = this.paths | ||
.filter(Boolean) | ||
.map(function (p) { | ||
return path.resolve(self.basedir, p); | ||
}); | ||
@@ -84,3 +85,3 @@ this.transforms = [].concat(opts.transform).filter(Boolean); | ||
self.pending ++; | ||
if (row.entry !== false) self.entries.push(row.file); | ||
if (row.entry !== false) self.entries.push(path.resolve(row.basedir, row.file)); | ||
@@ -87,0 +88,0 @@ self.lookupPackage(row.file, function (err, pkg) { |
{ | ||
"name": "module-deps", | ||
"version": "3.7.3", | ||
"version": "3.7.4", | ||
"description": "walk the dependency graph to generate json output that can be fed into browser-pack", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
52130
1305
11