Skip to content

config-nx-scopes does not find plugin-inferred projects #4861

Description

@mpsanchis

Expected Behavior

All projects in the workspace should be found, not only the ones marked with a project.json, package.json, etc.

Current Behavior

getProjects is used, which is documented as having the limitation of finding only projects that nx "natively" infers (without external plugins).

Affected packages

  • cli
  • core
  • prompt
  • config-angular

Possible Solution

Ideas:

  • Use createProjectGraphAsync to build the whole graph (including plugins)
  • Simply call nx show projects, which will print a list of projects to stdout

Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions