(data: any, ...paths: string[])
| 49 | } |
| 50 | |
| 51 | export const writeFile = (data: any, ...paths: string[]): Promise<void> => { |
| 52 | const filePath = getWorkspacePath(...paths) |
| 53 | logger(`Writing file: ${filePath}`) |
| 54 | return asyncWriteFile(filePath, data).catch((err) => { |
| 55 | logger(`Failed to write to ${filePath}: ${err.message}`) |
| 56 | }) |
| 57 | } |
no test coverage detected