The optional root configuration is the general configuration for a project at a file such as bw.root.json or in its package.json file.
The values in config.defaults can also be set by environment variables. Defaults provided in the configuration take precedence over environment variables.
You can set defaults for the parallel max value, the shell option for inline scripts, and whether to include the root workspace in the project's workspaces list.
type RootConfig = {
defaults?: {
parallelMax?: number | `${number}%` | "auto" | "unbounded" | "default",
shell?: "bun" | "system" | "default",
includeRootWorkspace?: boolean
}
}
path/to/your/project/bw.root.json
or
path/to/your/project/bw.root.jsonc
{
"defaults": {
"parallelMax": 4,
"shell": "system",
"includeRootWorkspace": false
}
}
path/to/your/project/package.json
{
"name": "my-project",
"description": "My project root",
"workspaces": [
"packages/*"
],
"bw-root": {
"defaults": {
"parallelMax": "50%",
"shell": "system",
"includeRootWorkspace": true
}
}
}