Skip to content

Suggestion: only detect NPM modules under node_modules directory #190

Open
@JasonYeMSFT

Description

@JasonYeMSFT

For example, if I have a project using an NPM module called my-module with the following file structure:

  • node_modules/
    • my-module
      • package.json
      • src/
        • index.js
        • package.json

Only my-module should be detected as a dependency. I would expect the 2nd package.json to be treated as an arbitrary source file of my-module. I have a build task using this project to detect dependencies and it is constantly emitting warnings about a test file which happens to be named package.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    detector:npmThe npm detectorstatus:requirementsFull requirements are not yet known, so implementation should not be started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions