Is there an in build way to run a function before the build starts just like onSuccess does for after the build?
I'm asking this as it would be very neat to only have tsup as my command and have everything configured in 1 file. Now I need to stitch multiple scripts together.
Doable but though about this while implementing it.
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
A workaround I've been doing is putting any prebuild script in the tsup.config file. It's guaranteed to run before tsup itself, and solved all the things I need
Is there an in build way to run a function before the build starts just like onSuccess does for after the build?
I'm asking this as it would be very neat to only have
tsup
as my command and have everything configured in 1 file. Now I need to stitch multiple scripts together.Doable but though about this while implementing it.
Upvote & Fund