MCPcopy Create free account
hub / github.com/Effect-TS/effect / discoverEntrypoints

Method discoverEntrypoints

packages/tools/api-diff/src/Discovery.ts:226–237  ·  view source on GitHub ↗
(
        repoRoot: string,
        requestedModules?: ReadonlyArray<string>
      )

Source from the content-addressed store, hash-verified

224 })
225
226 const discoverEntrypoints = (
227 repoRoot: string,
228 requestedModules?: ReadonlyArray<string>
229 ): Effect.Effect<DiscoveryResult, ApiDiffError> =>
230 discoverEntrypointsInternal(repoRoot, requestedModules).pipe(
231 Effect.mapError((cause) =>
232 new ApiDiffError({
233 message: `Could not discover API entrypoints in ${repoRoot}`,
234 cause
235 })
236 )
237 )
238
239 return Discovery.of({ discoverEntrypoints })
240 })

Callers 2

Discovery.test.tsFile · 0.80
SnapshotterClass · 0.80

Calls 1

pipeMethod · 0.65

Tested by

no test coverage detected