chore(deps): upgrade to TypeScript 7.0.1-rc#585
Open
travis-hoover-glean wants to merge 1 commit into
Open
Conversation
Bumps typescript from ~5.9.3 to the 7.0.1-rc native (Go) compiler.
TypeScript 7.0 removes the `baseUrl` option (hard error TS5102). It is set
in three places here: our root tsconfig, the theme package tsconfig, and
@docusaurus/tsconfig (the upstream base we extend). Since an inherited
option can't be unset via `extends`, the base config is patched (pnpm
patch) to drop `baseUrl` + `paths`, and `paths: { "@site/*": ["./*"] }` is
re-declared locally in the root config where the alias is used.
Validation:
- pnpm build (CI gate): passes
- pnpm format:check / sidebar:check: pass
- tsc: 0 TS5102 errors; @site/* resolves
- changelog-generator tsc emit: 0 errors
The patch is a temporary bridge until @docusaurus/tsconfig ships without
baseUrl; remove patches/ and the patchedDependencies entry at that point.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
rwjblue-glean
approved these changes
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades
typescriptfrom~5.9.3to the 7.0.1-rc native (Go) compiler.TypeScript 7.0 removes the
baseUrloption (hard error TS5102).baseUrlwas set in three places: our roottsconfig.json, the theme package tsconfig, and@docusaurus/tsconfig(the upstream base weextends). Because an inherited option can't be unset viaextends, the base config is patched to dropbaseUrl+paths, andpaths: { "@site/*": ["./*"] }is re-declared locally in the root config where the alias is used.Changes
package.json:typescript→7.0.1-rc; addedpnpm.patchedDependenciespatches/@docusaurus__tsconfig@3.10.1.patch: removesbaseUrl+pathsfrom the base configtsconfig.json: dropbaseUrl; re-declarepaths: { "@site/*": ["./*"] }packages/docusaurus-theme-glean/tsconfig.json: dropbaseUrlValidation
pnpm build(CI gate): passes (27/27)pnpm format:check,pnpm sidebar:check: passtsc: 0TS5102baseUrl errors;@site/*resolveschangelog-generatortscemit: 0 errors (~5× faster: 1.9s → 0.37s)Notes
pnpm build) transpiles via swc/esbuild and never invokestsc, so this is not on the build critical path; the win is fastertypecheck+ editor.tsc --noEmitnow reports more errors (26 → 39) purely because TS 7 is stricter (verified: removingbaseUrlis behavior-neutral under 5.9.3). These are pre-existing latent issues (null/undefined narrowing, an implicit-any) andtscis not a CI gate. Can be cleaned up in a follow-up.@docusaurus/tsconfigships withoutbaseUrl; removepatches/+ thepatchedDependenciesentry then.Warning
typescript@7.0.1-rcis a release candidate. No stable programmatic API ships until 7.1; nothing here consumes the TS API.