Repository navigation
feat: restore deprecated TypeScript 7.0 tsgo CLI backend - #331
Merged
Merged
Conversation
commit: |
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.
AI usage
Description
The
tsgogenerator now uses the declaration emit API from TypeScript 7.1+, so TypeScript 7.0 (supported in v0.28 through thetsgoCLI) stopped working.This restores the v0.28 CLI backend as a deprecated fallback. If the installed
typescriptis 7.0.x,tsgoruns the CLI. Otherwise it uses the 7.1+ API. With 7.0, the plugin logs a deprecation warning instead of the generic experimental warning. The backend will be removed in the next minor.The CLI backend does not support custom languages, and among the
tsgo.*options onlytsgo.pathapplies. Here it points to thetsgoexecutable.@typescript/native-previewis not supported.Linked Issues
Additional context
src/generator/tsgo-cli.tsis mostly unchanged from v0.28.8. It has not been run against a real TypeScript 7.0 install. Only mocked tests cover it.