@turbo/types 2.7.5-canary.0 → 2.7.5-canary.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +6 -4
- package/schemas/schema.json +516 -297
- package/schemas/schema.v1.json +19 -19
- package/schemas/schema.v2.json +32 -28
- package/src/types/config-v1.ts +17 -17
- package/src/types/config-v2.ts +37 -30
package/src/types/config-v2.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
export type OutputLogs =
|
|
2
2
|
| "full"
|
|
3
|
+
| "none"
|
|
3
4
|
| "hash-only"
|
|
4
5
|
| "new-only"
|
|
5
|
-
| "errors-only"
|
|
6
|
-
|
|
7
|
-
export type EnvMode = "strict" | "loose";
|
|
6
|
+
| "errors-only";
|
|
7
|
+
export type EnvMode = "loose" | "strict";
|
|
8
8
|
export type UI = "tui" | "stream";
|
|
9
|
-
|
|
10
9
|
/**
|
|
11
10
|
* This is a relative Unix-style path (e.g. `./src/index.ts` or `src/index.ts`). Absolute paths (e.g. `/tmp/foo`) are not valid.
|
|
12
11
|
*/
|
|
@@ -14,14 +13,14 @@ export type RelativeUnixPath = string;
|
|
|
14
13
|
export type EnvWildcard = string;
|
|
15
14
|
|
|
16
15
|
export interface BaseSchema {
|
|
17
|
-
/** @defaultValue `https://turborepo.
|
|
16
|
+
/** @defaultValue `https://turborepo.dev/schema.v2.json` */
|
|
18
17
|
$schema?: string;
|
|
19
18
|
/**
|
|
20
19
|
* An object representing the task dependency graph of your project. turbo interprets
|
|
21
20
|
* these conventions to schedule, execute, and cache the outputs of tasks in
|
|
22
21
|
* your project.
|
|
23
22
|
*
|
|
24
|
-
* Documentation: https://turborepo.
|
|
23
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#tasks
|
|
25
24
|
*
|
|
26
25
|
* @defaultValue `{}`
|
|
27
26
|
*/
|
|
@@ -78,7 +77,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
78
77
|
* that are not represented in the traditional dependency graph
|
|
79
78
|
* (e.g. a root tsconfig.json, jest.config.ts, .eslintrc, etc.)
|
|
80
79
|
*
|
|
81
|
-
* Documentation: https://turborepo.
|
|
80
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#globaldependencies
|
|
82
81
|
*
|
|
83
82
|
* @defaultValue `[]`
|
|
84
83
|
*/
|
|
@@ -89,7 +88,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
89
88
|
*
|
|
90
89
|
* The variables included in this list will affect all task hashes.
|
|
91
90
|
*
|
|
92
|
-
* Documentation: https://turborepo.
|
|
91
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#globalenv
|
|
93
92
|
*
|
|
94
93
|
* @defaultValue `[]`
|
|
95
94
|
*/
|
|
@@ -99,7 +98,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
99
98
|
* An allowlist of environment variables that should be made to all tasks, but
|
|
100
99
|
* should not contribute to the task's cache key, e.g. `AWS_SECRET_KEY`.
|
|
101
100
|
*
|
|
102
|
-
* Documentation: https://turborepo.
|
|
101
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#globalpassthroughenv
|
|
103
102
|
*
|
|
104
103
|
* @defaultValue `null`
|
|
105
104
|
*/
|
|
@@ -108,7 +107,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
108
107
|
/**
|
|
109
108
|
* Configuration options that control how turbo interfaces with the remote cache.
|
|
110
109
|
*
|
|
111
|
-
* Documentation: https://turborepo.
|
|
110
|
+
* Documentation: https://turborepo.dev/docs/core-concepts/remote-caching
|
|
112
111
|
*
|
|
113
112
|
* @defaultValue `{}`
|
|
114
113
|
*/
|
|
@@ -117,7 +116,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
117
116
|
/**
|
|
118
117
|
* Enable use of the UI for `turbo`.
|
|
119
118
|
*
|
|
120
|
-
* Documentation: https://turborepo.
|
|
119
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#ui
|
|
121
120
|
*
|
|
122
121
|
* @defaultValue `"stream"`
|
|
123
122
|
*/
|
|
@@ -129,7 +128,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
129
128
|
* - Use `1` to force serial execution (one task at a time).
|
|
130
129
|
* - Use `100%` to use all available logical processors.
|
|
131
130
|
*
|
|
132
|
-
* Documentation: https://turborepo.
|
|
131
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#concurrency
|
|
133
132
|
*
|
|
134
133
|
* @defaultValue `"10"`
|
|
135
134
|
*/
|
|
@@ -150,7 +149,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
150
149
|
/**
|
|
151
150
|
* Specify the filesystem cache directory.
|
|
152
151
|
*
|
|
153
|
-
* Documentation: https://turborepo.
|
|
152
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#cachedir
|
|
154
153
|
*
|
|
155
154
|
* @defaultValue `".turbo/cache"`
|
|
156
155
|
*/
|
|
@@ -159,7 +158,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
159
158
|
/**
|
|
160
159
|
* Turborepo runs a background process to pre-calculate some expensive operations. This standalone process (daemon) is a performance optimization, and not required for proper functioning of `turbo`.
|
|
161
160
|
*
|
|
162
|
-
* Documentation: https://turborepo.
|
|
161
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#daemon
|
|
163
162
|
*
|
|
164
163
|
* @defaultValue `false`
|
|
165
164
|
*/
|
|
@@ -171,7 +170,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
171
170
|
* - `"strict"`: Filter environment variables to only those that are specified in the `env` and `globalEnv` keys in `turbo.json`.
|
|
172
171
|
* - `"loose"`: Allow all environment variables for the process to be available.
|
|
173
172
|
*
|
|
174
|
-
* Documentation: https://turborepo.
|
|
173
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#envmode
|
|
175
174
|
*
|
|
176
175
|
* @defaultValue `"strict"`
|
|
177
176
|
*/
|
|
@@ -185,7 +184,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
185
184
|
/**
|
|
186
185
|
* When set to `true`, disables the update notification that appears when a new version of `turbo` is available.
|
|
187
186
|
*
|
|
188
|
-
* Documentation: https://turborepo.
|
|
187
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#noupdatenotifier
|
|
189
188
|
*
|
|
190
189
|
* @defaultValue `false`
|
|
191
190
|
*/
|
|
@@ -200,6 +199,14 @@ export interface RootSchema extends BaseSchema {
|
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
export interface Pipeline {
|
|
202
|
+
/**
|
|
203
|
+
* A human-readable description of what this task does.
|
|
204
|
+
*
|
|
205
|
+
* This field is for documentation purposes only and does not affect
|
|
206
|
+
* task execution or caching behavior.
|
|
207
|
+
*/
|
|
208
|
+
description?: string;
|
|
209
|
+
|
|
203
210
|
/**
|
|
204
211
|
* The list of tasks that this task depends on.
|
|
205
212
|
*
|
|
@@ -212,7 +219,7 @@ export interface Pipeline {
|
|
|
212
219
|
* same package (e.g. "A package's test and lint commands depend on its own build being
|
|
213
220
|
* completed first.")
|
|
214
221
|
*
|
|
215
|
-
* Documentation: https://turborepo.
|
|
222
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#dependson
|
|
216
223
|
*
|
|
217
224
|
* @defaultValue `[]`
|
|
218
225
|
*/
|
|
@@ -226,7 +233,7 @@ export interface Pipeline {
|
|
|
226
233
|
* You no longer need to use the $ prefix.
|
|
227
234
|
* (e.g. $GITHUB_TOKEN → GITHUB_TOKEN)
|
|
228
235
|
*
|
|
229
|
-
* Documentation: https://turborepo.
|
|
236
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#env
|
|
230
237
|
*
|
|
231
238
|
* @defaultValue `[]`
|
|
232
239
|
*/
|
|
@@ -237,7 +244,7 @@ export interface Pipeline {
|
|
|
237
244
|
* task's environment, but should not contribute to the task's cache key,
|
|
238
245
|
* e.g. `AWS_SECRET_KEY`.
|
|
239
246
|
*
|
|
240
|
-
* Documentation: https://turborepo.
|
|
247
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#passthroughenv
|
|
241
248
|
*
|
|
242
249
|
* @defaultValue `null`
|
|
243
250
|
*/
|
|
@@ -250,7 +257,7 @@ export interface Pipeline {
|
|
|
250
257
|
* produce no artifacts other than logs (such as linters). Logs are always treated as a
|
|
251
258
|
* cacheable artifact and never need to be specified.
|
|
252
259
|
*
|
|
253
|
-
* Documentation: https://turborepo.
|
|
260
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#outputs
|
|
254
261
|
*
|
|
255
262
|
* @defaultValue `[]`
|
|
256
263
|
*/
|
|
@@ -261,7 +268,7 @@ export interface Pipeline {
|
|
|
261
268
|
*
|
|
262
269
|
* Setting cache to false is useful for long-running "watch" or development mode tasks.
|
|
263
270
|
*
|
|
264
|
-
* Documentation: https://turborepo.
|
|
271
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#cache
|
|
265
272
|
*
|
|
266
273
|
* @defaultValue `true`
|
|
267
274
|
*/
|
|
@@ -278,7 +285,7 @@ export interface Pipeline {
|
|
|
278
285
|
*
|
|
279
286
|
* If omitted or empty, all files in the package are considered as inputs.
|
|
280
287
|
*
|
|
281
|
-
* Documentation: https://turborepo.
|
|
288
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#inputs
|
|
282
289
|
*
|
|
283
290
|
* @defaultValue `[]`
|
|
284
291
|
*/
|
|
@@ -297,7 +304,7 @@ export interface Pipeline {
|
|
|
297
304
|
*
|
|
298
305
|
* "none": Hides all task output
|
|
299
306
|
*
|
|
300
|
-
* Documentation: https://turborepo.
|
|
307
|
+
* Documentation: https://turborepo.dev/docs/reference/run#--output-logs-option
|
|
301
308
|
*
|
|
302
309
|
* @defaultValue `"full"`
|
|
303
310
|
*/
|
|
@@ -308,7 +315,7 @@ export interface Pipeline {
|
|
|
308
315
|
* turbo that this is a long-running task and will ensure that other tasks
|
|
309
316
|
* cannot depend on it.
|
|
310
317
|
*
|
|
311
|
-
* Documentation: https://turborepo.
|
|
318
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#persistent
|
|
312
319
|
*
|
|
313
320
|
* @defaultValue `false`
|
|
314
321
|
*/
|
|
@@ -319,7 +326,7 @@ export interface Pipeline {
|
|
|
319
326
|
* Interactive tasks must be marked with "cache": false as the input
|
|
320
327
|
* they receive from stdin can change the outcome of the task.
|
|
321
328
|
*
|
|
322
|
-
* Documentation: https://turborepo.
|
|
329
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#interactive
|
|
323
330
|
*
|
|
324
331
|
* @defaultValue `false`
|
|
325
332
|
*/
|
|
@@ -332,7 +339,7 @@ export interface Pipeline {
|
|
|
332
339
|
* not be restarted by default. To enable restarting persistent tasks, set
|
|
333
340
|
* `interruptible` to true.
|
|
334
341
|
*
|
|
335
|
-
* Documentation: https://turborepo.
|
|
342
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#interruptible
|
|
336
343
|
*
|
|
337
344
|
* @defaultValue `false`
|
|
338
345
|
*/
|
|
@@ -343,7 +350,7 @@ export interface Pipeline {
|
|
|
343
350
|
*
|
|
344
351
|
* Tasks in this list will not be run until completion before this task starts execution.
|
|
345
352
|
*
|
|
346
|
-
* Documentation: https://turborepo.
|
|
353
|
+
* Documentation: https://turborepo.dev/docs/reference/configuration#with
|
|
347
354
|
*
|
|
348
355
|
* @defaultValue `[]`
|
|
349
356
|
*/
|
|
@@ -365,7 +372,7 @@ export interface RemoteCache {
|
|
|
365
372
|
* Indicates if the remote cache is enabled. When `false`, Turborepo will disable
|
|
366
373
|
* all remote cache operations, even if the repo has a valid token. If true, remote caching
|
|
367
374
|
* is enabled, but still requires the user to login and link their repo to a remote cache.
|
|
368
|
-
* Documentation: https://turborepo.
|
|
375
|
+
* Documentation: https://turborepo.dev/docs/core-concepts/remote-caching
|
|
369
376
|
*
|
|
370
377
|
* @defaultValue `true`
|
|
371
378
|
*/
|
|
@@ -382,14 +389,14 @@ export interface RemoteCache {
|
|
|
382
389
|
preflight?: boolean;
|
|
383
390
|
/**
|
|
384
391
|
* Set endpoint for API calls to the remote cache.
|
|
385
|
-
* Documentation: https://turborepo.
|
|
392
|
+
* Documentation: https://turborepo.dev/docs/core-concepts/remote-caching#self-hosting
|
|
386
393
|
*
|
|
387
394
|
* @defaultValue `"https://vercel.com/api"`
|
|
388
395
|
*/
|
|
389
396
|
apiUrl?: string;
|
|
390
397
|
/**
|
|
391
398
|
* Set endpoint for requesting tokens during `turbo login`.
|
|
392
|
-
* Documentation: https://turborepo.
|
|
399
|
+
* Documentation: https://turborepo.dev/docs/core-concepts/remote-caching#self-hosting
|
|
393
400
|
*
|
|
394
401
|
* @defaultValue `"https://vercel.com"`
|
|
395
402
|
*/
|