turbo 2.3.4-canary.8 → 2.3.4
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 +9 -8
- package/schema.json +283 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "turbo",
|
|
3
|
-
"version": "2.3.4
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"description": "Turborepo is a high-performance build system for JavaScript and TypeScript codebases.",
|
|
5
5
|
"repository": "https://github.com/vercel/turborepo",
|
|
6
6
|
"bugs": "https://github.com/vercel/turborepo/issues",
|
|
@@ -11,15 +11,16 @@
|
|
|
11
11
|
"turbo": "./bin/turbo"
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
|
-
"bin"
|
|
14
|
+
"bin",
|
|
15
|
+
"schema.json"
|
|
15
16
|
],
|
|
16
17
|
"optionalDependencies": {
|
|
17
|
-
"turbo-darwin-64": "2.3.4
|
|
18
|
-
"turbo-darwin-arm64": "2.3.4
|
|
19
|
-
"turbo-linux-64": "2.3.4
|
|
20
|
-
"turbo-linux-arm64": "2.3.4
|
|
21
|
-
"turbo-windows-64": "2.3.4
|
|
22
|
-
"turbo-windows-arm64": "2.3.4
|
|
18
|
+
"turbo-darwin-64": "2.3.4",
|
|
19
|
+
"turbo-darwin-arm64": "2.3.4",
|
|
20
|
+
"turbo-linux-64": "2.3.4",
|
|
21
|
+
"turbo-linux-arm64": "2.3.4",
|
|
22
|
+
"turbo-windows-64": "2.3.4",
|
|
23
|
+
"turbo-windows-arm64": "2.3.4"
|
|
23
24
|
},
|
|
24
25
|
"scripts": {
|
|
25
26
|
"postversion": "node bump-version.js"
|
package/schema.json
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$ref": "#/definitions/Schema",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Schema": {
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"$ref": "#/definitions/RootSchema"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"$ref": "#/definitions/WorkspaceSchema"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"RootSchema": {
|
|
16
|
+
"type": "object",
|
|
17
|
+
"properties": {
|
|
18
|
+
"$schema": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"default": "https://turbo.build/schema.v2.json"
|
|
21
|
+
},
|
|
22
|
+
"tasks": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"additionalProperties": {
|
|
25
|
+
"$ref": "#/definitions/Pipeline",
|
|
26
|
+
"description": "The name of a task that can be executed by turbo. If turbo finds a workspace package with a package.json scripts object with a matching key, it will apply the pipeline task configuration to that npm script during execution."
|
|
27
|
+
},
|
|
28
|
+
"description": "An object representing the task dependency graph of your project. turbo interprets these conventions to schedule, execute, and cache the outputs of tasks in your project.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#tasks",
|
|
29
|
+
"default": {}
|
|
30
|
+
},
|
|
31
|
+
"globalDependencies": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
"description": "A list of globs to include in the set of implicit global hash dependencies.\n\nThe contents of these files will be included in the global hashing algorithm and affect the hashes of all tasks.\n\nThis is useful for busting the cache based on:\n\n- .env files (not in Git)\n\n- any root level file that impacts package tasks that are not represented in the traditional dependency graph (e.g. a root tsconfig.json, jest.config.ts, .eslintrc, etc.)\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#globaldependencies",
|
|
37
|
+
"default": []
|
|
38
|
+
},
|
|
39
|
+
"globalEnv": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"$ref": "#/definitions/EnvWildcard"
|
|
43
|
+
},
|
|
44
|
+
"description": "A list of environment variables for implicit global hash dependencies.\n\nThe variables included in this list will affect all task hashes.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#globalenv",
|
|
45
|
+
"default": []
|
|
46
|
+
},
|
|
47
|
+
"globalPassThroughEnv": {
|
|
48
|
+
"anyOf": [
|
|
49
|
+
{
|
|
50
|
+
"type": "null"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"$ref": "#/definitions/EnvWildcard"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"description": "An allowlist of environment variables that should be made to all tasks, but should not contribute to the task's cache key, e.g. `AWS_SECRET_KEY`.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#globalpassthroughenv",
|
|
60
|
+
"default": null
|
|
61
|
+
},
|
|
62
|
+
"remoteCache": {
|
|
63
|
+
"$ref": "#/definitions/RemoteCache",
|
|
64
|
+
"description": "Configuration options that control how turbo interfaces with the remote cache.\n\nDocumentation: https://turbo.build/repo/docs/core-concepts/remote-caching",
|
|
65
|
+
"default": {}
|
|
66
|
+
},
|
|
67
|
+
"ui": {
|
|
68
|
+
"$ref": "#/definitions/UI",
|
|
69
|
+
"description": "Enable use of the UI for `turbo`.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#ui",
|
|
70
|
+
"default": "stream"
|
|
71
|
+
},
|
|
72
|
+
"dangerouslyDisablePackageManagerCheck": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "Disable check for `packageManager` in root `package.json`\n\nThis is highly discouraged as it leaves `turbo` dependent on system configuration to infer the correct package manager.\n\nSome turbo features are disabled if this is set to true.",
|
|
75
|
+
"default": false
|
|
76
|
+
},
|
|
77
|
+
"cacheDir": {
|
|
78
|
+
"$ref": "#/definitions/RelativeUnixPath",
|
|
79
|
+
"description": "Specify the filesystem cache directory.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#cachedir",
|
|
80
|
+
"default": ".turbo/cache"
|
|
81
|
+
},
|
|
82
|
+
"daemon": {
|
|
83
|
+
"type": "boolean",
|
|
84
|
+
"description": "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`.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#daemon",
|
|
85
|
+
"default": false
|
|
86
|
+
},
|
|
87
|
+
"envMode": {
|
|
88
|
+
"$ref": "#/definitions/EnvMode",
|
|
89
|
+
"description": "Turborepo's Environment Modes allow you to control which environment variables are available to a task at runtime:\n\n- `\"strict\"`: Filter environment variables to only those that are specified in the `env` and `globalEnv` keys in `turbo.json`.\n- `\"loose\"`: Allow all environment variables for the process to be available.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#envmode",
|
|
90
|
+
"default": "strict"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": [
|
|
95
|
+
"tasks"
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
"Pipeline": {
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"dependsOn": {
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"description": "The list of tasks that this task depends on.\n\nPrefixing an item in dependsOn with a ^ prefix tells turbo that this task depends on the package's topological dependencies completing the task first. (e.g. \"A package's build tasks should only run once all of its workspace dependencies have completed their own build commands.\")\n\nItems in dependsOn without a ^ prefix express the relationships between tasks within the same package (e.g. \"A package's test and lint commands depend on its own build being completed first.\")\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#dependson",
|
|
107
|
+
"default": []
|
|
108
|
+
},
|
|
109
|
+
"env": {
|
|
110
|
+
"type": "array",
|
|
111
|
+
"items": {
|
|
112
|
+
"$ref": "#/definitions/EnvWildcard"
|
|
113
|
+
},
|
|
114
|
+
"description": "A list of environment variables that this task depends on.\n\nNote: If you are migrating from a turbo version 1.5 or below, you may be used to prefixing your variables with a $. You no longer need to use the $ prefix. (e.g. $GITHUB_TOKEN → GITHUB_TOKEN)\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#env",
|
|
115
|
+
"default": []
|
|
116
|
+
},
|
|
117
|
+
"passThroughEnv": {
|
|
118
|
+
"anyOf": [
|
|
119
|
+
{
|
|
120
|
+
"type": "null"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"$ref": "#/definitions/EnvWildcard"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"description": "An allowlist of environment variables that should be made available in this task's environment, but should not contribute to the task's cache key, e.g. `AWS_SECRET_KEY`.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#passthroughenv",
|
|
130
|
+
"default": null
|
|
131
|
+
},
|
|
132
|
+
"outputs": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"description": "The set of glob patterns indicating a task's cacheable filesystem outputs.\n\nTurborepo captures task logs for all tasks. This enables us to cache tasks whose runs produce no artifacts other than logs (such as linters). Logs are always treated as a cacheable artifact and never need to be specified.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#outputs",
|
|
138
|
+
"default": []
|
|
139
|
+
},
|
|
140
|
+
"cache": {
|
|
141
|
+
"type": "boolean",
|
|
142
|
+
"description": "Whether or not to cache the outputs of the task.\n\nSetting cache to false is useful for long-running \"watch\" or development mode tasks.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#cache",
|
|
143
|
+
"default": true
|
|
144
|
+
},
|
|
145
|
+
"inputs": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"description": "The set of glob patterns to consider as inputs to this task.\n\nChanges to files covered by these globs will cause a cache miss and the task will be rerun.\n\nIf a file has been changed that is **not** included in the set of globs, it will not cause a cache miss.\n\nIf omitted or empty, all files in the package are considered as inputs.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#inputs",
|
|
151
|
+
"default": []
|
|
152
|
+
},
|
|
153
|
+
"outputLogs": {
|
|
154
|
+
"$ref": "#/definitions/OutputLogs",
|
|
155
|
+
"description": "Output mode for the task.\n\n\"full\": Displays all output\n\n\"hash-only\": Show only the hashes of the tasks\n\n\"new-only\": Only show output from cache misses\n\n\"errors-only\": Only show output from task failures\n\n\"none\": Hides all task output\n\nDocumentation: https://turbo.build/repo/docs/reference/run#--output-logs-option",
|
|
156
|
+
"default": "full"
|
|
157
|
+
},
|
|
158
|
+
"persistent": {
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"description": "Indicates whether the task exits or not. Setting `persistent` to `true` tells turbo that this is a long-running task and will ensure that other tasks cannot depend on it.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#persistent",
|
|
161
|
+
"default": false
|
|
162
|
+
},
|
|
163
|
+
"interactive": {
|
|
164
|
+
"type": "boolean",
|
|
165
|
+
"description": "Mark a task as interactive allowing it to receive input from stdin. Interactive tasks must be marked with \"cache\": false as the input they receive from stdin can change the outcome of the task.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#interactive",
|
|
166
|
+
"default": false
|
|
167
|
+
},
|
|
168
|
+
"interruptible": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"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",
|
|
171
|
+
"default": false
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"additionalProperties": false
|
|
175
|
+
},
|
|
176
|
+
"EnvWildcard": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
},
|
|
179
|
+
"OutputLogs": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"enum": [
|
|
182
|
+
"full",
|
|
183
|
+
"hash-only",
|
|
184
|
+
"new-only",
|
|
185
|
+
"errors-only",
|
|
186
|
+
"none"
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"RemoteCache": {
|
|
190
|
+
"type": "object",
|
|
191
|
+
"properties": {
|
|
192
|
+
"signature": {
|
|
193
|
+
"type": "boolean",
|
|
194
|
+
"description": "Indicates if signature verification is enabled for requests to the remote cache. When `true`, Turborepo will sign every uploaded artifact using the value of the environment variable `TURBO_REMOTE_CACHE_SIGNATURE_KEY`. Turborepo will reject any downloaded artifacts that have an invalid signature or are missing a signature.",
|
|
195
|
+
"default": false
|
|
196
|
+
},
|
|
197
|
+
"enabled": {
|
|
198
|
+
"type": "boolean",
|
|
199
|
+
"description": "Indicates if the remote cache is enabled. When `false`, Turborepo will disable all remote cache operations, even if the repo has a valid token. If true, remote caching is enabled, but still requires the user to login and link their repo to a remote cache. Documentation: https://turbo.build/repo/docs/core-concepts/remote-caching",
|
|
200
|
+
"default": true
|
|
201
|
+
},
|
|
202
|
+
"preflight": {
|
|
203
|
+
"type": "boolean",
|
|
204
|
+
"description": "When enabled, any HTTP request will be preceded by an OPTIONS request to determine if the request is supported by the endpoint.\n\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#preflighted_requests",
|
|
205
|
+
"default": false
|
|
206
|
+
},
|
|
207
|
+
"apiUrl": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Set endpoint for API calls to the remote cache. Documentation: https://turbo.build/repo/docs/core-concepts/remote-caching#self-hosting",
|
|
210
|
+
"default": "https://vercel.com/api"
|
|
211
|
+
},
|
|
212
|
+
"loginUrl": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "Set endpoint for requesting tokens during `turbo login`. Documentation: https://turbo.build/repo/docs/core-concepts/remote-caching#self-hosting",
|
|
215
|
+
"default": "https://vercel.com"
|
|
216
|
+
},
|
|
217
|
+
"timeout": {
|
|
218
|
+
"type": "number",
|
|
219
|
+
"description": "Sets a timeout for remote cache operations. Value is given in seconds and only whole values are accepted. If `0` is passed, then there is no timeout for any cache operations.",
|
|
220
|
+
"default": 30
|
|
221
|
+
},
|
|
222
|
+
"uploadTimeout": {
|
|
223
|
+
"type": "number",
|
|
224
|
+
"description": "Sets a timeout for remote cache uploads. Value is given in seconds and only whole values are accepted. If `0` is passed, then there is no timeout for any remote cache uploads.",
|
|
225
|
+
"default": 60
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"additionalProperties": false
|
|
229
|
+
},
|
|
230
|
+
"UI": {
|
|
231
|
+
"type": "string",
|
|
232
|
+
"enum": [
|
|
233
|
+
"tui",
|
|
234
|
+
"stream"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"RelativeUnixPath": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"description": "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."
|
|
240
|
+
},
|
|
241
|
+
"EnvMode": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"enum": [
|
|
244
|
+
"strict",
|
|
245
|
+
"loose"
|
|
246
|
+
]
|
|
247
|
+
},
|
|
248
|
+
"WorkspaceSchema": {
|
|
249
|
+
"type": "object",
|
|
250
|
+
"properties": {
|
|
251
|
+
"$schema": {
|
|
252
|
+
"type": "string",
|
|
253
|
+
"default": "https://turbo.build/schema.v2.json"
|
|
254
|
+
},
|
|
255
|
+
"tasks": {
|
|
256
|
+
"type": "object",
|
|
257
|
+
"additionalProperties": {
|
|
258
|
+
"$ref": "#/definitions/Pipeline",
|
|
259
|
+
"description": "The name of a task that can be executed by turbo. If turbo finds a workspace package with a package.json scripts object with a matching key, it will apply the pipeline task configuration to that npm script during execution."
|
|
260
|
+
},
|
|
261
|
+
"description": "An object representing the task dependency graph of your project. turbo interprets these conventions to schedule, execute, and cache the outputs of tasks in your project.\n\nDocumentation: https://turbo.build/repo/docs/reference/configuration#tasks",
|
|
262
|
+
"default": {}
|
|
263
|
+
},
|
|
264
|
+
"extends": {
|
|
265
|
+
"type": "array",
|
|
266
|
+
"items": {
|
|
267
|
+
"type": "string"
|
|
268
|
+
},
|
|
269
|
+
"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.",
|
|
270
|
+
"default": [
|
|
271
|
+
"//"
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"required": [
|
|
276
|
+
"extends",
|
|
277
|
+
"tasks"
|
|
278
|
+
],
|
|
279
|
+
"additionalProperties": false,
|
|
280
|
+
"description": "A `turbo.json` file in a package in the monorepo (not the root)"
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|