no-migration
Version:
CLI tool to manage migration changes and user changes separately for React Native miniapp projects
43 lines • 1.29 kB
TypeScript
import { ChangesSnapshot } from '../types';
export declare class FileManager {
static readonly MIGRATION_CHANGES_FILE = "migration-changes.json";
static readonly USER_CHANGES_FILE = "user-changes.json";
static readonly EXCLUDE_LIST_FILE = ".git-exclude-list";
/**
* Read JSON file and parse it
*/
static readJson<T>(filePath: string): T | null;
/**
* Write data to JSON file
*/
static writeJson(filePath: string, data: any): void;
/**
* Read exclude list file
*/
static readExcludeList(): string[];
/**
* Write exclude list file
*/
static writeExcludeList(files: string[]): void;
/**
* Add files to .gitignore if not already present
*/
static updateGitignore(filesToIgnore: string[]): void;
/**
* Read migration changes snapshot
*/
static readMigrationChanges(): ChangesSnapshot | null;
/**
* Write migration changes snapshot
*/
static writeMigrationChanges(snapshot: ChangesSnapshot): void;
/**
* Read user changes snapshot
*/
static readUserChanges(): ChangesSnapshot | null;
/**
* Write user changes snapshot
*/
static writeUserChanges(snapshot: ChangesSnapshot): void;
}
//# sourceMappingURL=fileManager.d.ts.map