Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: beforeBuild "hook" just like onSucces #1094

Open
noudadrichem opened this issue Mar 8, 2024 · 1 comment
Open

FR: beforeBuild "hook" just like onSucces #1094

noudadrichem opened this issue Mar 8, 2024 · 1 comment

Comments

@noudadrichem
Copy link

noudadrichem commented Mar 8, 2024

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.
Fund with Polar
@coravacav
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants