component-detection icon indicating copy to clipboard operation
component-detection copied to clipboard

Suggestion: only detect NPM modules under node_modules directory

Open JasonYeMSFT opened this issue 3 years ago • 0 comments

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.

JasonYeMSFT avatar Aug 08 '22 22:08 JasonYeMSFT