-
Notifications
You must be signed in to change notification settings - Fork 25
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
Convert legacy NPM licenses to a format expected by composer. #88
Conversation
src/models/AssetPackage.php
Outdated
} else { | ||
$licenses[] = $packageLicense; | ||
} | ||
$release['license'] = $licenses; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License preparation should be refactored into prepareLicense function and used like this:
$release['license'] = $this->prepareLicense($package->getLicense());
Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
I'll test it and then merge.
Do you know good candidates for testing?
This change should be done in composer-asset-plugin |
The fix was merged in composer-asset-plugin. |
Thank you! |
Thanks for getting this moved into composer-asset-plugin! |
Convert older npm license format to one supported by composer. See #87.