Skip to content

Commit

Permalink
docs: add workspace directory example (#5875)
Browse files Browse the repository at this point in the history
docs: run the comand for directory workspaces (#5875)
  • Loading branch information
1aron authored Nov 30, 2022
1 parent c26d708 commit 681a45b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/lib/content/using-npm/workspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ command-line in order to target multiple workspaces, e.g:
npm run test --workspace=a --workspace=b
```

Or run the command for each workspace within the 'packages' folder:
```
npm run test --workspace=packages
```

It's also possible to use the `workspaces` (plural) configuration option to
enable the same behavior but running that command in the context of **all**
configured workspaces. e.g:
Expand Down

0 comments on commit 681a45b

Please sign in to comment.