(filePath: string, data: Record<string, any>)
| 98 | * existing target had — preserves diff-friendly file shape. |
| 99 | */ |
| 100 | export function writeJsonFile(filePath: string, data: Record<string, any>): void { |
| 101 | atomicWriteFileSync(filePath, JSON.stringify(data, null, 2) + '\n'); |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Compare two JSON values for deep equality, ignoring key order. |
no test coverage detected