(targetPath, content)
| 79 | } |
| 80 | |
| 81 | export async function writeText(targetPath, content) { |
| 82 | await fs.mkdir(path.dirname(targetPath), { recursive: true }); |
| 83 | await fs.writeFile(targetPath, content, "utf8"); |
| 84 | } |
| 85 | |
| 86 | export async function writeJson(targetPath, payload) { |
| 87 | await writeText(targetPath, `${JSON.stringify(payload, null, 2)}\n`); |
no outgoing calls
no test coverage detected