Skip to content

Commit 50f5f6a

Browse files
chore(@turbo/types): add with to schema
1 parent 5102af1 commit 50f5f6a

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

Diff for: packages/turbo-types/schemas/schema.json

+8
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@
173173
"type": "boolean",
174174
"description": "Label a persistent task as interruptible to allow it to be restarted by `turbo watch`. `turbo watch` watches for changes to your packages and automatically restarts tasks that are affected. However, if a task is persistent, it will not be restarted by default. To enable restarting persistent tasks, set `interruptible` to true.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#interruptible",
175175
"default": false
176+
},
177+
"with": {
178+
"type": "array",
179+
"items": {
180+
"type": "string"
181+
},
182+
"description": "A list of tasks that will run alongside this task.\n\nTasks in this list will not be run until completion before this task starts execution.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#with",
183+
"default": []
176184
}
177185
},
178186
"additionalProperties": false

Diff for: packages/turbo-types/schemas/schema.v2.json

+8
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,14 @@
173173
"type": "boolean",
174174
"description": "Label a persistent task as interruptible to allow it to be restarted by `turbo watch`. `turbo watch` watches for changes to your packages and automatically restarts tasks that are affected. However, if a task is persistent, it will not be restarted by default. To enable restarting persistent tasks, set `interruptible` to true.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#interruptible",
175175
"default": false
176+
},
177+
"with": {
178+
"type": "array",
179+
"items": {
180+
"type": "string"
181+
},
182+
"description": "A list of tasks that will run alongside this task.\n\nTasks in this list will not be run until completion before this task starts execution.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#with",
183+
"default": []
176184
}
177185
},
178186
"additionalProperties": false

Diff for: packages/turbo-types/src/types/config-v2.ts

+11
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,17 @@ export interface Pipeline {
309309
* @defaultValue `false`
310310
*/
311311
interruptible?: boolean;
312+
313+
/**
314+
* A list of tasks that will run alongside this task.
315+
*
316+
* Tasks in this list will not be run until completion before this task starts execution.
317+
*
318+
* Documentation: https://turbo.build/repo/docs/reference/configuration#with
319+
*
320+
* @defaultValue `[]`
321+
*/
322+
with?: Array<string>;
312323
}
313324

314325
export interface RemoteCache {

0 commit comments

Comments
 (0)