UNPKG

@ts-dev-tools/core

Version:
13 lines (12 loc) 516 B
export declare enum PackageManagerType { yarn = "yarn", npm = "npm" } export declare class PackageManagerService { static detectPackageManager(dirPath: string): PackageManagerType; static addDevPackage(packageName: string, dirPath: string): Promise<void>; static isMonorepo(dirPath: string): Promise<boolean>; static isPackageInstalled(packageName: string, dirPath: string): Promise<boolean>; static getNodeModulesPath(dirPath: string): Promise<string>; private static execCommand; }