Skip to content

Commit 2f62b3c

Browse files
committed
WIP 959a2
1 parent 7e66ee7 commit 2f62b3c

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

docs/site/content/docs/reference/configuration.mdx

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,27 @@ Configure the behavior of `turbo` by using a `turbo.json` file in your Workspace
2626
Extend from the root `turbo.json` to create specific configuration for a package using [Package Configurations](/docs/reference/package-configurations).
2727

2828
- The only valid value for `extends` is `["//"]` to inherit configuration from the root `turbo.json`.
29-
- If `extends` is used in the root `turbo.json`, it will be ignored.
29+
- If `extends` is used in the root `turbo.json`, an error will be thrown.
30+
31+
#### `$TURBO_EXTENDS`
32+
33+
<Callout type="good-to-know">
34+
Two Future Flags exist to opt into new features to allow for more
35+
configuration flexibility.
36+
</Callout>
37+
38+
By default, keys are completely overridden when using [Package Configurations](/docs/reference/package-configurations). To append to parent configuration, use the `$TURBO_EXTENDS` microsyntax:
39+
40+
```json title="packages/ui/turbo.json"
41+
{
42+
"extends": ["//"],
43+
"tasks": {
44+
"build": {
45+
"dependsOn": ["$TURBO_EXTENDS$", "special-task"]
46+
}
47+
}
48+
}
49+
```
3050

3151
### `globalDependencies`
3252

@@ -199,6 +219,15 @@ Adds a tag to a package for use with [Boundaries](/docs/reference/boundaries).
199219

200220
This key only works in [Package Configurations](/docs/reference/package-configurations). Using this key in a root `turbo.json` will result in an error.
201221

222+
### `futureFlags`
223+
224+
"Future flags" allow you to opt into experimental and beta features, and breaking changes prior to major releases.
225+
226+
Current Future Flags:
227+
228+
- `turboExtendsKeyword`: Enable usage of [`$TURBO_EXTENDS$` microsyntax](#turbo_extends)
229+
- `nonRootExtends`: Enable [extending Package Configurations from other packages](#TODO)
230+
202231
## Defining tasks
203232

204233
### `tasks`

0 commit comments

Comments
 (0)