Some useful tools to improve developer experience with tsup
@lhechenberger/tsup-dev-tsup --watch, but uses your tsup.config to determine which files to watch@lhechenberger/tsup-watch-monorepo- Watch your workspace dependencies and rebuild them with tsup@repo/scripts- Some scripts (internal)@repo/tsconfig- Shared Tsconfig (internal)
As we are using the packages inside this repo to build themselves, tsup --watch (or tsup-dev) won't work properly, so only use pnpm dev in the repo root dir to watch and rebuild - it uses pnpm turbo watch dev under the hood. Once built you can run pnpm test:dev to test the dev script one would configure in a real project.
Just a list of nice-to-haves
General
initscript to setuptsup-dev
Additional packages
tsup-smart-defaults: Inherit config from package.json etc:- format
esmiftype: 'module' outDirfrom main/exports etc.- clean if not
--watch
- format