Skip to content

Upgrade TypeScript compiler to 7.0.2 - #2767

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

Upgrade TypeScript compiler to 7.0.2#2767
ConnorQi01 wants to merge 7 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.
  • Update the gulp and webpack compilation paths for the TS7 CLI.
  • Replace gulp-preprocess with line-preserving preprocessing so conditional compilation does not shift generated JavaScript source positions.
  • Remove unused or incompatible build dependencies, including @typescript/native-preview, gulp-typescript, ts-loader, ts-node, gulp-preprocess, and gulp-sourcemaps.
  • Keep ESLint enabled through the compatible TypeScript 6 API.
  • Resolve CommonJS import compatibility exposed by TypeScript 7 without launching a real browser in tests.
  • Remove the stale reactNative.publishToExpHost registered-command expectation; the command is absent from both source and the extension manifest.
  • Merge the latest master, including current dependency security fixes.

Validation

  • npm ci passed.
  • npm run build passed with 0 errors and 158 existing warnings.
  • npx gulp webpack-bundle passed.
  • npm test passed: 318 tests, 0 failures, 1 skipped. The commandsRegistered and stubbed browser-launch tests pass.
  • npx gulp passed.
  • npm run smoke-build passed; the VSIX contains 106 files and is 4.79 MB.
  • Source-map verification maps generated rn-extension.js:56 back to rn-extension.ts:13.
  • Process snapshots before and after validation showed no newly retained Node, ADB, VS Code, or Extension Host processes.
  • Pre-commit Prettier and ESLint checks 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
@EmmaYuan1015

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

@ConnorQi01

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.

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 compiler to 7.0.2

2 participants