-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathschema.json
More file actions
456 lines (456 loc) Β· 15.8 KB
/
schema.json
File metadata and controls
456 lines (456 loc) Β· 15.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Settings",
"propertyAliases": {
"enableAutoTypes": ["tsEnableAutoTypes"]
},
"properties": {
"changesetBaseRefs": {
"type": "array",
"description": "The list of git refs to use as base for changeset detection. Defaults to ['main', 'master'] if not set.",
"items": {
"type": "string"
},
"default": ["main", "master"]
},
"cloneConcurrency": {
"type": "usize",
"description": "The number of concurrent git clone operations Yarn can perform",
"default": 2
},
"compressionLevel": {
"type": ["zpm_formats::CompressionAlgorithm", "null"],
"description": "The compression level to use for the packed file"
},
"daemonOutputBufferMaxLines": {
"type": "usize",
"description": "Maximum number of output lines to keep in memory per task in the daemon",
"default": 1000
},
"daemonMaxClosedTasks": {
"type": "usize",
"description": "Maximum number of completed/failed tasks whose output buffers are kept in memory by the daemon",
"default": 100
},
"defaultSemverRangePrefix": {
"type": "zpm_semver::RangeKind",
"description": "The default semver range prefix to use for dependencies",
"default": "caret"
},
"enableAutoTypes": {
"type": "boolean",
"description": "Whether to automatically add @types/ packages to the dependencies",
"default": "crate::check_tsconfig(context)"
},
"enableConstraintsChecks": {
"type": "boolean",
"description": "Whether to check constraints when performing explicit installs",
"default": false
},
"enableGlobalCache": {
"type": "boolean",
"description": "Whether to keep the packages in a global cache rather than inside the project",
"default": true
},
"enableLocalCacheCleanup": {
"type": "boolean",
"description": "Whether to remove unused packages from the local cache after each install",
"default": true
},
"enableImmutableCache": {
"type": "boolean",
"description": "Whether to report errors when a package would be added or removed from the cache",
"default": false
},
"enableImmutableInstalls": {
"type": "boolean",
"description": "Whether to report errors when a package would be added or removed from the cache",
"default": false
},
"enableMigrationMode": {
"type": "boolean",
"description": "Change various settings in Yarn to make it easier to use. This setting is NOT meant to be manually set; Yarn Switch will automatically apply it when necessary. See [Migration Mode](/getting-started/migration-mode) for details.",
"default": false
},
"enableNetwork": {
"type": "boolean",
"description": "Whether to allow Yarn to perform network queries or not",
"default": true
},
"enableProgressBars": {
"type": "boolean",
"description": "Whether to show progress bars in the output",
"default": "zpm_utils::is_terminal()"
},
"enableScripts": {
"type": "boolean",
"description": "Whether to run postinstall scripts",
"default": true
},
"enableStrictSsl": {
"type": "boolean",
"description": "Whether SSL errors should be treated as errors",
"default": true
},
"enableTimers": {
"type": "boolean",
"description": "Whether to show timers in the output",
"default": true
},
"enableTransparentWorkspaces": {
"type": "boolean",
"description": "Whether to allow workspaces to depend on other workspaces through classic semver ranges",
"default": true
},
"enforceUnsafeHttp": {
"type": "boolean",
"description": "Whether to enforce using unsafe HTTP requests over HTTPS",
"default": false
},
"globalFolder": {
"type": "zpm_utils::Path",
"description": "The folder where the global cache will be stored",
"default": "Path::home_dir().unwrap().unwrap().with_join_str(\".yarn/zpm\")"
},
"httpRetry": {
"type": "usize",
"description": "The number of times to retry a network request",
"default": 3
},
"httpProxy": {
"type": ["string", "null"],
"description": "Proxy to use when making an HTTP request"
},
"httpTimeout": {
"type": "u64",
"description": "Amount of time to wait in milliseconds before cancelling pending HTTP requests",
"default": 60000
},
"httpsCaFilePath": {
"type": ["zpm_utils::Path", "null"],
"description": "Path to a file containing one or multiple Certificate Authority signing certificates"
},
"httpsCertFilePath": {
"type": ["zpm_utils::Path", "null"],
"description": "Path to a file containing a certificate chain in PEM format"
},
"httpsKeyFilePath": {
"type": ["zpm_utils::Path", "null"],
"description": "Path to a file containing a private key in PEM format"
},
"httpsProxy": {
"type": ["string", "null"],
"description": "Define a proxy to use when making an HTTPS request"
},
"localCacheFolderName": {
"type": "string",
"description": "The name of the folder where the local cache will be stored inside the .yarn folder",
"default": "cache"
},
"networkConcurrency": {
"type": "usize",
"description": "The number of concurrent network requests Yarn can perform",
"default": 100
},
"networkSettings": {
"type": "object",
"description": "Configuration specific to each network setting",
"additionalKeys": {
"type": "zpm_utils::Glob"
},
"additionalProperties": {
"type": "object",
"title": "NetworkSettings",
"properties": {
"enableNetwork": {
"type": ["boolean", "null"],
"description": "Whether to allow network access for this specific glob"
}
}
}
},
"nodeDistUrl": {
"type": "string",
"description": "The URL to use for downloading Node.js distributions",
"default": "https://nodejs.org/dist"
},
"nodeLinker": {
"type": "crate::NodeLinker",
"description": "The linker to use for node_modules",
"default": "pnp"
},
"npmAlwaysAuth": {
"type": "boolean",
"description": "Whether to always send authentication headers when querying the npm registry",
"default": false
},
"npmMinimalAgeGate": {
"type": ["std::time::Duration", "null"],
"description": "Minimum age of a package version in minutes to be considered for installation. Can be used to prevent installing very new packages, either because they tend to be more likely to include accidental bugs, or because of supply-chain security concerns."
},
"npmPreapprovedPackages": {
"type": "array",
"description": "List of package descriptors (package@range) that bypass the minimum age check. Use this for packages that you trust or that need to be installed immediately.",
"items": {
"type": "zpm_primitives::FilterDescriptor"
}
},
"npmAuthIdent": {
"type": ["string", "null"],
"description": "The username to use for authentication when querying the npm registry"
},
"npmAuthToken": {
"type": ["zpm_utils::Secret<String>", "null"],
"description": "The token to use for authentication when querying the npm registry"
},
"npmPublishProvenance": {
"type": "boolean",
"description": "Whether to generate and publish provenance information when publishing packages",
"default": false
},
"npmPublishRegistry": {
"type": ["string", "null"],
"description": "The URL of the npm registry server to use for publishing"
},
"npmRegistries": {
"type": "object",
"description": "Configuration specific to each npm registry",
"additionalProperties": {
"type": "object",
"title": "NpmRegistry",
"properties": {
"npmAlwaysAuth": {
"type": ["boolean", "null"],
"description": "Whether to always send authentication headers when querying the npm registry"
},
"npmAuthIdent": {
"type": ["string", "null"],
"description": "The username to use for authentication when querying the npm registry"
},
"npmAuthToken": {
"type": ["zpm_utils::Secret<String>", "null"],
"description": "The token to use for authentication when querying the npm registry"
}
}
}
},
"npmRegistryServer": {
"type": "string",
"description": "The URL of the default npm registry server",
"default": "https://registry.npmjs.org"
},
"npmScopes": {
"type": "object",
"description": "Configuration specific to each npm scope",
"additionalProperties": {
"type": "object",
"title": "NpmScope",
"properties": {
"npmRegistryServer": {
"type": ["string", "null"],
"description": "The URL of the npm registry server to use for this scope"
},
"npmPublishRegistry": {
"type": ["string", "null"],
"description": "The URL of the npm registry server to use for this scope when publishing packages"
},
"npmAlwaysAuth": {
"type": ["boolean", "null"],
"description": "Whether to always send authentication headers when querying the npm registry"
},
"npmAuthIdent": {
"type": ["string", "null"],
"description": "The username to use for authentication when querying the npm registry"
},
"npmAuthToken": {
"type": ["zpm_utils::Secret<String>", "null"],
"description": "The token to use for authentication when querying the npm registry"
}
}
}
},
"packageExtensions": {
"type": "object",
"description": "Configuration specific to each package extension",
"additionalKeys": {
"type": "zpm_primitives::SemverDescriptor"
},
"additionalProperties": {
"type": "object",
"title": "PackageExtension",
"properties": {
"dependencies": {
"type": "object",
"description": "The dependencies to add to the package extension",
"additionalKeys": {
"type": "zpm_primitives::Ident"
},
"additionalProperties": {
"type": "zpm_primitives::Range"
}
},
"peerDependencies": {
"type": "object",
"description": "The peer dependencies to add to the package extension",
"additionalKeys": {
"type": "zpm_primitives::Ident"
},
"additionalProperties": {
"type": "zpm_primitives::PeerRange"
}
}
}
}
},
"pnpEnableInlining": {
"type": "boolean",
"description": "Whether to inline the PnP dependency tree in the generated .pnp.cjs file",
"default": true
},
"pnpFallbackMode": {
"type": "crate::PnpFallbackMode",
"description": "The fallback mode to use for PnP",
"default": "dependencies-only"
},
"pnpIgnorePatterns": {
"type": "array",
"description": "The patterns to ignore when using PnP",
"items": {
"type": "zpm_utils::Glob"
}
},
"pnpShebang": {
"type": "string",
"description": "The shebang to use for the generated .pnp.cjs file",
"default": "#!/usr/bin/env node"
},
"pnpmHoistPatterns": {
"type": "array",
"description": "Patterns specifying which packages should be hoisted to node_modules/.pnpm/node_modules. By default, all packages are hoisted. Use empty array to disable hoisting.",
"items": {
"type": "zpm_primitives::IdentGlob"
},
"default": ["*"]
},
"pnpmPublicHoistPatterns": {
"type": "array",
"description": "Patterns specifying which packages should be hoisted to the root node_modules directory. Unlike pnpmHoistPatterns which hoists to the hidden modules directory inside the virtual store, this hoists to the public root modules directory.",
"items": {
"type": "zpm_primitives::IdentGlob"
}
},
"pnpmStoreFolder": {
"type": "string",
"description": "The folder to use for the Pnpm store",
"default": "node_modules/.pnpm"
},
"preferDeferredVersions": {
"type": "boolean",
"description": "Whether to use deferred versioning by default when running the `yarn version` family of commands",
"default": false
},
"preferReuse": {
"type": "boolean",
"description": "Whether to prefer reusing dependencies from the lockfile when running `yarn add`",
"default": false
},
"slowNetworkTimeout": {
"type": "u64",
"description": "The timeout in milliseconds to wait for a network request to complete before considering it slow",
"default": 5000
},
"supportedArchitectures": {
"type": "object",
"title": "SupportedArchitectures",
"description": "The list of architectures we need to download in the cache.",
"properties": {
"cpu": {
"type": "array",
"description": "List of CPU architectures to cover.",
"items": {
"type": "zpm_utils::Cpu"
}
},
"libc": {
"type": "array",
"description": "The list of standard C libraries to cover.",
"items": {
"type": "zpm_utils::Libc"
}
},
"os": {
"type": "array",
"description": "The list of operating systems to cover.",
"items": {
"type": "zpm_utils::Os"
}
}
}
},
"unsafeHttpWhitelist": {
"type": "array",
"description": "The patterns to whitelist when using unsafe HTTP",
"items": {
"type": "zpm_utils::Glob"
}
},
"virtualFolder": {
"type": "zpm_utils::Path",
"description": "The folder to use for the virtual folder",
"default": ".yarn/__virtual__"
},
"workspaceProfiles": {
"type": "object",
"description": "Configuration specific to each workspace profile",
"additionalProperties": {
"type": "object",
"title": "WorkspaceProfile",
"properties": {
"extends": {
"type": "array",
"description": "The extends to add to the workspace profile",
"items": {
"type": "string"
}
},
"devDependencies": {
"type": "object",
"description": "The dev dependencies to add to the workspace profile",
"additionalKeys": {
"type": "zpm_primitives::Ident"
},
"additionalProperties": {
"type": "zpm_primitives::Range"
}
}
}
}
},
"catalog": {
"type": "object",
"description": "Default catalog containing package name to version range mappings. This is an alias for catalogs.default.",
"additionalKeys": {
"type": "zpm_primitives::Ident"
},
"additionalProperties": {
"type": "zpm_primitives::Range"
}
},
"catalogs": {
"type": "object",
"description": "Named catalogs containing predefined version ranges for packages. Use 'catalog:' protocol in dependencies to reference them.",
"additionalProperties": {
"type": "object",
"title": "Catalog",
"description": "A named catalog containing package name to version range mappings",
"additionalKeys": {
"type": "zpm_primitives::Ident"
},
"additionalProperties": {
"type": "zpm_primitives::Range"
}
}
}
}
}