-
Notifications
You must be signed in to change notification settings - Fork 214
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
highcharts license incorrectly reported using highcharts-server license URL #254
Comments
I've been investigating this, and found some interesting tidbits:
|
Not sure if anyone will ever look into this discussion again, but I just stumbled across this issue in combination with a custom license that was used in one of my packages. I think I was able to track it down to this portion of code from index.js of license-checker (Lines 151 to 172 in Version: 25.0.1)
The "files" array is populated with all the files that are assumed to be related to a license by the Now if the currently found moduleInfo.licenses starts with "Custom:", which is the case if the the license-field of the package.json does not carry a valid spdx-Expression, it will replace that moduleInfo.licenses with something found in one of the files above. If the package happens to contain a readme.md file and that readme.md file happens to contains a URL, the
|
package.json file:
Run
Output:
However, node_modules/highcharts/package.json has this:
The difference is significant, because highcharts-server is MIT-licensed, while highcharts has a commercial license.
The text was updated successfully, but these errors were encountered: