@@ -20,7 +20,7 @@ const {
2020} = require ( './options' ) ;
2121const lookupFiles = require ( './lookup-files' ) ;
2222const commands = require ( './commands' ) ;
23- const ansi = require ( 'ansi-colors ' ) ;
23+ const pc = require ( 'picocolors ' ) ;
2424const { repository, homepage, version, discord} = require ( '../../package.json' ) ;
2525const { cwd} = require ( '../utils' ) ;
2626
@@ -60,7 +60,7 @@ exports.main = (argv = process.argv.slice(2), mochaArgs) => {
6060 . fail ( ( msg , err , yargs ) => {
6161 debug ( 'caught error sometime before command handler: %O' , err ) ;
6262 yargs . showHelp ( ) ;
63- console . error ( `\n${ symbols . error } ${ ansi . red ( 'ERROR:' ) } ${ msg } ` ) ;
63+ console . error ( `\n${ symbols . error } ${ pc . red ( 'ERROR:' ) } ${ msg } ` ) ;
6464 process . exit ( 1 ) ;
6565 } )
6666 . help ( 'help' , 'Show usage information & exit' )
@@ -69,10 +69,10 @@ exports.main = (argv = process.argv.slice(2), mochaArgs) => {
6969 . alias ( 'version' , 'V' )
7070 . wrap ( process . stdout . columns ? Math . min ( process . stdout . columns , 80 ) : 80 )
7171 . epilog (
72- `${ ansi . reset ( "Mocha Resources" ) }
73- Chat: ${ ansi . magenta ( discord ) }
74- GitHub: ${ ansi . blue ( repository . url ) }
75- Docs: ${ ansi . yellow ( homepage ) }
72+ `${ pc . reset ( "Mocha Resources" ) }
73+ Chat: ${ pc . magenta ( discord ) }
74+ GitHub: ${ pc . blue ( repository . url ) }
75+ Docs: ${ pc . yellow ( homepage ) }
7676 `
7777 )
7878 . parserConfiguration ( YARGS_PARSER_CONFIG )
0 commit comments