@mornya/cli-libs
Version:
The project of the utilities for CLI.
10 lines (9 loc) • 450 B
TypeScript
declare type IArgs = Array<string | undefined>;
export interface IPackageManagerInfo {
isYarn: boolean;
globalModulePath: string;
}
export declare function run(cmd: string, args: IArgs, executor?: (message: string, error?: Error) => void, hasOutput?: boolean | undefined): boolean;
export declare function get(cmd: string, args: IArgs): string;
export declare function getPackageManagerInfo(rootPath: string): IPackageManagerInfo;
export {};