Skip to content

Upgrade TypeScript compiler to 7.0.2 - #2767

Open
ConnorQi01 wants to merge 3 commits into
masterfrom
dev/v-peq/typescript-7-rc
Open

Upgrade TypeScript compiler to 7.0.2#2767
ConnorQi01 wants to merge 3 commits into
masterfrom
dev/v-peq/typescript-7-rc

Conversation

@ConnorQi01

@ConnorQi01 ConnorQi01 commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

Upgrade the build compiler to TypeScript 7.0.2 while keeping TypeScript 6.0.2 available exclusively for tooling that still depends on the legacy compiler JavaScript API.

Changes

  • Use the official TypeScript 6 compatibility package as the root typescript dependency for ESLint and legacy tooling.
  • Add typescript-7 as an npm alias to TypeScript 7.0.2 and invoke its CLI for project compilation.
  • Remove unused root dependencies that cannot support TypeScript 7: @typescript/native-preview, gulp-typescript, ts-loader, and ts-node.
  • Keep ESLint enabled; it now uses the compatible TypeScript 6 API instead of being skipped.
  • Update the gulp and webpack compilation paths for the TS7 CLI and resolve affected CommonJS interop/import compatibility issues.
  • Merge the latest master, including current dependency security fixes.
  • Update the registered-command test expectation for the existing reactNative.publishToExpHost command.

Validation

  • npm ci passed using the configured Microsoft npm proxy for registry packages and GitHub HTTPS for brace-expansion#v5.0.8.
  • npm run build passed (including Prettier and ESLint: 0 errors; 158 existing warnings).
  • node .\node_modules\typescript-7\bin\tsc --noEmit -p tsconfig.json --pretty false passed.
  • npm test passed in the VS Code Extension Host.
  • Pre-commit hooks passed.

Closes #2764

@ConnorQi01 ConnorQi01 changed the title Upgrade TypeScript to 7.0.1 RC Upgrade TypeScript compiler to 7.0.2 Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Upgrade TypeScript to 7.0.1 RC

1 participant