Centralize tsup.config.ts build/dev configurations (starting with the `clean` parameter)
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Right now each library build script needs to manually pass --clean as an additional parameter, which is brittle as we add different libraries. Omitting this parameter can cause unexpected issues that would be hard to triage.
Describe the solution you'd like
- Propagate dev/build status into
tsup.config.ts - Set the
cleanparameter totrue/falsebased on dev/build , in one centralized location
Alternatives considered have a base "tsup.config.ts" and "tsup.config.dev.ts" file that sits in a shared config folder, imported by the libs and extended.
Additional context Add any other context or screenshots about the feature request here.
Introduced with the fix in this branch https://github.com/CopilotKit/CopilotKit/pull/181
The build system has been completely overhauled since this was filed (moved to Nx, etc.) and the tsup.config.ts centralization concern no longer applies. Closing as outdated.