@rushstack/rush-sdk 5.129.6 → 5.130.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.
Files changed (43) hide show
  1. package/dist/rush-lib.d.ts +23 -6
  2. package/{lib-shim → dist}/tsdoc-metadata.json +1 -1
  3. package/lib/api/CommonVersionsConfiguration.d.ts +3 -2
  4. package/lib/api/ExperimentsConfiguration.d.ts +7 -0
  5. package/lib/api/RushConfiguration.d.ts +6 -0
  6. package/lib/logic/RushConstants.d.ts +8 -0
  7. package/lib/logic/operations/AsyncOperationQueue.d.ts +3 -17
  8. package/lib/logic/operations/OperationExecutionRecord.d.ts +1 -0
  9. package/lib/logic/operations/OperationStatus.d.ts +5 -4
  10. package/lib/utilities/RushAlerts.d.ts +22 -0
  11. package/lib/utilities/RushAlerts.js +1 -0
  12. package/lib-commonjs/generate-stubs.d.ts +2 -0
  13. package/lib-commonjs/generate-stubs.d.ts.map +1 -0
  14. package/lib-commonjs/generate-stubs.js +84 -0
  15. package/lib-commonjs/generate-stubs.js.map +1 -0
  16. package/lib-commonjs/index.d.ts.map +1 -0
  17. package/lib-commonjs/index.js +207 -0
  18. package/lib-commonjs/index.js.map +1 -0
  19. package/lib-commonjs/loader.js +192 -0
  20. package/lib-commonjs/loader.js.map +1 -0
  21. package/lib-esnext/generate-stubs.js +57 -0
  22. package/lib-esnext/generate-stubs.js.map +1 -0
  23. package/lib-esnext/helpers.js +54 -0
  24. package/lib-esnext/helpers.js.map +1 -0
  25. package/lib-esnext/index.js +180 -0
  26. package/lib-esnext/index.js.map +1 -0
  27. package/lib-esnext/loader.js +165 -0
  28. package/lib-esnext/loader.js.map +1 -0
  29. package/lib-shim/commons.js +2200 -0
  30. package/lib-shim/commons.js.map +1 -0
  31. package/lib-shim/index.js +298 -184
  32. package/lib-shim/index.js.map +1 -1
  33. package/lib-shim/loader.js +228 -191
  34. package/lib-shim/loader.js.map +1 -1
  35. package/package.json +22 -9
  36. package/lib-shim/index.d.ts.map +0 -1
  37. /package/{lib-shim → lib-commonjs}/helpers.d.ts +0 -0
  38. /package/{lib-shim → lib-commonjs}/helpers.d.ts.map +0 -0
  39. /package/{lib-shim → lib-commonjs}/helpers.js +0 -0
  40. /package/{lib-shim → lib-commonjs}/helpers.js.map +0 -0
  41. /package/{lib-shim → lib-commonjs}/index.d.ts +0 -0
  42. /package/{lib-shim → lib-commonjs}/loader.d.ts +0 -0
  43. /package/{lib-shim → lib-commonjs}/loader.d.ts.map +0 -0
package/lib-shim/index.js CHANGED
@@ -1,185 +1,299 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
3
- // See LICENSE in the project root for license information.
4
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
- if (k2 === undefined) k2 = k;
6
- var desc = Object.getOwnPropertyDescriptor(m, k);
7
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
- desc = { enumerable: true, get: function() { return m[k]; } };
9
- }
10
- Object.defineProperty(o, k2, desc);
11
- }) : (function(o, m, k, k2) {
12
- if (k2 === undefined) k2 = k;
13
- o[k2] = m[k];
14
- }));
15
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
16
- Object.defineProperty(o, "default", { enumerable: true, value: v });
17
- }) : function(o, v) {
18
- o["default"] = v;
19
- });
20
- var __importStar = (this && this.__importStar) || function (mod) {
21
- if (mod && mod.__esModule) return mod;
22
- var result = {};
23
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
24
- __setModuleDefault(result, mod);
25
- return result;
26
- };
27
- var _a;
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports._rushSdk_loadInternalModule = void 0;
30
- const path = __importStar(require("path"));
31
- const node_core_library_1 = require("@rushstack/node-core-library");
32
- const terminal_1 = require("@rushstack/terminal");
33
- const helpers_1 = require("./helpers");
34
- const verboseEnabled = typeof process !== 'undefined' && process.env.RUSH_SDK_DEBUG === '1';
35
- const terminal = new terminal_1.Terminal(new terminal_1.ConsoleTerminalProvider({
36
- verboseEnabled
37
- }));
38
- let errorMessage = '';
39
- // SCENARIO 1: Rush's PluginManager has initialized "rush-sdk" with Rush's own instance of rush-lib.
40
- // The Rush host process will assign "global.___rush___rushLibModule" before loading the plugin.
41
- if (helpers_1.sdkContext.rushLibModule === undefined) {
42
- helpers_1.sdkContext.rushLibModule =
43
- global.___rush___rushLibModule ||
44
- global.___rush___rushLibModuleFromEnvironment ||
45
- global.___rush___rushLibModuleFromInstallAndRunRush;
46
- }
47
- // SCENARIO 2: The project importing "rush-sdk" has installed its own instance of "rush-lib"
48
- // as a package.json dependency. For example, this is used by the Jest tests for Rush plugins.
49
- if (helpers_1.sdkContext.rushLibModule === undefined) {
50
- const importingPath = (_a = module === null || module === void 0 ? void 0 : module.parent) === null || _a === void 0 ? void 0 : _a.filename;
51
- if (importingPath) {
52
- const callerPackageFolder = node_core_library_1.PackageJsonLookup.instance.tryGetPackageFolderFor(importingPath);
53
- if (callerPackageFolder !== undefined) {
54
- const callerPackageJson = (0, helpers_1._require)(path.join(callerPackageFolder, 'package.json'));
55
- // Does the caller properly declare a dependency on rush-lib?
56
- if ((callerPackageJson.dependencies && callerPackageJson.dependencies[helpers_1.RUSH_LIB_NAME] !== undefined) ||
57
- (callerPackageJson.devDependencies &&
58
- callerPackageJson.devDependencies[helpers_1.RUSH_LIB_NAME] !== undefined) ||
59
- (callerPackageJson.peerDependencies &&
60
- callerPackageJson.peerDependencies[helpers_1.RUSH_LIB_NAME] !== undefined)) {
61
- // Try to resolve rush-lib from the caller's folder
62
- terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from caller package`);
63
- try {
64
- helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(callerPackageFolder);
65
- }
66
- catch (error) {
67
- // If we fail to resolve it, ignore the error
68
- terminal.writeVerboseLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} from caller package`);
69
- }
70
- // If two different libraries invoke `rush-sdk`, and one of them provides "rush-lib"
71
- // then the first version to be loaded wins. We do not support side-by-side instances of "rush-lib".
72
- if (helpers_1.sdkContext.rushLibModule !== undefined) {
73
- // to track which scenario is active and how it got initialized.
74
- global.___rush___rushLibModule = helpers_1.sdkContext.rushLibModule;
75
- terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} from caller`);
76
- }
77
- }
78
- }
79
- }
80
- }
81
- // SCENARIO 3: A tool or script has been invoked as a child process by an instance of "rush-lib" and can use the
82
- // version that invoked it. In this case, use process.env._RUSH_LIB_PATH to find "rush-lib".
83
- if (helpers_1.sdkContext.rushLibModule === undefined) {
84
- const rushLibPath = process.env[helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME];
85
- if (rushLibPath) {
86
- terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME} from caller package`);
87
- try {
88
- helpers_1.sdkContext.rushLibModule = (0, helpers_1._require)(rushLibPath);
89
- }
90
- catch (error) {
91
- // Log this as a warning, since it is unexpected to define an incorrect value of the variable.
92
- terminal.writeWarningLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} via process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME}`);
93
- }
94
- if (helpers_1.sdkContext.rushLibModule !== undefined) {
95
- // to track which scenario is active and how it got initialized.
96
- global.___rush___rushLibModuleFromEnvironment = helpers_1.sdkContext.rushLibModule;
97
- terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} from process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME}`);
98
- }
99
- }
100
- }
101
- // SCENARIO 4: A standalone tool or script depends on "rush-sdk", and is meant to be used inside a monorepo folder.
102
- // In this case, we can use install-run-rush.js to obtain the appropriate rush-lib version for the monorepo.
103
- if (helpers_1.sdkContext.rushLibModule === undefined) {
104
- try {
105
- const rushJsonPath = (0, helpers_1.tryFindRushJsonLocation)(process.cwd());
106
- if (!rushJsonPath) {
107
- throw new Error('Unable to find rush.json in the current folder or its parent folders.\n' +
108
- 'This tool is meant to be invoked from a working directory inside a Rush repository.');
109
- }
110
- const monorepoRoot = path.dirname(rushJsonPath);
111
- const rushJson = node_core_library_1.JsonFile.load(rushJsonPath);
112
- const { rushVersion } = rushJson;
113
- const installRunNodeModuleFolder = path.join(monorepoRoot, `common/temp/install-run/@microsoft+rush@${rushVersion}`);
114
- try {
115
- // First, try to load the version of "rush-lib" that was installed by install-run-rush.js
116
- terminal.writeVerboseLine(`Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`);
117
- helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);
118
- }
119
- catch (e1) {
120
- let installAndRunRushStderrContent = '';
121
- try {
122
- const installAndRunRushJSPath = path.join(monorepoRoot, 'common/scripts/install-run-rush.js');
123
- terminal.writeLine('The Rush engine has not been installed yet. Invoking install-run-rush.js...');
124
- const installAndRunRushProcess = node_core_library_1.Executable.spawnSync('node', [installAndRunRushJSPath, '--help'], {
125
- stdio: 'pipe'
126
- });
127
- installAndRunRushStderrContent = installAndRunRushProcess.stderr;
128
- if (installAndRunRushProcess.status !== 0) {
129
- throw new Error(`The ${helpers_1.RUSH_LIB_NAME} package failed to install`);
130
- }
131
- // Retry to load "rush-lib" after install-run-rush run
132
- terminal.writeVerboseLine(`Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush a second time`);
133
- helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);
134
- }
135
- catch (e2) {
136
- // eslint-disable-next-line no-console
137
- console.error(`${installAndRunRushStderrContent}`);
138
- throw new Error(`The ${helpers_1.RUSH_LIB_NAME} package failed to load`);
139
- }
140
- }
141
- if (helpers_1.sdkContext.rushLibModule !== undefined) {
142
- // to track which scenario is active and how it got initialized.
143
- global.___rush___rushLibModuleFromInstallAndRunRush = helpers_1.sdkContext.rushLibModule;
144
- terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`);
145
- }
146
- }
147
- catch (e) {
148
- // no-catch
149
- errorMessage = e.message;
150
- }
151
- }
152
- if (helpers_1.sdkContext.rushLibModule === undefined) {
153
- // This error indicates that a project is trying to import "@rushstack/rush-sdk", but the Rush engine
154
- // instance cannot be found. If you are writing Jest tests for a Rush plugin, add "@microsoft/rush-lib"
155
- // to the devDependencies for your project.
156
- // eslint-disable-next-line no-console
157
- console.error(`Error: The @rushstack/rush-sdk package was not able to load the Rush engine:
158
- ${errorMessage}
159
- `);
160
- process.exit(1);
161
- }
162
- // Based on TypeScript's __exportStar()
163
- for (const property in helpers_1.sdkContext.rushLibModule) {
164
- if (property !== 'default' && !exports.hasOwnProperty(property)) {
165
- const rushLibModuleForClosure = helpers_1.sdkContext.rushLibModule;
166
- // Based on TypeScript's __createBinding()
167
- Object.defineProperty(exports, property, {
168
- enumerable: true,
169
- get: function () {
170
- return rushLibModuleForClosure[property];
171
- }
172
- });
173
- }
174
- }
175
- /**
176
- * Used by the .js stubs for path-based imports of `@microsoft/rush-lib` internal APIs.
177
- */
178
- function _rushSdk_loadInternalModule(srcImportPath) {
179
- if (!exports._RushInternals) {
180
- throw new Error(`Rush version ${exports.Rush.version} does not support internal API imports via rush-sdk`);
181
- }
182
- return exports._RushInternals.loadModule(srcImportPath);
183
- }
184
- exports._rushSdk_loadInternalModule = _rushSdk_loadInternalModule;
1
+ /******/ (() => { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ "@rushstack/node-core-library":
6
+ /*!***********************************************!*\
7
+ !*** external "@rushstack/node-core-library" ***!
8
+ \***********************************************/
9
+ /***/ ((module) => {
10
+
11
+ module.exports = require("@rushstack/node-core-library");
12
+
13
+ /***/ }),
14
+
15
+ /***/ "@rushstack/terminal":
16
+ /*!**************************************!*\
17
+ !*** external "@rushstack/terminal" ***!
18
+ \**************************************/
19
+ /***/ ((module) => {
20
+
21
+ module.exports = require("@rushstack/terminal");
22
+
23
+ /***/ }),
24
+
25
+ /***/ "child_process":
26
+ /*!********************************!*\
27
+ !*** external "child_process" ***!
28
+ \********************************/
29
+ /***/ ((module) => {
30
+
31
+ module.exports = require("child_process");
32
+
33
+ /***/ }),
34
+
35
+ /***/ "fs":
36
+ /*!*********************!*\
37
+ !*** external "fs" ***!
38
+ \*********************/
39
+ /***/ ((module) => {
40
+
41
+ module.exports = require("fs");
42
+
43
+ /***/ }),
44
+
45
+ /***/ "os":
46
+ /*!*********************!*\
47
+ !*** external "os" ***!
48
+ \*********************/
49
+ /***/ ((module) => {
50
+
51
+ module.exports = require("os");
52
+
53
+ /***/ }),
54
+
55
+ /***/ "path":
56
+ /*!***********************!*\
57
+ !*** external "path" ***!
58
+ \***********************/
59
+ /***/ ((module) => {
60
+
61
+ module.exports = require("path");
62
+
63
+ /***/ }),
64
+
65
+ /***/ "perf_hooks":
66
+ /*!*****************************!*\
67
+ !*** external "perf_hooks" ***!
68
+ \*****************************/
69
+ /***/ ((module) => {
70
+
71
+ module.exports = require("perf_hooks");
72
+
73
+ /***/ }),
74
+
75
+ /***/ "stream":
76
+ /*!*************************!*\
77
+ !*** external "stream" ***!
78
+ \*************************/
79
+ /***/ ((module) => {
80
+
81
+ module.exports = require("stream");
82
+
83
+ /***/ }),
84
+
85
+ /***/ "util":
86
+ /*!***********************!*\
87
+ !*** external "util" ***!
88
+ \***********************/
89
+ /***/ ((module) => {
90
+
91
+ module.exports = require("util");
92
+
93
+ /***/ })
94
+
95
+ /******/ });
96
+ /************************************************************************/
97
+ /******/ // The module cache
98
+ /******/ var __webpack_module_cache__ = {};
99
+ /******/
100
+ /******/ // The require function
101
+ /******/ function __webpack_require__(moduleId) {
102
+ /******/ // Check if module is in cache
103
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
104
+ /******/ if (cachedModule !== undefined) {
105
+ /******/ return cachedModule.exports;
106
+ /******/ }
107
+ /******/ // Create a new module (and put it into the cache)
108
+ /******/ var module = __webpack_module_cache__[moduleId] = {
109
+ /******/ id: moduleId,
110
+ /******/ loaded: false,
111
+ /******/ exports: {}
112
+ /******/ };
113
+ /******/
114
+ /******/ // Execute the module function
115
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
116
+ /******/
117
+ /******/ // Flag the module as loaded
118
+ /******/ module.loaded = true;
119
+ /******/
120
+ /******/ // Return the exports of the module
121
+ /******/ return module.exports;
122
+ /******/ }
123
+ /******/
124
+ /******/ // expose the modules object (__webpack_modules__)
125
+ /******/ __webpack_require__.m = __webpack_modules__;
126
+ /******/
127
+ /******/ // the startup function
128
+ /******/ __webpack_require__.x = () => {
129
+ /******/ // Load entry module and return exports
130
+ /******/ // This entry module depends on other loaded chunks and execution need to be delayed
131
+ /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["commons"], () => (__webpack_require__("./lib-commonjs/index.js")))
132
+ /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
133
+ /******/ return __webpack_exports__;
134
+ /******/ };
135
+ /******/
136
+ /************************************************************************/
137
+ /******/ /* webpack/runtime/chunk loaded */
138
+ /******/ (() => {
139
+ /******/ var deferred = [];
140
+ /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
141
+ /******/ if(chunkIds) {
142
+ /******/ priority = priority || 0;
143
+ /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
144
+ /******/ deferred[i] = [chunkIds, fn, priority];
145
+ /******/ return;
146
+ /******/ }
147
+ /******/ var notFulfilled = Infinity;
148
+ /******/ for (var i = 0; i < deferred.length; i++) {
149
+ /******/ var [chunkIds, fn, priority] = deferred[i];
150
+ /******/ var fulfilled = true;
151
+ /******/ for (var j = 0; j < chunkIds.length; j++) {
152
+ /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
153
+ /******/ chunkIds.splice(j--, 1);
154
+ /******/ } else {
155
+ /******/ fulfilled = false;
156
+ /******/ if(priority < notFulfilled) notFulfilled = priority;
157
+ /******/ }
158
+ /******/ }
159
+ /******/ if(fulfilled) {
160
+ /******/ deferred.splice(i--, 1)
161
+ /******/ var r = fn();
162
+ /******/ if (r !== undefined) result = r;
163
+ /******/ }
164
+ /******/ }
165
+ /******/ return result;
166
+ /******/ };
167
+ /******/ })();
168
+ /******/
169
+ /******/ /* webpack/runtime/compat get default export */
170
+ /******/ (() => {
171
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
172
+ /******/ __webpack_require__.n = (module) => {
173
+ /******/ var getter = module && module.__esModule ?
174
+ /******/ () => (module['default']) :
175
+ /******/ () => (module);
176
+ /******/ __webpack_require__.d(getter, { a: getter });
177
+ /******/ return getter;
178
+ /******/ };
179
+ /******/ })();
180
+ /******/
181
+ /******/ /* webpack/runtime/define property getters */
182
+ /******/ (() => {
183
+ /******/ // define getter functions for harmony exports
184
+ /******/ __webpack_require__.d = (exports, definition) => {
185
+ /******/ for(var key in definition) {
186
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
187
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
188
+ /******/ }
189
+ /******/ }
190
+ /******/ };
191
+ /******/ })();
192
+ /******/
193
+ /******/ /* webpack/runtime/ensure chunk */
194
+ /******/ (() => {
195
+ /******/ __webpack_require__.f = {};
196
+ /******/ // This file contains only the entry chunk.
197
+ /******/ // The chunk loading function for additional chunks
198
+ /******/ __webpack_require__.e = (chunkId) => {
199
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
200
+ /******/ __webpack_require__.f[key](chunkId, promises);
201
+ /******/ return promises;
202
+ /******/ }, []));
203
+ /******/ };
204
+ /******/ })();
205
+ /******/
206
+ /******/ /* webpack/runtime/get javascript chunk filename */
207
+ /******/ (() => {
208
+ /******/ // This function allow to reference async chunks and sibling chunks for the entrypoint
209
+ /******/ __webpack_require__.u = (chunkId) => {
210
+ /******/ // return url for filenames based on template
211
+ /******/ return "" + chunkId + ".js";
212
+ /******/ };
213
+ /******/ })();
214
+ /******/
215
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
216
+ /******/ (() => {
217
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
218
+ /******/ })();
219
+ /******/
220
+ /******/ /* webpack/runtime/make namespace object */
221
+ /******/ (() => {
222
+ /******/ // define __esModule on exports
223
+ /******/ __webpack_require__.r = (exports) => {
224
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
225
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
226
+ /******/ }
227
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
228
+ /******/ };
229
+ /******/ })();
230
+ /******/
231
+ /******/ /* webpack/runtime/node module decorator */
232
+ /******/ (() => {
233
+ /******/ __webpack_require__.nmd = (module) => {
234
+ /******/ module.paths = [];
235
+ /******/ if (!module.children) module.children = [];
236
+ /******/ return module;
237
+ /******/ };
238
+ /******/ })();
239
+ /******/
240
+ /******/ /* webpack/runtime/require chunk loading */
241
+ /******/ (() => {
242
+ /******/ // no baseURI
243
+ /******/
244
+ /******/ // object to store loaded chunks
245
+ /******/ // "1" means "loaded", otherwise not loaded yet
246
+ /******/ var installedChunks = {
247
+ /******/ "index": 1
248
+ /******/ };
249
+ /******/
250
+ /******/ __webpack_require__.O.require = (chunkId) => (installedChunks[chunkId]);
251
+ /******/
252
+ /******/ var installChunk = (chunk) => {
253
+ /******/ var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;
254
+ /******/ for(var moduleId in moreModules) {
255
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
256
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
257
+ /******/ }
258
+ /******/ }
259
+ /******/ if(runtime) runtime(__webpack_require__);
260
+ /******/ for(var i = 0; i < chunkIds.length; i++)
261
+ /******/ installedChunks[chunkIds[i]] = 1;
262
+ /******/ __webpack_require__.O();
263
+ /******/ };
264
+ /******/
265
+ /******/ // require() chunk loading for javascript
266
+ /******/ __webpack_require__.f.require = (chunkId, promises) => {
267
+ /******/ // "1" is the signal for "already loaded"
268
+ /******/ if(!installedChunks[chunkId]) {
269
+ /******/ if(true) { // all chunks have JS
270
+ /******/ installChunk(require("./" + __webpack_require__.u(chunkId)));
271
+ /******/ } else installedChunks[chunkId] = 1;
272
+ /******/ }
273
+ /******/ };
274
+ /******/
275
+ /******/ // no external install chunk
276
+ /******/
277
+ /******/ // no HMR
278
+ /******/
279
+ /******/ // no HMR manifest
280
+ /******/ })();
281
+ /******/
282
+ /******/ /* webpack/runtime/startup chunk dependencies */
283
+ /******/ (() => {
284
+ /******/ var next = __webpack_require__.x;
285
+ /******/ __webpack_require__.x = () => {
286
+ /******/ __webpack_require__.e("commons");
287
+ /******/ return next();
288
+ /******/ };
289
+ /******/ })();
290
+ /******/
291
+ /************************************************************************/
292
+ /******/
293
+ /******/ // run startup
294
+ /******/ var __webpack_exports__ = __webpack_require__.x();
295
+ /******/ module.exports = __webpack_exports__;
296
+ /******/
297
+ /******/ })()
298
+ ;
185
299
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,2CAA6B;AAC7B,oEAMsC;AACtC,kDAAwE;AAExE,uCAQmB;AAEnB,MAAM,cAAc,GAAY,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,GAAG,CAAC;AACrG,MAAM,QAAQ,GAAa,IAAI,mBAAQ,CACrC,IA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AC1C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,EAAE;YACvC,UAAU,EAAE,IAAI;YAChB,GAAG,EAAE;gBACH,OAAO,uBAAuB,CAAC,QAAQ,CAAC,CAAC;YAC3C,CAAC;SACF,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED;;GAEG;AACH,SAAgB,2BAA2B,CAAC,aAAqB;IAC/D,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CACb,gBAAgB,OAAO,CAAC,IAAI,CAAC,OAAO,qDAAqD,CAC1F,CAAC;IACJ,CAAC;IACD,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;AAC1D,CAAC;AAPD,kEAOC","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';\nimport {\n JsonFile,\n type JsonObject,\n type IPackageJson,\n PackageJsonLookup,\n Executable\n} from '@rushstack/node-core-library';\nimport { Terminal, ConsoleTerminalProvider } from '@rushstack/terminal';\nimport type { SpawnSyncReturns } from 'child_process';\nimport {\n RUSH_LIB_NAME,\n RUSH_LIB_PATH_ENV_VAR_NAME,\n type RushLibModuleType,\n _require,\n requireRushLibUnderFolderPath,\n tryFindRushJsonLocation,\n sdkContext\n} from './helpers';\n\nconst verboseEnabled: boolean = typeof process !== 'undefined' && process.env.RUSH_SDK_DEBUG === '1';\nconst terminal: Terminal = new Terminal(\n new ConsoleTerminalProvider({\n verboseEnabled\n })\n);\n\ndeclare const global: typeof globalThis & {\n ___rush___rushLibModule?: RushLibModuleType;\n ___rush___rushLibModuleFromEnvironment?: RushLibModuleType;\n ___rush___rushLibModuleFromInstallAndRunRush?: RushLibModuleType;\n};\n\nlet errorMessage: string = '';\n\n// SCENARIO 1: Rush's PluginManager has initialized \"rush-sdk\" with Rush's own instance of rush-lib.\n// The Rush host process will assign \"global.___rush___rushLibModule\" before loading the plugin.\nif (sdkContext.rushLibModule === undefined) {\n sdkContext.rushLibModule =\n global.___rush___rushLibModule ||\n global.___rush___rushLibModuleFromEnvironment ||\n global.___rush___rushLibModuleFromInstallAndRunRush;\n}\n\n// SCENARIO 2: The project importing \"rush-sdk\" has installed its own instance of \"rush-lib\"\n// as a package.json dependency. For example, this is used by the Jest tests for Rush plugins.\nif (sdkContext.rushLibModule === undefined) {\n const importingPath: string | null | undefined = module?.parent?.filename;\n if (importingPath) {\n const callerPackageFolder: string | undefined =\n PackageJsonLookup.instance.tryGetPackageFolderFor(importingPath);\n\n if (callerPackageFolder !== undefined) {\n const callerPackageJson: IPackageJson = _require(path.join(callerPackageFolder, 'package.json'));\n\n // Does the caller properly declare a dependency on rush-lib?\n if (\n (callerPackageJson.dependencies && callerPackageJson.dependencies[RUSH_LIB_NAME] !== undefined) ||\n (callerPackageJson.devDependencies &&\n callerPackageJson.devDependencies[RUSH_LIB_NAME] !== undefined) ||\n (callerPackageJson.peerDependencies &&\n callerPackageJson.peerDependencies[RUSH_LIB_NAME] !== undefined)\n ) {\n // Try to resolve rush-lib from the caller's folder\n terminal.writeVerboseLine(`Try to load ${RUSH_LIB_NAME} from caller package`);\n try {\n sdkContext.rushLibModule = requireRushLibUnderFolderPath(callerPackageFolder);\n } catch (error) {\n // If we fail to resolve it, ignore the error\n terminal.writeVerboseLine(`Failed to load ${RUSH_LIB_NAME} from caller package`);\n }\n\n // If two different libraries invoke `rush-sdk`, and one of them provides \"rush-lib\"\n // then the first version to be loaded wins. We do not support side-by-side instances of \"rush-lib\".\n if (sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModule = sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${RUSH_LIB_NAME} from caller`);\n }\n }\n }\n }\n}\n\n// SCENARIO 3: A tool or script has been invoked as a child process by an instance of \"rush-lib\" and can use the\n// version that invoked it. In this case, use process.env._RUSH_LIB_PATH to find \"rush-lib\".\nif (sdkContext.rushLibModule === undefined) {\n const rushLibPath: string | undefined = process.env[RUSH_LIB_PATH_ENV_VAR_NAME];\n if (rushLibPath) {\n terminal.writeVerboseLine(\n `Try to load ${RUSH_LIB_NAME} from process.env.${RUSH_LIB_PATH_ENV_VAR_NAME} from caller package`\n );\n try {\n sdkContext.rushLibModule = _require(rushLibPath);\n } catch (error) {\n // Log this as a warning, since it is unexpected to define an incorrect value of the variable.\n terminal.writeWarningLine(\n `Failed to load ${RUSH_LIB_NAME} via process.env.${RUSH_LIB_PATH_ENV_VAR_NAME}`\n );\n }\n\n if (sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModuleFromEnvironment = sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${RUSH_LIB_NAME} from process.env.${RUSH_LIB_PATH_ENV_VAR_NAME}`);\n }\n }\n}\n\n// SCENARIO 4: A standalone tool or script depends on \"rush-sdk\", and is meant to be used inside a monorepo folder.\n// In this case, we can use install-run-rush.js to obtain the appropriate rush-lib version for the monorepo.\nif (sdkContext.rushLibModule === undefined) {\n try {\n const rushJsonPath: string | undefined = tryFindRushJsonLocation(process.cwd());\n if (!rushJsonPath) {\n throw new Error(\n 'Unable to find rush.json in the current folder or its parent folders.\\n' +\n 'This tool is meant to be invoked from a working directory inside a Rush repository.'\n );\n }\n const monorepoRoot: string = path.dirname(rushJsonPath);\n\n const rushJson: JsonObject = JsonFile.load(rushJsonPath);\n const { rushVersion } = rushJson;\n\n const installRunNodeModuleFolder: string = path.join(\n monorepoRoot,\n `common/temp/install-run/@microsoft+rush@${rushVersion}`\n );\n\n try {\n // First, try to load the version of \"rush-lib\" that was installed by install-run-rush.js\n terminal.writeVerboseLine(`Trying to load ${RUSH_LIB_NAME} installed by install-run-rush`);\n sdkContext.rushLibModule = requireRushLibUnderFolderPath(installRunNodeModuleFolder);\n } catch (e1) {\n let installAndRunRushStderrContent: string = '';\n try {\n const installAndRunRushJSPath: string = path.join(monorepoRoot, 'common/scripts/install-run-rush.js');\n\n terminal.writeLine('The Rush engine has not been installed yet. Invoking install-run-rush.js...');\n\n const installAndRunRushProcess: SpawnSyncReturns<string> = Executable.spawnSync(\n 'node',\n [installAndRunRushJSPath, '--help'],\n {\n stdio: 'pipe'\n }\n );\n\n installAndRunRushStderrContent = installAndRunRushProcess.stderr;\n if (installAndRunRushProcess.status !== 0) {\n throw new Error(`The ${RUSH_LIB_NAME} package failed to install`);\n }\n\n // Retry to load \"rush-lib\" after install-run-rush run\n terminal.writeVerboseLine(\n `Trying to load ${RUSH_LIB_NAME} installed by install-run-rush a second time`\n );\n sdkContext.rushLibModule = requireRushLibUnderFolderPath(installRunNodeModuleFolder);\n } catch (e2) {\n // eslint-disable-next-line no-console\n console.error(`${installAndRunRushStderrContent}`);\n throw new Error(`The ${RUSH_LIB_NAME} package failed to load`);\n }\n }\n\n if (sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModuleFromInstallAndRunRush = sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${RUSH_LIB_NAME} installed by install-run-rush`);\n }\n } catch (e) {\n // no-catch\n errorMessage = (e as Error).message;\n }\n}\n\nif (sdkContext.rushLibModule === undefined) {\n // This error indicates that a project is trying to import \"@rushstack/rush-sdk\", but the Rush engine\n // instance cannot be found. If you are writing Jest tests for a Rush plugin, add \"@microsoft/rush-lib\"\n // to the devDependencies for your project.\n // eslint-disable-next-line no-console\n console.error(`Error: The @rushstack/rush-sdk package was not able to load the Rush engine:\n${errorMessage}\n`);\n process.exit(1);\n}\n\n// Based on TypeScript's __exportStar()\nfor (const property in sdkContext.rushLibModule) {\n if (property !== 'default' && !exports.hasOwnProperty(property)) {\n const rushLibModuleForClosure: RushLibModuleType = sdkContext.rushLibModule;\n\n // Based on TypeScript's __createBinding()\n Object.defineProperty(exports, property, {\n enumerable: true,\n get: function () {\n return rushLibModuleForClosure[property];\n }\n });\n }\n}\n\n/**\n * Used by the .js stubs for path-based imports of `@microsoft/rush-lib` internal APIs.\n */\nexport function _rushSdk_loadInternalModule(srcImportPath: string): unknown {\n if (!exports._RushInternals) {\n throw new Error(\n `Rush version ${exports.Rush.version} does not support internal API imports via rush-sdk`\n );\n }\n return exports._RushInternals.loadModule(srcImportPath);\n}\n"]}
1
+ {"version":3,"file":"index.js","mappings":";;;;;;;;;;AAAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;;;;WCrCA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;;;;;WCRA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;WACA;WACA;WACA;WACA;;;;;WCJA;;WAEA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,gBAAgB,qBAAqB;WACrC;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA,aAAa;WACb;WACA,IAAI;WACJ;WACA;;WAEA;;WAEA;;WAEA;;;;;WCrCA;WACA;WACA;WACA;WACA;;;;;UEJA;UACA","sources":["webpack://@rushstack/rush-sdk/external commonjs \"@rushstack/node-core-library\"","webpack://@rushstack/rush-sdk/external commonjs \"@rushstack/terminal\"","webpack://@rushstack/rush-sdk/external node-commonjs \"child_process\"","webpack://@rushstack/rush-sdk/external node-commonjs \"fs\"","webpack://@rushstack/rush-sdk/external node-commonjs \"os\"","webpack://@rushstack/rush-sdk/external node-commonjs \"path\"","webpack://@rushstack/rush-sdk/external node-commonjs \"perf_hooks\"","webpack://@rushstack/rush-sdk/external node-commonjs \"stream\"","webpack://@rushstack/rush-sdk/external node-commonjs \"util\"","webpack://@rushstack/rush-sdk/webpack/bootstrap","webpack://@rushstack/rush-sdk/webpack/runtime/chunk loaded","webpack://@rushstack/rush-sdk/webpack/runtime/compat get default export","webpack://@rushstack/rush-sdk/webpack/runtime/define property getters","webpack://@rushstack/rush-sdk/webpack/runtime/ensure chunk","webpack://@rushstack/rush-sdk/webpack/runtime/get javascript chunk filename","webpack://@rushstack/rush-sdk/webpack/runtime/hasOwnProperty shorthand","webpack://@rushstack/rush-sdk/webpack/runtime/make namespace object","webpack://@rushstack/rush-sdk/webpack/runtime/node module decorator","webpack://@rushstack/rush-sdk/webpack/runtime/require chunk loading","webpack://@rushstack/rush-sdk/webpack/runtime/startup chunk dependencies","webpack://@rushstack/rush-sdk/webpack/before-startup","webpack://@rushstack/rush-sdk/webpack/startup","webpack://@rushstack/rush-sdk/webpack/after-startup"],"sourcesContent":["module.exports = require(\"@rushstack/node-core-library\");","module.exports = require(\"@rushstack/terminal\");","module.exports = require(\"child_process\");","module.exports = require(\"fs\");","module.exports = require(\"os\");","module.exports = require(\"path\");","module.exports = require(\"perf_hooks\");","module.exports = require(\"stream\");","module.exports = require(\"util\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = () => {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [\"commons\"], () => (__webpack_require__(\"./lib-commonjs/index.js\")))\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"loaded\", otherwise not loaded yet\nvar installedChunks = {\n\t\"index\": 1\n};\n\n__webpack_require__.O.require = (chunkId) => (installedChunks[chunkId]);\n\nvar installChunk = (chunk) => {\n\tvar moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\tfor(var i = 0; i < chunkIds.length; i++)\n\t\tinstalledChunks[chunkIds[i]] = 1;\n\t__webpack_require__.O();\n};\n\n// require() chunk loading for javascript\n__webpack_require__.f.require = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\tinstallChunk(require(\"./\" + __webpack_require__.u(chunkId)));\n\t\t} else installedChunks[chunkId] = 1;\n\t}\n};\n\n// no external install chunk\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = () => {\n\t__webpack_require__.e(\"commons\");\n\treturn next();\n};","","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n",""],"names":[],"sourceRoot":""}