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

Function projectOf

ark/aot/host.ts:263–271  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

261 relative(from, to).split(sep).join("/")
262
263export const projectOf = (cwd: string): string => {
264 let project = cwd
265 while (
266 !existsSync(join(project, "package.json")) &&
267 project !== dirname(project)
268 )
269 project = dirname(project)
270 return project
271}
272
273// each package a root reaches through what it declares, with its manifest
274const reachedFrom = function* (

Callers 5

constructorMethod · 0.90
settingsPathsOfFunction · 0.90
checkDependenciesFunction · 0.90
pluginCallsInFunction · 0.90
optedInPackagesOfFunction · 0.85

Calls 1

joinFunction · 0.85

Tested by

no test coverage detected