@turbo/types 1.10.13-canary.1 → 1.10.13
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 +4 -3
- package/src/scripts/codegen.js +2 -2
- package/src/types/config.ts +24 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turbo/types",
|
|
3
|
-
"version": "1.10.13
|
|
3
|
+
"version": "1.10.13",
|
|
4
4
|
"description": "Turborepo types",
|
|
5
5
|
"homepage": "https://turbo.build/repo",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"ts-json-schema-generator": "1.1.2"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@turbo/
|
|
24
|
+
"@turbo/eslint-config": "0.0.0",
|
|
25
|
+
"@turbo/tsconfig": "0.0.0"
|
|
25
26
|
},
|
|
26
27
|
"files": [
|
|
27
28
|
"src"
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"access": "public"
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
33
|
-
"lint": "eslint src
|
|
34
|
+
"lint": "eslint src/**/*",
|
|
34
35
|
"lint:prettier": "prettier -c . --cache"
|
|
35
36
|
}
|
|
36
37
|
}
|
package/src/scripts/codegen.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
const fs = require("node:fs");
|
|
4
|
+
const path = require("node:path");
|
|
3
5
|
const tsj = require("ts-json-schema-generator");
|
|
4
|
-
const fs = require("fs");
|
|
5
|
-
const path = require("path");
|
|
6
6
|
|
|
7
7
|
/** @type {import('ts-json-schema-generator/dist/src/Config').Config} */
|
|
8
8
|
const config = {
|
package/src/types/config.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export type Schema = RootSchema | WorkspaceSchema;
|
|
3
3
|
|
|
4
4
|
export interface BaseSchema {
|
|
5
|
-
/** @
|
|
5
|
+
/** @defaultValue https://turbo.build/schema.json */
|
|
6
6
|
$schema?: string;
|
|
7
7
|
/**
|
|
8
8
|
* An object representing the task dependency graph of your project. turbo interprets
|
|
@@ -11,8 +11,9 @@ export interface BaseSchema {
|
|
|
11
11
|
*
|
|
12
12
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#pipeline
|
|
13
13
|
*
|
|
14
|
-
* @
|
|
14
|
+
* @defaultValue `{}`
|
|
15
15
|
*/
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/consistent-indexed-object-style
|
|
16
17
|
pipeline: {
|
|
17
18
|
/**
|
|
18
19
|
* The name of a task that can be executed by turbo. If turbo finds a workspace
|
|
@@ -34,7 +35,7 @@ export interface WorkspaceSchema extends BaseSchema {
|
|
|
34
35
|
*
|
|
35
36
|
* Currently, only the "//" value is allowed.
|
|
36
37
|
*
|
|
37
|
-
* @
|
|
38
|
+
* @defaultValue ["//"]
|
|
38
39
|
*/
|
|
39
40
|
extends: string[];
|
|
40
41
|
}
|
|
@@ -56,7 +57,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
56
57
|
*
|
|
57
58
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#globaldependencies
|
|
58
59
|
*
|
|
59
|
-
* @
|
|
60
|
+
* @defaultValue []
|
|
60
61
|
*/
|
|
61
62
|
globalDependencies?: string[];
|
|
62
63
|
|
|
@@ -67,7 +68,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
67
68
|
*
|
|
68
69
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#globalenv
|
|
69
70
|
*
|
|
70
|
-
* @
|
|
71
|
+
* @defaultValue []
|
|
71
72
|
*/
|
|
72
73
|
globalEnv?: EnvWildcard[];
|
|
73
74
|
|
|
@@ -77,8 +78,8 @@ export interface RootSchema extends BaseSchema {
|
|
|
77
78
|
*
|
|
78
79
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#globalPassThroughEnv
|
|
79
80
|
*
|
|
80
|
-
* @
|
|
81
|
-
* @deprecated
|
|
81
|
+
* @defaultValue null
|
|
82
|
+
* @deprecated use `globalPassThroughEnv` instead
|
|
82
83
|
*/
|
|
83
84
|
experimentalGlobalPassThroughEnv?: null | string[];
|
|
84
85
|
|
|
@@ -88,7 +89,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
88
89
|
*
|
|
89
90
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#globalPassThroughEnv
|
|
90
91
|
*
|
|
91
|
-
* @
|
|
92
|
+
* @defaultValue null
|
|
92
93
|
*/
|
|
93
94
|
globalPassThroughEnv?: null | EnvWildcard[];
|
|
94
95
|
|
|
@@ -98,7 +99,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
98
99
|
*
|
|
99
100
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#globalDotEnv
|
|
100
101
|
*
|
|
101
|
-
* @
|
|
102
|
+
* @defaultValue null
|
|
102
103
|
*/
|
|
103
104
|
globalDotEnv?: null | AnchoredUnixPath[];
|
|
104
105
|
|
|
@@ -107,7 +108,7 @@ export interface RootSchema extends BaseSchema {
|
|
|
107
108
|
*
|
|
108
109
|
* Documentation: https://turbo.build/repo/docs/core-concepts/remote-caching
|
|
109
110
|
*
|
|
110
|
-
* @
|
|
111
|
+
* @defaultValue `{}`
|
|
111
112
|
*/
|
|
112
113
|
remoteCache?: RemoteCache;
|
|
113
114
|
}
|
|
@@ -127,7 +128,7 @@ export interface Pipeline {
|
|
|
127
128
|
*
|
|
128
129
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#dependson
|
|
129
130
|
*
|
|
130
|
-
* @
|
|
131
|
+
* @defaultValue []
|
|
131
132
|
*/
|
|
132
133
|
dependsOn?: string[];
|
|
133
134
|
|
|
@@ -137,11 +138,11 @@ export interface Pipeline {
|
|
|
137
138
|
* Note: If you are migrating from a turbo version 1.5 or below,
|
|
138
139
|
* you may be used to prefixing your variables with a $.
|
|
139
140
|
* You no longer need to use the $ prefix.
|
|
140
|
-
* (e.g. $GITHUB_TOKEN
|
|
141
|
+
* (e.g. $GITHUB_TOKEN → GITHUB_TOKEN)
|
|
141
142
|
*
|
|
142
143
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#env
|
|
143
144
|
*
|
|
144
|
-
* @
|
|
145
|
+
* @defaultValue []
|
|
145
146
|
*/
|
|
146
147
|
env?: EnvWildcard[];
|
|
147
148
|
|
|
@@ -152,8 +153,8 @@ export interface Pipeline {
|
|
|
152
153
|
*
|
|
153
154
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#passThroughEnv
|
|
154
155
|
*
|
|
155
|
-
* @
|
|
156
|
-
* @deprecated
|
|
156
|
+
* @defaultValue null
|
|
157
|
+
* @deprecated use `passThroughEnv` instead
|
|
157
158
|
*/
|
|
158
159
|
experimentalPassThroughEnv?: null | string[];
|
|
159
160
|
|
|
@@ -164,7 +165,7 @@ export interface Pipeline {
|
|
|
164
165
|
*
|
|
165
166
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#passThroughEnv
|
|
166
167
|
*
|
|
167
|
-
* @
|
|
168
|
+
* @defaultValue null
|
|
168
169
|
*/
|
|
169
170
|
passThroughEnv?: null | EnvWildcard[];
|
|
170
171
|
|
|
@@ -174,7 +175,7 @@ export interface Pipeline {
|
|
|
174
175
|
*
|
|
175
176
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#dotEnv
|
|
176
177
|
*
|
|
177
|
-
* @
|
|
178
|
+
* @defaultValue null
|
|
178
179
|
*/
|
|
179
180
|
dotEnv?: null | AnchoredUnixPath[];
|
|
180
181
|
|
|
@@ -187,7 +188,7 @@ export interface Pipeline {
|
|
|
187
188
|
*
|
|
188
189
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#outputs
|
|
189
190
|
*
|
|
190
|
-
* @
|
|
191
|
+
* @defaultValue []
|
|
191
192
|
*/
|
|
192
193
|
outputs?: string[];
|
|
193
194
|
|
|
@@ -198,7 +199,7 @@ export interface Pipeline {
|
|
|
198
199
|
*
|
|
199
200
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#cache
|
|
200
201
|
*
|
|
201
|
-
* @
|
|
202
|
+
* @defaultValue true
|
|
202
203
|
*/
|
|
203
204
|
cache?: boolean;
|
|
204
205
|
|
|
@@ -215,7 +216,7 @@ export interface Pipeline {
|
|
|
215
216
|
*
|
|
216
217
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#inputs
|
|
217
218
|
*
|
|
218
|
-
* @
|
|
219
|
+
* @defaultValue []
|
|
219
220
|
*/
|
|
220
221
|
inputs?: string[];
|
|
221
222
|
|
|
@@ -234,7 +235,7 @@ export interface Pipeline {
|
|
|
234
235
|
*
|
|
235
236
|
* Documentation: https://turbo.build/repo/docs/reference/command-line-reference#--output-logs
|
|
236
237
|
*
|
|
237
|
-
* @
|
|
238
|
+
* @defaultValue full
|
|
238
239
|
*/
|
|
239
240
|
outputMode?: OutputMode;
|
|
240
241
|
|
|
@@ -245,7 +246,7 @@ export interface Pipeline {
|
|
|
245
246
|
*
|
|
246
247
|
* Documentation: https://turbo.build/repo/docs/reference/configuration#persistent
|
|
247
248
|
*
|
|
248
|
-
* @
|
|
249
|
+
* @defaultValue false
|
|
249
250
|
*/
|
|
250
251
|
persistent?: boolean;
|
|
251
252
|
}
|
|
@@ -257,7 +258,7 @@ export interface RemoteCache {
|
|
|
257
258
|
* variable `TURBO_REMOTE_CACHE_SIGNATURE_KEY`. Turborepo will reject any downloaded artifacts
|
|
258
259
|
* that have an invalid signature or are missing a signature.
|
|
259
260
|
*
|
|
260
|
-
* @
|
|
261
|
+
* @defaultValue false
|
|
261
262
|
*/
|
|
262
263
|
signature?: boolean;
|
|
263
264
|
}
|