MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / cleanupTempDir

Function cleanupTempDir

scripts/validate-markdown-examples.ts:441–447  ·  view source on GitHub ↗
(tempDir: string)

Source from the content-addressed store, hash-verified

439};
440
441const cleanupTempDir = (tempDir: string) =>
442 pipe(
443 FileSystem.FileSystem,
444 Effect.andThen((fs) => fs.remove(tempDir, { recursive: true })),
445 Effect.mapError(() => new Error(`Failed to cleanup temp dir ${tempDir}`)),
446 Effect.orElseSucceed(() => undefined)
447 );
448
449const formatErrorLine = (line: string): Effect.Effect<void, never, never> =>
450 !line.includes('example-') || line.includes('error TS')

Callers 1

skipValidationIfNoBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected