Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion packages/turbo-types/schemas/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,21 @@
},
"futureFlags": {
"type": "object",
"additionalProperties": {},
"properties": {
"turbo_extends_keyword": {
"type": "boolean",
"description": "Enable `$TURBO_EXTENDS$`\n\n When enabled, allows using `$TURBO_EXTENDS$` in array fields. This will change the default behavior of overriding the field to instead append."
},
"non_root_extends": {
"type": "boolean",
"description": "Enable extending from a non-root `turbo.json`\n\nWhen enabled, allows using extends targeting `turbo.json`s other than root. All `turbo.json` must still extend from the root `turbo.json` first."
}
},
"required": [
"turbo_extends_keyword",
"non_root_extends"
],
"additionalProperties": false,
"description": "Opt into breaking changes prior to major releases, experimental features, and beta features.",
"default": {}
}
Expand Down
16 changes: 15 additions & 1 deletion packages/turbo-types/schemas/schema.v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,21 @@
},
"futureFlags": {
"type": "object",
"additionalProperties": {},
"properties": {
"turbo_extends_keyword": {
"type": "boolean",
"description": "Enable `$TURBO_EXTENDS$`\n\n When enabled, allows using `$TURBO_EXTENDS$` in array fields. This will change the default behavior of overriding the field to instead append."
},
"non_root_extends": {
"type": "boolean",
"description": "Enable extending from a non-root `turbo.json`\n\nWhen enabled, allows using extends targeting `turbo.json`s other than root. All `turbo.json` must still extend from the root `turbo.json` first."
}
},
"required": [
"turbo_extends_keyword",
"non_root_extends"
],
"additionalProperties": false,
"description": "Opt into breaking changes prior to major releases, experimental features, and beta features.",
"default": {}
}
Expand Down
16 changes: 15 additions & 1 deletion packages/turbo-types/src/types/config-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,21 @@ export interface RootSchema extends BaseSchema {
*
* @defaultValue `{}`
*/
futureFlags?: Record<string, unknown>;
futureFlags?: {
/** Enable `$TURBO_EXTENDS$`
*
* When enabled, allows using `$TURBO_EXTENDS$` in array fields.
* This will change the default behavior of overriding the field to instead append.
*/
turbo_extends_keyword: boolean;

/** Enable extending from a non-root `turbo.json`
*
* When enabled, allows using extends targeting `turbo.json`s other than
* root. All `turbo.json` must still extend from the root `turbo.json` first.
*/
non_root_extends: boolean;
};
}

export interface Pipeline {
Expand Down
Loading