@nx/workspace:fix-configuration
Migrates v1 config to v2 standalone configuration.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Migrates v1 config to v2 standalone configuration.
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
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
Convert all projects
Convert a single project
Just reformats the configuration
false
Skip formatting files