Function getWorkspacePackagePathsAsync

  • Get a list of package folder paths in the monorepo. The list of included packages is based on the manager's config file and matching package folders (which must contain package.json) on disk.

    (The list of package paths is cached per monorepo root if caching is enabled.)

    Parameters

    • cwd: string
    • Optional managerOverride: WorkspaceManager

      Workspace/monorepo manager to use instead of auto-detecting

    Returns Promise<string[] | undefined>

    Package paths, or undefined if there's any issue (logs verbose warnings instead of throwing on error)