Get the root directory of a monorepo, defined as the directory where the workspace/monorepo manager
config file is located. (Does not rely in any way on git, and the result is cached by cwd.)
Parameters
cwd: string
Start searching from here
OptionalpreferredManager: WorkspaceManager
Search for only this manager's config file
Returns string | undefined
Workspace manager root directory, or undefined if not found
Get the root directory of a monorepo, defined as the directory where the workspace/monorepo manager config file is located. (Does not rely in any way on git, and the result is cached by
cwd.)