davglass / license-checker

Check NPM package licenses
Other
1.6k stars 215 forks source link

Allow using both excludePrivatePackages and excludePackages parameters #183

Closed theboolean closed 5 years ago

theboolean commented 5 years ago

When passing both --excludePrivatePackages and --excludePackages parameters, license-checker crashes on packages excluded with excludePackages.

TypeError: Cannot read property 'private' of undefined
    at /node_modules/license-checker/lib/index.js:429