Adopt tsdown for package builds - #293
Open
parthban-db wants to merge 1 commit into
Open
Conversation
|
Please ensure that the NEXT_CHANGELOG.md file is updated with any relevant changes. |
parthban-db
marked this pull request as ready for review
August 7, 2026 13:29
parthban-db
force-pushed
the
parthban-db/stack/issue-267
branch
from
August 7, 2026 13:33
58218c2 to
0c9828b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🥞 Stacked PR
Use this link to review incremental changes.
Summary
Adopts tsdown as the shared ESM build tool for all 86 package workspaces while preserving the existing ES2024 target, unbundled package layout, declaration generation, and source maps. This PR is intentionally limited to adopting the bundler; it does not add CJS output, new package entry points, or source API changes.
Why
The published packages declare
"type": "module", but the currenttsc -boutput retains extensionless relative imports. Node's native ESM resolver requires explicit extensions for relative specifiers, so affected entry points fail withERR_MODULE_NOT_FOUND, as reported in #267 and documented in Node's mandatory file extensions. A shared bundler step emits Node-resolvable JavaScript without requiring a repository-wide rewrite of source imports and provides one build configuration for later artifact-focused follow-ups.What changed
Interface changes
None. Package export maps and source-level public APIs are unchanged.
Behavioral changes
.jsextensions, allowing affected package entry points to load through Node's native ESM resolver.dist/package.jsmodules instead of retaining JSON imports in the emitted JavaScript.Internal changes
tsdown@0.20.3development tooling and its lockfile entries.tsdown.config.tsconfigured for ESM, ES2024, neutral platform, unbundled and unminified output, external dependencies, unhashed filenames, TypeScript declaration generation, and source maps.buildscript in all 86 package workspaces fromtsc -btotsdown.How is this tested?
mainand this PR, then compared the extracted npm artifacts.