(filePath: string, data: Record<string, any>)
| 124 | * config no longer has that side effect. |
| 125 | */ |
| 126 | export function writeJsonFile(filePath: string, data: Record<string, any>): void { |
| 127 | backupUnparseableJson(filePath); |
| 128 | atomicWriteFileSync(filePath, JSON.stringify(data, null, 2) + '\n'); |
| 129 | } |
| 130 | |
| 131 | /** |
| 132 | * Compare two JSON values for deep equality, ignoring key order. |
no test coverage detected