File: resolve_in_debian_dirs

package info (click to toggle)
node-resolve 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 428 kB
  • sloc: sh: 4; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 519 bytes parent folder | 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
@@ -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