@nrwl/workspace:convert-to-nx-project
Create a custom target to run any command.
Usage
nx generate convert-to-nx-project ...
By default, Nx will search for convert-to-nx-project
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/workspace:convert-to-nx-project ...
Show what will be generated without writing to disk:
nx g convert-to-nx-project ... --dry-run
Examples
Convert the my-feature-lib
project to use project.json
file instead of workspace.json
:
nx g @nrwl/workspace:convert-to-nx-project --project my-feature-lib
Convert all projects in workspace.json
to separate project.json
files:
nx g @nrwl/workspace:convert-to-nx-project --all