File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import minimist from 'minimist' ;
2
- import c from 'colorette' ;
2
+ import { green , red } from 'colorette' ;
3
3
import path from 'path' ;
4
4
import type { DocsGenerateOptions } from './types' ;
5
5
import { generate } from './generate' ;
@@ -60,7 +60,7 @@ export async function run(config: { cwd: string; args: string[] }) {
60
60
}
61
61
} catch ( e ) {
62
62
if ( ! args . silent ) {
63
- console . error ( c . red ( `\n${ emoji ( `❌` ) } DocGen ${ e } \n` ) ) ;
63
+ console . error ( red ( `\n${ emoji ( `❌` ) } DocGen ${ e } \n` ) ) ;
64
64
}
65
65
process . exit ( 1 ) ;
66
66
}
@@ -75,7 +75,7 @@ function getTsconfigPath(cwd: string, cliTsConfigPath: string) {
75
75
76
76
function logOutput ( outputPath : string | undefined ) {
77
77
if ( outputPath ) {
78
- console . log ( c . green ( `${ emoji ( `✔️` ) } DocGen Output:` ) , outputPath ) ;
78
+ console . log ( green ( `${ emoji ( `✔️` ) } DocGen Output:` ) , outputPath ) ;
79
79
}
80
80
}
81
81
You can’t perform that action at this time.
0 commit comments