[Pkg-javascript-commits] [node-resolve] 06/10: Add a patch so node_modules isn't always added to searched paths

Julien Puydt julien.puydt at laposte.net
Fri Sep 15 15:19:42 UTC 2017


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-resolve.

commit 5303fa0df9bc3d0f223963a5af33da5f511cf245
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Thu Aug 17 13:46:31 2017 +0200

    Add a patch so node_modules isn't always added to searched paths
---
 debian/changelog                      |  1 +
 debian/patches/resolve_in_debian_dirs | 15 +++++++++++++++
 debian/patches/series                 |  1 +
 3 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 22b7991..21f58a6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ node-resolve (1.4.0-1) UNRELEASED; urgency=medium
   * New upstream release.
   * Bump dh compat to 10.
   * Bump std-ver to 4.0.0.
+  * Add a patch so node_modules isn't always added to search paths.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Wed, 16 Aug 2017 19:35:50 +0200
 
diff --git a/debian/patches/resolve_in_debian_dirs b/debian/patches/resolve_in_debian_dirs
new file mode 100644
index 0000000..11e49bc
--- /dev/null
+++ b/debian/patches/resolve_in_debian_dirs
@@ -0,0 +1,15 @@
+Description: don't always add node_modules to searched paths
+Author: Julien Puydt
+Forwarded: no
+
+--- a/lib/node-modules-paths.js
++++ b/lib/node-modules-paths.js
+@@ -5,7 +5,7 @@
+ module.exports = function nodeModulesPaths(start, opts) {
+     var modules = opts && opts.moduleDirectory
+         ? [].concat(opts.moduleDirectory)
+-        : ['node_modules'];
++        : ['node_modules', ''];
+ 
+     // ensure that `start` is an absolute path at this point,
+     // resolving against the process' current working directory
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..327c7d3
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+resolve_in_debian_dirs

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-resolve.git



More information about the Pkg-javascript-commits mailing list