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
233 stars 45 forks source link

Fix: OnlyDirectDependencies and DevDependencies Option #27

Closed svenliebig closed 5 years ago

svenliebig commented 5 years ago

When the Options onlyDirectDependencies was provided, the script always took the dependencies, even if the flag devDependencies was provided. This Change gives you only the direct development dependencies if the flags onlyDirectDependencies & devDependencies ist provided. When onlyDirectDependencies is the provided without the devDependencies Options, it will return the normal dependencies.

fixes #11

mwittig commented 5 years ago

Good spot! Thanks for PR