1
0
mirror of synced 2026-04-03 14:38:37 +08:00

chore(cli): 去除@vuepress/cli依赖

This commit is contained in:
roymondchen
2022-08-29 12:09:02 +08:00
committed by jia000
parent de8ef8dc58
commit f3c376a31f
7 changed files with 355 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import { allowTs, info } from '@vuepress/cli';
import { cac } from 'cac';
import chalk from 'chalk';
import { allowTs } from './utils/allowTs';
import { scripts } from './commands';
import { UserConfig } from './types';
@@ -37,8 +37,5 @@ export const cli = (defaultAppConfig: UserConfig): void => {
// register `dev` command
program.command('entry', 'Start development server').action(wrapCommand(scripts(defaultAppConfig)));
// register `info` command
program.command('info', 'Display environment information').action(wrapCommand(info));
program.parse(process.argv);
};