🚀 Feature: Allow for overriding emails #542
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Milestone
Bug Report Checklist
main
branch of the repository.Overview
Right now, the owning user's email is referenced in the following locations within this template:
package.json
'sauthor.email
CODE_OF_CONDUCT.md
SECURITY.md
Most people are probably ok with having the same email used in all places. I personally prefer having a granular email for each location:
github [at] joshuakgoldberg [dot] com
package.json
, likenpm [at] joshuakgoldberg [dot] com
In addition to the
--email
argument that exists today, I'd like to add optional--email-github
and--email-npm
args. That way people like me can add email overrides.Additional Info
If
--email-github
and--email-npm
are both provided, I suppose the--email
field isn't necessary. So maybe let's have it so that you can use either--email
_ or both of--email-github
&--email-npm
?Repository hydration -which is what actually uses the email- is documented here: https://github.com/JoshuaKGoldberg/template-typescript-node-package#repository-hydration
Right now,
--email
is parsed here: https://github.com/JoshuaKGoldberg/template-typescript-node-package/blob/21f7303d813c2d5df18204e2e1b90ea9740e9ba8/src/shared/inputs.ts#L42The text was updated successfully, but these errors were encountered: