Start searching from here
Optional preferredManager: WorkspaceManagerSearch for only this manager's config file
Renamed to getWorkspaceManagerRoot to align "workspace" terminology with npm/yarn/pnpm.
In most cases, you should use findProjectRoot instead since it falls back to the git root if no
workspace manager is found (single-package projects).
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.)NOTE: "Workspace" here refers to the entire project/monorepo, not an individual package the way it does in e.g. npm/yarn/pnpm "workspaces."