mwittig / npm-license-crawler

Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
BSD 3-Clause "New" or "Revised" License
234 stars 45 forks source link

Check devDependencies when development flag is active #31

Closed Dreneg closed 5 years ago

Dreneg commented 5 years ago

Before the onlyDirectDependenciesFilter is initialized for the devDependencies, the packageJsonContents.devDependencies needs to be checked instead of the packageJsonContents.dependencies, otherwise if there are not any dependencies in the package json, the output will be empty.

mwittig commented 5 years ago

Good spot! Thank you very much for your contribution!

k-maheshkumar commented 4 years ago

I still get empty list, am I missing something?