Migrate to TypeScript 7 (native preview)#7377
Open
waldekmastykarz wants to merge 2 commits into
Open
Conversation
waldekmastykarz
force-pushed
the
waldekmastykarz/migrate-typescript-7
branch
from
May 29, 2026 12:13
f808fcd to
af12783
Compare
- Replace typescript@5.9.3 with @typescript/native-preview (tsgo) - Remove tsc-watch dependency (tsgo has built-in --watch) - Update build script to use tsgo instead of tsc - Update watch script to use tsgo --watch - Update moduleResolution from 'Node' to 'bundler' (node10 removed in TS7) - Add explicit types for mocha and node in tsconfig - Fix globalThis index access in Command.ts - Fix zod EnumLike import (not in exports map with bundler resolution) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
waldekmastykarz
force-pushed
the
waldekmastykarz/migrate-typescript-7
branch
from
May 29, 2026 12:16
af12783 to
eabf404
Compare
waldekmastykarz
marked this pull request as ready for review
June 24, 2026 06:42
waldekmastykarz
marked this pull request as draft
June 24, 2026 06:58
waldekmastykarz
marked this pull request as ready for review
June 24, 2026 07:08
- Take sinon ^22.0.0 from main, keep tsc-watch removed (replaced by tsgo watch) - Fix zod.ts type cast inconsistency after merge - Regenerate npm-shrinkwrap.json Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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
Migrates the project to compile with TypeScript 7 (
@typescript/native-previewbeta, Go-based compiler).Changes
moduleResolution: "Node"→"bundler"(node10 strategy removed in TS7); addedtypes: ["mocha", "node"]globaltoanyfor.itaccess (globalThis no longer has implicit index signature)zod/v4/core/util.cjswith inlineEnumLiketype; added cast for stricter type inference oncoercedEnum@typescript/native-previewas dev dependencyVerification
npm run build)fsUtil.ts, unrelated)tsgo --noEmitreports 0 errors