@nx/workspace:fix-configuration

Migrates v1 config to v2 standalone configuration.

Usage

1nx generate fix-configuration ... 2
1nx g convert-to-nx-project ... #same 2

By default, Nx will search for fix-configuration in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/workspace:fix-configuration ... 2

Show what will be generated without writing to disk:

1nx g fix-configuration ... --dry-run 2

Examples

Convert the my-feature-lib project to use project.json file instead of workspace.json:

1nx g @nx/workspace:convert-to-nx-project --project my-feature-lib 2

Convert all projects in workspace.json to separate project.json files:

1nx g @nx/workspace:convert-to-nx-project --all 2

Options

all

boolean

Convert all projects

project

string

Convert a single project

reformat

boolean

Just reformats the configuration

skipFormat

Internal
boolean
Default: false

Skip formatting files