| 108 | ) => Effect.forEach(files, writeFileToOutDir, { discard: true }) |
| 109 | |
| 110 | const parseModules = (files: ReadonlyArray<Domain.File>) => |
| 111 | Parser.parseFiles(files).pipe( |
| 112 | Effect.mapError((errors) => |
| 113 | new Domain.DocgenError({ |
| 114 | message: "[Core.parseModules] The following error(s) occurred while " + |
| 115 | `parsing the TypeScript source files:\n${errors.map((errors) => errors.join("\n")).join("\n")}` |
| 116 | }) |
| 117 | ) |
| 118 | ) |
| 119 | |
| 120 | /** |
| 121 | * Runs the example files for the given modules, type-checking them before execution. |