Concepts > Script Execution Order

Using the workspace configuration, you can set an "order" value to sort the execution order of a script per workspace.

Default Order

By default, workspaces are sorted in alphabetical order of their relative path from the project root.

Configured vs. Default Order

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.

Example

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",
  "scripts": {
    "start": {
      "order": 10
    },
    "test": {
      "order": 20
    }
  }
}

© 2026 Smorsic Labs, LLC. All rights reserved.