You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.x and that runs against the TS 7.1 JS/native API (TypeStrong/typedoc#3098). Then bump @rspress/plugin-typedoc (today pins typedoc@0.28.20).
twoslash ships a release whose peer includes 7.x and that can type-query without ts.sys / the old compiler API. Then @rspress/plugin-twoslash must widen its typescript: ^6.0.3 peer.
website/rspress.config.tsreadSourceMappedPaths must stop importing the compiler API from typescript (use the existing typescript-5 alias, or drop readConfigFile for a JSONC parse).
Remove the Dependabot ignore for typescript majors in .github/dependabot.yml.
Bump websitetypescript to 7.x and run pnpm docs:site:build (typecheck + Rspress + TypeDoc + twoslash).
Already on TS 7 (do not regress)
Root devDependencies.typescript is 7.0.2. pnpm typecheck runs that native tsc for the root tsconfig, workbench, create-agent-bundle, and rsc-markdown-stream.
Package AST/compiler-API work already uses typescript-5 (npm:typescript@5.9.3) in packages/agent-bundle (src/routes/{syntax,input-schema,typegen-program,...}.ts).
Why this is blocked
Root
tscis already TypeScript 7.0.2 (nativetscvia@typescript/typescript-linux-x64). Website still pinstypescript@6.0.3because the docsite and its plugins import the JavaScript compiler API, whichtypescript@7.0.2no longer exports.Dependabot #606 (
website6.0.3 → 7.0.2) was closed. Ignore PR: #611. Proven in a scratch worktree on the #606 head afterpnpm install:website/rspress.config.tsimport ts from 'typescript'readConfigFile/sys/flattenDiagnosticMessageTextpnpm --filter @agent-bundle/docs typecheck—TS2339ontypeof import(".../typescript@7.0.2/.../lib/version")twoslash^5.5.0 || ^6.0.0twoslasher('const x: number = 1', 'ts')→TypeError: Cannot read properties of undefined (reading 'readFile')(ts.sys)@rspress/plugin-twoslashtypescript: ^6.0.3typedoc@rspress/plugin-typedoc@2.0.21)5.0.x || … || 6.0.ximport('typedoc')→TypeError: Cannot read properties of undefined (reading 'PropertyDeclaration')A
typescript-5alias on the website would fixrspress.config.tstypecheck only. Twoslash and TypeDoc stillimport('typescript')and crash at docs-build time. No released version accepts 7.What must change before website can move to TypeScript 7
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).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).ignorefortypescriptmajors in.github/dependabot.yml.websitetypescriptto 7.x and runpnpm docs:site:build(typecheck + Rspress + TypeDoc + twoslash).Already on TS 7 (do not regress)
devDependencies.typescriptis 7.0.2.pnpm typecheckruns that nativetscfor the root tsconfig, workbench,create-agent-bundle, andrsc-markdown-stream.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.