(file: string, callback: (content: string) => string)
| 1040 | } |
| 1041 | |
| 1042 | function editFile(file: string, callback: (content: string) => string) { |
| 1043 | const content = fs.readFileSync(file, 'utf-8') |
| 1044 | fs.writeFileSync(file, callback(content), 'utf-8') |
| 1045 | } |
| 1046 | |
| 1047 | function getFullCustomCommand(customCommand: string, pkgInfo?: PkgInfo) { |
| 1048 | const pkgManager = pkgInfo ? pkgInfo.name : 'npm' |
no test coverage detected