@nx/workspace:infer-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>

Which plugins' convert-to-inferred generators to look for. For example @nx/eslint or @nx/jest

skipFormat

boolean
Default: false

Whether to format files.