Skip to content

If an explicit cwd is provided, try searching for the module there if it could otherwise not be determined #55

@grahamaj

Description

@grahamaj

The current implementation chooses to search for the module in the following order:

  1. <configPath directory>/node_modules/
  2. main file in <configPath directory>/package.json

I have a need for the search to continue. Perhaps if these first two searches turn out unsuccessful, these 2 steps could be repeated in the CWD (in place of the configPath) if an explicit one was provided. So the process would be to search for the module in the following order:

  1. <configPath directory>/node_modules/
  2. main file in <configPath directory>/package.json
  3. <provided cwd>/node_modules/
  4. main file in <provided cwd>/package.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions