@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 ...
21nx g convert-to-nx-project ... #same
2By 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 ...
2Show what will be generated without writing to disk:
1nx g fix-configuration ... --dry-run
2Convert 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
2Convert all projects in workspace.json to separate project.json files:
1nx g @nx/workspace:convert-to-nx-project --all
2Convert all projects
Convert a single project
Just reformats the configuration
falseSkip formatting files
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!