Skip to content

docs: correct stale tsup build-tool references - #2547

Merged
carlos-alm merged 2 commits into
mainfrom
fix/issue-2422
Aug 17, 2026
Merged

carlos-alm merged 2 commits into
mainfrom
fix/issue-2422

Conversation

@carlos-alm

Copy link
Copy Markdown
Contributor

Summary

Closes #2422.

CLAUDE.md's Architecture section and CONTRIBUTING.md's Code Style
section both claimed the build uses tsup, but tsup was removed.
Verified against the current repo state:

  • package.json's build script is plain tsc && ..., no bundler.
  • tsup is not in devDependencies.
  • No tsup.config.* anywhere in the repo.
  • No other currently-active doc references tsup (the one hit in
    docs/roadmap/ROADMAP.md is a historical ADR describing a past
    migration decision, not a claim about current state, so left as-is;
    generated/architecture/ARCHITECTURE_AUDIT_v3.4.0_2026-03-26.md is a
    dated, generated snapshot, also left as-is).

Why it matters beyond a stale word

With tsc and no bundling, every import in src/ survives into
dist/ as a real module resolution — 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 tsup claim could reasonably (and wrongly) propose exactly that
demotion, producing a dist/ that crashes on import for users. Made this
consequence explicit in CLAUDE.md so the dependency-classification rule
is unambiguous.

Test plan

  • Verified package.json's build script, devDependencies, and a
    repo-wide search for tsup.config.* / tsup references directly
    against main.
  • Docs-only change — no source touched, no test surface to add.

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.
@greptile-apps

greptile-apps Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This documentation-only PR corrects stale references to tsup and accurately describes the repository's plain-TypeScript compilation model.

  • Updates CLAUDE.md with qualified runtime dependency guidance that excludes type-only imports and deliberately optional, lazy-loaded packages.
  • Updates CONTRIBUTING.md to state that source is compiled with plain tsc and no bundler.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
CLAUDE.md Replaces the stale tsup reference and fully addresses the previous thread by qualifying which imports require runtime dependencies.
CONTRIBUTING.md Corrects the Code Style section to describe the current plain-tsc build accurately.

Reviews (2): Last reviewed commit: "docs: qualify the dependency-classificat..." | Re-trigger Greptile

Comment thread CLAUDE.md Resolved
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.
@carlos-alm

Copy link
Copy Markdown
Contributor Author

@greptileai please re-review

@carlos-alm
carlos-alm merged commit ced06c6 into main Aug 17, 2026
11 checks passed
@carlos-alm
carlos-alm deleted the fix/issue-2422 branch August 17, 2026 01:01
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(CLAUDE.md): architecture section says the build uses tsup, but tsup was removed

1 participant