forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rush.json
631 lines (631 loc) · 24.8 KB
/
rush.json
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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
/**
* This is the main configuration file for Rush.
* For full documentation, please see https://rushjs.io
*/
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json",
/**
* (Required) This specifies the version of the Rush engine to be used in this repo.
* Rush's "version selector" feature ensures that the globally installed tool will
* behave like this release, regardless of which version is installed globally.
*
* The common/scripts/install-run-rush.js automation script also uses this version.
*
* NOTE: If you upgrade to a new major version of Rush, you should replace the "v5"
* path segment in the "$schema" field for all your Rush config files. This will ensure
* correct error-underlining and tab-completion for editors such as VS Code.
*/
"rushVersion": "5.36.1",
/**
* The next field selects which package manager should be installed and determines its version.
* Rush installs its own local copy of the package manager to ensure that your build process
* is fully isolated from whatever tools are present in the local environment.
*
* Specify one of: "pnpmVersion", "npmVersion", or "yarnVersion". See the Rush documentation
* for details about these alternatives.
*/
"pnpmVersion": "5.15.0",
// "npmVersion": "4.5.0",
// "yarnVersion": "1.9.4",
/**
* Options that are only used when the PNPM package manager is selected
*/
"pnpmOptions": {
/**
* If true, then Rush will add the "--strict-peer-dependencies" option when invoking PNPM.
* This causes "rush install" to fail if there are unsatisfied peer dependencies, which is
* an invalid state that can cause build failures or incompatible dependency versions.
* (For historical reasons, JavaScript package managers generally do not treat this invalid
* state as an error.)
*
* The default value is false to avoid legacy compatibility issues.
* It is strongly recommended to set strictPeerDependencies=true.
*/
"strictPeerDependencies": true,
/**
* Configures the strategy used to select versions during installation.
*
* This feature requires PNPM version 3.1 or newer. It corresponds to the "--resolution-strategy" command-line
* option for PNPM. Possible values are "fast" and "fewer-dependencies". PNPM's default is "fast", but this may
* be incompatible with certain packages, for example the "@types" packages from DefinitelyTyped. Rush's default
* is "fewer-dependencies", which causes PNPM to avoid installing a newer version if an already installed version
* can be reused; this is more similar to NPM's algorithm.
*/
"resolutionStrategy": "fewer-dependencies"
},
/**
* Older releases of the NodeJS engine may be missing features required by your system.
* Other releases may have bugs. In particular, the "latest" version will not be a
* Long Term Support (LTS) version and is likely to have regressions.
*
* Specify a SemVer range to ensure developers use a NodeJS version that is appropriate
* for your repo.
*/
"nodeSupportedVersionRange": ">=8.0.0",
/**
* Odd-numbered major versions of Node.js are experimental. Even-numbered releases
* spend six months in a stabilization period before the first Long Term Support (LTS) version.
* For example, 8.9.0 was the first LTS version of Node.js 8. Pre-LTS versions are not recommended
* for production usage because they frequently have bugs. They may cause Rush itself
* to malfunction.
*
* Rush normally prints a warning if it detects a pre-LTS Node.js version. If you are testing
* pre-LTS versions in preparation for supporting the first LTS version, you can use this setting
* to disable Rush's warning.
*/
"suppressNodeLtsWarning": true,
/**
* If you would like the version specifiers for your dependencies to be consistent, then
* uncomment this line. This is effectively similar to running "rush check" before any
* of the following commands:
*
* rush install, rush update, rush link, rush version, rush publish
*
* In some cases you may want this turned on, but need to allow certain packages to use a different
* version. In those cases, you will need to add an entry to the "allowedAlternativeVersions"
* section of the common-versions.json.
*/
"ensureConsistentVersions": true,
/**
* Large monorepos can become intimidating for newcomers if project folder paths don't follow
* a consistent and recognizable pattern. When the system allows nested folder trees,
* we've found that teams will often use subfolders to create islands that isolate
* their work from others ("shipping the org"). This hinders collaboration and code sharing.
*
* The Rush developers recommend a "category folder" model, where buildable project folders
* must always be exactly two levels below the repo root. The parent folder acts as the category.
* This provides a basic facility for grouping related projects (e.g. "apps", "libaries",
* "tools", "prototypes") while still encouraging teams to organize their projects into
* a unified taxonomy. Limiting to 2 levels seems very restrictive at first, but if you have
* 20 categories and 20 projects in each category, this scheme can easily accommodate hundreds
* of projects. In practice, you will find that the folder hierarchy needs to be rebalanced
* occasionally, but if that's painful, it's a warning sign that your development style may
* discourage refactoring. Reorganizing the categories should be an enlightening discussion
* that brings people together, and maybe also identifies poor coding practices (e.g. file
* references that reach into other project's folders without using NodeJS module resolution).
*
* The defaults are projectFolderMinDepth=1 and projectFolderMaxDepth=2.
*
* To remove these restrictions, you could set projectFolderMinDepth=1
* and set projectFolderMaxDepth to a large number.
*/
"projectFolderMinDepth": 3,
"projectFolderMaxDepth": 3,
/**
* This feature helps you to review and approve new packages before they are introduced
* to your monorepo. For example, you may be concerned about licensing, code quality,
* performance, or simply accumulating too many libraries with overlapping functionality.
* The approvals are tracked in two config files "browser-approved-packages.json"
* and "nonbrowser-approved-packages.json". See the Rush documentation for details.
*/
// "approvedPackagesPolicy": {
// /**
// * The review categories allow you to say for example "This library is approved for usage
// * in prototypes, but not in production code."
// *
// * Each project can be associated with one review category, by assigning the "reviewCategory" field
// * in the "projects" section of rush.json. The approval is then recorded in the files
// * "common/config/rush/browser-approved-packages.json" and "nonbrowser-approved-packages.json"
// * which are automatically generated during "rush update".
// *
// * Designate categories with whatever granularity is appropriate for your review process,
// * or you could just have a single category called "default".
// */
// "reviewCategories": [
// // Some example categories:
// "production", // projects that ship to production
// "tools", // non-shipping projects that are part of the developer toolchain
// "prototypes" // experiments that should mostly be ignored by the review process
// ],
//
// /**
// * A list of NPM package scopes that will be excluded from review.
// * We recommend to exclude TypeScript typings (the "@types" scope), because
// * if the underlying package was already approved, this would imply that the typings
// * are also approved.
// */
// // "ignoredNpmScopes": [ "@types" ]
// },
/**
* If you use Git as your version control system, this section has some additional
* optional features you can use.
*/
"gitPolicy": {
/**
* Work at a big company? Tired of finding Git commits at work with unprofessional Git
* emails such as "[email protected]"? Rush can validate people's Git email address
* before they get started.
*
* Define a list of regular expressions describing allowable e-mail patterns for Git commits.
* They are case-insensitive anchored JavaScript RegExps. Example: ".*@example\.com"
*
* IMPORTANT: Because these are regular expressions encoded as JSON string literals,
* RegExp escapes need two backspashes, and ordinary periods should be "\\.".
*/
// "allowedEmailRegExps": [
// "[^@]+@users\\.noreply\\.github\\.com",
// "travis@example\\.org"
// ],
/**
* When Rush reports that the address is malformed, the notice can include an example
* of a recommended email. Make sure it conforms to one of the allowedEmailRegExps
* expressions.
*/
// "sampleEmail": "[email protected]",
/**
* The commit message to use when committing changes during 'rush publish'.
*
* For example, if you want to prevent these commits from triggering a CI build,
* you might configure your system's trigger to look for a special string such as "[skip-ci]"
* in the commit message, and then customize Rush's message to contain that string.
*/
// "versionBumpCommitMessage": "Applying package updates. [skip-ci]"
},
"repository": {
/**
* The URL of this Git repository, used by "rush change" to determine the base branch for your PR.
*
* The "rush change" command needs to determine which files are affected by your PR diff.
* If you merged or cherry-picked commits from the master branch into your PR branch, those commits
* should be excluded from this diff (since they belong to some other PR). In order to do that,
* Rush needs to know where to find the base branch for your PR. This information cannot be
* determined from Git alone, since the "pull request" feature is not a Git concept. Ideally
* Rush would use a vendor-specific protocol to query the information from GitHub, Azure DevOps, etc.
* But to keep things simple, "rush change" simply assumes that your PR is against the "master" branch
* of the Git remote indicated by the respository.url setting in rush.json. If you are working in
* a GitHub "fork" of the real repo, this setting will be different from the repository URL of your
* your PR branch, and in this situation "rush change" will also automatically invoke "git fetch"
* to retrieve the latest activity for the remote master branch.
*/
"url": "https://github.com/Azure/azure-sdk-for-js"
},
/**
* Event hooks are customized script actions that Rush executes when specific events occur
*/
"eventHooks": {
/**
* The list of shell commands to run before the Rush installation starts
*/
"preRushInstall": [
// "common/scripts/pre-rush-install.js"
],
/**
* The list of shell commands to run after the Rush installation finishes
*/
"postRushInstall": [],
/**
* The list of shell commands to run before the Rush build command starts
*/
"preRushBuild": [],
/**
* The list of shell commands to run after the Rush build command finishes
*/
"postRushBuild": []
},
/**
* Installation variants allow you to maintain a parallel set of configuration files that can be
* used to build the entire monorepo with an alternate set of dependencies. For example, suppose
* you upgrade all your projects to use a new release of an important framework, but during a transition period
* you intend to maintain compability with the old release. In this situation, you probably want your
* CI validation to build the entire repo twice: once with the old release, and once with the new release.
*
* Rush "installation variants" correspond to sets of config files located under this folder:
*
* common/config/rush/variants/<variant_name>
*
* The variant folder can contain an alternate common-versions.json file. Its "preferredVersions" field can be used
* to select older versions of dependencies (within a loose SemVer range specified in your package.json files).
* To install a variant, run "rush install --variant <variant_name>".
*
* For more details and instructions, see this article: https://rushjs.io/pages/advanced/installation_variants/
*/
"variants": [
// {
// /**
// * The folder name for this variant.
// */
// "variantName": "old-sdk",
//
// /**
// * An informative description
// */
// "description": "Build this repo using the previous release of the SDK"
// }
],
/**
* Rush can collect anonymous telemetry about everyday developer activity such as
* success/failure of installs, builds, and other operations. You can use this to identify
* problems with your toolchain or Rush itself. THIS TELEMETRY IS NOT SHARED WITH MICROSOFT.
* It is written into JSON files in the common/temp folder. It's up to you to write scripts
* that read these JSON files and do something with them. These scripts are typically registered
* in the "eventHooks" section.
*/
// "telemetryEnabled": false,
/**
* Allows creation of hotfix changes. This feature is experimental so it is disabled by default.
*/
// "hotfixChangeEnabled": false,
/**
* (Required) This is the inventory of projects to be managed by Rush.
*
* Rush does not automatically scan for projects using wildcards, for a few reasons:
* 1. Depth-first scans are expensive, particularly when tools need to repeatedly collect the list.
* 2. On a caching CI machine, scans can accidentally pick up files left behind from a previous build.
* 3. It's useful to have a centralized inventory of all projects and their important metadata.
*/
"projects": [
// {
// /**
// * The NPM package name of the project (must match package.json)
// */
// "packageName": "my-app",
//
// /**
// * The path to the project folder, relative to the rush.json config file.
// */
// "projectFolder": "apps/my-app",
//
// /**
// * An optional category for usage in the "browser-approved-packages.json"
// * and "nonbrowser-approved-packages.json" files. The value must be one of the
// * strings from the "reviewCategories" defined above.
// */
// "reviewCategory": "production",
//
// /**
// * A list of local projects that appear as devDependencies for this project, but cannot be
// * locally linked because it would create a cyclic dependency; instead, the last published
// * version will be installed in the Common folder.
// */
// "cyclicDependencyProjects": [
// // "my-toolchain"
// ],
//
// /**
// * If true, then this project will be ignored by the "rush check" command.
// * The default value is false.
// */
// // "skipRushCheck": false,
//
// /**
// * A flag indicating that changes to this project will be published to npm, which affects
// * the Rush change and publish workflows. The default value is false.
// * NOTE: "versionPolicyName" and "shouldPublish" are alternatives; you cannot specify them both.
// */
// // "shouldPublish": false,
//
// /**
// * An optional version policy associated with the project. Version policies are defined
// * in "version-policies.json" file. See the "rush publish" documentation for more info.
// * NOTE: "versionPolicyName" and "shouldPublish" are alternatives; you cannot specify them both.
// */
// // "versionPolicyName": ""
// },
//
{
"packageName": "@azure/abort-controller",
"projectFolder": "sdk/core/abort-controller",
"versionPolicyName": "core"
},
{
"packageName": "@azure/app-configuration",
"projectFolder": "sdk/appconfiguration/app-configuration",
"versionPolicyName": "client"
},
{
"packageName": "@azure/ai-anomaly-detector",
"projectFolder": "sdk/anomalydetector/ai-anomaly-detector",
"versionPolicyName": "client"
},
{
"packageName": "@azure/ai-form-recognizer",
"projectFolder": "sdk/formrecognizer/ai-form-recognizer",
"versionPolicyName": "client"
},
{
"packageName": "@azure/ai-text-analytics",
"projectFolder": "sdk/textanalytics/ai-text-analytics",
"versionPolicyName": "client"
},
{
"packageName": "@azure/ai-metrics-advisor",
"projectFolder": "sdk/metricsadvisor/ai-metrics-advisor",
"versionPolicyName": "client"
},
{
"packageName": "@azure/search-documents",
"projectFolder": "sdk/search/search-documents",
"versionPolicyName": "client"
},
{
"packageName": "@azure/attestation",
"projectFolder": "sdk/attestation/attestation",
"versionPolicyName": "client"
},
{
"packageName": "@azure/quantum-jobs",
"projectFolder": "sdk/quantum/quantum-jobs",
"versionPolicyName": "client"
},
{
"packageName": "@azure/communication-administration",
"projectFolder": "sdk/communication/communication-administration",
"versionPolicyName": "client"
},
{
"packageName": "@azure/communication-chat",
"projectFolder": "sdk/communication/communication-chat",
"versionPolicyName": "client"
},
{
"packageName": "@azure/communication-common",
"projectFolder": "sdk/communication/communication-common",
"versionPolicyName": "client"
},
{
"packageName": "@azure/communication-identity",
"projectFolder": "sdk/communication/communication-identity",
"versionPolicyName": "client"
},
{
"packageName": "@azure/communication-sms",
"projectFolder": "sdk/communication/communication-sms",
"versionPolicyName": "client"
},
{
"packageName": "@azure/core-amqp",
"projectFolder": "sdk/core/core-amqp",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-asynciterator-polyfill",
"projectFolder": "sdk/core/core-asynciterator-polyfill",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-auth",
"projectFolder": "sdk/core/core-auth",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-client",
"projectFolder": "sdk/core/core-client",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-crypto",
"projectFolder": "sdk/core/core-crypto",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-http",
"projectFolder": "sdk/core/core-http",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-https",
"projectFolder": "sdk/core/core-https",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-lro",
"projectFolder": "sdk/core/core-lro",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-paging",
"projectFolder": "sdk/core/core-paging",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-tracing",
"projectFolder": "sdk/core/core-tracing",
"versionPolicyName": "core"
},
{
"packageName": "@azure/core-xml",
"projectFolder": "sdk/core/core-xml",
"versionPolicyName": "core"
},
{
"packageName": "@azure/cosmos",
"projectFolder": "sdk/cosmosdb/cosmos",
"versionPolicyName": "client"
},
{
"packageName": "@azure/monitor-opentelemetry-exporter",
"projectFolder": "sdk/monitor/monitor-opentelemetry-exporter",
"versionPolicyName": "client"
},
{
"packageName": "@azure/dev-tool",
"projectFolder": "common/tools/dev-tool",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/eventgrid",
"projectFolder": "sdk/eventgrid/eventgrid",
"versionPolicyName": "client"
},
{
"packageName": "@azure/event-hubs",
"projectFolder": "sdk/eventhub/event-hubs",
"versionPolicyName": "client"
},
{
"packageName": "@azure/eventhubs-checkpointstore-blob",
"projectFolder": "sdk/eventhub/eventhubs-checkpointstore-blob",
"versionPolicyName": "client"
},
{
"packageName": "@azure/event-processor-host",
"projectFolder": "sdk/eventhub/event-processor-host",
"versionPolicyName": "client"
},
{
"packageName": "testhub",
"projectFolder": "sdk/eventhub/testhub",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/identity",
"projectFolder": "sdk/identity/identity",
"versionPolicyName": "client"
},
{
"packageName": "@azure/keyvault-common",
"projectFolder": "sdk/keyvault/keyvault-common",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/keyvault-admin",
"projectFolder": "sdk/keyvault/keyvault-admin",
"versionPolicyName": "client"
},
{
"packageName": "@azure/keyvault-certificates",
"projectFolder": "sdk/keyvault/keyvault-certificates",
"versionPolicyName": "client"
},
{
"packageName": "@azure/keyvault-keys",
"projectFolder": "sdk/keyvault/keyvault-keys",
"versionPolicyName": "client"
},
{
"packageName": "@azure/keyvault-secrets",
"projectFolder": "sdk/keyvault/keyvault-secrets",
"versionPolicyName": "client"
},
{
"packageName": "@azure/logger",
"projectFolder": "sdk/core/logger",
"versionPolicyName": "core"
},
{
"packageName": "@azure/schema-registry",
"projectFolder": "sdk/schemaregistry/schema-registry",
"versionPolicyName": "client"
},
{
"packageName": "@azure/schema-registry-avro",
"projectFolder": "sdk/schemaregistry/schema-registry-avro",
"versionPolicyName": "client"
},
{
"packageName": "@azure/service-bus",
"projectFolder": "sdk/servicebus/service-bus",
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-internal-avro",
"projectFolder": "sdk/storage/storage-internal-avro",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/storage-blob",
"projectFolder": "sdk/storage/storage-blob",
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-blob-changefeed",
"projectFolder": "sdk/storage/storage-blob-changefeed",
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-file-share",
"projectFolder": "sdk/storage/storage-file-share",
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-file-datalake",
"projectFolder": "sdk/storage/storage-file-datalake",
"versionPolicyName": "client"
},
{
"packageName": "@azure/storage-queue",
"projectFolder": "sdk/storage/storage-queue",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-access-control",
"projectFolder": "sdk/synapse/synapse-access-control",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-artifacts",
"projectFolder": "sdk/synapse/synapse-artifacts",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-managed-private-endpoints",
"projectFolder": "sdk/synapse/synapse-managed-private-endpoints",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-monitoring",
"projectFolder": "sdk/synapse/synapse-monitoring",
"versionPolicyName": "client"
},
{
"packageName": "@azure/synapse-spark",
"projectFolder": "sdk/synapse/synapse-spark",
"versionPolicyName": "client"
},
{
"packageName": "@azure/data-tables",
"projectFolder": "sdk/tables/data-tables",
"versionPolicyName": "client"
},
{
"packageName": "@azure/template",
"projectFolder": "sdk/template/template",
"versionPolicyName": "client"
},
{
"packageName": "@azure/eslint-plugin-azure-sdk",
"projectFolder": "common/tools/eslint-plugin-azure-sdk",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/test-utils-recorder",
"projectFolder": "sdk/test-utils/recorder",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/test-utils-perfstress",
"projectFolder": "sdk/test-utils/perfstress",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/test-utils-multi-version",
"projectFolder": "sdk/test-utils/multi-version",
"versionPolicyName": "utility"
},
{
"packageName": "@azure/digital-twins-core",
"projectFolder": "sdk/digitaltwins/digital-twins-core",
"versionPolicyName": "client"
}
]
}