MCPcopy Create free account
hub / github.com/arktypeio/arktype / assertBuildDirExists

Function assertBuildDirExists

ark/repo/jsdocGen.ts:257–263  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

255}
256
257const assertBuildDirExists = (path: string) => {
258 if (!existsSync(path)) {
259 throw new Error(
260 `jsDocGen rewrites ${path} but that directory doesn't exist. Did you run "pnpm build" there first?`
261 )
262 }
263}
264
265const isTypeVariantFile = (file: SourceFile) =>
266 file.getFilePath().includes("/type/out/variants/")

Callers 1

createProjectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected