Skip to content

refactor(build): derive package entries from exports#106695

Merged
steipete merged 1 commit into
mainfrom
codex/refactor-tsdown-package-configs
Jul 13, 2026
Merged

refactor(build): derive package entries from exports#106695
steipete merged 1 commit into
mainfrom
codex/refactor-tsdown-package-configs

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Closes #106694
Related: #95059

What Problem This Solves

Package build configuration duplicated 104 entry mappings already owned by package export maps, along with repeated output roots, declaration flags, and dependency defaults. This made package exports and emitted build entries easier to drift apart.

Why This Change Was Made

Ordinary package build graphs now derive entries from their package exports and share declaration/output defaults through one factory. Agent, speech, and LLM packages keep explicit maps because their source layouts or emitted names intentionally differ; web content keeps its nonstandard output directory.

Redundant clean, ESM format, and Node platform settings are removed because the build wrapper owns cleanup and tsdown 0.22.1 supplies the same format/platform defaults.

User Impact

No user-visible behavior change. Maintainers get one canonical package-entry definition and 201 fewer lines of build configuration.

Evidence

  • Testbox tbx_01kxead9p1w65dx7hysvgfwmbn: 57 focused tsdown config/build tests passed.
  • pnpm tsgo:test:root passed.
  • Full pnpm build passed.
  • node scripts/check-runtime-sidecar-loaders.mjs passed.
  • Post-build probe verified all 104 export-derived entries and every published import/types target.
  • Fresh autoreview: no accepted/actionable findings; patch correct at 0.88 confidence.
  • git diff --check passed.

No changelog entry: internal build refactor only.

@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Jul 13, 2026
@steipete
steipete force-pushed the codex/refactor-tsdown-package-configs branch from 8c07892 to 74f7267 Compare July 13, 2026 18:16
@steipete
steipete merged commit b4e61b4 into main Jul 13, 2026
75 of 76 checks passed
@steipete
steipete deleted the codex/refactor-tsdown-package-configs branch July 13, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build: derive tsdown package entries from package exports

1 participant