Skip to content

fix(cli): installing the CLI no longer downloads an unused code formatter - #5906

Merged
miguel-heygen merged 1 commit into
mainfrom
chore/cli-drop-unused-formatter
Oct 19, 2026
Merged

miguel-heygen merged 1 commit into
mainfrom
chore/cli-drop-unused-formatter

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

hyperframes no longer lists prettier as a runtime dependency. Every npm install hyperframes stops downloading it.

Why

Nothing in the CLI uses it. On main, no file under packages/*/src, scripts or .github imports, requires or runs it. The built dist mentions it only in // prettier-ignore comments, and no other installed package declares it as a peer. It still cost every install about 10 MB.

Related work

None.

How

  • Removed the prettier entry from packages/cli/package.json dependencies.
  • Removed its two lines from bun.lock: the CLI workspace entry and the package entry. No other workspace depends on it. bun install --frozen-lockfile reports no changes with the edited lockfile.

The lockfile's other drift (workspace version fields behind package.json) is left alone to keep this diff to the one dependency.

Test plan

Measured on Linux with Node 22.22, npm 10.9 and bun 1.4.2. Each side packed packages/cli with bun pm pack and installed the tarball into an empty project with npm install --omit=dev.

Before After
Packed tarball 7,319,330 bytes 7,319,321 bytes
Installed node_modules 115.6 MB, 201 packages 105.6 MB, 200 packages
node_modules/prettier 9.98 MB, 56 files absent

The tarball itself barely changes, because prettier was never bundled; the saving is in what the install pulls in.

Smoke from the installed tarball, both sides:

  • hyperframes --version prints 0.8.177.
  • hyperframes lint on a one-file composition exits 0 with 0 errors and 1 warning, the same output on both sides.

bun run verify:packed-manifests after the change: every package's packed manifest is publish-safe, the clean consumer install, Node execution, NodeNext declarations, Vite resolution and CLI startup checks pass, and all 14 packages are within their size budgets. No budget changes.

  • Unit tests added/updated (no code change)
  • Manual testing performed
  • Documentation updated (if applicable)
  • Comments follow CONTRIBUTING.md "Comments"

@vanceingalls vanceingalls left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 7d935433d4f5211563dd7723e2125d05b7a36af5 against merge-base 4c798f39. The diff is packages/cli/package.json (−1) and bun.lock (−2). No code changes.

What I checked

  • Nothing imports it. At this head, grepping the whole repo (lockfile, Markdown and HTML excluded) finds no import/require/dynamic import() of prettier or prettier/*, and no npx/bunx prettier or prettier -- invocation. The only non-comment mention under packages/*/src, packages/cli, skills, scripts or .github is the prettier- directive prefix in scripts/check-comment-citations.mjs:48, which is a regex, not a use. Everything else is prettier-ignore comments in generated catalog HTML.
  • No other declarer. No package.json in the repo mentions prettier any more.
  • The lockfile edit is exactly the two lines. It removes the CLI workspace entry and the prettier@3.8.3 package entry. No "prettier" key remains anywhere in bun.lock, so nothing else resolved through it. CI's frozen install accepts the edited lockfile.

CI at this head: Build (frozen install plus verify:packed-manifests with the CLI's clean consumer install and startup), Render on windows-latest, Semantic PR title, Test, Test: runtime contract, Tests on windows-latest, Typecheck and regression are green.

Verdict: APPROVE
Reasoning: An unused runtime dependency removed with a matching two-line lockfile edit. No code path references it, and the frozen install and packed-consumer checks pass.

— Via

@github-actions

Copy link
Copy Markdown
Contributor

Edit accuracy: accurate 271 (base branch 271), smooth 140 of those

The gate passes.
Smoothness is reported in the artifact, not gated. A case fails only if it fails 2 of 3 runs.

Quarantined, measured but not gated (0)

Unstable (1)

  • crop-none-px-r0-root-z100: tracking 0.04, pressJump 0, drop 40.03, reload 40.03, render 39.98, renderKey -, undo true, teleport true / tracking 0.04, pressJump 0, drop 0.06, reload 0.06, render 0.03, renderKey -, undo true, teleport true / tracking 0.04, pressJump 0, drop 0.06, reload 0.06, render 0.03, renderKey -, undo true, teleport true

@miguel-heygen
miguel-heygen added this pull request to the merge queue Oct 19, 2026
Merged via the queue into main with commit b1fe8dd Oct 19, 2026
71 checks passed
@miguel-heygen
miguel-heygen deleted the chore/cli-drop-unused-formatter branch October 19, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants