MCPcopy Create free account
hub / github.com/effect-app/libs / findNearestTsconfig

Function findNearestTsconfig

packages/eslint-codegen-model/src/cli.ts:533–542  ·  view source on GitHub ↗
(fromDir: string)

Source from the content-addressed store, hash-verified

531}
532
533function findNearestTsconfig(fromDir: string): string | undefined {
534 let dir = fromDir
535 for (;;) {
536 const candidate = path.join(dir, "tsconfig.json")
537 if (fs.existsSync(candidate)) return candidate
538 const parent = path.dirname(dir)
539 if (parent === dir) return undefined
540 dir = parent
541 }
542}
543
544function run() {
545 const { config, files, help, native, tsconfig } = parseArgs(process.argv.slice(2))

Callers 1

runFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…