Skip to content

refactor(wb): remove deprecated @typescript/native-preview (tsgo) typecheck fallback#928

Merged
exKAZUu merged 1 commit into
mainfrom
remove-native-preview-support
Jul 12, 2026
Merged

refactor(wb): remove deprecated @typescript/native-preview (tsgo) typecheck fallback#928
exKAZUu merged 1 commit into
mainfrom
remove-native-preview-support

Conversation

@exKAZUu

@exKAZUu exKAZUu commented Jul 12, 2026

Copy link
Copy Markdown
Member

Customer Summary

  • No user-visible changes for repositories managed by wbfy. Repositories still depending on the deprecated @typescript/native-preview preview should run wbfy (which migrates them to TypeScript 7) instead of relying on wb typecheck's tsgo fallback.

Technical Summary

  • Removed the @typescript/native-previewtsgo --noEmit branch from buildTypeScriptTypeCheckCommands in packages/wb/src/commands/typecheck.ts; type checking now always uses tsc from the typescript package.

Why

Testing

  • yarn verify (type checking and linting) — passed with no errors.

…echeck fallback

TypeScript 7 ships the native compiler as the `typescript` package and
wbfy removes `@typescript/native-preview` from all repositories, so the
tsgo fallback is dead code.

Co-authored-by: WillBooster (Claude Code) <agent@willbooster.com>
@exKAZUu exKAZUu self-assigned this Jul 12, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the deprecated @typescript/native-preview dependency check from the TypeScript type-checking command builder, as TypeScript 7 now ships the native compiler directly. The reviewer suggested removing the added explanatory comment because it violates the repository style guide, which advises writing comments only for hard-to-understand code.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +85 to 88
// TypeScript 7 ships the native compiler as `typescript` (`tsc`); wbfy removes the
// deprecated `@typescript/native-preview` (tsgo) preview from all repos, so repos
// still on the preview should run wbfy instead of relying on a tsgo fallback here.
if (project.hasOwnDependency('typescript')) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

According to the repository style guide, comments should only be written for hard-to-understand code. Since checking for the 'typescript' dependency is straightforward and self-explanatory, this comment is redundant and can be removed.

  if (project.hasOwnDependency('typescript')) {
References
  1. Write comments and JSDoc only for hard-to-understand code: explain "why" in comments and "what" in JSDoc. (link)

@exKAZUu exKAZUu merged commit 721a3a4 into main Jul 12, 2026
7 checks passed
@exKAZUu exKAZUu deleted the remove-native-preview-support branch July 12, 2026 13:21
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.

1 participant