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

Change deprecated package.json field "licenses" to "license" #78

Merged
merged 1 commit into from Jan 10, 2016

Conversation

anko
Copy link
Collaborator

@anko anko commented Jan 10, 2016

The "licenses"-property is deprecated, resulting in an error when installing.

The "MIT" string is the correct SPDX license identifier, based on the contents of the LICENCE file.


Today I learned that "licence" is a valid spelling of what I'd usually spell "license". Github's Licenses API understands it just fine:

$ http get https://api.github.com/repos/alanshaw/markdown-pdf/license | jq '.license.name'
"MIT License"

The "licenses"-property [is deprecated][1], resulting in an error when
installing.

[1]: https://docs.npmjs.com/files/package.json#license
alanshaw added a commit that referenced this pull request Jan 10, 2016
Change deprecated package.json field "licenses" to "license"
@alanshaw alanshaw merged commit ae4ed78 into alanshaw:master Jan 10, 2016
@anko anko deleted the update-package-license-field branch January 11, 2016 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants