Skip to content

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

Description

@ataibarkai

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
#181

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions