Finds the root of the monorepo that contains the working directory.
Searches the working directory and its parents for a workspace configuration
of a supported package manager, such as pnpm-workspace.yaml or workspaces
in package.json next to a package-lock.json. Unlike the root of a Git
repository, this is also correct in Git worktrees and for monorepos inside
other repositories.
Finds the root of the monorepo that contains the working directory.
Searches the working directory and its parents for a workspace configuration of a supported package manager, such as
pnpm-workspace.yamlorworkspacesinpackage.jsonnext to apackage-lock.json. Unlike the root of a Git repository, this is also correct in Git worktrees and for monorepos inside other repositories.