(targetPath, payload)
| 84 | } |
| 85 | |
| 86 | export async function writeJson(targetPath, payload) { |
| 87 | await writeText(targetPath, `${JSON.stringify(payload, null, 2)}\n`); |
| 88 | } |
| 89 | |
| 90 | export function isProbablyTextFile(filePath) { |
| 91 | return TEXT_EXTENSIONS.has(path.extname(filePath).toLowerCase()); |
no test coverage detected