[Pkg-javascript-commits] [node-module-deps] 318/444: fix for top-levelness of builtins

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:09 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 11d39f0026425a7e65ea05006661c2c88e1f851b
Author: James Halliday <mail at substack.net>
Date:   Tue Dec 2 10:52:39 2014 -0800

    fix for top-levelness of builtins
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 1813aa7..9dbc7dd 100644
--- a/index.js
+++ b/index.js
@@ -154,7 +154,7 @@ Deps.prototype.getTransforms = function (file, pkg, opts) {
         var m = path.relative(path.dirname(main), file);
         return m.split(/[\\\/]/).indexOf('node_modules') < 0;
     });
-    if (!isTopLevel) {
+    if (!isTopLevel && !opts.builtin) {
         var m = path.relative(this.basedir, file);
         isTopLevel = m.split(/[\\\/]/).indexOf('node_modules') < 0;
     }

-- 
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