[Pkg-javascript-commits] [node-module-deps] 341/444: upgrade resolve and browser-resolve, set initial entry filename based on filename dir

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:48:11 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 7d8a7de2d6a583e95768bde5105d2a480d63f015
Author: James Halliday <mail at substack.net>
Date:   Mon Feb 16 17:34:18 2015 -0800

    upgrade resolve and browser-resolve, set initial entry filename based on filename dir
---
 index.js     | 8 ++++++--
 package.json | 4 ++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/index.js b/index.js
index c669b2a..1bd2ab1 100644
--- a/index.js
+++ b/index.js
@@ -10,6 +10,7 @@ var parents = require('parents');
 var combine = require('stream-combiner2');
 var duplexer = require('duplexer2');
 var copy = require('shallow-copy');
+var xtend = require('xtend');
 
 var inherits = require('inherits');
 var Transform = require('readable-stream').Transform;
@@ -107,8 +108,11 @@ Deps.prototype._flush = function () {
     Object.keys(files).forEach(function (key) {
         var r = files[key];
         var pkg = r.pkg || {};
-        if (!pkg.__dirname) pkg.__dirname = path.dirname(r.row.file);
-        self.walk(r.row, self.top);
+        var dir = path.dirname(r.row.file);
+        if (!pkg.__dirname) pkg.__dirname = dir;
+        self.walk(r.row, xtend(self.top, {
+            filename: path.join(dir, '_fake.js')
+        }));
     });
     if (this.pending === 0) this.push(null);
     this._ended = true;
diff --git a/package.json b/package.json
index 6ecce96..2f10302 100644
--- a/package.json
+++ b/package.json
@@ -8,7 +8,7 @@
   },
   "dependencies": {
     "JSONStream": "~0.7.1",
-    "browser-resolve": "^1.3.1",
+    "browser-resolve": "^1.7.0",
     "concat-stream": "~1.4.5",
     "detective": "^4.0.0",
     "duplexer2": "0.0.2",
@@ -16,7 +16,7 @@
     "minimist": "~0.2.0",
     "parents": "^1.0.0",
     "readable-stream": "^1.0.27-1",
-    "resolve": "~0.7.2",
+    "resolve": "^1.1.2",
     "shallow-copy": "0.0.1",
     "stream-combiner2": "~1.0.0",
     "subarg": "0.0.1",

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