[Pkg-javascript-commits] [node-module-deps] 275/444: handle expose in this module
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:48:04 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 3af85df6494a8afd0b02ded88b66d3080c734146
Author: James Halliday <mail at substack.net>
Date: Tue Jul 22 21:12:26 2014 -0700
handle expose in this module
---
index.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/index.js b/index.js
index afefd1c..c96e9a6 100644
--- a/index.js
+++ b/index.js
@@ -241,6 +241,10 @@ Deps.prototype.walk = function (id, parent, cb) {
}
self.resolve(id, parent, function (err, file, pkg) {
+ if (rec.expose) {
+ self.options.modules[rec.expose] = file;
+ }
+
if (opts.postFilter && !opts.postFilter(id, file, pkg)) {
if (--self.pending === 0) self.push(null);
return cb(null, undefined);
--
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