@ts-dev-tools/core
Version:
TS dev tools Core
12 lines (11 loc) • 614 B
TypeScript
import { PackageManagerType } from "./package-manager/PackageManagerType";
export { PackageManagerType } from "./package-manager/PackageManagerType";
export declare class PackageManagerService {
private constructor();
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 getAdapter;
}