Skip to content

chore: enable skipLibCheck in the base tsconfig - #432

Merged
cuibonobo merged 1 commit into
mainfrom
chore/skip-lib-check
Oct 10, 2026
Merged

cuibonobo merged 1 commit into
mainfrom
chore/skip-lib-check

Conversation

@cuibonobo

Copy link
Copy Markdown
Member

Summary

pnpm run typecheck spent most of its time re-checking third-party declaration files: each of the 12 packages type-checked ~70k lines of .d.ts (@types/node, the DOM lib, vitest/vite; ~127k for blob-adapter-s3 with the AWS SDK), even packages with a few hundred lines of their own code.

This sets skipLibCheck: true in tsconfig.base.json and drops the now-redundant override from record-adapter-do-sqlite.

Wall time
Before ~27.8s
After ~9.8s

Spec

No behavior change. Emitted output is unaffected, so no changeset.

Verification

Ran all six pre-push checks: format:check, check:refs, lint, test, build, typecheck. All pass.

Notes for reviewers

skipLibCheck also skips hand-written .d.ts in the repo. The only ones (record-adapter-do-sqlite's worker-configuration.d.ts and tests/support/env.d.ts) were already skipped by that package's config. Sibling dist/*.d.ts are generated from source that is itself type-checked.

The remaining ~10s is mostly fixed per-process overhead (each package's tsc reloads the same lib types). Project references / tsc -b could cut that further, but it's a bigger change and probably not worth it at this size.

🤖 Generated with Claude Code

Every package's typecheck re-checked ~70k lines of third-party
declarations (@types/node, the DOM lib, vitest/vite) that no package
here authors. Skipping them cuts `pnpm run typecheck` from ~28s to
~10s. Generated dist/*.d.ts come from already-checked source, and the
only hand-written declarations (record-adapter-do-sqlite) were already
skipped, so its now-redundant override is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Oct 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 8d8a1d3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@cuibonobo
cuibonobo merged commit 0a9138c into main Oct 10, 2026
9 checks passed
@cuibonobo
cuibonobo deleted the chore/skip-lib-check branch October 10, 2026 12:52
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