(projectRoot, options = {})
| 250 | } |
| 251 | |
| 252 | function compileMemoryBlocks(projectRoot, options = {}) { |
| 253 | const blocks = buildBlocks(projectRoot, options); |
| 254 | const written = blocks.map((entry) => writeBlock(projectRoot, entry)); |
| 255 | const indexPath = writeIndex(projectRoot, blocks); |
| 256 | return { blocks, written, indexPath }; |
| 257 | } |
| 258 | |
| 259 | function readBlockFile(filePath) { |
| 260 | return JSON.parse(fs.readFileSync(filePath, 'utf8')); |
no test coverage detected