()
| 95 | * @throws Error if configuration is invalid |
| 96 | */ |
| 97 | export function getFigmaConfig(): FigmaConfig { |
| 98 | const config = loadConfig(); |
| 99 | if (!config.figma) { |
| 100 | throw new Error('Figma configuration not found in config.yaml'); |
| 101 | } |
| 102 | return config.figma; |
| 103 | } |
| 104 | |
| 105 | /** |
| 106 | * Get debug configuration from config.yaml |
no test coverage detected