Skip to content

Commit

Permalink
fix(docs): add note about workspace script order
Browse files Browse the repository at this point in the history
PR-URL: #3699
Credit: @behnammodi
Close: #3699
Reviewed-by: @wraithgar
  • Loading branch information
behnammodi authored and wraithgar committed Sep 30, 2021
1 parent f425950 commit bb0b2da
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/content/using-npm/workspaces.md
Expand Up @@ -176,6 +176,22 @@ npm run test --workspaces

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

Commands will be run in each workspace in the order they appear in your `package.json`

```
{
"workspaces": [ "packages/a", "packages/b" ]
}
```

Order of run is different with:

```
{
"workspaces": [ "packages/b", "packages/a" ]
}
```

### Ignoring missing scripts

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

0 comments on commit bb0b2da

Please sign in to comment.