Closed myndzi closed 9 years ago
I can't replicate this issue - I created a new project with a swagger-ui dependency. When I run nlf I get:
swagger-ui@2.1.0 [license(s): Apache 2.0]
└── package.json: Apache 2.0
test@1.0.0 [license(s): ISC]
└── package.json: ISC
LICENSES: Apache 2.0, ISC
What version of swagger-ui are you using?
I should specify that I did not use npm install swagger-ui
-- I cloned the repo into project/swagger-ui
and checked it in because I needed to modify it. The current code does superficially ignore the contents of project/node_modules
, but it doesn't ignore things like project/subdir/node_modules
.
(Be sure to npm install
after cloning if you're trying to reproduce)
Closed with #26
I was getting some "interesting" results from one project. The project contains the
swagger-ui
repo in a subdirectory. Apparently, NLF is recursing all subdirectories of the main project, including this one, and including the node_modules dependencies -- giving a nonsensical list that looks something like this:It's probably a good idea to not recurse past any directory named
node_modules
orbower_components
, since the contents of these are conceptually separate packages.