(cwd: string, files: Files)
| 47 | }) |
| 48 | |
| 49 | function writeFiles(cwd: string, files: Files): void { |
| 50 | const mkdirpSync = require("fs-extra/lib/mkdirs/index.js").mkdirpSync |
| 51 | const writeFileSync = require("fs").writeFileSync |
| 52 | Object.keys(files).forEach((filePath) => { |
| 53 | if (!filePath.startsWith(".git/")) { |
| 54 | mkdirpSync(join(cwd, dirname(filePath))) |
| 55 | writeFileSync(join(cwd, filePath), files[filePath].contents, { |
| 56 | mode: files[filePath].mode, |
| 57 | }) |
| 58 | } |
| 59 | }) |
| 60 | } |
| 61 | |
| 62 | function removeLeadingSpaceOnBlankLines(patchFileContents: string): string { |
| 63 | return patchFileContents |
no test coverage detected
searching dependent graphs…