Skip to content

chore: update TypeScript to 6.0 - #222

Merged
Jason3S merged 1 commit into
mainfrom
claude/typescript-6
Nov 10, 2026
Merged

Jason3S merged 1 commit into
mainfrom
claude/typescript-6

Conversation

@Jason3S

@Jason3S Jason3S commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Moves the typecheck from TypeScript 5.9 to 6.0. This is a step toward 7, which still needs Docusaurus to catch up.

Only pnpm --filter website typecheck uses tsc. The site build doesn't, so it isn't affected.

Changes

  • typescript: ~5.9.3 → ~6.0.3.
  • website/tsconfig.json: sets baseUrl to null and declares paths for @site/* itself. TypeScript 6 deprecates baseUrl and fails with TS5101, and @docusaurus/tsconfig@3.10.2 still sets it. With no baseUrl, an inherited paths resolves relative to the Docusaurus package folder, so we need our own. This also works unchanged on TypeScript 7, where baseUrl is removed.
  • @types/react: added as a direct dev dependency (^19.3.0). Without it, TypeScript 6 reports TS7016: Could not find a declaration file for module 'react'.

The lockfile changes are the TypeScript version and the peer-dependency entries that reference it.

Checked locally

  • pnpm --filter website typecheck passes on TypeScript 6.0.3.
  • pnpm build, pnpm lint and cspell pass.

- Bump typescript from ~5.9.3 to ~6.0.3.
- Override the baseUrl that @docusaurus/tsconfig sets, since TypeScript 6
  deprecates it, and declare the @site/* path in our own tsconfig.
- Add @types/react as a direct dev dependency; TypeScript 6 no longer
  finds it as a transitive dependency.
@Jason3S
Jason3S merged commit cf96f42 into main Nov 10, 2026
6 checks passed
@Jason3S
Jason3S deleted the claude/typescript-6 branch November 10, 2026 19:16
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