@rushstack/rush-sdk 5.131.0 → 5.131.1

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 (37) hide show
  1. package/dist/rush-lib.d.ts +4 -119
  2. package/dist/tsdoc-metadata.json +1 -1
  3. package/lib/api/RushConfiguration.d.ts +1 -1
  4. package/lib/index.d.ts +1 -1
  5. package/lib-shim/index.js +1995 -119
  6. package/lib-shim/index.js.map +1 -1
  7. package/lib-shim/loader.js +299 -174
  8. package/lib-shim/loader.js.map +1 -1
  9. package/package.json +5 -4
  10. package/lib/logic/LookupByPath.d.ts +0 -120
  11. package/lib/logic/LookupByPath.js +0 -1
  12. package/lib-commonjs/generate-stubs.d.ts +0 -2
  13. package/lib-commonjs/generate-stubs.d.ts.map +0 -1
  14. package/lib-commonjs/generate-stubs.js +0 -84
  15. package/lib-commonjs/generate-stubs.js.map +0 -1
  16. package/lib-commonjs/helpers.d.ts +0 -21
  17. package/lib-commonjs/helpers.d.ts.map +0 -1
  18. package/lib-commonjs/helpers.js +0 -83
  19. package/lib-commonjs/helpers.js.map +0 -1
  20. package/lib-commonjs/index.d.ts +0 -5
  21. package/lib-commonjs/index.d.ts.map +0 -1
  22. package/lib-commonjs/index.js +0 -207
  23. package/lib-commonjs/index.js.map +0 -1
  24. package/lib-commonjs/loader.d.ts +0 -86
  25. package/lib-commonjs/loader.d.ts.map +0 -1
  26. package/lib-commonjs/loader.js +0 -192
  27. package/lib-commonjs/loader.js.map +0 -1
  28. package/lib-esnext/generate-stubs.js +0 -57
  29. package/lib-esnext/generate-stubs.js.map +0 -1
  30. package/lib-esnext/helpers.js +0 -54
  31. package/lib-esnext/helpers.js.map +0 -1
  32. package/lib-esnext/index.js +0 -180
  33. package/lib-esnext/index.js.map +0 -1
  34. package/lib-esnext/loader.js +0 -165
  35. package/lib-esnext/loader.js.map +0 -1
  36. package/lib-shim/commons.js +0 -2200
  37. package/lib-shim/commons.js.map +0 -1
@@ -2,6 +2,299 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
+ /***/ "./lib-commonjs/helpers.js":
6
+ /*!*********************************!*\
7
+ !*** ./lib-commonjs/helpers.js ***!
8
+ \*********************************/
9
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
10
+
11
+
12
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
13
+ // See LICENSE in the project root for license information.
14
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ var desc = Object.getOwnPropertyDescriptor(m, k);
17
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
18
+ desc = { enumerable: true, get: function() { return m[k]; } };
19
+ }
20
+ Object.defineProperty(o, k2, desc);
21
+ }) : (function(o, m, k, k2) {
22
+ if (k2 === undefined) k2 = k;
23
+ o[k2] = m[k];
24
+ }));
25
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
26
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
27
+ }) : function(o, v) {
28
+ o["default"] = v;
29
+ });
30
+ var __importStar = (this && this.__importStar) || function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
38
+ exports.requireRushLibUnderFolderPath = exports._require = exports.tryFindRushJsonLocation = exports.sdkContext = exports.RUSH_LIB_PATH_ENV_VAR_NAME = exports.RUSH_LIB_NAME = void 0;
39
+ const path = __importStar(__webpack_require__(/*! path */ "path"));
40
+ const node_core_library_1 = __webpack_require__(/*! @rushstack/node-core-library */ "@rushstack/node-core-library");
41
+ exports.RUSH_LIB_NAME = '@microsoft/rush-lib';
42
+ exports.RUSH_LIB_PATH_ENV_VAR_NAME = '_RUSH_LIB_PATH';
43
+ exports.sdkContext = {
44
+ rushLibModule: undefined
45
+ };
46
+ /**
47
+ * Find the rush.json location and return the path, or undefined if a rush.json can't be found.
48
+ *
49
+ * @privateRemarks
50
+ * Keep this in sync with `RushConfiguration.tryFindRushJsonLocation`.
51
+ */
52
+ function tryFindRushJsonLocation(startingFolder) {
53
+ let currentFolder = startingFolder;
54
+ // Look upwards at parent folders until we find a folder containing rush.json
55
+ for (let i = 0; i < 10; ++i) {
56
+ const rushJsonFilename = path.join(currentFolder, 'rush.json');
57
+ if (node_core_library_1.FileSystem.exists(rushJsonFilename)) {
58
+ return rushJsonFilename;
59
+ }
60
+ const parentFolder = path.dirname(currentFolder);
61
+ if (parentFolder === currentFolder) {
62
+ break;
63
+ }
64
+ currentFolder = parentFolder;
65
+ }
66
+ return undefined;
67
+ }
68
+ exports.tryFindRushJsonLocation = tryFindRushJsonLocation;
69
+ function _require(moduleName) {
70
+ if (typeof require === 'function') {
71
+ // If this library has been bundled with Webpack, we need to call the real `require` function
72
+ // that doesn't get turned into a `__webpack_require__` statement.
73
+ // `__non_webpack_require__` is a Webpack macro that gets turned into a `require` statement
74
+ // during bundling.
75
+ return require(moduleName);
76
+ }
77
+ else {
78
+ return require(moduleName);
79
+ }
80
+ }
81
+ exports._require = _require;
82
+ /**
83
+ * Require `@microsoft/rush-lib` under the specified folder path.
84
+ */
85
+ function requireRushLibUnderFolderPath(folderPath) {
86
+ const rushLibModulePath = node_core_library_1.Import.resolveModule({
87
+ modulePath: exports.RUSH_LIB_NAME,
88
+ baseFolderPath: folderPath
89
+ });
90
+ return _require(rushLibModulePath);
91
+ }
92
+ exports.requireRushLibUnderFolderPath = requireRushLibUnderFolderPath;
93
+ //# sourceMappingURL=helpers.js.map
94
+
95
+ /***/ }),
96
+
97
+ /***/ "./lib-commonjs/loader.js":
98
+ /*!********************************!*\
99
+ !*** ./lib-commonjs/loader.js ***!
100
+ \********************************/
101
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
102
+
103
+
104
+ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
105
+ // See LICENSE in the project root for license information.
106
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
107
+ if (k2 === undefined) k2 = k;
108
+ var desc = Object.getOwnPropertyDescriptor(m, k);
109
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
110
+ desc = { enumerable: true, get: function() { return m[k]; } };
111
+ }
112
+ Object.defineProperty(o, k2, desc);
113
+ }) : (function(o, m, k, k2) {
114
+ if (k2 === undefined) k2 = k;
115
+ o[k2] = m[k];
116
+ }));
117
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
118
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
119
+ }) : function(o, v) {
120
+ o["default"] = v;
121
+ });
122
+ var __importStar = (this && this.__importStar) || function (mod) {
123
+ if (mod && mod.__esModule) return mod;
124
+ var result = {};
125
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
126
+ __setModuleDefault(result, mod);
127
+ return result;
128
+ };
129
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
130
+ exports.RushSdkLoader = void 0;
131
+ const path = __importStar(__webpack_require__(/*! path */ "path"));
132
+ const node_core_library_1 = __webpack_require__(/*! @rushstack/node-core-library */ "@rushstack/node-core-library");
133
+ const helpers_1 = __webpack_require__(/*! ./helpers */ "./lib-commonjs/helpers.js");
134
+ /**
135
+ * Exposes operations that control how the `@microsoft/rush-lib` engine is
136
+ * located and loaded.
137
+ * @public
138
+ */
139
+ class RushSdkLoader {
140
+ /**
141
+ * Throws an "AbortError" exception if abortSignal.aborted is true.
142
+ */
143
+ static _checkForCancel(abortSignal, onNotifyEvent, progressPercent) {
144
+ if (!(abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) {
145
+ return;
146
+ }
147
+ if (onNotifyEvent) {
148
+ onNotifyEvent({
149
+ logMessage: {
150
+ kind: 'info',
151
+ text: `The operation was canceled`
152
+ },
153
+ progressPercent
154
+ });
155
+ }
156
+ const error = new Error('The operation was canceled');
157
+ error.name = 'AbortError';
158
+ throw error;
159
+ }
160
+ /**
161
+ * Returns true if the Rush engine has already been loaded.
162
+ */
163
+ static get isLoaded() {
164
+ return helpers_1.sdkContext.rushLibModule !== undefined;
165
+ }
166
+ /**
167
+ * Manually load the Rush engine based on rush.json found for `rushJsonSearchFolder`.
168
+ * Throws an exception if {@link RushSdkLoader.isLoaded} is already `true`.
169
+ *
170
+ * @remarks
171
+ * This API supports an callback that can be used display a progress bar,
172
+ * log of operations, and allow the operation to be canceled prematurely.
173
+ */
174
+ static async loadAsync(options) {
175
+ // SCENARIO 5: The rush-lib engine is loaded manually using rushSdkLoader.loadAsync().
176
+ var _a, _b;
177
+ if (!options) {
178
+ options = {};
179
+ }
180
+ if (RushSdkLoader.isLoaded) {
181
+ throw new Error('RushSdkLoader.loadAsync() failed because the Rush engine has already been loaded');
182
+ }
183
+ const onNotifyEvent = options.onNotifyEvent;
184
+ let progressPercent = undefined;
185
+ const abortSignal = options.abortSignal;
186
+ try {
187
+ const rushJsonSearchFolder = (_a = options.rushJsonSearchFolder) !== null && _a !== void 0 ? _a : process.cwd();
188
+ if (onNotifyEvent) {
189
+ onNotifyEvent({
190
+ logMessage: {
191
+ kind: 'debug',
192
+ text: `Searching for rush.json starting from: ` + rushJsonSearchFolder
193
+ },
194
+ progressPercent
195
+ });
196
+ }
197
+ const rushJsonPath = (0, helpers_1.tryFindRushJsonLocation)(rushJsonSearchFolder);
198
+ if (!rushJsonPath) {
199
+ throw new Error('Unable to find rush.json in the specified folder or its parent folders:\n' +
200
+ `${rushJsonSearchFolder}\n`);
201
+ }
202
+ const monorepoRoot = path.dirname(rushJsonPath);
203
+ const rushJson = await node_core_library_1.JsonFile.loadAsync(rushJsonPath);
204
+ const { rushVersion } = rushJson;
205
+ const installRunNodeModuleFolder = path.join(monorepoRoot, `common/temp/install-run/@microsoft+rush@${rushVersion}`);
206
+ try {
207
+ // First, try to load the version of "rush-lib" that was installed by install-run-rush.js
208
+ if (onNotifyEvent) {
209
+ onNotifyEvent({
210
+ logMessage: {
211
+ kind: 'info',
212
+ text: `Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`
213
+ },
214
+ progressPercent
215
+ });
216
+ }
217
+ helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);
218
+ }
219
+ catch (e1) {
220
+ let installAndRunRushStderrContent = '';
221
+ try {
222
+ const installAndRunRushJSPath = path.join(monorepoRoot, 'common/scripts/install-run-rush.js');
223
+ if (onNotifyEvent) {
224
+ onNotifyEvent({
225
+ logMessage: {
226
+ kind: 'info',
227
+ text: 'The Rush engine has not been installed yet. Invoking install-run-rush.js...'
228
+ },
229
+ progressPercent
230
+ });
231
+ }
232
+ // Start the installation
233
+ progressPercent = 0;
234
+ const installAndRunRushProcess = node_core_library_1.Executable.spawnSync('node', [installAndRunRushJSPath, '--help'], {
235
+ stdio: 'pipe'
236
+ });
237
+ installAndRunRushStderrContent = installAndRunRushProcess.stderr;
238
+ if (installAndRunRushProcess.status !== 0) {
239
+ throw new Error(`The ${helpers_1.RUSH_LIB_NAME} package failed to install`);
240
+ }
241
+ if (abortSignal) {
242
+ RushSdkLoader._checkForCancel(abortSignal, onNotifyEvent, progressPercent);
243
+ }
244
+ // TODO: Implement incremental progress updates
245
+ progressPercent = 90;
246
+ // Retry to load "rush-lib" after install-run-rush run
247
+ if (onNotifyEvent) {
248
+ onNotifyEvent({
249
+ logMessage: {
250
+ kind: 'debug',
251
+ text: `Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush a second time`
252
+ },
253
+ progressPercent
254
+ });
255
+ }
256
+ helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);
257
+ progressPercent = 100;
258
+ }
259
+ catch (e2) {
260
+ // eslint-disable-next-line no-console
261
+ console.error(`${installAndRunRushStderrContent}`);
262
+ throw new Error(`The ${helpers_1.RUSH_LIB_NAME} package failed to load`);
263
+ }
264
+ }
265
+ if (helpers_1.sdkContext.rushLibModule !== undefined) {
266
+ // to track which scenario is active and how it got initialized.
267
+ global.___rush___rushLibModuleFromInstallAndRunRush = helpers_1.sdkContext.rushLibModule;
268
+ if (onNotifyEvent) {
269
+ onNotifyEvent({
270
+ logMessage: {
271
+ kind: 'debug',
272
+ text: `Loaded ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`
273
+ },
274
+ progressPercent
275
+ });
276
+ }
277
+ }
278
+ }
279
+ catch (e) {
280
+ if (onNotifyEvent) {
281
+ onNotifyEvent({
282
+ logMessage: {
283
+ kind: 'info',
284
+ text: 'The operation failed: ' + ((_b = e.message) !== null && _b !== void 0 ? _b : 'An unknown error occurred')
285
+ },
286
+ progressPercent
287
+ });
288
+ }
289
+ throw e;
290
+ }
291
+ }
292
+ }
293
+ exports.RushSdkLoader = RushSdkLoader;
294
+ //# sourceMappingURL=loader.js.map
295
+
296
+ /***/ }),
297
+
5
298
  /***/ "@rushstack/node-core-library":
6
299
  /*!***********************************************!*\
7
300
  !*** external "@rushstack/node-core-library" ***!
@@ -36,192 +329,24 @@ module.exports = require("path");
36
329
  /******/ }
37
330
  /******/ // Create a new module (and put it into the cache)
38
331
  /******/ var module = __webpack_module_cache__[moduleId] = {
39
- /******/ id: moduleId,
40
- /******/ loaded: false,
332
+ /******/ // no module.id needed
333
+ /******/ // no module.loaded needed
41
334
  /******/ exports: {}
42
335
  /******/ };
43
336
  /******/
44
337
  /******/ // Execute the module function
45
338
  /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
46
339
  /******/
47
- /******/ // Flag the module as loaded
48
- /******/ module.loaded = true;
49
- /******/
50
340
  /******/ // Return the exports of the module
51
341
  /******/ return module.exports;
52
342
  /******/ }
53
343
  /******/
54
- /******/ // expose the modules object (__webpack_modules__)
55
- /******/ __webpack_require__.m = __webpack_modules__;
56
- /******/
57
- /******/ // the startup function
58
- /******/ __webpack_require__.x = () => {
59
- /******/ // Load entry module and return exports
60
- /******/ // This entry module depends on other loaded chunks and execution need to be delayed
61
- /******/ var __webpack_exports__ = __webpack_require__.O(undefined, ["commons"], () => (__webpack_require__("./lib-commonjs/loader.js")))
62
- /******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
63
- /******/ return __webpack_exports__;
64
- /******/ };
65
- /******/
66
- /************************************************************************/
67
- /******/ /* webpack/runtime/chunk loaded */
68
- /******/ (() => {
69
- /******/ var deferred = [];
70
- /******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
71
- /******/ if(chunkIds) {
72
- /******/ priority = priority || 0;
73
- /******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
74
- /******/ deferred[i] = [chunkIds, fn, priority];
75
- /******/ return;
76
- /******/ }
77
- /******/ var notFulfilled = Infinity;
78
- /******/ for (var i = 0; i < deferred.length; i++) {
79
- /******/ var [chunkIds, fn, priority] = deferred[i];
80
- /******/ var fulfilled = true;
81
- /******/ for (var j = 0; j < chunkIds.length; j++) {
82
- /******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
83
- /******/ chunkIds.splice(j--, 1);
84
- /******/ } else {
85
- /******/ fulfilled = false;
86
- /******/ if(priority < notFulfilled) notFulfilled = priority;
87
- /******/ }
88
- /******/ }
89
- /******/ if(fulfilled) {
90
- /******/ deferred.splice(i--, 1)
91
- /******/ var r = fn();
92
- /******/ if (r !== undefined) result = r;
93
- /******/ }
94
- /******/ }
95
- /******/ return result;
96
- /******/ };
97
- /******/ })();
98
- /******/
99
- /******/ /* webpack/runtime/compat get default export */
100
- /******/ (() => {
101
- /******/ // getDefaultExport function for compatibility with non-harmony modules
102
- /******/ __webpack_require__.n = (module) => {
103
- /******/ var getter = module && module.__esModule ?
104
- /******/ () => (module['default']) :
105
- /******/ () => (module);
106
- /******/ __webpack_require__.d(getter, { a: getter });
107
- /******/ return getter;
108
- /******/ };
109
- /******/ })();
110
- /******/
111
- /******/ /* webpack/runtime/define property getters */
112
- /******/ (() => {
113
- /******/ // define getter functions for harmony exports
114
- /******/ __webpack_require__.d = (exports, definition) => {
115
- /******/ for(var key in definition) {
116
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
117
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
118
- /******/ }
119
- /******/ }
120
- /******/ };
121
- /******/ })();
122
- /******/
123
- /******/ /* webpack/runtime/ensure chunk */
124
- /******/ (() => {
125
- /******/ __webpack_require__.f = {};
126
- /******/ // This file contains only the entry chunk.
127
- /******/ // The chunk loading function for additional chunks
128
- /******/ __webpack_require__.e = (chunkId) => {
129
- /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
130
- /******/ __webpack_require__.f[key](chunkId, promises);
131
- /******/ return promises;
132
- /******/ }, []));
133
- /******/ };
134
- /******/ })();
135
- /******/
136
- /******/ /* webpack/runtime/get javascript chunk filename */
137
- /******/ (() => {
138
- /******/ // This function allow to reference async chunks and sibling chunks for the entrypoint
139
- /******/ __webpack_require__.u = (chunkId) => {
140
- /******/ // return url for filenames based on template
141
- /******/ return "" + chunkId + ".js";
142
- /******/ };
143
- /******/ })();
144
- /******/
145
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
146
- /******/ (() => {
147
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
148
- /******/ })();
149
- /******/
150
- /******/ /* webpack/runtime/make namespace object */
151
- /******/ (() => {
152
- /******/ // define __esModule on exports
153
- /******/ __webpack_require__.r = (exports) => {
154
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
155
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
156
- /******/ }
157
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
158
- /******/ };
159
- /******/ })();
160
- /******/
161
- /******/ /* webpack/runtime/node module decorator */
162
- /******/ (() => {
163
- /******/ __webpack_require__.nmd = (module) => {
164
- /******/ module.paths = [];
165
- /******/ if (!module.children) module.children = [];
166
- /******/ return module;
167
- /******/ };
168
- /******/ })();
169
- /******/
170
- /******/ /* webpack/runtime/require chunk loading */
171
- /******/ (() => {
172
- /******/ // no baseURI
173
- /******/
174
- /******/ // object to store loaded chunks
175
- /******/ // "1" means "loaded", otherwise not loaded yet
176
- /******/ var installedChunks = {
177
- /******/ "loader": 1
178
- /******/ };
179
- /******/
180
- /******/ __webpack_require__.O.require = (chunkId) => (installedChunks[chunkId]);
181
- /******/
182
- /******/ var installChunk = (chunk) => {
183
- /******/ var moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;
184
- /******/ for(var moduleId in moreModules) {
185
- /******/ if(__webpack_require__.o(moreModules, moduleId)) {
186
- /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
187
- /******/ }
188
- /******/ }
189
- /******/ if(runtime) runtime(__webpack_require__);
190
- /******/ for(var i = 0; i < chunkIds.length; i++)
191
- /******/ installedChunks[chunkIds[i]] = 1;
192
- /******/ __webpack_require__.O();
193
- /******/ };
194
- /******/
195
- /******/ // require() chunk loading for javascript
196
- /******/ __webpack_require__.f.require = (chunkId, promises) => {
197
- /******/ // "1" is the signal for "already loaded"
198
- /******/ if(!installedChunks[chunkId]) {
199
- /******/ if(true) { // all chunks have JS
200
- /******/ installChunk(require("./" + __webpack_require__.u(chunkId)));
201
- /******/ } else installedChunks[chunkId] = 1;
202
- /******/ }
203
- /******/ };
204
- /******/
205
- /******/ // no external install chunk
206
- /******/
207
- /******/ // no HMR
208
- /******/
209
- /******/ // no HMR manifest
210
- /******/ })();
211
- /******/
212
- /******/ /* webpack/runtime/startup chunk dependencies */
213
- /******/ (() => {
214
- /******/ var next = __webpack_require__.x;
215
- /******/ __webpack_require__.x = () => {
216
- /******/ __webpack_require__.e("commons");
217
- /******/ return next();
218
- /******/ };
219
- /******/ })();
220
- /******/
221
344
  /************************************************************************/
222
345
  /******/
223
- /******/ // run startup
224
- /******/ var __webpack_exports__ = __webpack_require__.x();
346
+ /******/ // startup
347
+ /******/ // Load entry module and return exports
348
+ /******/ // This entry module is referenced by other modules so it can't be inlined
349
+ /******/ var __webpack_exports__ = __webpack_require__("./lib-commonjs/loader.js");
225
350
  /******/ module.exports = __webpack_exports__;
226
351
  /******/
227
352
  /******/ })()
@@ -1 +1 @@
1
- {"version":3,"file":"loader.js","mappings":";;;;;;;;;;AAAA;;;;;;;;;;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 node-commonjs \"path\"","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(\"path\");","// 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/loader.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\"loader\": 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":""}
1
+ {"version":3,"file":"loader.js","mappings":";;;;;;;;;;AAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA,0CAA0C,4BAA4B;AACtE,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,qCAAqC,GAAG,gBAAgB,GAAG,+BAA+B,GAAG,kBAAkB,GAAG,kCAAkC,GAAG,qBAAqB;AAC5K,0BAA0B,mBAAO,CAAC,kBAAM;AACxC,4BAA4B,mBAAO,CAAC,kEAA8B;AAClE,qBAAqB;AACrB,kCAAkC;AAClC,kBAAkB;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,QAAQ;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B;AAC/B;AACA,eAAe,OAAuB;AACtC;AACA;AACA;AACA;AACA,eAAe,OAAuB;AACtC;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,qCAAqC;AACrC;;;;;;;;;;AClFa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,oCAAoC;AACnD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA,0CAA0C,4BAA4B;AACtE,CAAC;AACD;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,qBAAqB;AACrB,0BAA0B,mBAAO,CAAC,kBAAM;AACxC,4BAA4B,mBAAO,CAAC,kEAA8B;AAClE,kBAAkB,mBAAO,CAAC,4CAAW;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+BAA+B,8BAA8B;AAC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,uBAAuB,qBAAqB;AAC5C;AACA;AACA;AACA,oBAAoB,cAAc;AAClC,kHAAkH,YAAY;AAC9H;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD,yBAAyB;AAC9E,yBAAyB;AACzB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B;AAC7B;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,+CAA+C,yBAAyB;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,yBAAyB;AAClF,6BAA6B;AAC7B;AACA,yBAAyB;AACzB;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,+BAA+B;AACpE,2CAA2C,yBAAyB;AACpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C,yBAAyB;AACrE,yBAAyB;AACzB;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;;;;;;;;;;AC/LA;;;;;;;;;;ACAA;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://@rushstack/rush-sdk/./lib-commonjs/helpers.js","webpack://@rushstack/rush-sdk/./lib-commonjs/loader.js","webpack://@rushstack/rush-sdk/external commonjs \"@rushstack/node-core-library\"","webpack://@rushstack/rush-sdk/external node-commonjs \"path\"","webpack://@rushstack/rush-sdk/webpack/bootstrap","webpack://@rushstack/rush-sdk/webpack/before-startup","webpack://@rushstack/rush-sdk/webpack/startup","webpack://@rushstack/rush-sdk/webpack/after-startup"],"sourcesContent":["\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.requireRushLibUnderFolderPath = exports._require = exports.tryFindRushJsonLocation = exports.sdkContext = exports.RUSH_LIB_PATH_ENV_VAR_NAME = exports.RUSH_LIB_NAME = void 0;\nconst path = __importStar(require(\"path\"));\nconst node_core_library_1 = require(\"@rushstack/node-core-library\");\nexports.RUSH_LIB_NAME = '@microsoft/rush-lib';\nexports.RUSH_LIB_PATH_ENV_VAR_NAME = '_RUSH_LIB_PATH';\nexports.sdkContext = {\n rushLibModule: undefined\n};\n/**\n * Find the rush.json location and return the path, or undefined if a rush.json can't be found.\n *\n * @privateRemarks\n * Keep this in sync with `RushConfiguration.tryFindRushJsonLocation`.\n */\nfunction tryFindRushJsonLocation(startingFolder) {\n let currentFolder = startingFolder;\n // Look upwards at parent folders until we find a folder containing rush.json\n for (let i = 0; i < 10; ++i) {\n const rushJsonFilename = path.join(currentFolder, 'rush.json');\n if (node_core_library_1.FileSystem.exists(rushJsonFilename)) {\n return rushJsonFilename;\n }\n const parentFolder = path.dirname(currentFolder);\n if (parentFolder === currentFolder) {\n break;\n }\n currentFolder = parentFolder;\n }\n return undefined;\n}\nexports.tryFindRushJsonLocation = tryFindRushJsonLocation;\nfunction _require(moduleName) {\n if (typeof __non_webpack_require__ === 'function') {\n // If this library has been bundled with Webpack, we need to call the real `require` function\n // that doesn't get turned into a `__webpack_require__` statement.\n // `__non_webpack_require__` is a Webpack macro that gets turned into a `require` statement\n // during bundling.\n return __non_webpack_require__(moduleName);\n }\n else {\n return require(moduleName);\n }\n}\nexports._require = _require;\n/**\n * Require `@microsoft/rush-lib` under the specified folder path.\n */\nfunction requireRushLibUnderFolderPath(folderPath) {\n const rushLibModulePath = node_core_library_1.Import.resolveModule({\n modulePath: exports.RUSH_LIB_NAME,\n baseFolderPath: folderPath\n });\n return _require(rushLibModulePath);\n}\nexports.requireRushLibUnderFolderPath = requireRushLibUnderFolderPath;\n//# sourceMappingURL=helpers.js.map","\"use strict\";\n// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.RushSdkLoader = void 0;\nconst path = __importStar(require(\"path\"));\nconst node_core_library_1 = require(\"@rushstack/node-core-library\");\nconst helpers_1 = require(\"./helpers\");\n/**\n * Exposes operations that control how the `@microsoft/rush-lib` engine is\n * located and loaded.\n * @public\n */\nclass RushSdkLoader {\n /**\n * Throws an \"AbortError\" exception if abortSignal.aborted is true.\n */\n static _checkForCancel(abortSignal, onNotifyEvent, progressPercent) {\n if (!(abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) {\n return;\n }\n if (onNotifyEvent) {\n onNotifyEvent({\n logMessage: {\n kind: 'info',\n text: `The operation was canceled`\n },\n progressPercent\n });\n }\n const error = new Error('The operation was canceled');\n error.name = 'AbortError';\n throw error;\n }\n /**\n * Returns true if the Rush engine has already been loaded.\n */\n static get isLoaded() {\n return helpers_1.sdkContext.rushLibModule !== undefined;\n }\n /**\n * Manually load the Rush engine based on rush.json found for `rushJsonSearchFolder`.\n * Throws an exception if {@link RushSdkLoader.isLoaded} is already `true`.\n *\n * @remarks\n * This API supports an callback that can be used display a progress bar,\n * log of operations, and allow the operation to be canceled prematurely.\n */\n static async loadAsync(options) {\n // SCENARIO 5: The rush-lib engine is loaded manually using rushSdkLoader.loadAsync().\n var _a, _b;\n if (!options) {\n options = {};\n }\n if (RushSdkLoader.isLoaded) {\n throw new Error('RushSdkLoader.loadAsync() failed because the Rush engine has already been loaded');\n }\n const onNotifyEvent = options.onNotifyEvent;\n let progressPercent = undefined;\n const abortSignal = options.abortSignal;\n try {\n const rushJsonSearchFolder = (_a = options.rushJsonSearchFolder) !== null && _a !== void 0 ? _a : process.cwd();\n if (onNotifyEvent) {\n onNotifyEvent({\n logMessage: {\n kind: 'debug',\n text: `Searching for rush.json starting from: ` + rushJsonSearchFolder\n },\n progressPercent\n });\n }\n const rushJsonPath = (0, helpers_1.tryFindRushJsonLocation)(rushJsonSearchFolder);\n if (!rushJsonPath) {\n throw new Error('Unable to find rush.json in the specified folder or its parent folders:\\n' +\n `${rushJsonSearchFolder}\\n`);\n }\n const monorepoRoot = path.dirname(rushJsonPath);\n const rushJson = await node_core_library_1.JsonFile.loadAsync(rushJsonPath);\n const { rushVersion } = rushJson;\n const installRunNodeModuleFolder = path.join(monorepoRoot, `common/temp/install-run/@microsoft+rush@${rushVersion}`);\n try {\n // First, try to load the version of \"rush-lib\" that was installed by install-run-rush.js\n if (onNotifyEvent) {\n onNotifyEvent({\n logMessage: {\n kind: 'info',\n text: `Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`\n },\n progressPercent\n });\n }\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);\n }\n catch (e1) {\n let installAndRunRushStderrContent = '';\n try {\n const installAndRunRushJSPath = path.join(monorepoRoot, 'common/scripts/install-run-rush.js');\n if (onNotifyEvent) {\n onNotifyEvent({\n logMessage: {\n kind: 'info',\n text: 'The Rush engine has not been installed yet. Invoking install-run-rush.js...'\n },\n progressPercent\n });\n }\n // Start the installation\n progressPercent = 0;\n const installAndRunRushProcess = node_core_library_1.Executable.spawnSync('node', [installAndRunRushJSPath, '--help'], {\n stdio: 'pipe'\n });\n installAndRunRushStderrContent = installAndRunRushProcess.stderr;\n if (installAndRunRushProcess.status !== 0) {\n throw new Error(`The ${helpers_1.RUSH_LIB_NAME} package failed to install`);\n }\n if (abortSignal) {\n RushSdkLoader._checkForCancel(abortSignal, onNotifyEvent, progressPercent);\n }\n // TODO: Implement incremental progress updates\n progressPercent = 90;\n // Retry to load \"rush-lib\" after install-run-rush run\n if (onNotifyEvent) {\n onNotifyEvent({\n logMessage: {\n kind: 'debug',\n text: `Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush a second time`\n },\n progressPercent\n });\n }\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);\n progressPercent = 100;\n }\n catch (e2) {\n // eslint-disable-next-line no-console\n console.error(`${installAndRunRushStderrContent}`);\n throw new Error(`The ${helpers_1.RUSH_LIB_NAME} package failed to load`);\n }\n }\n if (helpers_1.sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModuleFromInstallAndRunRush = helpers_1.sdkContext.rushLibModule;\n if (onNotifyEvent) {\n onNotifyEvent({\n logMessage: {\n kind: 'debug',\n text: `Loaded ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`\n },\n progressPercent\n });\n }\n }\n }\n catch (e) {\n if (onNotifyEvent) {\n onNotifyEvent({\n logMessage: {\n kind: 'info',\n text: 'The operation failed: ' + ((_b = e.message) !== null && _b !== void 0 ? _b : 'An unknown error occurred')\n },\n progressPercent\n });\n }\n throw e;\n }\n }\n}\nexports.RushSdkLoader = RushSdkLoader;\n//# sourceMappingURL=loader.js.map","module.exports = require(\"@rushstack/node-core-library\");","module.exports = require(\"path\");","// 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\t// no module.id needed\n\t\t// no module.loaded needed\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// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(\"./lib-commonjs/loader.js\");\n",""],"names":[],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-sdk",
3
- "version": "5.131.0",
3
+ "version": "5.131.1",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,12 +43,13 @@
43
43
  "@types/webpack-env": "1.18.0",
44
44
  "webpack": "~5.82.1",
45
45
  "local-node-rig": "1.0.0",
46
- "@microsoft/rush-lib": "5.131.0",
47
- "@rushstack/stream-collator": "4.1.63",
48
46
  "@rushstack/heft": "0.66.25",
47
+ "@rushstack/lookup-by-path": "0.1.0",
49
48
  "@rushstack/heft-webpack5-plugin": "0.10.7",
49
+ "@rushstack/stream-collator": "4.1.63",
50
50
  "@rushstack/ts-command-line": "4.22.4",
51
- "@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.62"
51
+ "@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.62",
52
+ "@microsoft/rush-lib": "5.131.1"
52
53
  },
53
54
  "scripts": {
54
55
  "build": "heft build --clean",