davglass / license-checker

Check NPM package licenses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting 'UNLICENSED' for custom licenses in package.json

varunsharma27 opened this issue · comments

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.

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

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.