refactor(cli): remove execa dependency (#12205)

This commit is contained in:
neverland
2023-08-19 15:14:40 +08:00
committed by GitHub
parent 47950a1353
commit 5dc2f4dcd2
5 changed files with 23 additions and 90 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
import { execa } from 'execa';
import { consola } from './logger.js';
import { execSync } from 'child_process';
import { getVantConfig } from './constant.js';
@@ -34,7 +33,7 @@ export async function installDependencies() {
try {
const manager = getPackageManager();
await execa(manager, ['install', '--prod=false'], {
execSync(`${manager} install --prod=false`, {
stdio: 'inherit',
});