(path: string)
| 132 | } |
| 133 | |
| 134 | function readHeaderOverridesFile(path: string): unknown { |
| 135 | try { |
| 136 | const headerOverridesFile = fs.readFileSync(path, 'utf8'); |
| 137 | return JSON.parse(headerOverridesFile); |
| 138 | } catch (error) { |
| 139 | throw new Error('Header overrides file contains invalid JSON.'); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | export function main() { |
| 144 | const options = readOptions(); |