[PR #28082] chore: add TypeScript native preview for type checking #31946

Closed
opened 2026-02-21 20:50:27 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/28082

State: closed
Merged: No


Fixes #28438

Summary

Replace tsc with tsgo (TypeScript native preview) in the type-check script and add @typescript/native-preview package as a dev dependency. This provides faster type checking performance using TypeScript's new native compiler.

Changes:

  • Updated type-check script in package.json from tsc --noEmit to tsgo --noEmit
  • Added @typescript/native-preview@7.0.0-dev.20251111.1 as a dev dependency

Benefits:

  • Significantly faster type checking performance
  • Compatible with existing TypeScript codebase
  • Drop-in replacement for tsc

Screenshots

N/A - CLI tool change

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/28082 **State:** closed **Merged:** No --- Fixes #28438 ## Summary Replace `tsc` with `tsgo` (TypeScript native preview) in the type-check script and add `@typescript/native-preview` package as a dev dependency. This provides faster type checking performance using TypeScript's new native compiler. **Changes:** - Updated `type-check` script in `package.json` from `tsc --noEmit` to `tsgo --noEmit` - Added `@typescript/native-preview@7.0.0-dev.20251111.1` as a dev dependency **Benefits:** - Significantly faster type checking performance - Compatible with existing TypeScript codebase - Drop-in replacement for `tsc` ## Screenshots N/A - CLI tool change ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:50:27 -05:00
yindo closed this issue 2026-02-21 20:50:27 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31946