File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/nx-plugin/src/executors/internal Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 11import { logger } from '@nx/devkit' ;
2- import ansis from 'ansis ' ;
2+ import chalk from 'chalk ' ;
33import type { ProcessConfig } from '../../internal/execute-process.js' ;
44
55export function createCliCommandString ( options ?: {
@@ -22,13 +22,16 @@ export function formatCommandLog(
2222 if ( env ) {
2323 const envVars = Object . entries ( env ) . map (
2424 ( [ key , value ] ) =>
25- `${ ansis . green ( key ) } ="${ ansis . blueBright ( value . replaceAll ( '"' , '' ) ) } "` ,
25+ `${ chalk . green ( key ) } ="${ chalk . blueBright ( value . replaceAll ( '"' , '' ) ) } "` ,
2626 ) ;
27+ // eslint-disable-next-line functional/immutable-data
2728 logElements . push ( ...envVars ) ;
2829 }
29- logElements . push ( ansis . cyan ( command ) ) ;
30+ // eslint-disable-next-line functional/immutable-data
31+ logElements . push ( chalk . cyan ( command ) ) ;
3032 if ( args . length > 0 ) {
31- logElements . push ( ansis . white ( args . join ( ' ' ) ) ) ;
33+ // eslint-disable-next-line functional/immutable-data
34+ logElements . push ( chalk . white ( args . join ( ' ' ) ) ) ;
3235 }
3336 return logElements . join ( ' ' ) ;
3437}
You can’t perform that action at this time.
0 commit comments