Skip to content
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

Ensure the "licenseref-license" convention of npm before 3.10 is detected correctly #2872

Open
pombredanne opened this issue Feb 19, 2022 · 6 comments

Comments

@pombredanne
Copy link
Member

See https://github.com/search?p=2&q="LicenseRef-LICENSE"&type=Code

Over the years, npm had a few evolving conventions:

See https://softwareengineering.stackexchange.com/questions/285885/which-spdx-license-is-equivalent-to-all-rights-reserved

npm/npm#8795 (comment)

Use "license": "LicenseRef-LICENSE" and then create a LICENSE file next to package.json with something as little as: "(c) Copyright 2015 person or company, all rights reserved.".

and https://www.bonbon.io/commercial-licenses-for-npm-packages

This should be enough to satisfy NPM commands if you had a missing or incorrect license, and this does replace the older "license": "LicenseRef-LICENSE" of earlier NPM versions.

This legacy way should be supported. It is seen on bower packages too

@adityasangave
Copy link
Contributor

A new license rule for npm should fix this, should I make the changes?

@pombredanne
Copy link
Member Author

A new license rule for npm should fix this, should I make the changes?

@adii21-Ux good point! yes... please go ahead.
Thank you ++

@adityasangave
Copy link
Contributor

@pombredanne I tried to solve it by adding a new rule but no use can you please explain any other ways

@adityasangave
Copy link
Contributor

We have specified LicenseRef-LICENSE here but its not detecting it so should I declare new .LICENSE and .yml for this specific key

@pombredanne
Copy link
Member Author

We have specified LicenseRef-LICENSE here but its not detecting it so should I declare new .LICENSE and .yml for this specific key

this would be a likely bug in the code that's supposed to do this. That's the npm code to compute a normalized license

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants