( files: Record<string, string>, targetDir?: string, )
| 91 | } |
| 92 | |
| 93 | export function cleanUpFiles( |
| 94 | files: Record<string, string>, |
| 95 | targetDir?: string, |
| 96 | ) { |
| 97 | return Object.keys(files).reduce<Record<string, string>>((acc, file) => { |
| 98 | if (basenamePath(file) !== '.cta.json') { |
| 99 | acc[targetDir ? toCleanPath(file, targetDir) : file] = files[file] |
| 100 | } |
| 101 | return acc |
| 102 | }, {}) |
| 103 | } |
| 104 | |
| 105 | export function cleanUpFileArray(files: Array<string>, targetDir?: string) { |
| 106 | return files.reduce<Array<string>>((acc, file) => { |
nothing calls this directly
no test coverage detected