You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/site/content/docs/reference/configuration.mdx
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,27 @@ Configure the behavior of `turbo` by using a `turbo.json` file in your Workspace
26
26
Extend from the root `turbo.json` to create specific configuration for a package using [Package Configurations](/docs/reference/package-configurations).
27
27
28
28
- 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
+
<Callouttype="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
+
```
30
50
31
51
### `globalDependencies`
32
52
@@ -199,6 +219,15 @@ Adds a tag to a package for use with [Boundaries](/docs/reference/boundaries).
199
219
200
220
This key only works in [Package Configurations](/docs/reference/package-configurations). Using this key in a root `turbo.json` will result in an error.
201
221
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)
0 commit comments