From 80259e1aa27073ff2c51607d4520f1d9c804f2c8 Mon Sep 17 00:00:00 2001 From: Victor Savkin Date: Wed, 18 May 2022 10:36:02 -0400 Subject: [PATCH] feat(core): make nx prefix customizable --- packages/nx/src/utils/output.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/nx/src/utils/output.ts b/packages/nx/src/utils/output.ts index 901432a8cba94..43905c1e13aca 100644 --- a/packages/nx/src/utils/output.ts +++ b/packages/nx/src/utils/output.ts @@ -36,6 +36,7 @@ if (isCI() && !forceColor) { class CLIOutput { readonly X_PADDING = ' '; + cliName = 'NX'; /** * Longer dash character which forms more of a continuous line when place side to side @@ -95,12 +96,12 @@ class CLIOutput { let nxPrefix = ''; if (chalk[color]) { nxPrefix = `${chalk[color]('>')} ${chalk.reset.inverse.bold[color]( - ' NX ' + ` ${this.cliName} ` )}`; } else { nxPrefix = `${chalk.keyword(color)( '>' - )} ${chalk.reset.inverse.bold.keyword(color)(' NX ')}`; + )} ${chalk.reset.inverse.bold.keyword(color)(` ${this.cliName} `)}`; } return `${nxPrefix} ${text}`; }