@nx/workspace:infer-targets

Convert Nx projects to use inferred targets.

Usage

1nx generate infer-targets ... 2

By default, Nx will search for infer-targets in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/workspace:infer-targets ... 2

Show what will be generated without writing to disk:

1nx g infer-targets ... --dry-run 2

Options

project

string

The project to convert to use inferred targets.

plugins

Array<string>

The plugins used to infer targets. For example @nx/eslint or @nx/jest

skipFormat

boolean
Default: false

Whether to format files.