(filePath, contents)
| 41 | * @returns A promise that resolves when the file is written. |
| 42 | */ |
| 43 | const writeFile = async (filePath, contents) => { |
| 44 | await fsp.mkdir(path.dirname(filePath), { recursive: true }) |
| 45 | await fsp.writeFile(filePath, contents, {}) |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Get .{baseFilename}rc configuration file name. |
no test coverage detected