(patchRoot: string, platform: ModPlatform)
| 149 | } |
| 150 | |
| 151 | async function removePatchFilesAsync(patchRoot: string, platform: ModPlatform): Promise<void> { |
| 152 | const patchFiles = await globAsync(`${platform}*.patch`, { cwd: patchRoot, absolute: true }); |
| 153 | await Promise.all( |
| 154 | patchFiles.map((file) => { |
| 155 | logger.log(`Removing patch file: ${file}`); |
| 156 | return fs.rm(file, { force: true }); |
| 157 | }) |
| 158 | ); |
| 159 | } |
no test coverage detected
searching dependent graphs…