fix(core): stream without prefixes showing tui#33194
fix(core): stream without prefixes showing tui#33194FrozenPandaz merged 1 commit intonrwl:masterfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
👷 Deploy request for nx-docs pending review.Visit the deploys page to approve it
|
|
View your CI Pipeline Execution ↗ for commit 89303fe
☁️ Nx Cloud last updated this comment at |
There was a problem hiding this comment.
Nx Cloud is proposing a fix for your failed CI:
These changes fix formatting inconsistencies by removing trailing commas from function parameters and array elements in the shouldUseTui function. We aligned the code with the project's Prettier configuration to ensure consistent code style across the codebase.
Suggested Fix changes
diff --git a/packages/nx/src/tasks-runner/is-tui-enabled.ts b/packages/nx/src/tasks-runner/is-tui-enabled.ts
index 9447dd4f27..293bed4906 100644
--- a/packages/nx/src/tasks-runner/is-tui-enabled.ts
+++ b/packages/nx/src/tasks-runner/is-tui-enabled.ts
@@ -24,7 +24,7 @@ export function isTuiEnabled() {
export function shouldUseTui(
nxJson: NxJsonConfiguration,
nxArgs: NxArgs,
- skipCapabilityCheck = process.env.NX_TUI_SKIP_CAPABILITY_CHECK === 'true',
+ skipCapabilityCheck = process.env.NX_TUI_SKIP_CAPABILITY_CHECK === 'true'
) {
// If the current terminal/environment is not capable of displaying the TUI, we don't run it
const isWindows = process.platform === 'win32';
@@ -34,7 +34,7 @@ export function shouldUseTui(
if (typeof nxArgs.tui === 'boolean') {
if (nxArgs.tui && !isCapable) {
logger.warn(
- 'Nx Terminal UI was not enabled as it is not supported in this environment.',
+ 'Nx Terminal UI was not enabled as it is not supported in this environment.'
);
return false;
}
@@ -47,7 +47,7 @@ export function shouldUseTui(
if (
['static', 'stream', 'stream-without-prefixes', 'dynamic-legacy'].includes(
- nxArgs.outputStyle,
+ nxArgs.outputStyle
)
) {
// If the user has specified a non-TUI output style, we disable the TUI
Or Apply changes locally with:
npx nx-cloud apply-locally kUsG-GCYD
Apply fix locally with your editor ↗ View interactive diff ↗
🎓 To learn more about Self Healing CI, please visit nx.dev
test(nx): add stream without prefix case fix(nx): stream check fix(nx): set prefix explicit false style(nx): formatting
3a47a26 to
89303fe
Compare
|
Thank you for your contribution! 🎉 LGTM |
|
No worries. Thanks for quick review @AgentEnder @FrozenPandaz |
<!-- Please make sure you have read the submission guidelines before posting an PR --> <!-- https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr --> <!-- Please make sure that your commit message follows our format --> <!-- Example: `fix(nx): must begin with lowercase` --> <!-- If this is a particularly complex change or feature addition, you can request a dedicated Nx release for this pull request branch. Mention someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they will confirm if the PR warrants its own release for testing purposes, and generate it for you if appropriate. --> ## Current Behavior When using `--output-style=stream-without-prefixes` nx incorrectly shows the TUI instead of streaming ## Expected Behavior When using `--output-style=stream-without-prefixes`, nx should stream with no prefixes just like it does with `--output-style=stream` ## Related Issue(s) Fixes #32535 Co-authored-by: Hugo Burton <hugo.burton@westpac.com.au> (cherry picked from commit 4a4b780)
|
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. |
Current Behavior
When using
--output-style=stream-without-prefixesnx incorrectly shows the TUI instead of streamingExpected Behavior
When using
--output-style=stream-without-prefixes, nx should stream with no prefixes just like it does with--output-style=streamRelated Issue(s)
Fixes #32535