@nx/workspace:convert-to-monorepo

Convert an Nx project to a monorepo.

Usage

nx generate convert-to-monorepo ...

By default, Nx will search for convert-to-monorepo in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

nx g @nx/workspace:convert-to-monorepo ...
Nx 15 and lower use @nrwl/ instead of @nx/

Show what will be generated without writing to disk:

nx g convert-to-monorepo ... --dry-run

Examples

Convert an Nx standalone project to a monorepo.:

nx g @nx/workspace:monorepo
Nx 15 and lower use @nrwl/ instead of @nx/

Options