(errorLines: readonly string[])
| 455 | Effect.andThen((fs) => fs.remove(tempDir, { recursive: true })), |
| 456 | Effect.mapError( |
| 457 | () => new DocsValidationError({ message: `Failed to cleanup temp dir ${tempDir}` }) |
| 458 | ), |
| 459 | Effect.orElseSucceed(() => undefined) |
| 460 | ); |
| 461 | |
| 462 | const formatErrorLine = (line: string): Effect.Effect<void, never, never> => |
| 463 | !line.includes('example-') || line.includes('error TS') |
| 464 | ? Console.error(` ${line}`) |
| 465 | : Effect.void; |