Repository navigation
docs: correct stale tsup build-tool references - #2547
Merged
Merged
Conversation
CLAUDE.md's Architecture section and CONTRIBUTING.md's Code Style section both claimed the build uses tsup, but tsup was removed — package.json's build script is plain tsc, tsup isn't in devDependencies, and there's no tsup.config.* anywhere in the repo. This isn't just a stale word: with tsc and no bundling, every import in src/ survives into dist/ as a real module resolution, so a package used by even one code path must be a dependencies entry, never demoted to devDependencies on the assumption a bundler would have inlined it. An agent trusting the old claim could reasonably propose exactly that, producing a dist/ that crashes on import for users. Made this consequence explicit in CLAUDE.md so the dependency-classification rule is unambiguous.
Contributor
Greptile SummaryThis documentation-only PR corrects stale references to
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Important Files Changed
Reviews (2): Last reviewed commit: "docs: qualify the dependency-classificat..." | Re-trigger Greptile |
Greptile review on PR #2547: the previous wording ("every import... must be a dependencies entry") overstated the build contract — it excludes type-only imports (elided by tsc) and the repo's existing pattern of deliberately optional, lazy-loaded packages (@huggingface/transformers/@modelcontextprotocol/sdk, already documented below in Key design decisions). Left uncorrected, a contributor could read it as license to promote a type-only or intentionally-optional package into a required runtime dependency.
Contributor
Author
|
@greptileai please re-review |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Closes #2422.
CLAUDE.md's Architecture section andCONTRIBUTING.md's Code Stylesection both claimed the build uses
tsup, buttsupwas removed.Verified against the current repo state:
package.json'sbuildscript is plaintsc && ..., no bundler.tsupis not indevDependencies.tsup.config.*anywhere in the repo.tsup(the one hit indocs/roadmap/ROADMAP.mdis a historical ADR describing a pastmigration decision, not a claim about current state, so left as-is;
generated/architecture/ARCHITECTURE_AUDIT_v3.4.0_2026-03-26.mdis adated, generated snapshot, also left as-is).
Why it matters beyond a stale word
With
tscand no bundling, everyimportinsrc/survives intodist/as a real module resolution — a package used by even one codepath must be a
dependenciesentry, never demoted todevDependencieson the assumption a bundler would have inlined it. An agent trusting the
old
tsupclaim could reasonably (and wrongly) propose exactly thatdemotion, producing a
dist/that crashes on import for users. Made thisconsequence explicit in
CLAUDE.mdso the dependency-classification ruleis unambiguous.
Test plan
package.json's build script,devDependencies, and arepo-wide search for
tsup.config.*/tsupreferences directlyagainst
main.