Skip to content

Commit

Permalink
docs(core): useInferencePlugins (#23010)
Browse files Browse the repository at this point in the history
Co-authored-by: Leosvel Pérez Espinosa <leosvel.perez.espinosa@gmail.com>
  • Loading branch information
isaacplmann and leosvelperez committed Apr 29, 2024
1 parent 9c6532c commit c0311b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/shared/concepts/inferred-tasks.md
Expand Up @@ -73,9 +73,11 @@ More details about how to override task configuration is available in these reci

## Existing Nx Workspaces

If you have an existing Nx Workspace and upgrade to Nx 18, the migration generator will automatically add `NX_ADD_PLUGINS=false` to your `.env` file. This environment variable allows you to continue to use Nx without inferred tasks. We are working on creating migrations for existing workspaces to start switching to inferred tasks, where desired.
If you have an existing Nx Workspace and upgrade to Nx 18, the migration generator will automatically add `NX_ADD_PLUGINS=false` to your `.env` file. This environment variable allows you to continue to use Nx without inferred tasks. Alternatively, you can set the `useInferencePlugins` property to `false` in `nx.json`.

When `NX_ADD_PLUGINS` is `false`:
We are working on creating migrations for existing workspaces to start switching to inferred tasks, where desired.

When `NX_ADD_PLUGINS` or `useInferencePlugins` is `false`:

1. A newly generated project will have all targets defined with executors - not with inferred tasks.
2. Running `nx add @nx/some-plugin` will not create a plugin entry for `@nx/some-plugin` in the `nx.json` file. (So that plugin will not create inferred tasks.)
Expand Down

0 comments on commit c0311b8

Please sign in to comment.