shellscape / jsx-email

Build emails with a delightful DX
https://jsx.email
MIT License
902 stars 28 forks source link

chore(repo): use tsup (again) to produce compatible esm and cjs builds #42

Closed shellscape closed 9 months ago

shellscape commented 9 months ago

Component / Package Name:

This PR contains:

Are tests included?

Breaking Changes?

If yes, please include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers:

Fixes #38

Description

This PR (re)introduces tsup for building packages. We're taking a page out of tanstack's book for how they're using tsup. Used https://stackblitz.com/edit/stackblitz-starters-jkyxrt?file=package.json,index.js to test this with a test release of the font component, and tested manually, locally. Shouldn't result in any disruptions for anyone using the packages already.

shellscape commented 9 months ago

The interdependency between all in the templates that render is using in tests is forcing us to publish these updates manually, locally rather than using CI.