Skip to content

Commit 681a45b

Browse files
authored
docs: add workspace directory example (#5875)
docs: run the comand for directory workspaces (#5875)
1 parent c26d708 commit 681a45b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/lib/content/using-npm/workspaces.md

+5
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ command-line in order to target multiple workspaces, e.g:
176176
npm run test --workspace=a --workspace=b
177177
```
178178

179+
Or run the command for each workspace within the 'packages' folder:
180+
```
181+
npm run test --workspace=packages
182+
```
183+
179184
It's also possible to use the `workspaces` (plural) configuration option to
180185
enable the same behavior but running that command in the context of **all**
181186
configured workspaces. e.g:

0 commit comments

Comments
 (0)