Summary
tsup.config.ts:11 sets clean: true on the ESM entry only. tsup runs the ESM, CJS, and DTS configs concurrently. Today the build happens to succeed, but the clean step races with the other writers — order-dependent.
Fix
Move clean to a deterministic pre-step ("prebuild": "rimraf dist"), or restructure into a single tsup config.
Files
tsup.config.tspackage.json
Priority
P2 — works today, but flaky under different machine speeds.
Summary
tsup.config.ts:11setsclean: trueon the ESM entry only.tsupruns the ESM, CJS, and DTS configs concurrently. Today the build happens to succeed, but the clean step races with the other writers — order-dependent.Fix
Move clean to a deterministic pre-step (
"prebuild": "rimraf dist"), or restructure into a singletsupconfig.Files
tsup.config.tspackage.jsonPriority
P2 — works today, but flaky under different machine speeds.