UNPKG

@tianyio/quality-helper

Version:

A comprehensive quality helper tool for project scaffolding and management

29 lines (28 loc) 923 B
/** * 检测可用的包管理器 */ export declare function detectPackageManager(projectPath: string): Promise<string>; /** * 安装项目依赖 */ export declare function installProjectDependencies(projectPath: string): Promise<void>; /** * 安装指定依赖 */ export declare function installDependencies(projectPath: string, dependencies: string[], isDev?: boolean): Promise<void>; /** * 更新依赖到最新版本 */ export declare function updateDependenciesToLatest(projectPath: string): Promise<void>; /** * 清理依赖 */ export declare function cleanDependencies(projectPath: string): Promise<void>; /** * 检查依赖是否已安装 */ export declare function checkDependencyInstalled(projectPath: string, dependency: string): Promise<boolean>; /** * 获取已安装依赖的版本 */ export declare function getInstalledVersion(projectPath: string, dependency: string): Promise<string | null>;