feat(tsgo): support custom tsgo binary path#164
Merged
Conversation
Add support for specifying a custom tsgo binary path via `tsgo.path`
option. This is useful when managing tsgo externally (e.g., via Nix)
instead of using the bundled @typescript/native-preview package.
The tsgo option now accepts:
- `tsgo: true` - use bundled @typescript/native-preview (unchanged)
- `tsgo: { path: '/path/to/tsgo' }` - use custom binary path
Backward compatible with existing `tsgo: boolean` usage.
Closes sxzz#163
sxzz
approved these changes
Jan 18, 2026
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.
Summary
Add support for specifying a custom
tsgobinary path viatsgo.pathoption. This allows users who managetsgoexternally (e.g., via Nix) to use their own binary instead of the bundled@typescript/native-previewpackage.What Changed
tsgooption to acceptboolean | { path: string }TsgoOptionsResolvedinterface for internal handlingrunTsgofunction to accept custom path parameterUsage
Backward Compatibility
Existing
tsgo: booleanusage remains fully supported.Follow-up to #163 - implements the
tsgo.pathoption as discussed.