Skip to content
vxvx
GitHubBlueskydev.toRSS

Code around the run

A plugin can start something before the run and clean up after, within a deadline.

Plugin setup and teardown around a run.

Some runs need a service up first: a database, a local registry, a proxy. A plugin’s setup runs before the first task and teardown after the last.

Both are bounded by a timeout, so a stuck teardown never holds the run open.

// what it prints

setup()     → before the first task
  … the run …
teardown()  → after the last task, bounded by a timeout
Turborepo, Nx and other product names are trademarks of their owners. vx is not affiliated with or endorsed by them.