Skip to content

Function: resolveProjectRoots()

resolveProjectRoots(cwd?): Generator<string>

Yield candidate project-root directories for cwd, in priority order: the npm prefix, the git top-level, then cwd itself. Duplicates are skipped; only existing directories are yielded (except the final cwd fallback).

string

Generator<string>