CopilotKit icon indicating copy to clipboard operation
CopilotKit copied to clipboard

Centralize tsup.config.ts build/dev configurations (starting with the `clean` parameter)

Open ataibarkai opened this issue 2 years ago • 1 comments

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 clean parameter to true/false based 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

ataibarkai avatar Jan 24 '24 18:01 ataibarkai

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.

jpr5 avatar Apr 12 '26 23:04 jpr5