@microsoft/rush 5.62.4 → 5.64.0
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.
|
@@ -26,7 +26,7 @@ const path = __importStar(require("path"));
|
|
|
26
26
|
const node_core_library_1 = require("@rushstack/node-core-library");
|
|
27
27
|
const rush_lib_1 = require("@microsoft/rush-lib");
|
|
28
28
|
const RushConstants_1 = require("@microsoft/rush-lib/lib/logic/RushConstants");
|
|
29
|
-
const
|
|
29
|
+
const RushCommandLineParser_1 = require("@microsoft/rush-lib/lib/cli/RushCommandLineParser");
|
|
30
30
|
/**
|
|
31
31
|
* Represents a minimal subset of the rush.json configuration file. It provides the information necessary to
|
|
32
32
|
* decide which version of Rush should be installed/used.
|
|
@@ -39,7 +39,7 @@ class MinimalRushConfiguration {
|
|
|
39
39
|
}
|
|
40
40
|
static loadFromDefaultLocation() {
|
|
41
41
|
const rushJsonLocation = rush_lib_1.RushConfiguration.tryFindRushJsonLocation({
|
|
42
|
-
showVerbose: !
|
|
42
|
+
showVerbose: !RushCommandLineParser_1.RushCommandLineParser.shouldRestrictConsoleOutput()
|
|
43
43
|
});
|
|
44
44
|
if (rushJsonLocation) {
|
|
45
45
|
return MinimalRushConfiguration._loadFromConfigurationFile(rushJsonLocation);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MinimalRushConfiguration.js","sourceRoot":"","sources":["../src/MinimalRushConfiguration.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;AAE3D,2CAA6B;AAE7B,oEAAwD;AACxD,kDAAwD;AACxD,+EAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"MinimalRushConfiguration.js","sourceRoot":"","sources":["../src/MinimalRushConfiguration.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;AAE3D,2CAA6B;AAE7B,oEAAwD;AACxD,kDAAwD;AACxD,+EAA4E;AAC5E,6FAA0F;AAO1F;;;GAGG;AACH,MAAa,wBAAwB;IAInC,YAAoB,4BAA2D,EAAE,gBAAwB;QACvG,IAAI,CAAC,YAAY;YACf,4BAA4B,CAAC,WAAW,IAAI,4BAA4B,CAAC,kBAAkB,CAAC;QAC9F,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC,IAAI,CACtC,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,EAC9B,6BAAa,CAAC,gBAAgB,EAC9B,QAAQ,EACR,MAAM,CACP,CAAC;IACJ,CAAC;IAEM,MAAM,CAAC,uBAAuB;QACnC,MAAM,gBAAgB,GAAuB,4BAAiB,CAAC,uBAAuB,CAAC;YACrF,WAAW,EAAE,CAAC,6CAAqB,CAAC,2BAA2B,EAAE;SAClE,CAAC,CAAC;QACH,IAAI,gBAAgB,EAAE;YACpB,OAAO,wBAAwB,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,CAAC;SAC9E;aAAM;YACL,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;IAEO,MAAM,CAAC,0BAA0B,CAAC,gBAAwB;QAChE,IAAI;YACF,MAAM,4BAA4B,GAAkC,4BAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACpG,OAAO,IAAI,wBAAwB,CAAC,4BAA4B,EAAE,gBAAgB,CAAC,CAAC;SACrF;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,SAAS,CAAC;SAClB;IACH,CAAC;IAED;;;;OAIG;IACH,IAAW,WAAW;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED;;;;;;;OAOG;IACH,IAAW,sBAAsB;QAC/B,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACtC,CAAC;CACF;AAvDD,4DAuDC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport * as path from 'path';\n\nimport { JsonFile } from '@rushstack/node-core-library';\nimport { RushConfiguration } from '@microsoft/rush-lib';\nimport { RushConstants } from '@microsoft/rush-lib/lib/logic/RushConstants';\nimport { RushCommandLineParser } from '@microsoft/rush-lib/lib/cli/RushCommandLineParser';\n\ninterface IMinimalRushConfigurationJson {\n rushMinimumVersion: string;\n rushVersion?: string;\n}\n\n/**\n * Represents a minimal subset of the rush.json configuration file. It provides the information necessary to\n * decide which version of Rush should be installed/used.\n */\nexport class MinimalRushConfiguration {\n private _rushVersion: string;\n private _commonRushConfigFolder: string;\n\n private constructor(minimalRushConfigurationJson: IMinimalRushConfigurationJson, rushJsonFilename: string) {\n this._rushVersion =\n minimalRushConfigurationJson.rushVersion || minimalRushConfigurationJson.rushMinimumVersion;\n this._commonRushConfigFolder = path.join(\n path.dirname(rushJsonFilename),\n RushConstants.commonFolderName,\n 'config',\n 'rush'\n );\n }\n\n public static loadFromDefaultLocation(): MinimalRushConfiguration | undefined {\n const rushJsonLocation: string | undefined = RushConfiguration.tryFindRushJsonLocation({\n showVerbose: !RushCommandLineParser.shouldRestrictConsoleOutput()\n });\n if (rushJsonLocation) {\n return MinimalRushConfiguration._loadFromConfigurationFile(rushJsonLocation);\n } else {\n return undefined;\n }\n }\n\n private static _loadFromConfigurationFile(rushJsonFilename: string): MinimalRushConfiguration | undefined {\n try {\n const minimalRushConfigurationJson: IMinimalRushConfigurationJson = JsonFile.load(rushJsonFilename);\n return new MinimalRushConfiguration(minimalRushConfigurationJson, rushJsonFilename);\n } catch (e) {\n return undefined;\n }\n }\n\n /**\n * The version of rush specified by the rushVersion property of the rush.json configuration file. If the\n * rushVersion property is not specified, this falls back to the rushMinimumVersion property. This should be\n * a semver style version number like \"4.0.0\"\n */\n public get rushVersion(): string {\n return this._rushVersion;\n }\n\n /**\n * The folder where Rush's additional config files are stored. This folder is always a\n * subfolder called \"config\\rush\" inside the common folder. (The \"common\\config\" folder\n * is reserved for configuration files used by other tools.) To avoid confusion or mistakes,\n * Rush will report an error if this this folder contains any unrecognized files.\n *\n * Example: \"C:\\MyRepo\\common\\config\\rush\"\n */\n public get commonRushConfigFolder(): string {\n return this._commonRushConfigFolder;\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/rush",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.64.0",
|
|
4
4
|
"description": "A professional solution for consolidating all your JavaScript projects in one Git repo",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"install",
|
|
@@ -29,17 +29,17 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@microsoft/rush-lib": "5.
|
|
33
|
-
"@rushstack/node-core-library": "3.45.
|
|
32
|
+
"@microsoft/rush-lib": "5.64.0",
|
|
33
|
+
"@rushstack/node-core-library": "3.45.1",
|
|
34
34
|
"colors": "~1.2.1",
|
|
35
35
|
"semver": "~7.3.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@rushstack/eslint-config": "2.5.
|
|
39
|
-
"@rushstack/heft": "0.44.
|
|
40
|
-
"@rushstack/heft-node-rig": "1.8.
|
|
41
|
-
"@rushstack/rush-amazon-s3-build-cache-plugin": "5.
|
|
42
|
-
"@rushstack/rush-azure-storage-build-cache-plugin": "5.
|
|
38
|
+
"@rushstack/eslint-config": "2.5.2",
|
|
39
|
+
"@rushstack/heft": "0.44.5",
|
|
40
|
+
"@rushstack/heft-node-rig": "1.8.3",
|
|
41
|
+
"@rushstack/rush-amazon-s3-build-cache-plugin": "5.64.0",
|
|
42
|
+
"@rushstack/rush-azure-storage-build-cache-plugin": "5.64.0",
|
|
43
43
|
"@types/heft-jest": "1.0.1",
|
|
44
44
|
"@types/node": "12.20.24",
|
|
45
45
|
"@types/semver": "7.3.5"
|