Skip to content

Commit

Permalink
docs: clarify useNx
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacplmann authored and vsavkin committed Oct 12, 2022
1 parent f0e1d1d commit 4c82f29
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions commands/run/README.md
Expand Up @@ -113,4 +113,25 @@ $ lerna run build --profile --profile-location=logs/profile/

### `useNx=false`

<<<<<<< HEAD
By setting `useNx` to `false` you can use the legacy task running implementations in `lerna` (`p-map` and `p-queue`) instead of using the default modern task runner implementation powered by [Nx](https://nx.dev).
=======
Disables integration with [Nx](https://nx.dev). Setting `"useNx": false` in `lerna.json` will tell Lerna to delegate
running tasks to `p-map` and `p-queue` instead of using Nx. Nx can be configured in `nx.json`.

Example of `nx.json`:

```json
{
"extends": "nx/presets/npm.json",
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build"]
}
}
}
}
```
>>>>>>> 531eaf0f (docs: clarify useNx)

0 comments on commit 4c82f29

Please sign in to comment.