File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import minimist from 'minimist' ;
2- import { green , red } from 'colorette' ;
2+ import c from 'colorette' ;
33import path from 'path' ;
44import type { DocsGenerateOptions } from './types' ;
55import { generate } from './generate' ;
@@ -60,7 +60,7 @@ export async function run(config: { cwd: string; args: string[] }) {
6060 }
6161 } catch ( e ) {
6262 if ( ! args . silent ) {
63- console . error ( red ( `\n${ emoji ( `❌` ) } DocGen ${ e } \n` ) ) ;
63+ console . error ( c . red ( `\n${ emoji ( `❌` ) } DocGen ${ e } \n` ) ) ;
6464 }
6565 process . exit ( 1 ) ;
6666 }
@@ -75,7 +75,7 @@ function getTsconfigPath(cwd: string, cliTsConfigPath: string) {
7575
7676function logOutput ( outputPath : string | undefined ) {
7777 if ( outputPath ) {
78- console . log ( green ( `${ emoji ( `✔️` ) } DocGen Output:` ) , outputPath ) ;
78+ console . log ( c . green ( `${ emoji ( `✔️` ) } DocGen Output:` ) , outputPath ) ;
7979 }
8080}
8181
You can’t perform that action at this time.
0 commit comments