[Pkg-javascript-commits] [node-module-deps] 329/444: resolve paths relative to basedir
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:10 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-module-deps.
commit 41b12f13fbe566d980caf67087e3a473e516b173
Author: James Halliday <mail at substack.net>
Date: Sun Dec 14 03:18:32 2014 -0800
resolve paths relative to basedir
---
index.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/index.js b/index.js
index 669ee51..254577d 100644
--- a/index.js
+++ b/index.js
@@ -40,6 +40,9 @@ function Deps (opts) {
this.paths = process.env.NODE_PATH.split(':');
}
if (!this.paths) this.paths = [];
+ this.paths = this.paths.map(function (p) {
+ return path.resolve(self.basedir, p);
+ });
this.transforms = [].concat(opts.transform).filter(Boolean);
this.globalTransforms = [].concat(opts.globalTransform).filter(Boolean);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-module-deps.git
More information about the Pkg-javascript-commits
mailing list