Migrate to TypeScript 7 (native preview)#7377
Draft
waldekmastykarz wants to merge 1 commit into
Draft
Conversation
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>
af12783 to
eabf404
Compare
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