(targetPath)
| 75 | } |
| 76 | |
| 77 | export async function readJson(targetPath) { |
| 78 | return JSON.parse(await readText(targetPath)); |
| 79 | } |
| 80 | |
| 81 | export async function writeText(targetPath, content) { |
| 82 | await fs.mkdir(path.dirname(targetPath), { recursive: true }); |
no test coverage detected