(srcPath, destPath, handler)
| 102 | }; |
| 103 | |
| 104 | export const copyFileWithCustomContentSync = (srcPath, destPath, handler) => { |
| 105 | const srcContent = fs.readFileSync(srcPath).toString(); |
| 106 | const fileContent = handler(srcContent); |
| 107 | writeFileSync(destPath, fileContent); |
| 108 | }; |
| 109 | |
| 110 | export const writeFileSync = (destPath, fileContent) => { |
| 111 | checkDestDir(destPath); |
no test coverage detected