(block: string)
| 188 | } |
| 189 | |
| 190 | export function getBlockStructure(block: string) { |
| 191 | return JSON.parse( |
| 192 | readFileSync(getBlockStructurePath(block), 'utf8') |
| 193 | ) as BlockStructure; |
| 194 | } |
| 195 | |
| 196 | export async function writeBlockStructure(block: string, structure: unknown) { |
| 197 | // dynamically importing prettier because Gatsby build and develop fail when |
no test coverage detected