Skip to content

Commit bb0b2da

Browse files
behnammodiwraithgar
authored andcommitted
fix(docs): add note about workspace script order
PR-URL: #3699 Credit: @behnammodi Close: #3699 Reviewed-by: @wraithgar
1 parent f425950 commit bb0b2da

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/content/using-npm/workspaces.md

+16
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,22 @@ npm run test --workspaces
176176

177177
Will run the `test` script in both `./packages/a` and `./packages/b`.
178178

179+
Commands will be run in each workspace in the order they appear in your `package.json`
180+
181+
```
182+
{
183+
"workspaces": [ "packages/a", "packages/b" ]
184+
}
185+
```
186+
187+
Order of run is different with:
188+
189+
```
190+
{
191+
"workspaces": [ "packages/b", "packages/a" ]
192+
}
193+
```
194+
179195
### Ignoring missing scripts
180196

181197
It is not required for all of the workspaces to implement scripts run with the `npm run` command.

0 commit comments

Comments
 (0)