(filePath: string, data: any)
| 133 | } |
| 134 | |
| 135 | async function saveJsonFile(filePath: string, data: any): Promise<void> { |
| 136 | try { |
| 137 | await fs.writeFile(filePath, JSON.stringify(data, null, 2), "utf8"); |
| 138 | console.log(`Updated ${filePath}`); |
| 139 | } catch (error) { |
| 140 | console.error(`Error writing file ${filePath}:`, error); |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | async function addMissingKeysFromSource( |
| 145 | source: JsonObject, |
no outgoing calls
no test coverage detected