MCPcopy Create free account
hub / github.com/contentlayerdev/contentlayer / getDirPath

Function getDirPath

packages/@contentlayer/core/src/_ArtifactsDir.ts:12–13  ·  view source on GitHub ↗
({ cwd }: { cwd: AbsolutePosixFilePath })

Source from the content-addressed store, hash-verified

10// import utilsPkg from '@contentlayer/utils/package.json'
11
12export const getDirPath = ({ cwd }: { cwd: AbsolutePosixFilePath }): AbsolutePosixFilePath =>
13 filePathJoin(cwd, '.contentlayer' as AbsolutePosixFilePath)
14
15export const mkdir: T.Effect<OT.HasTracer & HasCwd & fs.HasFs, fs.MkdirError, AbsolutePosixFilePath> = T.gen(function* (
16 $,

Callers 1

_ArtifactsDir.tsFile · 0.85

Calls 1

filePathJoinFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…