Upgrade TypeScript to 7 - #46
Open
woksin wants to merge 1 commit into
Open
Conversation
Update Documentation to TypeScript 7 (the native compiler) for improved build/typecheck performance. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
Bumps the only concrete
typescriptdependency in the Documentation repo to the TypeScript 7 native (Go) compiler.Packages changed (1)
Source/package.json(devDependencies)typescript5.7.27.0.2No other
package.jsonin the repo declares a concretetypescriptdependency.web/package.json(the Astro site built in CI) andSource/docs/Documentation/test-storybook/package.jsondo not declaretypescriptdirectly, so they were left untouched.@types/*and other packages were not modified. Notypescriptpeer-dependency lower-bound ranges exist to preserve.Package manager
Sourceis a Yarn 4.5.3 (Corepack) project. Lockfiles are git-ignored in this repo (yarn.lock,package-lock.json), so this PR contains only thepackage.jsonchange — no lockfile diff.Verification result — blocker
TypeScript 7.0.2 works as a CLI drop-in (
tsc --version→Version 7.0.2), but the publishedtypescript@7.0.2native package no longer ships the compiler library API — it contains onlylib/tsc.jsplus a native-binary launcher and per-platform optional-dependency binaries.require('typescript').createProgramisundefined.Consequences for the
Sourceproject:yarn installfails — Yarn 4's builtincompat/typescriptpatch expects the TS 5.x file layout (lib/_tsc.js) and errors withENOENT ... lib/_tsc.json the new package shape.yarn build/build:tswould fail —Sourcedrives its build throughtypedoc,typedoc-plugin-markdown, andts-node/esm, all of which consume the TypeScript compiler API as a library; that API is absent in TS7.typedocalso peer-requires~5.xand reports the mismatch.These are fundamental to the TS7 native package (CLI-only), not fixable by a config tweak, so the version bump is kept and flagged for human review.
CI impact
None expected. The
docs-site.ymlworkflow buildsDocumentation/web(Astro), which does not declaretypescriptand resolves it transitively (~5.xviatypedoc). TheSourceproject is not built in CI, so CI should remain green despite theSourcetoolchain incompatibility above.Workflow changes
None. No workflow under
.github/workflows/pins atypescriptversion or installstscexplicitly.🤖 Generated with Claude Code