feat(cli): improve changelog logging

This commit is contained in:
陈嘉涵
2020-01-15 13:11:20 +08:00
parent 67e2a2759c
commit a98e9b29f9
3 changed files with 20 additions and 5 deletions
+3 -2
View File
@@ -1,3 +1,4 @@
import ora from 'ora';
import chalk from 'chalk';
import logger from 'signale';
import { ROOT } from '../common/constant';
@@ -35,8 +36,8 @@ export function getInteractiveLogger() {
return interactive;
}
export function simplifyPath(path: string) {
export function slimPath(path: string) {
return chalk.yellow(path.replace(ROOT, '.'));
}
export { logger };
export { ora, logger };