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

Function resolvePath

scripts/validate-publish.ts:7–11  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

5import { BunContext, BunRuntime } from '@effect/platform-bun';
6
7const resolvePath = (relativePath: string) =>
8 pipe(
9 Path.Path,
10 Effect.andThen((path) => path.resolve(import.meta.dir, relativePath))
11 );
12
13const rootDir = resolvePath('..');
14

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected