@turbo/types 2.7.3 → 2.7.4-canary.1
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/package.json +1 -3
- package/schemas/schema.json +7 -26
- package/schemas/schema.v1.json +5 -18
- package/schemas/schema.v2.json +7 -26
- package/src/index.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turbo/types",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4-canary.1",
|
|
4
4
|
"description": "Turborepo types",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"homepage": "https://turborepo.com",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"@types/node": "20.11.30",
|
|
21
21
|
"ts-json-schema-generator": "2.3.0",
|
|
22
22
|
"tsx": "4.19.1",
|
|
23
|
-
"@turbo/eslint-config": "0.0.0",
|
|
24
23
|
"@turbo/tsconfig": "0.0.0"
|
|
25
24
|
},
|
|
26
25
|
"files": [
|
|
@@ -32,7 +31,6 @@
|
|
|
32
31
|
},
|
|
33
32
|
"scripts": {
|
|
34
33
|
"build": "tsc && pnpm generate-schema",
|
|
35
|
-
"lint": "eslint src/",
|
|
36
34
|
"lint:prettier": "prettier -c . --cache",
|
|
37
35
|
"generate-schema": "tsx scripts/generate-schema.ts",
|
|
38
36
|
"copy-schema": "cp schemas/schema.json ../turbo/schema.json",
|
package/schemas/schema.json
CHANGED
|
@@ -111,9 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"additionalProperties": false,
|
|
114
|
-
"required": [
|
|
115
|
-
"tasks"
|
|
116
|
-
]
|
|
114
|
+
"required": ["tasks"]
|
|
117
115
|
},
|
|
118
116
|
"Pipeline": {
|
|
119
117
|
"type": "object",
|
|
@@ -206,13 +204,7 @@
|
|
|
206
204
|
},
|
|
207
205
|
"OutputLogs": {
|
|
208
206
|
"type": "string",
|
|
209
|
-
"enum": [
|
|
210
|
-
"full",
|
|
211
|
-
"hash-only",
|
|
212
|
-
"new-only",
|
|
213
|
-
"errors-only",
|
|
214
|
-
"none"
|
|
215
|
-
]
|
|
207
|
+
"enum": ["full", "hash-only", "new-only", "errors-only", "none"]
|
|
216
208
|
},
|
|
217
209
|
"RemoteCache": {
|
|
218
210
|
"type": "object",
|
|
@@ -265,10 +257,7 @@
|
|
|
265
257
|
},
|
|
266
258
|
"UI": {
|
|
267
259
|
"type": "string",
|
|
268
|
-
"enum": [
|
|
269
|
-
"tui",
|
|
270
|
-
"stream"
|
|
271
|
-
]
|
|
260
|
+
"enum": ["tui", "stream"]
|
|
272
261
|
},
|
|
273
262
|
"RelativeUnixPath": {
|
|
274
263
|
"type": "string",
|
|
@@ -276,10 +265,7 @@
|
|
|
276
265
|
},
|
|
277
266
|
"EnvMode": {
|
|
278
267
|
"type": "string",
|
|
279
|
-
"enum": [
|
|
280
|
-
"strict",
|
|
281
|
-
"loose"
|
|
282
|
-
]
|
|
268
|
+
"enum": ["strict", "loose"]
|
|
283
269
|
},
|
|
284
270
|
"RootBoundariesConfig": {
|
|
285
271
|
"type": "object",
|
|
@@ -357,9 +343,7 @@
|
|
|
357
343
|
"type": "string"
|
|
358
344
|
},
|
|
359
345
|
"description": "This key is only available in Workspace Configs and cannot be used in your root turbo.json.\n\nTells turbo to extend your root `turbo.json` and overrides with the keys provided in your Workspace Configs.\n\nCurrently, only the \"//\" value is allowed.",
|
|
360
|
-
"default": [
|
|
361
|
-
"//"
|
|
362
|
-
]
|
|
346
|
+
"default": ["//"]
|
|
363
347
|
},
|
|
364
348
|
"tags": {
|
|
365
349
|
"type": "array",
|
|
@@ -373,10 +357,7 @@
|
|
|
373
357
|
"description": "Configuration for `turbo boundaries` that is specific to this package"
|
|
374
358
|
}
|
|
375
359
|
},
|
|
376
|
-
"required": [
|
|
377
|
-
"extends",
|
|
378
|
-
"tasks"
|
|
379
|
-
],
|
|
360
|
+
"required": ["extends", "tasks"],
|
|
380
361
|
"additionalProperties": false,
|
|
381
362
|
"description": "A `turbo.json` file in a package in the monorepo (not the root)"
|
|
382
363
|
},
|
|
@@ -394,4 +375,4 @@
|
|
|
394
375
|
"additionalProperties": false
|
|
395
376
|
}
|
|
396
377
|
}
|
|
397
|
-
}
|
|
378
|
+
}
|
package/schemas/schema.v1.json
CHANGED
|
@@ -34,15 +34,10 @@
|
|
|
34
34
|
"type": "string"
|
|
35
35
|
},
|
|
36
36
|
"description": "This key is only available in Workspace Configs and cannot be used in your root turbo.json.\n\nTells turbo to extend your root `turbo.json` and overrides with the keys provided in your Workspace Configs.\n\nCurrently, only the \"//\" value is allowed.",
|
|
37
|
-
"default": [
|
|
38
|
-
"//"
|
|
39
|
-
]
|
|
37
|
+
"default": ["//"]
|
|
40
38
|
}
|
|
41
39
|
},
|
|
42
|
-
"required": [
|
|
43
|
-
"extends",
|
|
44
|
-
"pipeline"
|
|
45
|
-
],
|
|
40
|
+
"required": ["extends", "pipeline"],
|
|
46
41
|
"additionalProperties": false
|
|
47
42
|
},
|
|
48
43
|
"PipelineV1": {
|
|
@@ -141,13 +136,7 @@
|
|
|
141
136
|
},
|
|
142
137
|
"OutputModeV1": {
|
|
143
138
|
"type": "string",
|
|
144
|
-
"enum": [
|
|
145
|
-
"full",
|
|
146
|
-
"hash-only",
|
|
147
|
-
"new-only",
|
|
148
|
-
"errors-only",
|
|
149
|
-
"none"
|
|
150
|
-
]
|
|
139
|
+
"enum": ["full", "hash-only", "new-only", "errors-only", "none"]
|
|
151
140
|
},
|
|
152
141
|
"RootSchemaV1": {
|
|
153
142
|
"type": "object",
|
|
@@ -223,9 +212,7 @@
|
|
|
223
212
|
}
|
|
224
213
|
},
|
|
225
214
|
"additionalProperties": false,
|
|
226
|
-
"required": [
|
|
227
|
-
"pipeline"
|
|
228
|
-
]
|
|
215
|
+
"required": ["pipeline"]
|
|
229
216
|
},
|
|
230
217
|
"RemoteCacheV1": {
|
|
231
218
|
"type": "object",
|
|
@@ -244,4 +231,4 @@
|
|
|
244
231
|
"additionalProperties": false
|
|
245
232
|
}
|
|
246
233
|
}
|
|
247
|
-
}
|
|
234
|
+
}
|
package/schemas/schema.v2.json
CHANGED
|
@@ -111,9 +111,7 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"additionalProperties": false,
|
|
114
|
-
"required": [
|
|
115
|
-
"tasks"
|
|
116
|
-
]
|
|
114
|
+
"required": ["tasks"]
|
|
117
115
|
},
|
|
118
116
|
"Pipeline": {
|
|
119
117
|
"type": "object",
|
|
@@ -206,13 +204,7 @@
|
|
|
206
204
|
},
|
|
207
205
|
"OutputLogs": {
|
|
208
206
|
"type": "string",
|
|
209
|
-
"enum": [
|
|
210
|
-
"full",
|
|
211
|
-
"hash-only",
|
|
212
|
-
"new-only",
|
|
213
|
-
"errors-only",
|
|
214
|
-
"none"
|
|
215
|
-
]
|
|
207
|
+
"enum": ["full", "hash-only", "new-only", "errors-only", "none"]
|
|
216
208
|
},
|
|
217
209
|
"RemoteCache": {
|
|
218
210
|
"type": "object",
|
|
@@ -265,10 +257,7 @@
|
|
|
265
257
|
},
|
|
266
258
|
"UI": {
|
|
267
259
|
"type": "string",
|
|
268
|
-
"enum": [
|
|
269
|
-
"tui",
|
|
270
|
-
"stream"
|
|
271
|
-
]
|
|
260
|
+
"enum": ["tui", "stream"]
|
|
272
261
|
},
|
|
273
262
|
"RelativeUnixPath": {
|
|
274
263
|
"type": "string",
|
|
@@ -276,10 +265,7 @@
|
|
|
276
265
|
},
|
|
277
266
|
"EnvMode": {
|
|
278
267
|
"type": "string",
|
|
279
|
-
"enum": [
|
|
280
|
-
"strict",
|
|
281
|
-
"loose"
|
|
282
|
-
]
|
|
268
|
+
"enum": ["strict", "loose"]
|
|
283
269
|
},
|
|
284
270
|
"RootBoundariesConfig": {
|
|
285
271
|
"type": "object",
|
|
@@ -357,9 +343,7 @@
|
|
|
357
343
|
"type": "string"
|
|
358
344
|
},
|
|
359
345
|
"description": "This key is only available in Workspace Configs and cannot be used in your root turbo.json.\n\nTells turbo to extend your root `turbo.json` and overrides with the keys provided in your Workspace Configs.\n\nCurrently, only the \"//\" value is allowed.",
|
|
360
|
-
"default": [
|
|
361
|
-
"//"
|
|
362
|
-
]
|
|
346
|
+
"default": ["//"]
|
|
363
347
|
},
|
|
364
348
|
"tags": {
|
|
365
349
|
"type": "array",
|
|
@@ -373,10 +357,7 @@
|
|
|
373
357
|
"description": "Configuration for `turbo boundaries` that is specific to this package"
|
|
374
358
|
}
|
|
375
359
|
},
|
|
376
|
-
"required": [
|
|
377
|
-
"extends",
|
|
378
|
-
"tasks"
|
|
379
|
-
],
|
|
360
|
+
"required": ["extends", "tasks"],
|
|
380
361
|
"additionalProperties": false,
|
|
381
362
|
"description": "A `turbo.json` file in a package in the monorepo (not the root)"
|
|
382
363
|
},
|
|
@@ -394,4 +375,4 @@
|
|
|
394
375
|
"additionalProperties": false
|
|
395
376
|
}
|
|
396
377
|
}
|
|
397
|
-
}
|
|
378
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -24,7 +24,7 @@ export {
|
|
|
24
24
|
type WorkspaceSchema,
|
|
25
25
|
type WorkspaceSchema as WorkspaceSchemaV2,
|
|
26
26
|
isRootSchemaV2,
|
|
27
|
-
isWorkspaceSchemaV2
|
|
27
|
+
isWorkspaceSchemaV2
|
|
28
28
|
} from "./types/config-v2";
|
|
29
29
|
|
|
30
30
|
export {
|
|
@@ -37,7 +37,7 @@ export {
|
|
|
37
37
|
type SchemaV1,
|
|
38
38
|
type WorkspaceSchemaV1,
|
|
39
39
|
isRootSchemaV1,
|
|
40
|
-
isWorkspaceSchemaV1
|
|
40
|
+
isWorkspaceSchemaV1
|
|
41
41
|
} from "./types/config-v1";
|
|
42
42
|
|
|
43
43
|
export type { DryRun } from "./types/dry";
|