UNPKG

gluegun

Version:

A delightful toolkit for building Node-powered CLIs.

18 lines (17 loc) 605 B
export declare type GluegunPackageManagerOptions = { dev?: boolean; dryRun?: boolean; dir?: string; force?: 'npm' | 'yarn'; }; export declare type GluegunPackageManagerResult = { success: boolean; command: string; stdout: string; error?: string; }; export declare type GluegunPackageManager = { add: (packageName: string | string[], options: GluegunPackageManagerOptions) => Promise<GluegunPackageManagerResult>; remove: (packageName: string | string[], options: GluegunPackageManagerOptions) => Promise<GluegunPackageManagerResult>; hasYarn: () => boolean; };