chore: update dependencies and refactor command execution
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { execaCommand, getPackages } from '@vben/node-utils';
|
||||
import { execa, getPackages } from '@vben/node-utils';
|
||||
|
||||
import { cancel, isCancel, select } from '@clack/prompts';
|
||||
|
||||
@@ -46,7 +46,7 @@ export async function run(options: RunOptions) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
execaCommand(`pnpm --filter=${selectPkg} run ${command}`, {
|
||||
execa('pnpm', [`--filter=${selectPkg}`, 'run', command], {
|
||||
stdio: 'inherit',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user