Skip to content

feat(js): add option for using tsgo compiler over tsc for build, typecheck#33821

Merged
leosvelperez merged 2 commits intonrwl:masterfrom
ajkarell:feat/tsgo-support
Dec 12, 2025
Merged

feat(js): add option for using tsgo compiler over tsc for build, typecheck#33821
leosvelperez merged 2 commits intonrwl:masterfrom
ajkarell:feat/tsgo-support

Conversation

@ajkarell
Copy link
Copy Markdown
Contributor

Adds a 'compiler' option to the @nx/js/typescript plugin configuration, with options 'tsc' and 'tsgo'. Affects both typecheck and build targets.

Current Behavior

The @nx/js/typescript plugin always uses tsc as the compiler, with no way to use the native tsgo preview.

Expected Behavior

The @nx/js/typescript plugin can be configured to use tsgo for building and typechecking.

Related Issue(s)

Related discussion #32591.

Adds 'compiler' option to @nx/js/typescript plugin configuration, with options 'tsc' and
'tsgo'. Affects both typecheck and build targets.
@ajkarell ajkarell requested a review from a team as a code owner December 11, 2025 11:19
@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 11, 2025

👷 Deploy request for nx-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit ff47b57

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Dec 12, 2025 10:28am

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Dec 12, 2025

View your CI Pipeline Execution ↗ for commit ff47b57

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 30m 22s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 27s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-12-12 12:47:46 UTC

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

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

Important

A new CI pipeline execution was requested that may update the conclusion below...

Nx Cloud has identified a possible root cause for your failed CI:

Our CI environment is experiencing failures due to missing or invalid Nx Cloud CI Access Token credentials. The similar-task-failure-detector confirmed these identical errors exist in the master branch, indicating this is a pre-existing environment configuration issue unrelated to the compiler configuration changes in this PR. External intervention is needed to configure proper CI credentials.

No code changes were suggested for this issue.

If the issue was transient, you can trigger a rerun by pushing an empty commit:

git commit --allow-empty -m "chore: trigger rerun"
git push

Nx Cloud View detailed reasoning on Nx Cloud ↗


🎓 Learn more about Self-Healing CI on nx.dev

Copy link
Copy Markdown
Member

@leosvelperez leosvelperez left a comment

Choose a reason for hiding this comment

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

Thank you!

@leosvelperez leosvelperez merged commit 60fffd3 into nrwl:master Dec 12, 2025
16 of 18 checks passed
FrozenPandaz pushed a commit that referenced this pull request Dec 15, 2025
… typecheck tasks (#33821)

Adds a 'compiler' option to the @nx/js/typescript plugin configuration,
with options 'tsc' and 'tsgo'. Affects both typecheck and build targets.

## Current Behavior

The `@nx/js/typescript` plugin always uses `tsc` as the compiler, with
no way to use the native `tsgo` preview.

## Expected Behavior

The `@nx/js/typescript` plugin can be configured to use `tsgo` for
building and typechecking.

## Related Issue(s)

Related discussion #32591.
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants