Function workspaceRoot

  • Crawls up directories (until the git root) to find the directory that declares which sub-directories are workspaces.

    For yarn, this is the package.json with a workspaces entry

    Parameters

    • Optional cwd: string = ...

      directory to start the search in. defaults to process.cwd();

    Returns Promise<string>