Package: node-resolve / 1.19.0+~cs5.20.8-2

resolve_in_debian_dirs Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
@@ -26,7 +26,7 @@
 module.exports = function nodeModulesPaths(start, opts, request) {
     var modules = opts && opts.moduleDirectory
         ? [].concat(opts.moduleDirectory)
-        : ['node_modules'];
+        : ['node_modules', ''];
 
     if (opts && typeof opts.paths === 'function') {
         return opts.paths(