chore(cli): replace chalk with picocolors (#10777)

This commit is contained in:
neverland
2022-07-02 22:51:53 +08:00
committed by GitHub
parent 8256fdc927
commit 28e8b72ccd
6 changed files with 17 additions and 17 deletions

View File

@@ -1,10 +1,10 @@
import ora from 'ora';
import chalk from 'chalk';
import color from 'picocolors';
import consola from 'consola';
import { ROOT } from '../common/constant.js';
export function slimPath(path: string) {
return chalk.yellow(path.replace(ROOT, ''));
return color.yellow(path.replace(ROOT, ''));
}
export { ora, consola };