gtsoft-snail-job-admin/packages/scripts/src/commands/update-pkg.ts

6 lines
175 B
TypeScript
Raw Normal View History

2024-03-08 17:59:45 +08:00
import { execCommand } from '../shared';
export async function updatePkg(args: string[] = ['--deep', '-u']) {
execCommand('npx', ['ncu', ...args], { stdio: 'inherit' });
}