Skip to content

Function: findWorkspaceRoot()

findWorkspaceRoot(startDir?): Promise<string>

Walk upward from startDir for .projenrc.ts. If none is found, try git top-level only when that directory also contains .projenrc.ts; otherwise return resolve(startDir) (which may not be a workspace root).

string = ...

Promise<string>