Skip to content

Move build-only tooling out of runtime dependencies - #319

Merged
eluce2 merged 1 commit into
mainfrom
fix/trim-runtime-deps
Dec 1, 2026
Merged

eluce2 merged 1 commit into
mainfrom
fix/trim-runtime-deps

Conversation

@eluce2

@eluce2 eluce2 commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A user reported a ~700 MB node_modules in a freshly scaffolded app. Part of that came from build-only tooling listed as runtime dependencies in published packages: @tanstack/vite-config brings in vite-plugin-dts → api-extractor → a second TypeScript (5.4.2) plus lodash.

  • @proofkit/fmdapi: moved @tanstack/vite-config, vite and dotenv (used only by tests and scripts) to devDependencies. Removed chalk, commander and ts-morph, which nothing in the package imports anymore. Runtime deps are now @standard-schema/spec, fs-extra and zod.
  • @proofkit/typegen: moved @tanstack/vite-config and vite to devDependencies. Its source never imports either one.
  • @proofkit/better-auth was already fixed on main.

The other part of the size, a downloaded Node runtime from devEngines.runtime in scaffolded apps, comes from the CLI. That fix is in proofkit-private.

Testing

  • fmdapi: pnpm build, pnpm test (54 passed), pnpm typecheck
  • typegen: pnpm build, pnpm test (36 passed), pnpm typecheck

Summary by CodeRabbit

  • Chores
    • Updated package setup to remove unused packages and keep development tools separate from those needed at runtime.
    • Adjusted runtime package requirements for the API package, including adding packages it needs to operate.

fmdapi and typegen listed @tanstack/vite-config and vite as runtime
dependencies, pulling vite-plugin-dts, api-extractor and an extra
TypeScript into consumer installs. fmdapi also drops unused chalk,
commander and ts-morph, and moves dotenv to dev-only.
@changeset-bot

changeset-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5fb0443

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@proofkit/fmdapi Patch
@proofkit/typegen Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
proofkit-docs Ready Ready Preview Dec 1, 2026 12:53am UTC

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Dec 1, 2026

Copy link
Copy Markdown

Open in StackBlitz

@proofkit/better-auth

pnpm add https://pkg.pr.new/@proofkit/better-auth@319

@proofkit/fmdapi

pnpm add https://pkg.pr.new/@proofkit/fmdapi@319

@proofkit/fmodata

pnpm add https://pkg.pr.new/@proofkit/fmodata@319

@proofkit/typegen

pnpm add https://pkg.pr.new/@proofkit/typegen@319

@proofkit/webviewer

pnpm add https://pkg.pr.new/@proofkit/webviewer@319

commit: 5fb0443

@eluce2
eluce2 merged commit 094fb1b into main Dec 1, 2026
17 of 18 checks passed

This branch was successfully deployed

1 active deployment
Preview — 5fb04437 Deployed Dec 1, 2026 by vercel[bot]
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.

1 participant