(filePath)
| 46 | }); |
| 47 | |
| 48 | function readJsonSync(filePath) { |
| 49 | try { |
| 50 | return JSON.parse(fs.readFileSync(filePath, 'utf8')); |
| 51 | } catch (error) { |
| 52 | throw new Error(`Failed to read JSON from ${filePath}: ${error.message}`); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * This takes the json files generated by the buildBranchAPI and buildPublishedAPI and |