Details

      Description

      We currently assume that a project root is the module root path. We need to query node/npm for the list of module load paths ($NODE_PATH) and try to resolve/search against those, as well as handle searching up the hierarchy for node_modules directories, and handle loading "core" modules from node itself. The following pseudo-code gives the algorithm:
      http://nodejs.org/api/modules.html#modules_all_together

      See:
      http://www.bennadel.com/blog/2169-Where-Does-Node-js-And-Require-Look-For-Modules-.htm
      http://nodejs.org/api/modules.html#modules_core_modules

      Additionally, it may make sense to index the paths specified in NODE_PATH on startup.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cwilliams Christopher Williams
                Reporter:
                cwilliams Christopher Williams
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: