-
Notifications
You must be signed in to change notification settings - Fork 53
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
Support for old package.json license structure #5
Comments
I have pushed a change to the dev branch but haven't tested it. Please try the dev branch and see if that works out for you. |
Hi, Thank you for nice tool. I like it! license-webpack-plugin/index.js Line 52 in a760765
So, I've just tried to extract
Array but it contains only one license.e.g. respond.js
I'll attach a link of a small patch. could you please check this :) If |
Thanks @grauwoelfchen . I've incorporated your patch and force pushed a new change to dev branch. Caching the license would be ideal, but it should be OK to not cache it for now. Please check out the dev branch and let me know if you have any other thoughts. |
Thank you @xz64 for quick response . You've also added improvements and tests :) If this plugin could support user to choose a license from packages which have muliple licenses in this old style licenses in |
@grauwoelfchen I have pushed a change to the dev branch which allows you to use a |
@xz64 Thank you su much! |
Published this feature in v0.4.0. |
🎉 |
I know that according to the current package.json format specification the license info should always be a string. Unfortunately many packages still use the old notation of
license.type
shown here. Since I should show these licenses too it would be great if there was support for listing them too.The text was updated successfully, but these errors were encountered: