-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Treatment of UNLICENSED when package not private #262
Comments
@Undistraction May I ask why you're running license checker? |
We have very similar situation and problem. We have several apps that use our internal npm packages from our internal npm registry. Our packages are not set private in We use We would very much appreciate the support to also list license info for unlicensed not private packages. PS. This is a great library. Thank you for making it! 🙏 |
If the project is under a MIT license (https://github.com/ngx-translate/core/blob/master/LICENSE), why isn't it in the package.json? It could make things easier to the license-checker |
We have a monorepo and publish private packages from it to NPM to be consumed by our applications.
The config for a package includes:
Packages marked as
private: true
are not published to the registry, so packages publishing private packages to NPM cannot use this.From the NPM docs.
Inside apps that consume our packages we are running
license-checker
. Instead of reporting our packages asUNLICENSED
, it reports them asUNKNOWN
. This is because if the value of package'slicense
field isUNKNOWN
a value of null is returned from license. There is a subsequent check for UNLICENCED, but it only happens for packages that haveprivate: true
.It is perfectly valid to have a license of
UNLICENSED
for a non-private package when published and consumed in this way so this feels like a bug.The text was updated successfully, but these errors were encountered: