(filePath: string, data: unknown, indent = 2)
| 13 | } |
| 14 | |
| 15 | export async function writeJson(filePath: string, data: unknown, indent = 2): Promise<void> { |
| 16 | await writeFile(filePath, JSON.stringify(data, null, indent) + '\n', 'utf-8'); |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Update specific top-level string fields in a JSON file without reformatting. |
no outgoing calls
no test coverage detected
searching dependent graphs…