Using the workspace configuration, you can set an "order" value to sort the execution order of a script per workspace.
You may want to run scripts in series (--parallel=false in the CLI or option parallel: false in the API) instead of the default parallel so that
each script completes before the next one starts.
By default, workspaces are sorted in alphanumerical order of their relative path from the project root.
Workspace scripts with
an "order" value will be executed before workspaces with no "order" set for the same script, falling back to the default order.
In this example, any other workspaces in the project with an "order" for the "start" script less than 10 will be executed before this workspace,
and any workspaces with an "order" for the "start" script greater than 10 will be executed after this workspace.
{
"alias": "myApp",
"tags": [
"my-tag"
],
"scripts": {
"start": {
"order": 10
},
"test": {
"order": 20
}
}
}