How to create license for package


#1

How do I add a license to my package? I added a license file to my repo and I set "license": "MIT" in my package.json but the license button on my package’s page is still greyed out.


#2

Did you add a LICENSE file (no extension!) to your repository?

I’ve posted an issue, since IMHO the website should at least add support the format created by package-generator (which is LICENSE.md!)


#3

To be clear, the website supports all common LICENSE file names and formats. People may want to subscribe to the Issue linked above for updates.


#4

I tried LICENSE, LICENSE.md, and LICENSE.txt and nothing seemed to work.


#5

Did you also publish your package after committing an LICENSE file?


#6

Yes, with apm publish patch.