mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-09 13:40:06 +00:00
fix: replace taskfile module
This commit is contained in:
@@ -3,6 +3,7 @@ import path from 'path';
|
||||
import { networkInterfaces } from 'os';
|
||||
import dotenv from 'dotenv';
|
||||
import chalk from 'chalk';
|
||||
import execa from 'execa';
|
||||
|
||||
export const isFunction = (arg: unknown): arg is (...args: any[]) => any =>
|
||||
typeof arg === 'function';
|
||||
@@ -147,3 +148,6 @@ export function warnConsole(message: any) {
|
||||
export function getCwdPath(...dir: string[]) {
|
||||
return path.resolve(process.cwd(), ...dir);
|
||||
}
|
||||
|
||||
export const run = (bin: string, args: any, opts = {}) =>
|
||||
execa(bin, args, { stdio: 'inherit', ...opts });
|
||||
|
Reference in New Issue
Block a user