10000 Remove "--color=always" option for installs · strogo/rushstack@f046e4e · GitHub
[go: up one dir, main page]

Skip to content

Commit f046e4e

Browse files
committed
Remove "--color=always" option for installs
1 parent e8db1da commit f046e4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,9 @@ export class WorkspaceInstallManager extends BaseInstallManager {
292292
this.rushConfiguration,
293293
this.options
294294
);
295+
if (colors.enabled) {
296+
packageManagerEnv['FORCE_COLOR'] = '1';
297+
}
295298

296299
const commonNodeModulesFolder: string = path.join(
297300
this.rushConfiguration.commonTempFolder,
@@ -318,7 +321,7 @@ export class WorkspaceInstallManager extends BaseInstallManager {
318321
// Run "npm install" in the common folder
319322
// To ensure that the output is always colored, set the option "--color=always", even when it's piped.
320323
// Without this argument, certain text that should be colored (such as red) will appear white.
321-
const installArgs: string[] = ['install', '--color=always'];
324+
const installArgs: string[] = ['install'];
322325
this.pushConfigurationArgs(installArgs, options);
323326

324327
// eslint-disable-next-line no-console

0 commit comments

Comments
 (0)
0