react-email
react-email copied to clipboard
Provide a way of configuring the location of email templates
I'm experimenting with adding this package to an already existing large monorepo, and I don't want to keep the email templates at the top level but it doesn't seem like there's a way of configuring this (it's hard coded here).
The dev
command doesn't accept any options at the moment, is this something you're already considering?
(P.S. that constants file has a typo in the filename)
Yes, we can the default directory to be emails
, but this should be optional and the user can change it they want it.
@bukinoshita any update here? Kind of a blocker at the moment
@bukinoshita any update here? Kind of a blocker at the moment
Not yet, i'll take a look on Sunday or next week.
Can I take this? Our team wants this right now!
Feel free to take @m-shaka! Thanks
@samtgarson @emroot @co-sic @GRA0007 we just published [email protected]
which contains that option.
Can you try now?
https://github.com/resendlabs/react-email/pull/384 https://github.com/resendlabs/react-email/pull/401
@zenorocha I found [email protected]
seems to refer to an outdated script, while I'm not sure why it's there.
bin.email
in pakcage.json is ./dist/index.js
, but actually new generated file is dist/source/index.js
.
https://github.com/resendlabs/react-email/blob/main/packages/react-email/package.json#L6
You can explore here
https://www.npmjs.com/package/react-email/v/1.7.6?activeTab=explore
@m-shaka just built a new version, 1.7.7
, can you try now?