component-detection
component-detection copied to clipboard
Suggestion: only detect NPM modules under node_modules directory
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
- my-module
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.