Skip to content

Commit 831fb94

Browse files
authored
fix): proper import method from colorette (#34)
1 parent 550a22b commit 831fb94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cli.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import minimist from 'minimist';
2-
import c from 'colorette';
2+
import { green, red } from 'colorette';
33
import path from 'path';
44
import type { DocsGenerateOptions } from './types';
55
import { 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(c.red(`\n${emoji(`❌`)}DocGen ${e}\n`));
63+
console.error(red(`\n${emoji(`❌`)}DocGen ${e}\n`));
6464
}
6565
process.exit(1);
6666
}
@@ -75,7 +75,7 @@ function getTsconfigPath(cwd: string, cliTsConfigPath: string) {
7575

7676
function logOutput(outputPath: string | undefined) {
7777
if (outputPath) {
78-
console.log(c.green(`${emoji(`✔️`)}DocGen Output:`), outputPath);
78+
console.log(green(`${emoji(`✔️`)}DocGen Output:`), outputPath);
7979
}
8080
}
8181

0 commit comments

Comments
 (0)