[Pkg-javascript-commits] [node-module-deps] 294/444: pass through basedir options
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:06 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 934bd2f4ba0a09fbb2b99cb9435281f1101c1efa
Author: James Halliday <mail at substack.net>
Date: Thu Jul 24 21:41:51 2014 -0700
pass through basedir options
---
index.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 259fd48..356476b 100644
--- a/index.js
+++ b/index.js
@@ -202,7 +202,11 @@ Deps.prototype.getTransforms = function (file, pkg) {
}
function loadTransform (id, trOpts, cb) {
- var params = { basedir: path.dirname(file) };
+ var params = {
+ basedir: trOpts.basedir
+ || self.options.basedir
+ || path.dirname(file)
+ };
nodeResolve(id, params, function nr (err, res, again) {
if (err && again) return cb(err);
--
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