Repository navigation
Closed
Description
Why this is blocked
Root tsc is already TypeScript 7.0.2 (native tsc via @typescript/typescript-linux-x64). Website still pins typescript@6.0.3 because the docsite and its plugins import the JavaScript compiler API, which typescript@7.0.2 no longer exports.
Dependabot #606 (website 6.0.3 → 7.0.2) was closed. Ignore PR: #611. Proven in a scratch worktree on the #606 head after pnpm install:
| Tool | Installed | Peer / contract | TS 7.0.2? | Evidence |
|---|---|---|---|---|
website/rspress.config.ts |
import ts from 'typescript' |
readConfigFile / sys / flattenDiagnosticMessageText |
No | pnpm --filter @agent-bundle/docs typecheck — TS2339 on typeof import(".../typescript@7.0.2/.../lib/version") |
twoslash |
0.3.9 (latest) | ^5.5.0 || ^6.0.0 |
No | twoslasher('const x: number = 1', 'ts') → TypeError: Cannot read properties of undefined (reading 'readFile') (ts.sys) |
@rspress/plugin-twoslash |
2.0.21 (latest) | typescript: ^6.0.3 |
No | same twoslash crash; no newer release |
typedoc |
0.28.20 (latest; also latest via @rspress/plugin-typedoc@2.0.21) |
5.0.x || … || 6.0.x |
No | import('typedoc') → TypeError: Cannot read properties of undefined (reading 'PropertyDeclaration') |
| TypeDoc roadmap | TypeStrong/typedoc#3098 | targeting TS 7.1, not 7.0 | not yet | maintainer: beta around 7.1 RC |
A typescript-5 alias on the website would fix rspress.config.ts typecheck only. Twoslash and TypeDoc still import('typescript') and crash at docs-build time. No released version accepts 7.
What must change before website can move to TypeScript 7
- TypeDoc ships a release whose peer includes
7.xand that runs against the TS 7.1 JS/native API (TypeStrong/typedoc#3098). Then bump@rspress/plugin-typedoc(today pinstypedoc@0.28.20). - twoslash ships a release whose peer includes
7.xand that can type-query withoutts.sys/ the old compiler API. Then@rspress/plugin-twoslashmust widen itstypescript: ^6.0.3peer. website/rspress.config.tsreadSourceMappedPathsmust stop importing the compiler API fromtypescript(use the existingtypescript-5alias, or dropreadConfigFilefor a JSONC parse).- Remove the Dependabot
ignorefortypescriptmajors in.github/dependabot.yml. - Bump
websitetypescriptto 7.x and runpnpm docs:site:build(typecheck + Rspress + TypeDoc + twoslash).
Already on TS 7 (do not regress)
- Root
devDependencies.typescriptis 7.0.2.pnpm typecheckruns that nativetscfor the root tsconfig, workbench,create-agent-bundle, andrsc-markdown-stream. - Package AST/compiler-API work already uses
typescript-5(npm:typescript@5.9.3) inpackages/agent-bundle(src/routes/{syntax,input-schema,typegen-program,...}.ts). @rslib/core@1.0.0DTS (dts: true→rsbuild-plugin-dts,tsc/tsgo, not API Extractor unlessdts.bundle) peers^5 \|\| ^6 \|\| ^7. Release gates on build(deps-dev): bump typescript from 6.0.3 to 7.0.2 #606 were green.@rstest/core@0.11.12does not importtypescript.scripts/check-declaration-imports.mjsparses.d.tstext; no compiler API.attw@0.18.5vendors its owntypescript@5.6.1-rc.
Metadata
Metadata
Assignees
Labels
No labels
Activity
ScriptedAlchemy commentedon Sep 5, 2026
Tracker reconciliation (owner audit 2026-09-05 17:11 UTC): correctly blocked on TypeDoc/twoslash. Root typechecking already uses TS 7.0.2; that is not a reason to force the docsite.
ScriptedAlchemy commentedon Sep 6, 2026
Website
tscnow runs native TypeScript 7.0.2 whilerspress.config.tsimports thetypescript-6JS compiler API.The pnpm hook and scoped overrides keep TypeDoc/twoslash on TypeScript 6.0.3, so those consumers never resolve TypeScript 7.