davglass / license-checker

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

Getting 'UNLICENSED' for custom licenses in package.json #238

Open varunsharma27 opened 4 years ago

varunsharma27 commented 4 years ago

So, prior to #102, you could set a custom license. Let's say: My_Private_License in your project's package.json and allow it in license-checker. However, now you get UNLICENSED for such cases dependencies. Is it intentional? Because the PR states:

It shouldn't be a breaking change.

johnthagen commented 3 years ago

I believe --excludePrivatePackages can help with this, if you are okay excluding the private packages.

larrybahr commented 3 years ago

I had the same issue and found https://github.com/BlackDark/license-checker Seems to work fine. This would be a great addition to this lib.