Configuration > Workspace

Workspace Configuration

The optional configuration for a workspace is defined in a file such as bw.workspace.json in its directory or in its package.json file.

You can set a workspace's alias(es) and the order sequence for its scripts.

Type Definition

{
  alias?: string | string[],
  scripts?: {
    [script: string]: {
      order?: number
    }
  }
}

Examples:

1. JSON/JSONC file

path/to/your/workspace/bw.workspace.json or path/to/your/workspace/bw.workspace.jsonc

{
  "alias": "myApp",
  "scripts": {
    "start": {
      "order": 10
    },
    "test": {
      "order": 20
    }
  }
}

2. package.json

path/to/your/workspace/package.json
{
  "name": "@my-organization/my-application",
  "description": "My app",
  "version": "1.0.0",
  "bw": {
    "alias": "myApp",
    "scripts": {
      "start": {
        "order": 10
      },
      "test": {
        "order": 20
      }
    }
  }
}