@tianyio/quality-helper
Version:
A comprehensive quality helper tool for project scaffolding and management
25 lines (24 loc) • 758 B
TypeScript
import { ArchitectureType, ProjectType } from '../types.ts';
import { ConfigFileInfo } from './ConfigService.ts';
/**
* 配置文件服务类
* 负责处理单个配置文件的更新和特殊文件处理
*/
export declare class FileService {
private templatesDir;
private mergeService;
private buildToolsService;
constructor(templatesDir: string);
/**
* 更新单个配置文件
*/
updateConfigFile(config: ConfigFileInfo, projectRoot: string, rootPath: string, architecture: ArchitectureType, projectType: ProjectType): Promise<boolean>;
/**
* 自动选择更新模式
*/
private getAutoUpdateMode;
/**
* 更新 .pnpmrc 文件或 .npmrc 文件
*/
private getAutoUpdateModeOfNpmrc;
}