jozefizso / generator-license

Yeoman Generator - License
MIT License
59 stars 20 forks source link

Deleting license field when value is UNLICENSED seems to be incorrect #89

Closed jramos-br closed 2 years ago

jramos-br commented 6 years ago

According to https://docs.npmjs.com/files/package.json#license:

Finally, if you do not wish to grant others the right to use a private or unpublished package under any terms: { "license": "UNLICENSED" } Consider also setting "private": true to prevent accidental publication.

Sorry if I miss something, but seem to me that license field must exist and, if desired, to prevent accidental publication, private field should by set to true.

jozefizso commented 6 years ago

Seems legit. I think it's a side effect from the https://github.com/jozefizso/generator-license/pull/83 as UNLICENSED was nolicense before and it was intended it will remove the license field.