feat(cli): using rslog (#12334)

This commit is contained in:
neverland
2023-10-02 21:34:03 +08:00
committed by GitHub
parent 53188a7093
commit 087ecda7b2
15 changed files with 48 additions and 60 deletions
-4
View File
@@ -1,10 +1,6 @@
import { createSpinner } from 'nanospinner';
import color from 'picocolors';
import { consola } from 'consola';
import { ROOT } from '../common/constant.js';
export function slimPath(path: string) {
return color.yellow(path.replace(ROOT, ''));
}
export { createSpinner, consola };
+2 -2
View File
@@ -1,4 +1,4 @@
import { consola } from './logger.js';
import { logger } from 'rslog';
import { execSync } from 'child_process';
import { getVantConfig } from './constant.js';
@@ -28,7 +28,7 @@ export function getPackageManager() {
}
export async function installDependencies() {
consola.info('Install Dependencies\n');
logger.info('Install Dependencies\n');
try {
const manager = getPackageManager();