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
Migrate typechecking from the tsgo preview package to the official TypeScript 7 tsc binary.
Use the current typescript@7.0.2 package directly and remove the temporary TS6 compatibility alias because this repo does not need the old compiler API when declaration generation is pointed at the native TS7 executable.
Update tsdown to the latest 0.22.4 release and keep declaration builds on the TS7 native compiler path.
Validation
Verified latest TypeScript 7 guidance from the official announcement and current npm metadata for typescript, @typescript/typescript6, tsdown, and rolldown-plugin-dts
Review finding: this PR migrates the repo from tsgo/no-typescript to TypeScript 7 + tsc, but AGENTS.md still tells agents that the repo typechecks with tsgo, that typescript is not a dependency, and that there is no tsc fallback. That guidance becomes actively wrong after this merges and will steer future tooling/debug work incorrectly. Please update the Toolchain Snapshot in AGENTS.md as part of this tooling migration.
Addressed the AGENTS.md review comment in 0e7faca7e.
I also checked for remaining legacy TypeScript references:
First-party stale guidance is gone.
The only remaining tsgo string is the required upstream rolldown-plugin-dts/tsdown option key used to point declaration generation at the TypeScript 7 native executable.
The remaining @typescript/native-preview strings are transitive peer metadata in pnpm-lock.yaml, not direct dependencies.
Review pass on 0e7faca: the earlier AGENTS.md/toolchain guidance blocker is fixed. I rechecked the targeted tooling diff (package.json, tsdown.config.ts, AGENTS.md) and the PR is 22/22 green. No remaining actionable blockers found.
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
ready-for-humanValid work that needs human implementation, judgment, or maintainer merge
1 participant
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
Migrate typechecking from the
tsgopreview package to the official TypeScript 7tscbinary.Use the current
typescript@7.0.2package directly and remove the temporary TS6 compatibility alias because this repo does not need the old compiler API when declaration generation is pointed at the native TS7 executable.Update
tsdownto the latest0.22.4release and keep declaration builds on the TS7 native compiler path.Validation
typescript,@typescript/typescript6,tsdown, androlldown-plugin-dtspnpm install --strict-peer-dependenciesnode_modules/.bin/oxlint . --deny-warningsnode_modules/.bin/tsc -p tsconfig.jsonnode --experimental-strip-types scripts/layering/check.tsnode scripts/sync-mcp-metadata.mjs --checknode_modules/.bin/tsdown