UNPKG

@mikezimm/fps-core-v7

Version:

Library of reusable core interfaces, types and constants migrated from fps-library-v2

32 lines 1.39 kB
/** * This utility script helps to: * 1. Identify local changes to specific npm packages. * 2. Back up only the locally changed files to a backup folder for reference or debugging. * * Usage in 'Backup' mode: * ts-node backup-node-mods.ts --backup * * Usage in 'Identify' mode (just highlights changes): * ts-node backup-node-mods.ts */ declare const fs: any; declare const path: any; declare const readline: any; declare const rootDir: any; declare const NODE_MODULES_DIR: any; declare const MODS_DIR: any; declare const MODS_DIR_Clear: any; declare const PACKAGE_FOLDERS: string[]; declare const TIME_DIFFERENCE_THRESHOLD: number; declare var process: any; declare let OPERATION_MODE: 'identify' | 'backup'; declare function logMessage(message: string, color: 'red' | 'yellow' | 'blue' | 'green'): void; declare function promptForBackupConfirmation(): Promise<boolean>; declare function getModifiedTime(filePath: string): number; declare function copyFileWithMinimalStructure(src: string, dest: string): void; declare function appendToLogFile(filePath: string, content: string): void; declare function make2DigitNum(str: string): string; declare function getFormattedDate(): string; declare function clearBackupFolder(dir: string): void; declare function findModifiedFiles(): Promise<void>; //# sourceMappingURL=backup-node-mods.d.ts.map