@microsoft/rush 5.59.0-rc.2 → 5.59.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.
package/CHANGELOG.json CHANGED
@@ -2,11 +2,14 @@
2
2
  "name": "@microsoft/rush",
3
3
  "entries": [
4
4
  {
5
- "version": "5.59.0-rc.2",
6
- "tag": "@microsoft/rush_v5.59.0-rc.2",
7
- "date": "Tue, 04 Jan 2022 20:47:40 GMT",
5
+ "version": "5.59.0",
6
+ "tag": "@microsoft/rush_v5.59.0",
7
+ "date": "Thu, 06 Jan 2022 08:52:28 GMT",
8
8
  "comments": {
9
9
  "none": [
10
+ {
11
+ "comment": "Fix an issue that occurs when running a command with a selection argument with a Git ref (like `--from git:main`) in a repo with a pnpm lockfile larger than 1MB."
12
+ },
10
13
  {
11
14
  "comment": "Fix an issue with installing Git hooks that occurs when the rush.json folder isn't at the repo's root."
12
15
  },
package/CHANGELOG.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # Change Log - @microsoft/rush
2
2
 
3
- This log was last generated on Tue, 04 Jan 2022 20:47:40 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 06 Jan 2022 08:52:28 GMT and should not be manually modified.
4
4
 
5
- ## 5.59.0-rc.2
6
- Tue, 04 Jan 2022 20:47:40 GMT
5
+ ## 5.59.0
6
+ Thu, 06 Jan 2022 08:52:28 GMT
7
7
 
8
8
  ### Updates
9
9
 
10
+ - Fix an issue that occurs when running a command with a selection argument with a Git ref (like `--from git:main`) in a repo with a pnpm lockfile larger than 1MB.
10
11
  - Fix an issue with installing Git hooks that occurs when the rush.json folder isn't at the repo's root.
11
12
  - (BREAKING CHANGE) Remove the experimental command "rush write-build-cache", since it is no longer needed and would be incompatible with phased builds. If you need this command for some reason, please create a GitHub issue.
12
13
  - Add support for phased commands behind the multiPhaseCommands experiment.
@@ -1 +1 @@
1
- {"version":3,"file":"RushCommandSelector.d.ts","sourceRoot":"","sources":["../src/RushCommandSelector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAI/C;;;;;;GAMG;AACH,qBAAa,mBAAmB;WAChB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;WAQ7C,OAAO,CACnB,eAAe,EAAE,MAAM,EAEvB,eAAe,EAAE,GAAG,EACpB,OAAO,EAAE,OAAO,CAAC,cAAc,GAC9B,IAAI;IA2BP,OAAO,CAAC,MAAM,CAAC,cAAc;IAK7B,OAAO,CAAC,MAAM,CAAC,eAAe;CAe/B"}
1
+ {"version":3,"file":"RushCommandSelector.d.ts","sourceRoot":"","sources":["../src/RushCommandSelector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAI/C;;;;;;GAMG;AACH,qBAAa,mBAAmB;WAChB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;WAQ7C,OAAO,CACnB,eAAe,EAAE,MAAM,EAEvB,eAAe,EAAE,GAAG,EACpB,OAAO,EAAE,OAAO,CAAC,cAAc,GAC9B,IAAI;IAqBP,OAAO,CAAC,MAAM,CAAC,cAAc;IAK7B,OAAO,CAAC,MAAM,CAAC,eAAe;CAe/B"}
@@ -53,16 +53,10 @@ class RushCommandSelector {
53
53
  RushCommandSelector._failWithError(`This repository is using Rush version ${Rush.version}` +
54
54
  ` which does not support the "rushx" command`);
55
55
  }
56
- Rush.launchRushX(launcherVersion, {
57
- isManaged: options.isManaged,
58
- alreadyReportedNodeTooNewError: options.alreadyReportedNodeTooNewError
59
- });
56
+ Rush.launchRushX(launcherVersion, options);
60
57
  }
61
58
  else {
62
- Rush.launch(launcherVersion, {
63
- isManaged: options.isManaged,
64
- alreadyReportedNodeTooNewError: options.alreadyReportedNodeTooNewError
65
- });
59
+ Rush.launch(launcherVersion, options);
66
60
  }
67
61
  }
68
62
  static _failWithError(message) {
@@ -1 +1 @@
1
- {"version":3,"file":"RushCommandSelector.js","sourceRoot":"","sources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,CAAC,CAAC,CAAC;IACzB,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;YAC5B,WAAW;YACX,iDAAiD;YACjD,mFAAmF;YACnF,MAAM,QAAQ,GAAW,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;YACtE,IAAI,QAAQ,KAAK,OAAO,EAAE;gBACxB,OAAO,OAAO,CAAC;aAChB;YACD,IAAI,QAAQ,KAAK,MAAM,EAAE;gBACvB,OAAO,MAAM,CAAC;aACf;SACF;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AA7DD,kDA6DC","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 colors from 'colors/safe';\nimport * as path from 'path';\nimport * as rushLib from '@microsoft/rush-lib';\n\ntype CommandName = 'rush' | 'rushx' | undefined;\n\n/**\n * Both \"rush\" and \"rushx\" share the same src/start.ts entry point. This makes it\n * a little easier for them to share all the same startup checks and version selector\n * logic. RushCommandSelector looks at argv to determine whether we're doing \"rush\"\n * or \"rushx\" behavior, and then invokes the appropriate entry point in the selected\n * @microsoft/rush-lib.\n */\nexport class RushCommandSelector {\n public static failIfNotInvokedAsRush(version: string): void {\n if (RushCommandSelector._getCommandName() === 'rushx') {\n RushCommandSelector._failWithError(\n `This repository is using Rush version ${version} which does not support the \"rushx\" command`\n );\n }\n }\n\n public static execute(\n launcherVersion: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n selectedRushLib: any,\n options: rushLib.ILaunchOptions\n ): void {\n const Rush: typeof rushLib.Rush = selectedRushLib.Rush;\n\n if (!Rush) {\n // This should be impossible unless we somehow loaded an unexpected version\n RushCommandSelector._failWithError(`Unable to find the \"Rush\" entry point in @microsoft/rush-lib`);\n }\n\n if (RushCommandSelector._getCommandName() === 'rushx') {\n if (!Rush.launchRushX) {\n RushCommandSelector._failWithError(\n `This repository is using Rush version ${Rush.version}` +\n ` which does not support the \"rushx\" command`\n );\n }\n Rush.launchRushX(launcherVersion, {\n isManaged: options.isManaged,\n alreadyReportedNodeTooNewError: options.alreadyReportedNodeTooNewError\n });\n } else {\n Rush.launch(launcherVersion, {\n isManaged: options.isManaged,\n alreadyReportedNodeTooNewError: options.alreadyReportedNodeTooNewError\n });\n }\n }\n\n private static _failWithError(message: string): never {\n console.log(colors.red(message));\n return process.exit(1);\n }\n\n private static _getCommandName(): CommandName {\n if (process.argv.length >= 2) {\n // Example:\n // argv[0]: \"C:\\\\Program Files\\\\nodejs\\\\node.exe\"\n // argv[1]: \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\@microsoft\\\\rush\\\\bin\\\\rushx\"\n const basename: string = path.basename(process.argv[1]).toUpperCase();\n if (basename === 'RUSHX') {\n return 'rushx';\n }\n if (basename === 'RUSH') {\n return 'rush';\n }\n }\n return undefined;\n }\n}\n"]}
1
+ {"version":3,"file":"RushCommandSelector.js","sourceRoot":"","sources":["../src/RushCommandSelector.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,uDAAiC;AACjC,2CAA6B;AAK7B;;;;;;GAMG;AACH,MAAa,mBAAmB;IACvB,MAAM,CAAC,sBAAsB,CAAC,OAAe;QAClD,IAAI,mBAAmB,CAAC,eAAe,EAAE,KAAK,OAAO,EAAE;YACrD,mBAAmB,CAAC,cAAc,CAChC,yCAAyC,OAAO,6CAA6C,CAC9F,CAAC;SACH;IACH,CAAC;IAEM,MAAM,CAAC,OAAO,CACnB,eAAuB;IACvB,8DAA8D;IAC9D,eAAoB,EACpB,OAA+B;QAE/B,MAAM,IAAI,GAAwB,eAAe,CAAC,IAAI,CAAC;QAEvD,IAAI,CAAC,IAAI,EAAE;YACT,2EAA2E;YAC3E,mBAAmB,CAAC,cAAc,CAAC,8DAA8D,CAAC,CAAC;SACpG;QAED,IAAI,mBAAmB,CAAC,eAAe,EAAE,KAAK,OAAO,EAAE;YACrD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;gBACrB,mBAAmB,CAAC,cAAc,CAChC,yCAAyC,IAAI,CAAC,OAAO,EAAE;oBACrD,6CAA6C,CAChD,CAAC;aACH;YACD,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;SAC5C;aAAM;YACL,IAAI,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;SACvC;IACH,CAAC;IAEO,MAAM,CAAC,cAAc,CAAC,OAAe;QAC3C,OAAO,CAAC,GAAG,CAAC,cAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;QACjC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IAEO,MAAM,CAAC,eAAe;QAC5B,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;YAC5B,WAAW;YACX,iDAAiD;YACjD,mFAAmF;YACnF,MAAM,QAAQ,GAAW,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;YACtE,IAAI,QAAQ,KAAK,OAAO,EAAE;gBACxB,OAAO,OAAO,CAAC;aAChB;YACD,IAAI,QAAQ,KAAK,MAAM,EAAE;gBACvB,OAAO,MAAM,CAAC;aACf;SACF;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;CACF;AAvDD,kDAuDC","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 colors from 'colors/safe';\nimport * as path from 'path';\nimport * as rushLib from '@microsoft/rush-lib';\n\ntype CommandName = 'rush' | 'rushx' | undefined;\n\n/**\n * Both \"rush\" and \"rushx\" share the same src/start.ts entry point. This makes it\n * a little easier for them to share all the same startup checks and version selector\n * logic. RushCommandSelector looks at argv to determine whether we're doing \"rush\"\n * or \"rushx\" behavior, and then invokes the appropriate entry point in the selected\n * @microsoft/rush-lib.\n */\nexport class RushCommandSelector {\n public static failIfNotInvokedAsRush(version: string): void {\n if (RushCommandSelector._getCommandName() === 'rushx') {\n RushCommandSelector._failWithError(\n `This repository is using Rush version ${version} which does not support the \"rushx\" command`\n );\n }\n }\n\n public static execute(\n launcherVersion: string,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n selectedRushLib: any,\n options: rushLib.ILaunchOptions\n ): void {\n const Rush: typeof rushLib.Rush = selectedRushLib.Rush;\n\n if (!Rush) {\n // This should be impossible unless we somehow loaded an unexpected version\n RushCommandSelector._failWithError(`Unable to find the \"Rush\" entry point in @microsoft/rush-lib`);\n }\n\n if (RushCommandSelector._getCommandName() === 'rushx') {\n if (!Rush.launchRushX) {\n RushCommandSelector._failWithError(\n `This repository is using Rush version ${Rush.version}` +\n ` which does not support the \"rushx\" command`\n );\n }\n Rush.launchRushX(launcherVersion, options);\n } else {\n Rush.launch(launcherVersion, options);\n }\n }\n\n private static _failWithError(message: string): never {\n console.log(colors.red(message));\n return process.exit(1);\n }\n\n private static _getCommandName(): CommandName {\n if (process.argv.length >= 2) {\n // Example:\n // argv[0]: \"C:\\\\Program Files\\\\nodejs\\\\node.exe\"\n // argv[1]: \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\@microsoft\\\\rush\\\\bin\\\\rushx\"\n const basename: string = path.basename(process.argv[1]).toUpperCase();\n if (basename === 'RUSHX') {\n return 'rushx';\n }\n if (basename === 'RUSH') {\n return 'rush';\n }\n }\n return undefined;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/rush",
3
- "version": "5.59.0-rc.2",
3
+ "version": "5.59.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.59.0-rc.2",
33
- "@rushstack/node-core-library": "3.44.3",
32
+ "@microsoft/rush-lib": "5.59.0",
33
+ "@rushstack/node-core-library": "3.45.0",
34
34
  "colors": "~1.2.1",
35
35
  "semver": "~7.3.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@rushstack/eslint-config": "2.5.1",
39
- "@rushstack/heft": "0.44.1",
40
- "@rushstack/heft-node-rig": "1.5.1",
41
- "@rushstack/rush-amazon-s3-build-cache-plugin": "5.59.0-rc.2",
42
- "@rushstack/rush-azure-storage-build-cache-plugin": "5.59.0-rc.2",
39
+ "@rushstack/heft": "0.44.2",
40
+ "@rushstack/heft-node-rig": "1.5.2",
41
+ "@rushstack/rush-amazon-s3-build-cache-plugin": "5.59.0",
42
+ "@rushstack/rush-azure-storage-build-cache-plugin": "5.59.0",
43
43
  "@types/heft-jest": "1.0.1",
44
44
  "@types/node": "12.20.24",
45
45
  "@types/semver": "7.3.5"