Skip to content

Commit 9ea7379

Browse files
authored
Upgrade to Rush 5.147.2 (#5067)
* Upgrade to Rush 5.147.2 * rush update * Revert change to version-policies.json
1 parent d195b09 commit 9ea7379

File tree

5 files changed

+155
-31
lines changed

5 files changed

+155
-31
lines changed

common/config/rush/build-cache.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
*/
3535
"cacheEntryNamePattern": "[projectName:normalize]-[phaseName:normalize]-[hash]",
3636

37+
/**
38+
* (Optional) Salt to inject during calculation of the cache key. This can be used to invalidate the cache for all projects when the salt changes.
39+
*/
40+
// "cacheHashSalt": "1",
41+
3742
/**
3843
* Use this configuration with "cacheProvider"="azure-blob-storage"
3944
*/
@@ -59,7 +64,15 @@
5964
/**
6065
* If set to true, allow writing to the cache. Defaults to false.
6166
*/
62-
// "isCacheWriteAllowed": true
67+
// "isCacheWriteAllowed": true,
68+
/**
69+
* The Entra ID login flow to use. Defaults to 'AdoCodespacesAuth' on GitHub Codespaces, 'InteractiveBrowser' otherwise.
70+
*/
71+
// "loginFlow": "InteractiveBrowser",
72+
/**
73+
* If set to true, reading the cache requires authentication. Defaults to false.
74+
*/
75+
// "readRequiresAuthentication": true
6376
},
6477

6578
/**

common/config/rush/experiments.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,30 @@
8282
* If set to true, Rush will generate a `project-impact-graph.yaml` file in the repository root during `rush update`.
8383
*/
8484
// "generateProjectImpactGraphDuringRushUpdate": true,
85+
8586
/**
8687
* If true, when running in watch mode, Rush will check for phase scripts named `_phase:<name>:ipc` and run them instead
8788
* of `_phase:<name>` if they exist. The created child process will be provided with an IPC channel and expected to persist
8889
* across invocations.
8990
*/
90-
// "useIPCScriptsInWatchMode": true
91+
// "useIPCScriptsInWatchMode": true,
92+
93+
/**
94+
* (UNDER DEVELOPMENT) The Rush alerts feature provides a way to send announcements to engineers
95+
* working in the monorepo, by printing directly in the user's shell window when they invoke Rush commands.
96+
* This ensures that important notices will be seen by anyone doing active development, since people often
97+
* ignore normal discussion group messages or don't know to subscribe.
98+
*/
99+
// "rushAlerts": true,
100+
101+
/**
102+
* When using cobuilds, this experiment allows uncacheable operations to benefit from cobuild orchestration without using the build cache.
103+
*/
104+
// "allowCobuildWithoutCache": true,
105+
106+
/**
107+
* By default, rush perform a full scan of the entire repository. For example, Rush runs `git status` to check for local file changes.
108+
* When this toggle is enabled, Rush will only scan specific paths, significantly speeding up Git operations.
109+
*/
110+
// "enableSubpathScan": true
91111
}

common/config/rush/pnpm-config.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
/**
22
* This configuration file provides settings specific to the PNPM package manager.
33
* More documentation is available on the Rush website: https://rushjs.io
4+
*
5+
* Rush normally looks for this file in `common/config/rush/pnpm-config.json`. However,
6+
* if `subspacesEnabled` is true in subspaces.json, then Rush will instead first look
7+
* for `common/config/subspaces/<name>/pnpm-config.json`. (If the file exists in both places,
8+
* then the file under `common/config/rush` is ignored.)
49
*/
510
{
611
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/pnpm-config.schema.json",
@@ -196,6 +201,7 @@
196201
"globalOverrides": {
197202
// "example1": "^1.0.0",
198203
// "example2": "npm:@company/example2@^1.0.0"
204+
199205
// TODO: Remove once https://github.com/dylang/npm-check/issues/499
200206
// has been closed and a new version of `npm-check` is published.
201207
"package-json": "^7"
@@ -422,6 +428,21 @@
422428
// "fsevents"
423429
],
424430

431+
/**
432+
* The `globalIgnoredOptionalDependencies` setting suppresses the installation of optional NPM
433+
* dependencies specified in the list. This is useful when certain optional dependencies are
434+
* not needed in your environment, such as platform-specific packages or dependencies that
435+
* fail during installation but are not critical to your project.
436+
* These settings are copied into the `pnpm.overrides` field of the `common/temp/package.json`
437+
* file that is generated by Rush during installation, instructing PNPM to ignore the specified
438+
* optional dependencies.
439+
*
440+
* PNPM documentation: https://pnpm.io/package_json#pnpmignoredoptionaldependencies
441+
*/
442+
"globalIgnoredOptionalDependencies": [
443+
// "fsevents"
444+
],
445+
425446
/**
426447
* The `globalAllowedDeprecatedVersions` setting suppresses installation warnings for package
427448
* versions that the NPM registry reports as being deprecated. This is useful if the

common/scripts/install-run.js

Lines changed: 59 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rush.json

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* path segment in the "$schema" field for all your Rush config files. This will ensure
1717
* correct error-underlining and tab-completion for editors such as VS Code.
1818
*/
19-
"rushVersion": "5.145.0-pr5009.2",
19+
"rushVersion": "5.147.2",
2020

2121
/**
2222
* The next field selects which package manager should be installed and determines its version.
@@ -65,6 +65,13 @@
6565
*/
6666
// "suppressNodeLtsWarning": false,
6767

68+
/**
69+
* Rush normally prints a warning if it detects that the current version is not one published to the
70+
* public npmjs.org registry. If you need to block calls to the npm registry, you can use this setting to disable
71+
* Rush's check.
72+
*/
73+
// "suppressRushIsPublicVersionCheck": false,
74+
6875
/**
6976
* Large monorepos can become intimidating for newcomers if project folder paths don't follow
7077
* a consistent and recognizable pattern. When the system allows nested folder trees,
@@ -183,7 +190,7 @@
183190
// "changeLogUpdateCommitMessage": "Update changelogs [skip ci]",
184191

185192
/**
186-
* The commit message to use when commiting changefiles during 'rush change --commit'
193+
* The commit message to use when committing changefiles during 'rush change --commit'
187194
*
188195
* If no commit message is set it will default to 'Rush change'
189196
*/
@@ -258,6 +265,37 @@
258265
"postRushx": []
259266
},
260267

268+
/**
269+
* Installation variants allow you to maintain a parallel set of configuration files that can be
270+
* used to build the entire monorepo with an alternate set of dependencies. For example, suppose
271+
* you upgrade all your projects to use a new release of an important framework, but during a transition period
272+
* you intend to maintain compatibility with the old release. In this situation, you probably want your
273+
* CI validation to build the entire repo twice: once with the old release, and once with the new release.
274+
*
275+
* Rush "installation variants" correspond to sets of config files located under this folder:
276+
*
277+
* common/config/rush/variants/<variant_name>
278+
*
279+
* The variant folder can contain an alternate common-versions.json file. Its "preferredVersions" field can be used
280+
* to select older versions of dependencies (within a loose SemVer range specified in your package.json files).
281+
* To install a variant, run "rush install --variant <variant_name>".
282+
*
283+
* For more details and instructions, see this article: https://rushjs.io/pages/advanced/installation_variants/
284+
*/
285+
"variants": [
286+
// {
287+
// /**
288+
// * The folder name for this variant.
289+
// */
290+
// "variantName": "old-sdk",
291+
//
292+
// /**
293+
// * An informative description
294+
// */
295+
// "description": "Build this repo using the previous release of the SDK"
296+
// }
297+
],
298+
261299
/**
262300
* Rush can collect anonymous telemetry about everyday developer activity such as
263301
* success/failure of installs, builds, and other operations. You can use this to identify

0 commit comments

Comments
 (0)