@rushstack/rush-sdk 5.168.0 → 5.169.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 (489) hide show
  1. package/dist/rush-lib.d.ts +37 -0
  2. package/dist/tsdoc-metadata.json +1 -1
  3. package/{lib → lib-dts}/api/ExperimentsConfiguration.d.ts +7 -0
  4. package/{lib → lib-dts}/api/RushProjectConfiguration.d.ts +23 -0
  5. package/{lib → lib-dts}/index.d.ts +1 -1
  6. package/{lib → lib-dts}/logic/buildCache/OperationBuildCache.d.ts +6 -0
  7. package/{lib → lib-dts}/logic/incremental/InputsSnapshot.d.ts +9 -0
  8. package/{lib → lib-dts}/logic/operations/CacheableOperationPlugin.d.ts +1 -0
  9. package/lib-shim/index.js +18 -18
  10. package/lib-shim/index.js.map +1 -1
  11. package/lib-shim/loader.js +10 -10
  12. package/lib-shim/loader.js.map +1 -1
  13. package/package.json +20 -16
  14. /package/{lib → lib-commonjs}/api/ApprovedPackagesConfiguration.js +0 -0
  15. /package/{lib → lib-commonjs}/api/ApprovedPackagesPolicy.js +0 -0
  16. /package/{lib → lib-commonjs}/api/BuildCacheConfiguration.js +0 -0
  17. /package/{lib → lib-commonjs}/api/ChangeFile.js +0 -0
  18. /package/{lib → lib-commonjs}/api/ChangeManagement.js +0 -0
  19. /package/{lib → lib-commonjs}/api/ChangeManager.js +0 -0
  20. /package/{lib → lib-commonjs}/api/Changelog.js +0 -0
  21. /package/{lib → lib-commonjs}/api/CobuildConfiguration.js +0 -0
  22. /package/{lib → lib-commonjs}/api/CommandLineConfiguration.js +0 -0
  23. /package/{lib → lib-commonjs}/api/CommandLineJson.js +0 -0
  24. /package/{lib → lib-commonjs}/api/CommonVersionsConfiguration.js +0 -0
  25. /package/{lib → lib-commonjs}/api/CustomTipsConfiguration.js +0 -0
  26. /package/{lib → lib-commonjs}/api/EnvironmentConfiguration.js +0 -0
  27. /package/{lib → lib-commonjs}/api/EventHooks.js +0 -0
  28. /package/{lib → lib-commonjs}/api/ExperimentsConfiguration.js +0 -0
  29. /package/{lib → lib-commonjs}/api/FlagFile.js +0 -0
  30. /package/{lib → lib-commonjs}/api/LastInstallFlag.js +0 -0
  31. /package/{lib → lib-commonjs}/api/PackageJsonEditor.js +0 -0
  32. /package/{lib → lib-commonjs}/api/PackageNameParsers.js +0 -0
  33. /package/{lib → lib-commonjs}/api/Rush.js +0 -0
  34. /package/{lib → lib-commonjs}/api/RushCommandLine.js +0 -0
  35. /package/{lib → lib-commonjs}/api/RushConfiguration.js +0 -0
  36. /package/{lib → lib-commonjs}/api/RushConfigurationProject.js +0 -0
  37. /package/{lib → lib-commonjs}/api/RushGlobalFolder.js +0 -0
  38. /package/{lib → lib-commonjs}/api/RushInternals.js +0 -0
  39. /package/{lib → lib-commonjs}/api/RushPluginsConfiguration.js +0 -0
  40. /package/{lib → lib-commonjs}/api/RushProjectConfiguration.js +0 -0
  41. /package/{lib → lib-commonjs}/api/RushUserConfiguration.js +0 -0
  42. /package/{lib → lib-commonjs}/api/SaveCallbackPackageJsonEditor.js +0 -0
  43. /package/{lib → lib-commonjs}/api/Subspace.js +0 -0
  44. /package/{lib → lib-commonjs}/api/SubspacesConfiguration.js +0 -0
  45. /package/{lib → lib-commonjs}/api/Variants.js +0 -0
  46. /package/{lib → lib-commonjs}/api/VersionPolicy.js +0 -0
  47. /package/{lib → lib-commonjs}/api/VersionPolicyConfiguration.js +0 -0
  48. /package/{lib → lib-commonjs}/api/packageManager/NpmPackageManager.js +0 -0
  49. /package/{lib → lib-commonjs}/api/packageManager/PackageManager.js +0 -0
  50. /package/{lib → lib-commonjs}/api/packageManager/PnpmPackageManager.js +0 -0
  51. /package/{lib → lib-commonjs}/api/packageManager/YarnPackageManager.js +0 -0
  52. /package/{lib → lib-commonjs}/cli/CommandLineMigrationAdvisor.js +0 -0
  53. /package/{lib → lib-commonjs}/cli/RushCommandLineParser.js +0 -0
  54. /package/{lib → lib-commonjs}/cli/RushPnpmCommandLine.js +0 -0
  55. /package/{lib → lib-commonjs}/cli/RushPnpmCommandLineParser.js +0 -0
  56. /package/{lib → lib-commonjs}/cli/RushStartupBanner.js +0 -0
  57. /package/{lib → lib-commonjs}/cli/RushXCommandLine.js +0 -0
  58. /package/{lib → lib-commonjs}/cli/actions/AddAction.js +0 -0
  59. /package/{lib → lib-commonjs}/cli/actions/AlertAction.js +0 -0
  60. /package/{lib → lib-commonjs}/cli/actions/BaseAddAndRemoveAction.js +0 -0
  61. /package/{lib → lib-commonjs}/cli/actions/BaseAutoinstallerAction.js +0 -0
  62. /package/{lib → lib-commonjs}/cli/actions/BaseHotlinkPackageAction.js +0 -0
  63. /package/{lib → lib-commonjs}/cli/actions/BaseInstallAction.js +0 -0
  64. /package/{lib → lib-commonjs}/cli/actions/BaseRushAction.js +0 -0
  65. /package/{lib → lib-commonjs}/cli/actions/BridgePackageAction.js +0 -0
  66. /package/{lib → lib-commonjs}/cli/actions/ChangeAction.js +0 -0
  67. /package/{lib → lib-commonjs}/cli/actions/CheckAction.js +0 -0
  68. /package/{lib → lib-commonjs}/cli/actions/DeployAction.js +0 -0
  69. /package/{lib → lib-commonjs}/cli/actions/InitAction.js +0 -0
  70. /package/{lib → lib-commonjs}/cli/actions/InitAutoinstallerAction.js +0 -0
  71. /package/{lib → lib-commonjs}/cli/actions/InitDeployAction.js +0 -0
  72. /package/{lib → lib-commonjs}/cli/actions/InitSubspaceAction.js +0 -0
  73. /package/{lib → lib-commonjs}/cli/actions/InstallAction.js +0 -0
  74. /package/{lib → lib-commonjs}/cli/actions/InstallAutoinstallerAction.js +0 -0
  75. /package/{lib → lib-commonjs}/cli/actions/LinkAction.js +0 -0
  76. /package/{lib → lib-commonjs}/cli/actions/LinkPackageAction.js +0 -0
  77. /package/{lib → lib-commonjs}/cli/actions/ListAction.js +0 -0
  78. /package/{lib → lib-commonjs}/cli/actions/PublishAction.js +0 -0
  79. /package/{lib → lib-commonjs}/cli/actions/PurgeAction.js +0 -0
  80. /package/{lib → lib-commonjs}/cli/actions/RemoveAction.js +0 -0
  81. /package/{lib → lib-commonjs}/cli/actions/ScanAction.js +0 -0
  82. /package/{lib → lib-commonjs}/cli/actions/SetupAction.js +0 -0
  83. /package/{lib → lib-commonjs}/cli/actions/UnlinkAction.js +0 -0
  84. /package/{lib → lib-commonjs}/cli/actions/UpdateAction.js +0 -0
  85. /package/{lib → lib-commonjs}/cli/actions/UpdateAutoinstallerAction.js +0 -0
  86. /package/{lib → lib-commonjs}/cli/actions/UpdateCloudCredentialsAction.js +0 -0
  87. /package/{lib → lib-commonjs}/cli/actions/UpgradeInteractiveAction.js +0 -0
  88. /package/{lib → lib-commonjs}/cli/actions/VersionAction.js +0 -0
  89. /package/{lib → lib-commonjs}/cli/parsing/ParseParallelism.js +0 -0
  90. /package/{lib → lib-commonjs}/cli/parsing/SelectionParameterSet.js +0 -0
  91. /package/{lib → lib-commonjs}/cli/parsing/associateParametersByPhase.js +0 -0
  92. /package/{lib → lib-commonjs}/cli/parsing/defineCustomParameters.js +0 -0
  93. /package/{lib → lib-commonjs}/cli/scriptActions/BaseScriptAction.js +0 -0
  94. /package/{lib → lib-commonjs}/cli/scriptActions/GlobalScriptAction.js +0 -0
  95. /package/{lib → lib-commonjs}/cli/scriptActions/PhasedScriptAction.js +0 -0
  96. /package/{lib → lib-commonjs}/index.js +0 -0
  97. /package/{lib → lib-commonjs}/logic/ApprovedPackagesChecker.js +0 -0
  98. /package/{lib → lib-commonjs}/logic/Autoinstaller.js +0 -0
  99. /package/{lib → lib-commonjs}/logic/ChangeFiles.js +0 -0
  100. /package/{lib → lib-commonjs}/logic/ChangeManager.js +0 -0
  101. /package/{lib → lib-commonjs}/logic/ChangelogGenerator.js +0 -0
  102. /package/{lib → lib-commonjs}/logic/DependencyAnalyzer.js +0 -0
  103. /package/{lib → lib-commonjs}/logic/DependencySpecifier.js +0 -0
  104. /package/{lib → lib-commonjs}/logic/EventHooksManager.js +0 -0
  105. /package/{lib → lib-commonjs}/logic/Git.js +0 -0
  106. /package/{lib → lib-commonjs}/logic/GitStatusParser.js +0 -0
  107. /package/{lib → lib-commonjs}/logic/InstallManagerFactory.js +0 -0
  108. /package/{lib → lib-commonjs}/logic/InteractiveUpgrader.js +0 -0
  109. /package/{lib → lib-commonjs}/logic/JsonSchemaUrls.js +0 -0
  110. /package/{lib → lib-commonjs}/logic/LinkManagerFactory.js +0 -0
  111. /package/{lib → lib-commonjs}/logic/NodeJsCompatibility.js +0 -0
  112. /package/{lib → lib-commonjs}/logic/PackageJsonUpdater.js +0 -0
  113. /package/{lib → lib-commonjs}/logic/PackageJsonUpdaterTypes.js +0 -0
  114. /package/{lib → lib-commonjs}/logic/PackageLookup.js +0 -0
  115. /package/{lib → lib-commonjs}/logic/PrereleaseToken.js +0 -0
  116. /package/{lib → lib-commonjs}/logic/ProjectChangeAnalyzer.js +0 -0
  117. /package/{lib → lib-commonjs}/logic/ProjectCommandSet.js +0 -0
  118. /package/{lib → lib-commonjs}/logic/ProjectImpactGraphGenerator.js +0 -0
  119. /package/{lib → lib-commonjs}/logic/ProjectWatcher.js +0 -0
  120. /package/{lib → lib-commonjs}/logic/PublishGit.js +0 -0
  121. /package/{lib → lib-commonjs}/logic/PublishUtilities.js +0 -0
  122. /package/{lib → lib-commonjs}/logic/PurgeManager.js +0 -0
  123. /package/{lib → lib-commonjs}/logic/RepoStateFile.js +0 -0
  124. /package/{lib → lib-commonjs}/logic/RushConstants.js +0 -0
  125. /package/{lib → lib-commonjs}/logic/Selection.js +0 -0
  126. /package/{lib → lib-commonjs}/logic/SetupChecks.js +0 -0
  127. /package/{lib → lib-commonjs}/logic/ShrinkwrapFileFactory.js +0 -0
  128. /package/{lib → lib-commonjs}/logic/StandardScriptUpdater.js +0 -0
  129. /package/{lib → lib-commonjs}/logic/Telemetry.js +0 -0
  130. /package/{lib → lib-commonjs}/logic/TempProjectHelper.js +0 -0
  131. /package/{lib → lib-commonjs}/logic/UnlinkManager.js +0 -0
  132. /package/{lib → lib-commonjs}/logic/VersionManager.js +0 -0
  133. /package/{lib → lib-commonjs}/logic/base/BaseInstallManager.js +0 -0
  134. /package/{lib → lib-commonjs}/logic/base/BaseInstallManagerTypes.js +0 -0
  135. /package/{lib → lib-commonjs}/logic/base/BaseLinkManager.js +0 -0
  136. /package/{lib → lib-commonjs}/logic/base/BasePackage.js +0 -0
  137. /package/{lib → lib-commonjs}/logic/base/BasePackageManagerOptionsConfiguration.js +0 -0
  138. /package/{lib → lib-commonjs}/logic/base/BaseProjectShrinkwrapFile.js +0 -0
  139. /package/{lib → lib-commonjs}/logic/base/BaseShrinkwrapFile.js +0 -0
  140. /package/{lib → lib-commonjs}/logic/base/BaseWorkspaceFile.js +0 -0
  141. /package/{lib → lib-commonjs}/logic/buildCache/CacheEntryId.js +0 -0
  142. /package/{lib → lib-commonjs}/logic/buildCache/FileSystemBuildCacheProvider.js +0 -0
  143. /package/{lib → lib-commonjs}/logic/buildCache/ICloudBuildCacheProvider.js +0 -0
  144. /package/{lib → lib-commonjs}/logic/buildCache/OperationBuildCache.js +0 -0
  145. /package/{lib → lib-commonjs}/logic/cobuild/CobuildLock.js +0 -0
  146. /package/{lib → lib-commonjs}/logic/cobuild/DisjointSet.js +0 -0
  147. /package/{lib → lib-commonjs}/logic/cobuild/ICobuildLockProvider.js +0 -0
  148. /package/{lib → lib-commonjs}/logic/deploy/DeployScenarioConfiguration.js +0 -0
  149. /package/{lib → lib-commonjs}/logic/dotenv.js +0 -0
  150. /package/{lib → lib-commonjs}/logic/incremental/InputsSnapshot.js +0 -0
  151. /package/{lib → lib-commonjs}/logic/installManager/InstallHelpers.js +0 -0
  152. /package/{lib → lib-commonjs}/logic/installManager/RushInstallManager.js +0 -0
  153. /package/{lib → lib-commonjs}/logic/installManager/WorkspaceInstallManager.js +0 -0
  154. /package/{lib → lib-commonjs}/logic/installManager/doBasicInstallAsync.js +0 -0
  155. /package/{lib → lib-commonjs}/logic/npm/NpmLinkManager.js +0 -0
  156. /package/{lib → lib-commonjs}/logic/npm/NpmOptionsConfiguration.js +0 -0
  157. /package/{lib → lib-commonjs}/logic/npm/NpmPackage.js +0 -0
  158. /package/{lib → lib-commonjs}/logic/npm/NpmShrinkwrapFile.js +0 -0
  159. /package/{lib → lib-commonjs}/logic/operations/AsyncOperationQueue.js +0 -0
  160. /package/{lib → lib-commonjs}/logic/operations/BuildPlanPlugin.js +0 -0
  161. /package/{lib → lib-commonjs}/logic/operations/CacheableOperationPlugin.js +0 -0
  162. /package/{lib → lib-commonjs}/logic/operations/ConsoleTimelinePlugin.js +0 -0
  163. /package/{lib → lib-commonjs}/logic/operations/DebugHashesPlugin.js +0 -0
  164. /package/{lib → lib-commonjs}/logic/operations/IOperationExecutionResult.js +0 -0
  165. /package/{lib → lib-commonjs}/logic/operations/IOperationRunner.js +0 -0
  166. /package/{lib → lib-commonjs}/logic/operations/IPCOperationRunner.js +0 -0
  167. /package/{lib → lib-commonjs}/logic/operations/IPCOperationRunnerPlugin.js +0 -0
  168. /package/{lib → lib-commonjs}/logic/operations/IgnoredParametersPlugin.js +0 -0
  169. /package/{lib → lib-commonjs}/logic/operations/LegacySkipPlugin.js +0 -0
  170. /package/{lib → lib-commonjs}/logic/operations/NodeDiagnosticDirPlugin.js +0 -0
  171. /package/{lib → lib-commonjs}/logic/operations/NullOperationRunner.js +0 -0
  172. /package/{lib → lib-commonjs}/logic/operations/Operation.js +0 -0
  173. /package/{lib → lib-commonjs}/logic/operations/OperationError.js +0 -0
  174. /package/{lib → lib-commonjs}/logic/operations/OperationExecutionManager.js +0 -0
  175. /package/{lib → lib-commonjs}/logic/operations/OperationExecutionRecord.js +0 -0
  176. /package/{lib → lib-commonjs}/logic/operations/OperationMetadataManager.js +0 -0
  177. /package/{lib → lib-commonjs}/logic/operations/OperationResultSummarizerPlugin.js +0 -0
  178. /package/{lib → lib-commonjs}/logic/operations/OperationStateFile.js +0 -0
  179. /package/{lib → lib-commonjs}/logic/operations/OperationStatus.js +0 -0
  180. /package/{lib → lib-commonjs}/logic/operations/PeriodicCallback.js +0 -0
  181. /package/{lib → lib-commonjs}/logic/operations/PhasedOperationPlugin.js +0 -0
  182. /package/{lib → lib-commonjs}/logic/operations/PnpmSyncCopyOperationPlugin.js +0 -0
  183. /package/{lib → lib-commonjs}/logic/operations/ProjectLogWritable.js +0 -0
  184. /package/{lib → lib-commonjs}/logic/operations/ShardedPhaseOperationPlugin.js +0 -0
  185. /package/{lib → lib-commonjs}/logic/operations/ShellOperationRunner.js +0 -0
  186. /package/{lib → lib-commonjs}/logic/operations/ShellOperationRunnerPlugin.js +0 -0
  187. /package/{lib → lib-commonjs}/logic/operations/ValidateOperationsPlugin.js +0 -0
  188. /package/{lib → lib-commonjs}/logic/operations/WeightedOperationPlugin.js +0 -0
  189. /package/{lib → lib-commonjs}/logic/pnpm/IPnpmfile.js +0 -0
  190. /package/{lib → lib-commonjs}/logic/pnpm/PnpmLinkManager.js +0 -0
  191. /package/{lib → lib-commonjs}/logic/pnpm/PnpmOptionsConfiguration.js +0 -0
  192. /package/{lib → lib-commonjs}/logic/pnpm/PnpmProjectShrinkwrapFile.js +0 -0
  193. /package/{lib → lib-commonjs}/logic/pnpm/PnpmShrinkWrapFileConverters.js +0 -0
  194. /package/{lib → lib-commonjs}/logic/pnpm/PnpmShrinkwrapFile.js +0 -0
  195. /package/{lib → lib-commonjs}/logic/pnpm/PnpmWorkspaceFile.js +0 -0
  196. /package/{lib → lib-commonjs}/logic/pnpm/PnpmYamlCommon.js +0 -0
  197. /package/{lib → lib-commonjs}/logic/pnpm/PnpmfileConfiguration.js +0 -0
  198. /package/{lib → lib-commonjs}/logic/pnpm/PnpmfileShim.js +0 -0
  199. /package/{lib → lib-commonjs}/logic/pnpm/SubspacePnpmfileConfiguration.js +0 -0
  200. /package/{lib → lib-commonjs}/logic/policy/EnvironmentPolicy.js +0 -0
  201. /package/{lib → lib-commonjs}/logic/policy/GitEmailPolicy.js +0 -0
  202. /package/{lib → lib-commonjs}/logic/policy/PolicyValidator.js +0 -0
  203. /package/{lib → lib-commonjs}/logic/policy/ShrinkwrapFilePolicy.js +0 -0
  204. /package/{lib → lib-commonjs}/logic/selectors/GitChangedProjectSelectorParser.js +0 -0
  205. /package/{lib → lib-commonjs}/logic/selectors/ISelectorParser.js +0 -0
  206. /package/{lib → lib-commonjs}/logic/selectors/NamedProjectSelectorParser.js +0 -0
  207. /package/{lib → lib-commonjs}/logic/selectors/PathProjectSelectorParser.js +0 -0
  208. /package/{lib → lib-commonjs}/logic/selectors/SubspaceSelectorParser.js +0 -0
  209. /package/{lib → lib-commonjs}/logic/selectors/TagProjectSelectorParser.js +0 -0
  210. /package/{lib → lib-commonjs}/logic/selectors/VersionPolicyProjectSelectorParser.js +0 -0
  211. /package/{lib → lib-commonjs}/logic/setup/ArtifactoryConfiguration.js +0 -0
  212. /package/{lib → lib-commonjs}/logic/setup/KeyboardLoop.js +0 -0
  213. /package/{lib → lib-commonjs}/logic/setup/SetupPackageRegistry.js +0 -0
  214. /package/{lib → lib-commonjs}/logic/setup/TerminalInput.js +0 -0
  215. /package/{lib → lib-commonjs}/logic/versionMismatch/VersionMismatchFinder.js +0 -0
  216. /package/{lib → lib-commonjs}/logic/versionMismatch/VersionMismatchFinderCommonVersions.js +0 -0
  217. /package/{lib → lib-commonjs}/logic/versionMismatch/VersionMismatchFinderEntity.js +0 -0
  218. /package/{lib → lib-commonjs}/logic/versionMismatch/VersionMismatchFinderProject.js +0 -0
  219. /package/{lib → lib-commonjs}/logic/yarn/YarnOptionsConfiguration.js +0 -0
  220. /package/{lib → lib-commonjs}/logic/yarn/YarnShrinkwrapFile.js +0 -0
  221. /package/{lib → lib-commonjs}/pluginFramework/IRushPlugin.js +0 -0
  222. /package/{lib → lib-commonjs}/pluginFramework/PhasedCommandHooks.js +0 -0
  223. /package/{lib → lib-commonjs}/pluginFramework/PluginLoader/AutoinstallerPluginLoader.js +0 -0
  224. /package/{lib → lib-commonjs}/pluginFramework/PluginLoader/BuiltInPluginLoader.js +0 -0
  225. /package/{lib → lib-commonjs}/pluginFramework/PluginLoader/PluginLoaderBase.js +0 -0
  226. /package/{lib → lib-commonjs}/pluginFramework/PluginLoader/RushSdk.js +0 -0
  227. /package/{lib → lib-commonjs}/pluginFramework/PluginManager.js +0 -0
  228. /package/{lib → lib-commonjs}/pluginFramework/RushLifeCycle.js +0 -0
  229. /package/{lib → lib-commonjs}/pluginFramework/RushSession.js +0 -0
  230. /package/{lib → lib-commonjs}/pluginFramework/logging/Logger.js +0 -0
  231. /package/{lib → lib-commonjs}/start-pnpm.js +0 -0
  232. /package/{lib → lib-commonjs}/start.js +0 -0
  233. /package/{lib → lib-commonjs}/startx.js +0 -0
  234. /package/{lib → lib-commonjs}/utilities/AsyncRecycler.js +0 -0
  235. /package/{lib → lib-commonjs}/utilities/CollatedTerminalProvider.js +0 -0
  236. /package/{lib → lib-commonjs}/utilities/HotlinkManager.js +0 -0
  237. /package/{lib → lib-commonjs}/utilities/InteractiveUpgradeUI.js +0 -0
  238. /package/{lib → lib-commonjs}/utilities/Npm.js +0 -0
  239. /package/{lib → lib-commonjs}/utilities/NullTerminalProvider.js +0 -0
  240. /package/{lib → lib-commonjs}/utilities/OverlappingPathAnalyzer.js +0 -0
  241. /package/{lib → lib-commonjs}/utilities/PathConstants.js +0 -0
  242. /package/{lib → lib-commonjs}/utilities/PnpmSyncUtilities.js +0 -0
  243. /package/{lib → lib-commonjs}/utilities/RushAlerts.js +0 -0
  244. /package/{lib → lib-commonjs}/utilities/SetRushLibPath.js +0 -0
  245. /package/{lib → lib-commonjs}/utilities/Stopwatch.js +0 -0
  246. /package/{lib → lib-commonjs}/utilities/TarExecutable.js +0 -0
  247. /package/{lib → lib-commonjs}/utilities/Utilities.js +0 -0
  248. /package/{lib → lib-commonjs}/utilities/WebClient.js +0 -0
  249. /package/{lib → lib-commonjs}/utilities/actionNameConstants.js +0 -0
  250. /package/{lib → lib-commonjs}/utilities/executionUtilities.js +0 -0
  251. /package/{lib → lib-commonjs}/utilities/npmrcUtilities.js +0 -0
  252. /package/{lib → lib-commonjs}/utilities/objectUtilities.js +0 -0
  253. /package/{lib → lib-commonjs}/utilities/performance.js +0 -0
  254. /package/{lib → lib-commonjs}/utilities/templateUtilities.js +0 -0
  255. /package/{lib → lib-dts}/api/ApprovedPackagesConfiguration.d.ts +0 -0
  256. /package/{lib → lib-dts}/api/ApprovedPackagesPolicy.d.ts +0 -0
  257. /package/{lib → lib-dts}/api/BuildCacheConfiguration.d.ts +0 -0
  258. /package/{lib → lib-dts}/api/ChangeFile.d.ts +0 -0
  259. /package/{lib → lib-dts}/api/ChangeManagement.d.ts +0 -0
  260. /package/{lib → lib-dts}/api/ChangeManager.d.ts +0 -0
  261. /package/{lib → lib-dts}/api/Changelog.d.ts +0 -0
  262. /package/{lib → lib-dts}/api/CobuildConfiguration.d.ts +0 -0
  263. /package/{lib → lib-dts}/api/CommandLineConfiguration.d.ts +0 -0
  264. /package/{lib → lib-dts}/api/CommandLineJson.d.ts +0 -0
  265. /package/{lib → lib-dts}/api/CommonVersionsConfiguration.d.ts +0 -0
  266. /package/{lib → lib-dts}/api/CustomTipsConfiguration.d.ts +0 -0
  267. /package/{lib → lib-dts}/api/EnvironmentConfiguration.d.ts +0 -0
  268. /package/{lib → lib-dts}/api/EventHooks.d.ts +0 -0
  269. /package/{lib → lib-dts}/api/FlagFile.d.ts +0 -0
  270. /package/{lib → lib-dts}/api/LastInstallFlag.d.ts +0 -0
  271. /package/{lib → lib-dts}/api/PackageJsonEditor.d.ts +0 -0
  272. /package/{lib → lib-dts}/api/PackageNameParsers.d.ts +0 -0
  273. /package/{lib → lib-dts}/api/Rush.d.ts +0 -0
  274. /package/{lib → lib-dts}/api/RushCommandLine.d.ts +0 -0
  275. /package/{lib → lib-dts}/api/RushConfiguration.d.ts +0 -0
  276. /package/{lib → lib-dts}/api/RushConfigurationProject.d.ts +0 -0
  277. /package/{lib → lib-dts}/api/RushGlobalFolder.d.ts +0 -0
  278. /package/{lib → lib-dts}/api/RushInternals.d.ts +0 -0
  279. /package/{lib → lib-dts}/api/RushPluginsConfiguration.d.ts +0 -0
  280. /package/{lib → lib-dts}/api/RushUserConfiguration.d.ts +0 -0
  281. /package/{lib → lib-dts}/api/SaveCallbackPackageJsonEditor.d.ts +0 -0
  282. /package/{lib → lib-dts}/api/Subspace.d.ts +0 -0
  283. /package/{lib → lib-dts}/api/SubspacesConfiguration.d.ts +0 -0
  284. /package/{lib → lib-dts}/api/Variants.d.ts +0 -0
  285. /package/{lib → lib-dts}/api/VersionPolicy.d.ts +0 -0
  286. /package/{lib → lib-dts}/api/VersionPolicyConfiguration.d.ts +0 -0
  287. /package/{lib → lib-dts}/api/packageManager/NpmPackageManager.d.ts +0 -0
  288. /package/{lib → lib-dts}/api/packageManager/PackageManager.d.ts +0 -0
  289. /package/{lib → lib-dts}/api/packageManager/PnpmPackageManager.d.ts +0 -0
  290. /package/{lib → lib-dts}/api/packageManager/YarnPackageManager.d.ts +0 -0
  291. /package/{lib → lib-dts}/cli/CommandLineMigrationAdvisor.d.ts +0 -0
  292. /package/{lib → lib-dts}/cli/RushCommandLineParser.d.ts +0 -0
  293. /package/{lib → lib-dts}/cli/RushPnpmCommandLine.d.ts +0 -0
  294. /package/{lib → lib-dts}/cli/RushPnpmCommandLineParser.d.ts +0 -0
  295. /package/{lib → lib-dts}/cli/RushStartupBanner.d.ts +0 -0
  296. /package/{lib → lib-dts}/cli/RushXCommandLine.d.ts +0 -0
  297. /package/{lib → lib-dts}/cli/actions/AddAction.d.ts +0 -0
  298. /package/{lib → lib-dts}/cli/actions/AlertAction.d.ts +0 -0
  299. /package/{lib → lib-dts}/cli/actions/BaseAddAndRemoveAction.d.ts +0 -0
  300. /package/{lib → lib-dts}/cli/actions/BaseAutoinstallerAction.d.ts +0 -0
  301. /package/{lib → lib-dts}/cli/actions/BaseHotlinkPackageAction.d.ts +0 -0
  302. /package/{lib → lib-dts}/cli/actions/BaseInstallAction.d.ts +0 -0
  303. /package/{lib → lib-dts}/cli/actions/BaseRushAction.d.ts +0 -0
  304. /package/{lib → lib-dts}/cli/actions/BridgePackageAction.d.ts +0 -0
  305. /package/{lib → lib-dts}/cli/actions/ChangeAction.d.ts +0 -0
  306. /package/{lib → lib-dts}/cli/actions/CheckAction.d.ts +0 -0
  307. /package/{lib → lib-dts}/cli/actions/DeployAction.d.ts +0 -0
  308. /package/{lib → lib-dts}/cli/actions/InitAction.d.ts +0 -0
  309. /package/{lib → lib-dts}/cli/actions/InitAutoinstallerAction.d.ts +0 -0
  310. /package/{lib → lib-dts}/cli/actions/InitDeployAction.d.ts +0 -0
  311. /package/{lib → lib-dts}/cli/actions/InitSubspaceAction.d.ts +0 -0
  312. /package/{lib → lib-dts}/cli/actions/InstallAction.d.ts +0 -0
  313. /package/{lib → lib-dts}/cli/actions/InstallAutoinstallerAction.d.ts +0 -0
  314. /package/{lib → lib-dts}/cli/actions/LinkAction.d.ts +0 -0
  315. /package/{lib → lib-dts}/cli/actions/LinkPackageAction.d.ts +0 -0
  316. /package/{lib → lib-dts}/cli/actions/ListAction.d.ts +0 -0
  317. /package/{lib → lib-dts}/cli/actions/PublishAction.d.ts +0 -0
  318. /package/{lib → lib-dts}/cli/actions/PurgeAction.d.ts +0 -0
  319. /package/{lib → lib-dts}/cli/actions/RemoveAction.d.ts +0 -0
  320. /package/{lib → lib-dts}/cli/actions/ScanAction.d.ts +0 -0
  321. /package/{lib → lib-dts}/cli/actions/SetupAction.d.ts +0 -0
  322. /package/{lib → lib-dts}/cli/actions/UnlinkAction.d.ts +0 -0
  323. /package/{lib → lib-dts}/cli/actions/UpdateAction.d.ts +0 -0
  324. /package/{lib → lib-dts}/cli/actions/UpdateAutoinstallerAction.d.ts +0 -0
  325. /package/{lib → lib-dts}/cli/actions/UpdateCloudCredentialsAction.d.ts +0 -0
  326. /package/{lib → lib-dts}/cli/actions/UpgradeInteractiveAction.d.ts +0 -0
  327. /package/{lib → lib-dts}/cli/actions/VersionAction.d.ts +0 -0
  328. /package/{lib → lib-dts}/cli/parsing/ParseParallelism.d.ts +0 -0
  329. /package/{lib → lib-dts}/cli/parsing/SelectionParameterSet.d.ts +0 -0
  330. /package/{lib → lib-dts}/cli/parsing/associateParametersByPhase.d.ts +0 -0
  331. /package/{lib → lib-dts}/cli/parsing/defineCustomParameters.d.ts +0 -0
  332. /package/{lib → lib-dts}/cli/scriptActions/BaseScriptAction.d.ts +0 -0
  333. /package/{lib → lib-dts}/cli/scriptActions/GlobalScriptAction.d.ts +0 -0
  334. /package/{lib → lib-dts}/cli/scriptActions/PhasedScriptAction.d.ts +0 -0
  335. /package/{lib → lib-dts}/logic/ApprovedPackagesChecker.d.ts +0 -0
  336. /package/{lib → lib-dts}/logic/Autoinstaller.d.ts +0 -0
  337. /package/{lib → lib-dts}/logic/ChangeFiles.d.ts +0 -0
  338. /package/{lib → lib-dts}/logic/ChangeManager.d.ts +0 -0
  339. /package/{lib → lib-dts}/logic/ChangelogGenerator.d.ts +0 -0
  340. /package/{lib → lib-dts}/logic/DependencyAnalyzer.d.ts +0 -0
  341. /package/{lib → lib-dts}/logic/DependencySpecifier.d.ts +0 -0
  342. /package/{lib → lib-dts}/logic/EventHooksManager.d.ts +0 -0
  343. /package/{lib → lib-dts}/logic/Git.d.ts +0 -0
  344. /package/{lib → lib-dts}/logic/GitStatusParser.d.ts +0 -0
  345. /package/{lib → lib-dts}/logic/InstallManagerFactory.d.ts +0 -0
  346. /package/{lib → lib-dts}/logic/InteractiveUpgrader.d.ts +0 -0
  347. /package/{lib → lib-dts}/logic/JsonSchemaUrls.d.ts +0 -0
  348. /package/{lib → lib-dts}/logic/LinkManagerFactory.d.ts +0 -0
  349. /package/{lib → lib-dts}/logic/NodeJsCompatibility.d.ts +0 -0
  350. /package/{lib → lib-dts}/logic/PackageJsonUpdater.d.ts +0 -0
  351. /package/{lib → lib-dts}/logic/PackageJsonUpdaterTypes.d.ts +0 -0
  352. /package/{lib → lib-dts}/logic/PackageLookup.d.ts +0 -0
  353. /package/{lib → lib-dts}/logic/PrereleaseToken.d.ts +0 -0
  354. /package/{lib → lib-dts}/logic/ProjectChangeAnalyzer.d.ts +0 -0
  355. /package/{lib → lib-dts}/logic/ProjectCommandSet.d.ts +0 -0
  356. /package/{lib → lib-dts}/logic/ProjectImpactGraphGenerator.d.ts +0 -0
  357. /package/{lib → lib-dts}/logic/ProjectWatcher.d.ts +0 -0
  358. /package/{lib → lib-dts}/logic/PublishGit.d.ts +0 -0
  359. /package/{lib → lib-dts}/logic/PublishUtilities.d.ts +0 -0
  360. /package/{lib → lib-dts}/logic/PurgeManager.d.ts +0 -0
  361. /package/{lib → lib-dts}/logic/RepoStateFile.d.ts +0 -0
  362. /package/{lib → lib-dts}/logic/RushConstants.d.ts +0 -0
  363. /package/{lib → lib-dts}/logic/Selection.d.ts +0 -0
  364. /package/{lib → lib-dts}/logic/SetupChecks.d.ts +0 -0
  365. /package/{lib → lib-dts}/logic/ShrinkwrapFileFactory.d.ts +0 -0
  366. /package/{lib → lib-dts}/logic/StandardScriptUpdater.d.ts +0 -0
  367. /package/{lib → lib-dts}/logic/Telemetry.d.ts +0 -0
  368. /package/{lib → lib-dts}/logic/TempProjectHelper.d.ts +0 -0
  369. /package/{lib → lib-dts}/logic/UnlinkManager.d.ts +0 -0
  370. /package/{lib → lib-dts}/logic/VersionManager.d.ts +0 -0
  371. /package/{lib → lib-dts}/logic/base/BaseInstallManager.d.ts +0 -0
  372. /package/{lib → lib-dts}/logic/base/BaseInstallManagerTypes.d.ts +0 -0
  373. /package/{lib → lib-dts}/logic/base/BaseLinkManager.d.ts +0 -0
  374. /package/{lib → lib-dts}/logic/base/BasePackage.d.ts +0 -0
  375. /package/{lib → lib-dts}/logic/base/BasePackageManagerOptionsConfiguration.d.ts +0 -0
  376. /package/{lib → lib-dts}/logic/base/BaseProjectShrinkwrapFile.d.ts +0 -0
  377. /package/{lib → lib-dts}/logic/base/BaseShrinkwrapFile.d.ts +0 -0
  378. /package/{lib → lib-dts}/logic/base/BaseWorkspaceFile.d.ts +0 -0
  379. /package/{lib → lib-dts}/logic/buildCache/CacheEntryId.d.ts +0 -0
  380. /package/{lib → lib-dts}/logic/buildCache/FileSystemBuildCacheProvider.d.ts +0 -0
  381. /package/{lib → lib-dts}/logic/buildCache/ICloudBuildCacheProvider.d.ts +0 -0
  382. /package/{lib → lib-dts}/logic/cobuild/CobuildLock.d.ts +0 -0
  383. /package/{lib → lib-dts}/logic/cobuild/DisjointSet.d.ts +0 -0
  384. /package/{lib → lib-dts}/logic/cobuild/ICobuildLockProvider.d.ts +0 -0
  385. /package/{lib → lib-dts}/logic/deploy/DeployScenarioConfiguration.d.ts +0 -0
  386. /package/{lib → lib-dts}/logic/dotenv.d.ts +0 -0
  387. /package/{lib → lib-dts}/logic/installManager/InstallHelpers.d.ts +0 -0
  388. /package/{lib → lib-dts}/logic/installManager/RushInstallManager.d.ts +0 -0
  389. /package/{lib → lib-dts}/logic/installManager/WorkspaceInstallManager.d.ts +0 -0
  390. /package/{lib → lib-dts}/logic/installManager/doBasicInstallAsync.d.ts +0 -0
  391. /package/{lib → lib-dts}/logic/npm/NpmLinkManager.d.ts +0 -0
  392. /package/{lib → lib-dts}/logic/npm/NpmOptionsConfiguration.d.ts +0 -0
  393. /package/{lib → lib-dts}/logic/npm/NpmPackage.d.ts +0 -0
  394. /package/{lib → lib-dts}/logic/npm/NpmShrinkwrapFile.d.ts +0 -0
  395. /package/{lib → lib-dts}/logic/operations/AsyncOperationQueue.d.ts +0 -0
  396. /package/{lib → lib-dts}/logic/operations/BuildPlanPlugin.d.ts +0 -0
  397. /package/{lib → lib-dts}/logic/operations/ConsoleTimelinePlugin.d.ts +0 -0
  398. /package/{lib → lib-dts}/logic/operations/DebugHashesPlugin.d.ts +0 -0
  399. /package/{lib → lib-dts}/logic/operations/IOperationExecutionResult.d.ts +0 -0
  400. /package/{lib → lib-dts}/logic/operations/IOperationRunner.d.ts +0 -0
  401. /package/{lib → lib-dts}/logic/operations/IPCOperationRunner.d.ts +0 -0
  402. /package/{lib → lib-dts}/logic/operations/IPCOperationRunnerPlugin.d.ts +0 -0
  403. /package/{lib → lib-dts}/logic/operations/IgnoredParametersPlugin.d.ts +0 -0
  404. /package/{lib → lib-dts}/logic/operations/LegacySkipPlugin.d.ts +0 -0
  405. /package/{lib → lib-dts}/logic/operations/NodeDiagnosticDirPlugin.d.ts +0 -0
  406. /package/{lib → lib-dts}/logic/operations/NullOperationRunner.d.ts +0 -0
  407. /package/{lib → lib-dts}/logic/operations/Operation.d.ts +0 -0
  408. /package/{lib → lib-dts}/logic/operations/OperationError.d.ts +0 -0
  409. /package/{lib → lib-dts}/logic/operations/OperationExecutionManager.d.ts +0 -0
  410. /package/{lib → lib-dts}/logic/operations/OperationExecutionRecord.d.ts +0 -0
  411. /package/{lib → lib-dts}/logic/operations/OperationMetadataManager.d.ts +0 -0
  412. /package/{lib → lib-dts}/logic/operations/OperationResultSummarizerPlugin.d.ts +0 -0
  413. /package/{lib → lib-dts}/logic/operations/OperationStateFile.d.ts +0 -0
  414. /package/{lib → lib-dts}/logic/operations/OperationStatus.d.ts +0 -0
  415. /package/{lib → lib-dts}/logic/operations/PeriodicCallback.d.ts +0 -0
  416. /package/{lib → lib-dts}/logic/operations/PhasedOperationPlugin.d.ts +0 -0
  417. /package/{lib → lib-dts}/logic/operations/PnpmSyncCopyOperationPlugin.d.ts +0 -0
  418. /package/{lib → lib-dts}/logic/operations/ProjectLogWritable.d.ts +0 -0
  419. /package/{lib → lib-dts}/logic/operations/ShardedPhaseOperationPlugin.d.ts +0 -0
  420. /package/{lib → lib-dts}/logic/operations/ShellOperationRunner.d.ts +0 -0
  421. /package/{lib → lib-dts}/logic/operations/ShellOperationRunnerPlugin.d.ts +0 -0
  422. /package/{lib → lib-dts}/logic/operations/ValidateOperationsPlugin.d.ts +0 -0
  423. /package/{lib → lib-dts}/logic/operations/WeightedOperationPlugin.d.ts +0 -0
  424. /package/{lib → lib-dts}/logic/pnpm/IPnpmfile.d.ts +0 -0
  425. /package/{lib → lib-dts}/logic/pnpm/PnpmLinkManager.d.ts +0 -0
  426. /package/{lib → lib-dts}/logic/pnpm/PnpmOptionsConfiguration.d.ts +0 -0
  427. /package/{lib → lib-dts}/logic/pnpm/PnpmProjectShrinkwrapFile.d.ts +0 -0
  428. /package/{lib → lib-dts}/logic/pnpm/PnpmShrinkWrapFileConverters.d.ts +0 -0
  429. /package/{lib → lib-dts}/logic/pnpm/PnpmShrinkwrapFile.d.ts +0 -0
  430. /package/{lib → lib-dts}/logic/pnpm/PnpmWorkspaceFile.d.ts +0 -0
  431. /package/{lib → lib-dts}/logic/pnpm/PnpmYamlCommon.d.ts +0 -0
  432. /package/{lib → lib-dts}/logic/pnpm/PnpmfileConfiguration.d.ts +0 -0
  433. /package/{lib → lib-dts}/logic/pnpm/PnpmfileShim.d.ts +0 -0
  434. /package/{lib → lib-dts}/logic/pnpm/SubspacePnpmfileConfiguration.d.ts +0 -0
  435. /package/{lib → lib-dts}/logic/policy/EnvironmentPolicy.d.ts +0 -0
  436. /package/{lib → lib-dts}/logic/policy/GitEmailPolicy.d.ts +0 -0
  437. /package/{lib → lib-dts}/logic/policy/PolicyValidator.d.ts +0 -0
  438. /package/{lib → lib-dts}/logic/policy/ShrinkwrapFilePolicy.d.ts +0 -0
  439. /package/{lib → lib-dts}/logic/selectors/GitChangedProjectSelectorParser.d.ts +0 -0
  440. /package/{lib → lib-dts}/logic/selectors/ISelectorParser.d.ts +0 -0
  441. /package/{lib → lib-dts}/logic/selectors/NamedProjectSelectorParser.d.ts +0 -0
  442. /package/{lib → lib-dts}/logic/selectors/PathProjectSelectorParser.d.ts +0 -0
  443. /package/{lib → lib-dts}/logic/selectors/SubspaceSelectorParser.d.ts +0 -0
  444. /package/{lib → lib-dts}/logic/selectors/TagProjectSelectorParser.d.ts +0 -0
  445. /package/{lib → lib-dts}/logic/selectors/VersionPolicyProjectSelectorParser.d.ts +0 -0
  446. /package/{lib → lib-dts}/logic/setup/ArtifactoryConfiguration.d.ts +0 -0
  447. /package/{lib → lib-dts}/logic/setup/KeyboardLoop.d.ts +0 -0
  448. /package/{lib → lib-dts}/logic/setup/SetupPackageRegistry.d.ts +0 -0
  449. /package/{lib → lib-dts}/logic/setup/TerminalInput.d.ts +0 -0
  450. /package/{lib → lib-dts}/logic/versionMismatch/VersionMismatchFinder.d.ts +0 -0
  451. /package/{lib → lib-dts}/logic/versionMismatch/VersionMismatchFinderCommonVersions.d.ts +0 -0
  452. /package/{lib → lib-dts}/logic/versionMismatch/VersionMismatchFinderEntity.d.ts +0 -0
  453. /package/{lib → lib-dts}/logic/versionMismatch/VersionMismatchFinderProject.d.ts +0 -0
  454. /package/{lib → lib-dts}/logic/yarn/YarnOptionsConfiguration.d.ts +0 -0
  455. /package/{lib → lib-dts}/logic/yarn/YarnShrinkwrapFile.d.ts +0 -0
  456. /package/{lib → lib-dts}/pluginFramework/IRushPlugin.d.ts +0 -0
  457. /package/{lib → lib-dts}/pluginFramework/PhasedCommandHooks.d.ts +0 -0
  458. /package/{lib → lib-dts}/pluginFramework/PluginLoader/AutoinstallerPluginLoader.d.ts +0 -0
  459. /package/{lib → lib-dts}/pluginFramework/PluginLoader/BuiltInPluginLoader.d.ts +0 -0
  460. /package/{lib → lib-dts}/pluginFramework/PluginLoader/PluginLoaderBase.d.ts +0 -0
  461. /package/{lib → lib-dts}/pluginFramework/PluginLoader/RushSdk.d.ts +0 -0
  462. /package/{lib → lib-dts}/pluginFramework/PluginManager.d.ts +0 -0
  463. /package/{lib → lib-dts}/pluginFramework/RushLifeCycle.d.ts +0 -0
  464. /package/{lib → lib-dts}/pluginFramework/RushSession.d.ts +0 -0
  465. /package/{lib → lib-dts}/pluginFramework/logging/Logger.d.ts +0 -0
  466. /package/{lib → lib-dts}/start-pnpm.d.ts +0 -0
  467. /package/{lib → lib-dts}/start.d.ts +0 -0
  468. /package/{lib → lib-dts}/startx.d.ts +0 -0
  469. /package/{lib → lib-dts}/utilities/AsyncRecycler.d.ts +0 -0
  470. /package/{lib → lib-dts}/utilities/CollatedTerminalProvider.d.ts +0 -0
  471. /package/{lib → lib-dts}/utilities/HotlinkManager.d.ts +0 -0
  472. /package/{lib → lib-dts}/utilities/InteractiveUpgradeUI.d.ts +0 -0
  473. /package/{lib → lib-dts}/utilities/Npm.d.ts +0 -0
  474. /package/{lib → lib-dts}/utilities/NullTerminalProvider.d.ts +0 -0
  475. /package/{lib → lib-dts}/utilities/OverlappingPathAnalyzer.d.ts +0 -0
  476. /package/{lib → lib-dts}/utilities/PathConstants.d.ts +0 -0
  477. /package/{lib → lib-dts}/utilities/PnpmSyncUtilities.d.ts +0 -0
  478. /package/{lib → lib-dts}/utilities/RushAlerts.d.ts +0 -0
  479. /package/{lib → lib-dts}/utilities/SetRushLibPath.d.ts +0 -0
  480. /package/{lib → lib-dts}/utilities/Stopwatch.d.ts +0 -0
  481. /package/{lib → lib-dts}/utilities/TarExecutable.d.ts +0 -0
  482. /package/{lib → lib-dts}/utilities/Utilities.d.ts +0 -0
  483. /package/{lib → lib-dts}/utilities/WebClient.d.ts +0 -0
  484. /package/{lib → lib-dts}/utilities/actionNameConstants.d.ts +0 -0
  485. /package/{lib → lib-dts}/utilities/executionUtilities.d.ts +0 -0
  486. /package/{lib → lib-dts}/utilities/npmrcUtilities.d.ts +0 -0
  487. /package/{lib → lib-dts}/utilities/objectUtilities.d.ts +0 -0
  488. /package/{lib → lib-dts}/utilities/performance.d.ts +0 -0
  489. /package/{lib → lib-dts}/utilities/templateUtilities.d.ts +0 -0
@@ -1522,6 +1522,13 @@ export declare interface IExperimentsJson {
1522
1522
  * each other's packages via the NPM registry.
1523
1523
  */
1524
1524
  exemptDecoupledDependenciesBetweenSubspaces?: boolean;
1525
+ /**
1526
+ * If true, when running on macOS, Rush will omit AppleDouble files (`._*`) from build cache archives
1527
+ * when a companion file exists in the same directory. AppleDouble files are automatically created by
1528
+ * macOS to store extended attributes on filesystems that don't support them, and should generally not
1529
+ * be included in the shared build cache.
1530
+ */
1531
+ omitAppleDoubleFilesFromBuildCache?: boolean;
1525
1532
  }
1526
1533
 
1527
1534
  /**
@@ -1802,6 +1809,11 @@ export declare interface _IOperationBuildCacheOptions {
1802
1809
  * The terminal to use for logging.
1803
1810
  */
1804
1811
  terminal: ITerminal;
1812
+ /**
1813
+ * If true, omit AppleDouble (`._*`) files from cache archives when running on macOS
1814
+ * and a companion file exists in the same directory.
1815
+ */
1816
+ excludeAppleDoubleFiles: boolean;
1805
1817
  }
1806
1818
 
1807
1819
  /**
@@ -2048,6 +2060,19 @@ export declare interface IOperationSettings {
2048
2060
  * you list them here.
2049
2061
  */
2050
2062
  dependsOnEnvVars?: string[];
2063
+ /**
2064
+ * Specifies whether and at what granularity the Node.js version should be included in the hash
2065
+ * used for the build cache. When enabled, changing the Node.js version at the specified granularity
2066
+ * will invalidate cached outputs and cause the operation to be re-executed. This is useful for
2067
+ * projects that produce Node.js-version-specific outputs, such as native module builds.
2068
+ *
2069
+ * Allowed values:
2070
+ * - `true` — alias for `"patch"`, includes the full version (e.g. `18.17.1`)
2071
+ * - `"major"` — includes only the major version (e.g. `18`)
2072
+ * - `"minor"` — includes the major and minor version (e.g. `18.17`)
2073
+ * - `"patch"` — includes the full version (e.g. `18.17.1`)
2074
+ */
2075
+ dependsOnNodeVersion?: boolean | NodeVersionGranularity;
2051
2076
  /**
2052
2077
  * An optional list of glob (minimatch) patterns pointing to files that can affect this operation.
2053
2078
  * The hash values of the contents of these files will become part of the final hash when reading
@@ -2890,6 +2915,17 @@ export declare class LockStepVersionPolicy extends VersionPolicy {
2890
2915
 
2891
2916
  export { LookupByPath }
2892
2917
 
2918
+ /**
2919
+ * The granularity at which the Node.js version is included in the build cache hash.
2920
+ *
2921
+ * - `"major"` — includes only the major version (e.g. `18`)
2922
+ * - `"minor"` — includes the major and minor version (e.g. `18.17`)
2923
+ * - `"patch"` — includes the full version (e.g. `18.17.1`)
2924
+ *
2925
+ * @alpha
2926
+ */
2927
+ export declare type NodeVersionGranularity = 'major' | 'minor' | 'patch';
2928
+
2893
2929
  /**
2894
2930
  * Options that are only used when the NPM package manager is selected.
2895
2931
  *
@@ -2995,6 +3031,7 @@ export declare class _OperationBuildCache {
2995
3031
  private readonly _cacheWriteEnabled;
2996
3032
  private readonly _projectOutputFolderNames;
2997
3033
  private readonly _cacheId;
3034
+ private readonly _excludeAppleDoubleFiles;
2998
3035
  private constructor();
2999
3036
  private static _tryGetTarUtility;
3000
3037
  get cacheId(): string | undefined;
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.56.3"
8
+ "packageVersion": "7.57.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -102,6 +102,13 @@ export interface IExperimentsJson {
102
102
  * each other's packages via the NPM registry.
103
103
  */
104
104
  exemptDecoupledDependenciesBetweenSubspaces?: boolean;
105
+ /**
106
+ * If true, when running on macOS, Rush will omit AppleDouble files (`._*`) from build cache archives
107
+ * when a companion file exists in the same directory. AppleDouble files are automatically created by
108
+ * macOS to store extended attributes on filesystems that don't support them, and should generally not
109
+ * be included in the shared build cache.
110
+ */
111
+ omitAppleDoubleFilesFromBuildCache?: boolean;
105
112
  }
106
113
  /**
107
114
  * Use this class to load the "common/config/rush/experiments.json" config file.
@@ -51,6 +51,16 @@ export interface IRushPhaseSharding {
51
51
  */
52
52
  shardOperationSettings?: unknown;
53
53
  }
54
+ /**
55
+ * The granularity at which the Node.js version is included in the build cache hash.
56
+ *
57
+ * - `"major"` — includes only the major version (e.g. `18`)
58
+ * - `"minor"` — includes the major and minor version (e.g. `18.17`)
59
+ * - `"patch"` — includes the full version (e.g. `18.17.1`)
60
+ *
61
+ * @alpha
62
+ */
63
+ export type NodeVersionGranularity = 'major' | 'minor' | 'patch';
54
64
  /**
55
65
  * @alpha
56
66
  */
@@ -87,6 +97,19 @@ export interface IOperationSettings {
87
97
  * you list them here.
88
98
  */
89
99
  dependsOnEnvVars?: string[];
100
+ /**
101
+ * Specifies whether and at what granularity the Node.js version should be included in the hash
102
+ * used for the build cache. When enabled, changing the Node.js version at the specified granularity
103
+ * will invalidate cached outputs and cause the operation to be re-executed. This is useful for
104
+ * projects that produce Node.js-version-specific outputs, such as native module builds.
105
+ *
106
+ * Allowed values:
107
+ * - `true` — alias for `"patch"`, includes the full version (e.g. `18.17.1`)
108
+ * - `"major"` — includes only the major version (e.g. `18`)
109
+ * - `"minor"` — includes the major and minor version (e.g. `18.17`)
110
+ * - `"patch"` — includes the full version (e.g. `18.17.1`)
111
+ */
112
+ dependsOnNodeVersion?: boolean | NodeVersionGranularity;
90
113
  /**
91
114
  * An optional list of glob (minimatch) patterns pointing to files that can affect this operation.
92
115
  * The hash values of the contents of these files will become part of the final hash when reading
@@ -22,7 +22,7 @@ export { EnvironmentConfiguration, EnvironmentVariableNames, type IEnvironmentCo
22
22
  export { RushConstants } from './logic/RushConstants';
23
23
  export { type PackageManagerName, PackageManager } from './api/packageManager/PackageManager';
24
24
  export { RushConfigurationProject } from './api/RushConfigurationProject';
25
- export { type IRushProjectJson as _IRushProjectJson, type IOperationSettings, RushProjectConfiguration, type IRushPhaseSharding } from './api/RushProjectConfiguration';
25
+ export { type IRushProjectJson as _IRushProjectJson, type IOperationSettings, type NodeVersionGranularity, RushProjectConfiguration, type IRushPhaseSharding } from './api/RushProjectConfiguration';
26
26
  export { RushUserConfiguration } from './api/RushUserConfiguration';
27
27
  export { RushGlobalFolder as _RushGlobalFolder } from './api/RushGlobalFolder';
28
28
  export { ApprovedPackagesItem, ApprovedPackagesConfiguration } from './api/ApprovedPackagesConfiguration';
@@ -14,6 +14,11 @@ export interface IOperationBuildCacheOptions {
14
14
  * The terminal to use for logging.
15
15
  */
16
16
  terminal: ITerminal;
17
+ /**
18
+ * If true, omit AppleDouble (`._*`) files from cache archives when running on macOS
19
+ * and a companion file exists in the same directory.
20
+ */
21
+ excludeAppleDoubleFiles: boolean;
17
22
  }
18
23
  /**
19
24
  * @internal
@@ -48,6 +53,7 @@ export declare class OperationBuildCache {
48
53
  private readonly _cacheWriteEnabled;
49
54
  private readonly _projectOutputFolderNames;
50
55
  private readonly _cacheId;
56
+ private readonly _excludeAppleDoubleFiles;
51
57
  private constructor();
52
58
  private static _tryGetTarUtility;
53
59
  get cacheId(): string | undefined;
@@ -42,6 +42,11 @@ export interface IInputsSnapshotParameters {
42
42
  * @defaultValue \{ ...process.env \}
43
43
  */
44
44
  environment?: Record<string, string | undefined>;
45
+ /**
46
+ * The Node.js version string to use for `dependsOnNodeVersion`. Defaults to `process.version`.
47
+ * @defaultValue process.version
48
+ */
49
+ nodeVersion?: string;
45
50
  /**
46
51
  * File paths (keys into additionalHashes or hashes) to be included as part of every operation's dependencies.
47
52
  */
@@ -142,6 +147,10 @@ export declare class InputsSnapshot implements IInputsSnapshot {
142
147
  * The environment to use for `dependsOnEnvVars`.
143
148
  */
144
149
  private readonly _environment;
150
+ /**
151
+ * Pre-computed Node.js version strings at each granularity level for `dependsOnNodeVersion`.
152
+ */
153
+ private readonly _nodeVersionByGranularity;
145
154
  /**
146
155
  *
147
156
  * @param params - The parameters for the snapshot
@@ -32,6 +32,7 @@ export interface ICacheableOperationPluginOptions {
32
32
  buildCacheConfiguration: BuildCacheConfiguration;
33
33
  cobuildConfiguration: CobuildConfiguration | undefined;
34
34
  terminal: ITerminal;
35
+ excludeAppleDoubleFiles: boolean;
35
36
  }
36
37
  export declare class CacheableOperationPlugin implements IPhasedCommandPlugin {
37
38
  private _buildCacheContextByOperation;
package/lib-shim/index.js CHANGED
@@ -106,10 +106,10 @@ async function iterateAsync(basePath, filePath, segments) {
106
106
 
107
107
  /***/ },
108
108
 
109
- /***/ "../rush-lib/lib-esnext/api/RushGlobalFolder.js"
110
- /*!******************************************************************!*\
111
- !*** ../rush-lib/lib-esnext/api/RushGlobalFolder.js + 2 modules ***!
112
- \******************************************************************/
109
+ /***/ "../rush-lib/lib-intermediate-esm/api/RushGlobalFolder.js"
110
+ /*!****************************************************************************!*\
111
+ !*** ../rush-lib/lib-intermediate-esm/api/RushGlobalFolder.js + 2 modules ***!
112
+ \****************************************************************************/
113
113
  (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
114
114
 
115
115
  // ESM COMPAT FLAG
@@ -126,7 +126,7 @@ var external_node_path_ = __webpack_require__("node:path");
126
126
  var node_core_library_ = __webpack_require__("@rushstack/node-core-library");
127
127
  // EXTERNAL MODULE: ../../common/temp/default/node_modules/.pnpm/true-case-path@2.2.1/node_modules/true-case-path/index.js
128
128
  var true_case_path = __webpack_require__("../../common/temp/default/node_modules/.pnpm/true-case-path@2.2.1/node_modules/true-case-path/index.js");
129
- ;// ../rush-lib/lib-esnext/utilities/executionUtilities.js
129
+ ;// ../rush-lib/lib-intermediate-esm/utilities/executionUtilities.js
130
130
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
131
131
  // See LICENSE in the project root for license information.
132
132
  const IS_WINDOWS = process.platform === 'win32';
@@ -146,7 +146,7 @@ function escapeArgumentIfNeeded(command, isWindows = IS_WINDOWS) {
146
146
  }
147
147
  }
148
148
  //# sourceMappingURL=executionUtilities.js.map
149
- ;// ../rush-lib/lib-esnext/api/EnvironmentConfiguration.js
149
+ ;// ../rush-lib/lib-intermediate-esm/api/EnvironmentConfiguration.js
150
150
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
151
151
  // See LICENSE in the project root for license information.
152
152
 
@@ -738,7 +738,7 @@ EnvironmentConfiguration._absoluteSymlinks = false;
738
738
  EnvironmentConfiguration._allowUnsupportedNodeVersion = false;
739
739
  EnvironmentConfiguration._allowWarningsInSuccessfulBuild = false;
740
740
  //# sourceMappingURL=EnvironmentConfiguration.js.map
741
- ;// ../rush-lib/lib-esnext/api/RushGlobalFolder.js
741
+ ;// ../rush-lib/lib-intermediate-esm/api/RushGlobalFolder.js
742
742
  // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
743
743
  // See LICENSE in the project root for license information.
744
744
 
@@ -770,10 +770,10 @@ class RushGlobalFolder {
770
770
 
771
771
  /***/ },
772
772
 
773
- /***/ "./lib-commonjs/helpers.js"
774
- /*!*********************************!*\
775
- !*** ./lib-commonjs/helpers.js ***!
776
- \*********************************/
773
+ /***/ "./lib-intermediate-commonjs/helpers.js"
774
+ /*!**********************************************!*\
775
+ !*** ./lib-intermediate-commonjs/helpers.js ***!
776
+ \**********************************************/
777
777
  (__unused_webpack_module, exports, __webpack_require__) {
778
778
 
779
779
 
@@ -872,10 +872,10 @@ function requireRushLibUnderFolderPath(folderPath) {
872
872
 
873
873
  /***/ },
874
874
 
875
- /***/ "./lib-commonjs/index.js"
876
- /*!*******************************!*\
877
- !*** ./lib-commonjs/index.js ***!
878
- \*******************************/
875
+ /***/ "./lib-intermediate-commonjs/index.js"
876
+ /*!********************************************!*\
877
+ !*** ./lib-intermediate-commonjs/index.js ***!
878
+ \********************************************/
879
879
  (module, exports, __webpack_require__) {
880
880
 
881
881
  /* module decorator */ module = __webpack_require__.nmd(module);
@@ -921,8 +921,8 @@ exports._rushSdk_loadInternalModule = _rushSdk_loadInternalModule;
921
921
  const path = __importStar(__webpack_require__(/*! node:path */ "node:path"));
922
922
  const node_core_library_1 = __webpack_require__(/*! @rushstack/node-core-library */ "@rushstack/node-core-library");
923
923
  const terminal_1 = __webpack_require__(/*! @rushstack/terminal */ "@rushstack/terminal");
924
- const RushGlobalFolder_1 = __webpack_require__(/*! @microsoft/rush-lib/lib-esnext/api/RushGlobalFolder */ "../rush-lib/lib-esnext/api/RushGlobalFolder.js");
925
- const helpers_1 = __webpack_require__(/*! ./helpers */ "./lib-commonjs/helpers.js");
924
+ const RushGlobalFolder_1 = __webpack_require__(/*! @microsoft/rush-lib/lib/api/RushGlobalFolder */ "../rush-lib/lib-intermediate-esm/api/RushGlobalFolder.js");
925
+ const helpers_1 = __webpack_require__(/*! ./helpers */ "./lib-intermediate-commonjs/helpers.js");
926
926
  const verboseEnabled = typeof process !== 'undefined' &&
927
927
  (process.env.RUSH_SDK_DEBUG === '1' || process.env._RUSH_SDK_DEBUG === '1');
928
928
  const terminal = new terminal_1.Terminal(new terminal_1.ConsoleTerminalProvider({
@@ -1246,7 +1246,7 @@ module.exports = require("util");
1246
1246
  /******/ // startup
1247
1247
  /******/ // Load entry module and return exports
1248
1248
  /******/ // This entry module is referenced by other modules so it can't be inlined
1249
- /******/ var __webpack_exports__ = __webpack_require__("./lib-commonjs/index.js");
1249
+ /******/ var __webpack_exports__ = __webpack_require__("./lib-intermediate-commonjs/index.js");
1250
1250
  /******/ module.exports = __webpack_exports__;
1251
1251
  /******/
1252
1252
  /******/ })()
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","mappings":";;;;;;;;;;AAAY;;AAEZ,QAAQ,iCAAiC,EAAE,mBAAO,CAAC,cAAI;AACvD,QAAQ,WAAW,EAAE,mBAAO,CAAC,cAAI;AACjC,QAAQ,wBAAwB,EAAE,mBAAO,CAAC,kBAAM;AAChD,QAAQ,kBAAkB,EAAE,mBAAO,CAAC,kBAAM;;AAE1C;AACA;AACA;;AAEA;AACA,gCAAgC,aAAa;AAC7C,oCAAoC,YAAY;AAChD;;AAEA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;;AAEA;AACA;AACA,QAAQ,8BAA8B;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,SAAS;AAC9C;AACA;;AAEA,yBAAyB,MAAM;AAC/B;AACA;AACA;AACA;AACA,6EAA6E,SAAS;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;AC7FA;AACA;AACO;AACA;AACP;AACA;AACA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8C;;AClBA;AACA;AACkC;AACgB;AACW;AAC7D;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,wEAAwE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,8DAA8D;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,6DAA6D;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,UAAU;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,+BAA+B;AACtF;AACA;AACA;AACA,oDAAoD,mEAAmE;AACvH,mBAAmB,yDAAyD;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,MAAM,iCAAiC,KAAK;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,6BAAc;AACnC,2EAA2E,uBAAQ;AACnF,2BAA2B,yBAAU;AACrC;AACA;AACA,oDAAoD,uBAAQ;AAC5D;AACA;AACA;AACA;AACA;AACA,uCAAuC,QAAQ;AAC/C,oCAAoC,wBAAS;AAC7C;AACA,kDAAkD,mCAAgB;AAClE,+BAA+B,wBAAS;AACxC;AACA,8BAA8B,OAAO,EAAE,uBAAQ,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oD;;AC9kBA;AACA;AACkC;AACkB;AACkB;AACtE;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,yCAAyC,wBAAwB;AACjE;AACA;AACA;AACA;AACA,wBAAwB,wBAAS,CAAC,uBAAI;AACtC;AACA;AACA;AACA;AACA,gCAAgC,wBAAS,oBAAoB,sBAAsB;AACnF;AACA;AACA,4C;;;;;;;;;;AC3Ba;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;AACA;AACA;AACA;AACA;AACA,2DAA2D,cAAc;AACzE;AACA;AACA;AACA,CAAC;AACD,8CAA6C,EAAE,aAAa,EAAC;AAC7D,kBAAkB,GAAG,kCAAkC,GAAG,qBAAqB;AAC/E,+BAA+B;AAC/B,gBAAgB;AAChB,qCAAqC;AACrC,0BAA0B,mBAAO,CAAC,4BAAW;AAC7C,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;AACA,eAAe,OAAuB;AACtC;AACA;AACA;AACA;AACA,eAAe,OAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,mC;;;;;;;;;;;AC5Fa;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;AACA;AACA;AACA;AACA;AACA,2DAA2D,cAAc;AACzE;AACA;AACA;AACA,CAAC;AACD;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,mCAAmC;AACnC,0BAA0B,mBAAO,CAAC,4BAAW;AAC7C,4BAA4B,mBAAO,CAAC,kEAA8B;AAClE,mBAAmB,mBAAO,CAAC,gDAAqB;AAChD,2BAA2B,mBAAO,CAAC,2GAAqD;AACxF,kBAAkB,mBAAO,CAAC,4CAAW;AACrC;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,yBAAyB;AAClF;AACA;AACA;AACA;AACA;AACA,gEAAgE,yBAAyB;AACzF;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,yBAAyB;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,yBAAyB,mBAAmB,sCAAsC;AACnI;AACA;AACA;AACA;AACA;AACA,wDAAwD,yBAAyB,kBAAkB,qCAAqC;AACxI;AACA;AACA;AACA;AACA,gDAAgD,yBAAyB,mBAAmB,qCAAqC;AACjI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,cAAc;AAC9B;AACA,qDAAqD,yBAAyB;AAC9E;AACA;AACA,yDAAyD,kCAAkC,EAAE,SAAS,OAAO,YAAY;AACzH,uFAAuF,kCAAkC;AACzH;AACA;AACA;AACA,wDAAwD,yBAAyB,2BAA2B,UAAU;AACtH;AACA;AACA;AACA;AACA,gDAAgD,yBAAyB;AACzE;AACA;AACA,kDAAkD,aAAa,2CAA2C,YAAY;AACtH;AACA;AACA,6DAA6D,yBAAyB;AACtF;AACA;AACA;AACA;AACA;AACA,uDAAuD,aAAa;AACpE;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,+CAA+C,yBAAyB;AACxE;AACA;AACA,iEAAiE,yBAAyB;AAC1F;AACA;AACA;AACA;AACA,qCAAqC,+BAA+B;AACpE,2CAA2C,yBAAyB;AACpE;AACA;AACA;AACA;AACA;AACA,oDAAoD,yBAAyB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA,iC;;;;;;;;;;ACvNA,yD;;;;;;;;;;ACAA,gD;;;;;;;;;;ACAA,+B;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,+B;;;;;;;;;;ACAA,iC;;;;;;;;;;ACAA,iC;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WC/BA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;WACA;WACA;WACA;WACA,E;;;;;UEJA;UACA;UACA;UACA","sources":["webpack://@rushstack/rush-sdk/../../common/temp/default/node_modules/.pnpm/true-case-path@2.2.1/node_modules/true-case-path/index.js","webpack://@rushstack/rush-sdk/../rush-lib/lib-esnext/utilities/executionUtilities.js","webpack://@rushstack/rush-sdk/../rush-lib/lib-esnext/api/EnvironmentConfiguration.js","webpack://@rushstack/rush-sdk/../rush-lib/lib-esnext/api/RushGlobalFolder.js","webpack://@rushstack/rush-sdk/./lib-commonjs/helpers.js","webpack://@rushstack/rush-sdk/./lib-commonjs/index.js","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 \"fs\"","webpack://@rushstack/rush-sdk/external node-commonjs \"node:path\"","webpack://@rushstack/rush-sdk/external node-commonjs \"os\"","webpack://@rushstack/rush-sdk/external node-commonjs \"path\"","webpack://@rushstack/rush-sdk/external node-commonjs \"util\"","webpack://@rushstack/rush-sdk/webpack/bootstrap","webpack://@rushstack/rush-sdk/webpack/runtime/define property getters","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/before-startup","webpack://@rushstack/rush-sdk/webpack/startup","webpack://@rushstack/rush-sdk/webpack/after-startup"],"sourcesContent":["'use strict'\n\nconst { readdir: _readdir, readdirSync } = require('fs')\nconst { platform } = require('os')\nconst { isAbsolute, normalize } = require('path')\nconst { promisify: pify } = require('util')\n\nconst readdir = pify(_readdir)\nconst isWindows = platform() === 'win32'\nconst delimiter = isWindows ? '\\\\' : '/'\n\nmodule.exports = {\n trueCasePath: _trueCasePath({ sync: false }),\n trueCasePathSync: _trueCasePath({ sync: true })\n}\n\nfunction getRelevantFilePathSegments(filePath) {\n return filePath.split(delimiter).filter((s) => s !== '')\n}\n\nfunction escapeString(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n}\n\nfunction matchCaseInsensitive(fileOrDirectory, directoryContents, filePath) {\n const caseInsensitiveRegex = new RegExp(\n `^${escapeString(fileOrDirectory)}$`,\n 'i'\n )\n for (const file of directoryContents) {\n if (caseInsensitiveRegex.test(file)) return file\n }\n throw new Error(\n `[true-case-path]: Called with ${filePath}, but no matching file exists`\n )\n}\n\nfunction _trueCasePath({ sync }) {\n return (filePath, basePath) => {\n if (basePath) {\n if (!isAbsolute(basePath)) {\n throw new Error(\n `[true-case-path]: basePath argument must be absolute. Received \"${basePath}\"`\n )\n }\n basePath = normalize(basePath)\n }\n filePath = normalize(filePath)\n const segments = getRelevantFilePathSegments(filePath)\n if (isAbsolute(filePath)) {\n if (basePath) {\n throw new Error(\n '[true-case-path]: filePath must be relative when used with basePath'\n )\n }\n basePath = isWindows\n ? segments.shift().toUpperCase() // drive letter\n : ''\n } else if (!basePath) {\n basePath = process.cwd()\n }\n return sync\n ? iterateSync(basePath, filePath, segments)\n : iterateAsync(basePath, filePath, segments)\n }\n}\n\nfunction iterateSync(basePath, filePath, segments) {\n return segments.reduce(\n (realPath, fileOrDirectory) =>\n realPath +\n delimiter +\n matchCaseInsensitive(\n fileOrDirectory,\n readdirSync(realPath + delimiter),\n filePath\n ),\n basePath\n )\n}\n\nasync function iterateAsync(basePath, filePath, segments) {\n return await segments.reduce(\n async (realPathPromise, fileOrDirectory) =>\n (await realPathPromise) +\n delimiter +\n matchCaseInsensitive(\n fileOrDirectory,\n await readdir((await realPathPromise) + delimiter),\n filePath\n ),\n basePath\n )\n}\n","// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nexport const IS_WINDOWS = process.platform === 'win32';\nexport function escapeArgumentIfNeeded(command, isWindows = IS_WINDOWS) {\n if (command.includes(' ')) {\n if (isWindows) {\n // Windows: use double quotes and escape internal double quotes\n return `\"${command.replace(/\"/g, '\"\"')}\"`;\n }\n else {\n // Unix: use JSON.stringify for proper escaping\n return JSON.stringify(command);\n }\n }\n else {\n return command;\n }\n}\n//# sourceMappingURL=executionUtilities.js.map","// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nimport * as path from 'node:path';\nimport { trueCasePathSync } from 'true-case-path';\nimport { IS_WINDOWS } from '../utilities/executionUtilities';\n/**\n * Names of environment variables used by Rush.\n * @beta\n */\n// eslint-disable-next-line @typescript-eslint/typedef\nexport const EnvironmentVariableNames = {\n /**\n * This variable overrides the temporary folder used by Rush.\n * The default value is \"common/temp\" under the repository root.\n *\n * @remarks This environment variable is not compatible with workspace installs. If attempting\n * to move the PNPM store path, see the `RUSH_PNPM_STORE_PATH` environment variable.\n */\n RUSH_TEMP_FOLDER: 'RUSH_TEMP_FOLDER',\n /**\n * This variable overrides the version of Rush that will be installed by\n * the version selector. The default value is determined by the \"rushVersion\"\n * field from rush.json.\n */\n RUSH_PREVIEW_VERSION: 'RUSH_PREVIEW_VERSION',\n /**\n * If this variable is set to \"1\", Rush will not fail the build when running a version\n * of Node that does not match the criteria specified in the \"nodeSupportedVersionRange\"\n * field from rush.json.\n */\n RUSH_ALLOW_UNSUPPORTED_NODEJS: 'RUSH_ALLOW_UNSUPPORTED_NODEJS',\n /**\n * Setting this environment variable overrides the value of `allowWarningsInSuccessfulBuild`\n * in the `command-line.json` configuration file. Specify `1` to allow warnings in a successful build,\n * or `0` to disallow them. (See the comments in the command-line.json file for more information).\n */\n RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD: 'RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD',\n /**\n * This variable selects a specific installation variant for Rush to use when installing\n * and linking package dependencies.\n * For more information, see the command-line help for the `--variant` parameter\n * and this article: https://rushjs.io/pages/advanced/installation_variants/\n */\n RUSH_VARIANT: 'RUSH_VARIANT',\n /**\n * Specifies the maximum number of concurrent processes to launch during a build.\n * For more information, see the command-line help for the `--parallelism` parameter for \"rush build\".\n */\n RUSH_PARALLELISM: 'RUSH_PARALLELISM',\n /**\n * If this variable is set to \"1\", Rush will create symlinks with absolute paths instead\n * of relative paths. This can be necessary when a repository is moved during a build or\n * if parts of a repository are moved into a sandbox.\n */\n RUSH_ABSOLUTE_SYMLINKS: 'RUSH_ABSOLUTE_SYMLINKS',\n /**\n * When using PNPM as the package manager, this variable can be used to configure the path that\n * PNPM will use as the store directory.\n *\n * If a relative path is used, then the store path will be resolved relative to the process's\n * current working directory. An absolute path is recommended.\n */\n RUSH_PNPM_STORE_PATH: 'RUSH_PNPM_STORE_PATH',\n /**\n * When using PNPM as the package manager, this variable can be used to control whether or not PNPM\n * validates the integrity of the PNPM store during installation. The value of this environment variable must be\n * `1` (for true) or `0` (for false). If not specified, defaults to the value in .npmrc.\n */\n RUSH_PNPM_VERIFY_STORE_INTEGRITY: 'RUSH_PNPM_VERIFY_STORE_INTEGRITY',\n /**\n * This environment variable can be used to specify the `--target-folder` parameter\n * for the \"rush deploy\" command.\n */\n RUSH_DEPLOY_TARGET_FOLDER: 'RUSH_DEPLOY_TARGET_FOLDER',\n /**\n * Overrides the location of the `~/.rush` global folder where Rush stores temporary files.\n *\n * @remarks\n *\n * Most of the temporary files created by Rush are stored separately for each monorepo working folder,\n * to avoid issues of concurrency and compatibility between tool versions. However, a small set\n * of files (e.g. installations of the `@microsoft/rush-lib` engine and the package manager) are stored\n * in a global folder to speed up installations. The default location is `~/.rush` on POSIX-like\n * operating systems or `C:\\Users\\YourName` on Windows.\n *\n * Use `RUSH_GLOBAL_FOLDER` to specify a different folder path. This is useful for example if a Windows\n * group policy forbids executing scripts installed in a user's home directory.\n *\n * POSIX is a registered trademark of the Institute of Electrical and Electronic Engineers, Inc.\n */\n RUSH_GLOBAL_FOLDER: 'RUSH_GLOBAL_FOLDER',\n /**\n * Provides a credential for a remote build cache, if configured. This credential overrides any cached credentials.\n *\n * @remarks\n * Setting this environment variable overrides whatever credential has been saved in the\n * local cloud cache credentials using `rush update-cloud-credentials`.\n *\n *\n * If Azure Blob Storage is used to store cache entries, this must be a SAS token serialized as query\n * parameters.\n *\n * For information on SAS tokens, see here: https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview\n */\n RUSH_BUILD_CACHE_CREDENTIAL: 'RUSH_BUILD_CACHE_CREDENTIAL',\n /**\n * Setting this environment variable overrides the value of `buildCacheEnabled` in the `build-cache.json`\n * configuration file.\n *\n * @remarks\n * Specify `1` to enable the build cache or `0` to disable it.\n *\n * If there is no build cache configured, then this environment variable is ignored.\n */\n RUSH_BUILD_CACHE_ENABLED: 'RUSH_BUILD_CACHE_ENABLED',\n /**\n * Overrides the value of `isCacheWriteAllowed` in the `build-cache.json` configuration file. The value of this\n * environment variable must be `1` (for true) or `0` (for false). If there is no build cache configured, then\n * this environment variable is ignored.\n */\n RUSH_BUILD_CACHE_WRITE_ALLOWED: 'RUSH_BUILD_CACHE_WRITE_ALLOWED',\n /**\n * Set this environment variable to a JSON string to override the build cache configuration that normally lives\n * at `common/config/rush/build-cache.json`.\n *\n * This is useful for testing purposes, or for OSS repos that are have a local-only cache, but can have\n * a different cache configuration in CI/CD pipelines.\n *\n * @remarks\n * This is similar to {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH}, but it allows you to specify\n * a JSON string instead of a file path. The two environment variables are mutually exclusive, meaning you can\n * only use one of them at a time.\n */\n RUSH_BUILD_CACHE_OVERRIDE_JSON: 'RUSH_BUILD_CACHE_OVERRIDE_JSON',\n /**\n * Set this environment variable to the path to a `build-cache.json` file to override the build cache configuration\n * that normally lives at `common/config/rush/build-cache.json`.\n *\n * This is useful for testing purposes, or for OSS repos that are have a local-only cache, but can have\n * a different cache configuration in CI/CD pipelines.\n *\n * @remarks\n * This is similar to {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON}, but it allows you to specify\n * a file path instead of a JSON string. The two environment variables are mutually exclusive, meaning you can\n * only use one of them at a time.\n */\n RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH: 'RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH',\n /**\n * Setting this environment variable opts into running with cobuilds. The context id should be the same across\n * multiple VMs, but changed when it is a new round of cobuilds.\n *\n * e.g. `Build.BuildNumber` in Azure DevOps Pipeline.\n *\n * @remarks\n * If there is no cobuild configured, then this environment variable is ignored.\n */\n RUSH_COBUILD_CONTEXT_ID: 'RUSH_COBUILD_CONTEXT_ID',\n /**\n * Explicitly specifies a name for each participating cobuild runner.\n *\n * Setting this environment variable opts into running with cobuilds.\n *\n * @remarks\n * This environment variable is optional, if it is not provided, a random id is used.\n *\n * If there is no cobuild configured, then this environment variable is ignored.\n */\n RUSH_COBUILD_RUNNER_ID: 'RUSH_COBUILD_RUNNER_ID',\n /**\n * If this variable is set to \"1\", When getting distributed builds, Rush will automatically handle the leaf project\n * with build cache \"disabled\" by writing to the cache in a special \"log files only mode\". This is useful when you\n * want to use Cobuilds to improve the performance in CI validations and the leaf projects have not enabled cache.\n */\n RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED: 'RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED',\n /**\n * Explicitly specifies the path for the Git binary that is invoked by certain Rush operations.\n */\n RUSH_GIT_BINARY_PATH: 'RUSH_GIT_BINARY_PATH',\n /**\n * Explicitly specifies the path for the `tar` binary that is invoked by certain Rush operations.\n */\n RUSH_TAR_BINARY_PATH: 'RUSH_TAR_BINARY_PATH',\n /**\n * Internal variable used by `rushx` when recursively invoking another `rushx` process, to avoid\n * nesting event hooks.\n */\n _RUSH_RECURSIVE_RUSHX_CALL: '_RUSH_RECURSIVE_RUSHX_CALL',\n /**\n * Internal variable that explicitly specifies the path for the version of `@microsoft/rush-lib` being executed.\n * Will be set upon loading Rush.\n */\n _RUSH_LIB_PATH: '_RUSH_LIB_PATH',\n /**\n * When Rush executes shell scripts, it sometimes changes the working directory to be a project folder or\n * the repository root folder. The original working directory (where the Rush command was invoked) is assigned\n * to the the child process's `RUSH_INVOKED_FOLDER` environment variable, in case it is needed by the script.\n *\n * @remarks\n * The `RUSH_INVOKED_FOLDER` variable is the same idea as the `INIT_CWD` variable that package managers\n * assign when they execute lifecycle scripts.\n */\n RUSH_INVOKED_FOLDER: 'RUSH_INVOKED_FOLDER',\n /**\n * When running a hook script, this environment variable communicates the original arguments\n * passed to the `rush` or `rushx` command.\n *\n * @remarks\n * Unlike `RUSH_INVOKED_FOLDER`, the `RUSH_INVOKED_ARGS` variable is only available for hook scripts.\n * Other lifecycle scripts should not make assumptions about Rush's command line syntax\n * if Rush did not explicitly pass along command-line parameters to their process.\n */\n RUSH_INVOKED_ARGS: 'RUSH_INVOKED_ARGS'\n};\n/**\n * Provides Rush-specific environment variable data. All Rush environment variables must start with \"RUSH_\". This class\n * is designed to be used by RushConfiguration.\n * @beta\n *\n * @remarks\n * Initialize will throw if any unknown parameters are present.\n */\nexport class EnvironmentConfiguration {\n /**\n * If true, the environment configuration has been validated and initialized.\n */\n static get hasBeenValidated() {\n return EnvironmentConfiguration._hasBeenValidated;\n }\n /**\n * An override for the common/temp folder path.\n */\n static get rushTempFolderOverride() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._rushTempFolderOverride;\n }\n /**\n * If \"1\", create symlinks with absolute paths instead of relative paths.\n * See {@link EnvironmentVariableNames.RUSH_ABSOLUTE_SYMLINKS}\n */\n static get absoluteSymlinks() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._absoluteSymlinks;\n }\n /**\n * If this environment variable is set to \"1\", the Node.js version check will print a warning\n * instead of causing a hard error if the environment's Node.js version doesn't match the\n * version specifier in `rush.json`'s \"nodeSupportedVersionRange\" property.\n *\n * See {@link EnvironmentVariableNames.RUSH_ALLOW_UNSUPPORTED_NODEJS}.\n */\n static get allowUnsupportedNodeVersion() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._allowUnsupportedNodeVersion;\n }\n /**\n * Setting this environment variable overrides the value of `allowWarningsInSuccessfulBuild`\n * in the `command-line.json` configuration file. Specify `1` to allow warnings in a successful build,\n * or `0` to disallow them. (See the comments in the command-line.json file for more information).\n */\n static get allowWarningsInSuccessfulBuild() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._allowWarningsInSuccessfulBuild;\n }\n /**\n * An override for the PNPM store path, if `pnpmStore` configuration is set to 'path'\n * See {@link EnvironmentVariableNames.RUSH_PNPM_STORE_PATH}\n */\n static get pnpmStorePathOverride() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._pnpmStorePathOverride;\n }\n /**\n * If specified, enables or disables integrity verification of the pnpm store during install.\n * See {@link EnvironmentVariableNames.RUSH_PNPM_VERIFY_STORE_INTEGRITY}\n */\n static get pnpmVerifyStoreIntegrity() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._pnpmVerifyStoreIntegrity;\n }\n /**\n * Overrides the location of the `~/.rush` global folder where Rush stores temporary files.\n * See {@link EnvironmentVariableNames.RUSH_GLOBAL_FOLDER}\n */\n static get rushGlobalFolderOverride() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._rushGlobalFolderOverride;\n }\n /**\n * Provides a credential for reading from and writing to a remote build cache, if configured.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_CREDENTIAL}\n */\n static get buildCacheCredential() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheCredential;\n }\n /**\n * If set, enables or disables the cloud build cache feature.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_ENABLED}\n */\n static get buildCacheEnabled() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheEnabled;\n }\n /**\n * If set, enables or disables writing to the cloud build cache.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_WRITE_ALLOWED}\n */\n static get buildCacheWriteAllowed() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheWriteAllowed;\n }\n /**\n * If set, overrides the build cache configuration that normally lives at `common/config/rush/build-cache.json`.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON}\n */\n static get buildCacheOverrideJson() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheOverrideJson;\n }\n /**\n * If set, overrides the build cache configuration that normally lives at `common/config/rush/build-cache.json`.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH}\n */\n static get buildCacheOverrideJsonFilePath() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheOverrideJsonFilePath;\n }\n /**\n * Provides a determined cobuild context id if configured\n * See {@link EnvironmentVariableNames.RUSH_COBUILD_CONTEXT_ID}\n */\n static get cobuildContextId() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._cobuildContextId;\n }\n /**\n * Provides a determined cobuild runner id if configured\n * See {@link EnvironmentVariableNames.RUSH_COBUILD_RUNNER_ID}\n */\n static get cobuildRunnerId() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._cobuildRunnerId;\n }\n /**\n * If set, enables or disables the cobuild leaf project log only feature.\n * See {@link EnvironmentVariableNames.RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED}\n */\n static get cobuildLeafProjectLogOnlyAllowed() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._cobuildLeafProjectLogOnlyAllowed;\n }\n /**\n * Allows the git binary path to be explicitly provided.\n * See {@link EnvironmentVariableNames.RUSH_GIT_BINARY_PATH}\n */\n static get gitBinaryPath() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._gitBinaryPath;\n }\n /**\n * Allows the tar binary path to be explicitly provided.\n * See {@link EnvironmentVariableNames.RUSH_TAR_BINARY_PATH}\n */\n static get tarBinaryPath() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._tarBinaryPath;\n }\n /**\n * The front-end RushVersionSelector relies on `RUSH_GLOBAL_FOLDER`, so its value must be read before\n * `EnvironmentConfiguration` is initialized (and actually before the correct version of `EnvironmentConfiguration`\n * is even installed). Thus we need to read this environment variable differently from all the others.\n * @internal\n */\n static _getRushGlobalFolderOverride(processEnv) {\n const value = processEnv[EnvironmentVariableNames.RUSH_GLOBAL_FOLDER];\n if (value) {\n const normalizedValue = EnvironmentConfiguration._normalizeDeepestParentFolderPath(value);\n return normalizedValue;\n }\n }\n /**\n * Reads and validates environment variables. If any are invalid, this function will throw.\n */\n static validate(options = {}) {\n var _a, _b, _c;\n EnvironmentConfiguration.reset();\n const unknownEnvVariables = [];\n for (const envVarName in process.env) {\n if (process.env.hasOwnProperty(envVarName) && envVarName.match(/^RUSH_/i)) {\n const value = process.env[envVarName];\n // Environment variables are only case-insensitive on Windows\n const normalizedEnvVarName = IS_WINDOWS ? envVarName.toUpperCase() : envVarName;\n switch (normalizedEnvVarName) {\n case EnvironmentVariableNames.RUSH_TEMP_FOLDER: {\n EnvironmentConfiguration._rushTempFolderOverride =\n value && !options.doNotNormalizePaths\n ? EnvironmentConfiguration._normalizeDeepestParentFolderPath(value) || value\n : value;\n break;\n }\n case EnvironmentVariableNames.RUSH_ABSOLUTE_SYMLINKS: {\n EnvironmentConfiguration._absoluteSymlinks =\n (_a = EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_ABSOLUTE_SYMLINKS, value)) !== null && _a !== void 0 ? _a : false;\n break;\n }\n case EnvironmentVariableNames.RUSH_ALLOW_UNSUPPORTED_NODEJS: {\n if (value === 'true' || value === 'false') {\n // Small, undocumented acceptance of old \"true\" and \"false\" values for\n // users of RUSH_ALLOW_UNSUPPORTED_NODEJS in rush pre-v5.46.\n EnvironmentConfiguration._allowUnsupportedNodeVersion = value === 'true';\n }\n else {\n EnvironmentConfiguration._allowUnsupportedNodeVersion =\n (_b = EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_ALLOW_UNSUPPORTED_NODEJS, value)) !== null && _b !== void 0 ? _b : false;\n }\n break;\n }\n case EnvironmentVariableNames.RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD: {\n EnvironmentConfiguration._allowWarningsInSuccessfulBuild =\n (_c = EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD, value)) !== null && _c !== void 0 ? _c : false;\n break;\n }\n case EnvironmentVariableNames.RUSH_PNPM_STORE_PATH: {\n EnvironmentConfiguration._pnpmStorePathOverride =\n value && !options.doNotNormalizePaths\n ? EnvironmentConfiguration._normalizeDeepestParentFolderPath(value) || value\n : value;\n break;\n }\n case EnvironmentVariableNames.RUSH_PNPM_VERIFY_STORE_INTEGRITY: {\n EnvironmentConfiguration._pnpmVerifyStoreIntegrity =\n value === '1' ? true : value === '0' ? false : undefined;\n break;\n }\n case EnvironmentVariableNames.RUSH_GLOBAL_FOLDER: {\n // Handled specially below\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_CREDENTIAL: {\n EnvironmentConfiguration._buildCacheCredential = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_ENABLED: {\n EnvironmentConfiguration._buildCacheEnabled =\n EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_BUILD_CACHE_ENABLED, value);\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_WRITE_ALLOWED: {\n EnvironmentConfiguration._buildCacheWriteAllowed =\n EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_BUILD_CACHE_WRITE_ALLOWED, value);\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON: {\n EnvironmentConfiguration._buildCacheOverrideJson = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH: {\n EnvironmentConfiguration._buildCacheOverrideJsonFilePath = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_COBUILD_CONTEXT_ID: {\n EnvironmentConfiguration._cobuildContextId = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_COBUILD_RUNNER_ID: {\n EnvironmentConfiguration._cobuildRunnerId = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED: {\n EnvironmentConfiguration._cobuildLeafProjectLogOnlyAllowed =\n EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED, value);\n break;\n }\n case EnvironmentVariableNames.RUSH_GIT_BINARY_PATH: {\n EnvironmentConfiguration._gitBinaryPath = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_TAR_BINARY_PATH: {\n EnvironmentConfiguration._tarBinaryPath = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_PARALLELISM:\n case EnvironmentVariableNames.RUSH_PREVIEW_VERSION:\n case EnvironmentVariableNames.RUSH_VARIANT:\n case EnvironmentVariableNames.RUSH_DEPLOY_TARGET_FOLDER:\n // Handled by @microsoft/rush front end\n break;\n case EnvironmentVariableNames.RUSH_INVOKED_FOLDER:\n case EnvironmentVariableNames.RUSH_INVOKED_ARGS:\n case EnvironmentVariableNames._RUSH_LIB_PATH:\n // Assigned by Rush itself\n break;\n case EnvironmentVariableNames._RUSH_RECURSIVE_RUSHX_CALL:\n // Assigned/read internally by RushXCommandLine\n break;\n default:\n unknownEnvVariables.push(envVarName);\n break;\n }\n }\n }\n // This strictness intends to catch mistakes where variables are misspelled or not used correctly.\n if (unknownEnvVariables.length > 0) {\n throw new Error('The following environment variables were found with the \"RUSH_\" prefix, but they are not ' +\n `recognized by this version of Rush: ${unknownEnvVariables.join(', ')}`);\n }\n if (EnvironmentConfiguration._buildCacheOverrideJsonFilePath &&\n EnvironmentConfiguration._buildCacheOverrideJson) {\n throw new Error(`Environment variable ${EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH} and ` +\n `${EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON} are mutually exclusive. ` +\n `Only one may be specified.`);\n }\n // See doc comment for EnvironmentConfiguration._getRushGlobalFolderOverride().\n EnvironmentConfiguration._rushGlobalFolderOverride =\n EnvironmentConfiguration._getRushGlobalFolderOverride(process.env);\n EnvironmentConfiguration._hasBeenValidated = true;\n }\n /**\n * Resets EnvironmentConfiguration into an un-initialized state.\n */\n static reset() {\n EnvironmentConfiguration._rushTempFolderOverride = undefined;\n EnvironmentConfiguration._hasBeenValidated = false;\n }\n static _ensureValidated() {\n if (!EnvironmentConfiguration._hasBeenValidated) {\n EnvironmentConfiguration.validate();\n }\n }\n static parseBooleanEnvironmentVariable(name, value) {\n if (value === '' || value === undefined) {\n return undefined;\n }\n else if (value === '0') {\n return false;\n }\n else if (value === '1') {\n return true;\n }\n else {\n throw new Error(`Invalid value \"${value}\" for the environment variable ${name}. Valid choices are 0 or 1.`);\n }\n }\n /**\n * Given a path to a folder (that may or may not exist), normalize the path, including casing,\n * to the first existing parent folder in the path.\n *\n * If no existing path can be found (for example, if the root is a volume that doesn't exist),\n * this function returns undefined.\n *\n * @example\n * If the following path exists on disk: `C:\\Folder1\\folder2\\`\n * _normalizeFirstExistingFolderPath('c:\\\\folder1\\\\folder2\\\\temp\\\\subfolder')\n * returns 'C:\\\\Folder1\\\\folder2\\\\temp\\\\subfolder'\n */\n static _normalizeDeepestParentFolderPath(folderPath) {\n folderPath = path.normalize(folderPath);\n const endsWithSlash = folderPath.charAt(folderPath.length - 1) === path.sep;\n const parsedPath = path.parse(folderPath);\n const pathRoot = parsedPath.root;\n const pathWithoutRoot = parsedPath.dir.substr(pathRoot.length);\n const pathParts = [...pathWithoutRoot.split(path.sep), parsedPath.name].filter((part) => !!part);\n // Starting with all path sections, and eliminating one from the end during each loop iteration,\n // run trueCasePathSync. If trueCasePathSync returns without exception, we've found a subset\n // of the path that exists and we've now gotten the correct casing.\n //\n // Once we've found a parent folder that exists, append the path sections that didn't exist.\n for (let i = pathParts.length; i >= 0; i--) {\n const constructedPath = path.join(pathRoot, ...pathParts.slice(0, i));\n try {\n const normalizedConstructedPath = trueCasePathSync(constructedPath);\n const result = path.join(normalizedConstructedPath, ...pathParts.slice(i));\n if (endsWithSlash) {\n return `${result}${path.sep}`;\n }\n else {\n return result;\n }\n }\n catch (e) {\n // This path doesn't exist, continue to the next subpath\n }\n }\n return undefined;\n }\n}\nEnvironmentConfiguration._hasBeenValidated = false;\nEnvironmentConfiguration._absoluteSymlinks = false;\nEnvironmentConfiguration._allowUnsupportedNodeVersion = false;\nEnvironmentConfiguration._allowWarningsInSuccessfulBuild = false;\n//# sourceMappingURL=EnvironmentConfiguration.js.map","// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nimport * as path from 'node:path';\nimport { User } from '@rushstack/node-core-library';\nimport { EnvironmentConfiguration } from './EnvironmentConfiguration';\n/**\n * This class provides global folders that are used for rush's internal install locations.\n *\n * @internal\n */\nexport class RushGlobalFolder {\n constructor() {\n // Because RushGlobalFolder is used by the front-end VersionSelector before EnvironmentConfiguration\n // is initialized, we need to read it using a special internal API.\n const rushGlobalFolderOverride = EnvironmentConfiguration._getRushGlobalFolderOverride(process.env);\n if (rushGlobalFolderOverride !== undefined) {\n this.path = rushGlobalFolderOverride;\n }\n else {\n this.path = path.join(User.getHomeFolder(), '.rush');\n }\n const normalizedNodeVersion = process.version.match(/^[a-z0-9\\-\\.]+$/i)\n ? process.version\n : 'unknown-version';\n this.nodeSpecificPath = path.join(this.path, `node-${normalizedNodeVersion}`);\n }\n}\n//# sourceMappingURL=RushGlobalFolder.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 () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sdkContext = exports.RUSH_LIB_PATH_ENV_VAR_NAME = exports.RUSH_LIB_NAME = void 0;\nexports.tryFindRushJsonLocation = tryFindRushJsonLocation;\nexports._require = _require;\nexports.requireRushLibUnderFolderPath = requireRushLibUnderFolderPath;\nconst path = __importStar(require(\"node: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}\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}\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}\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 () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports._rushSdk_loadInternalModule = _rushSdk_loadInternalModule;\nconst path = __importStar(require(\"node:path\"));\nconst node_core_library_1 = require(\"@rushstack/node-core-library\");\nconst terminal_1 = require(\"@rushstack/terminal\");\nconst RushGlobalFolder_1 = require(\"@microsoft/rush-lib/lib-esnext/api/RushGlobalFolder\");\nconst helpers_1 = require(\"./helpers\");\nconst verboseEnabled = typeof process !== 'undefined' &&\n (process.env.RUSH_SDK_DEBUG === '1' || process.env._RUSH_SDK_DEBUG === '1');\nconst terminal = new terminal_1.Terminal(new terminal_1.ConsoleTerminalProvider({\n verboseEnabled\n}));\nlet errorMessage = '';\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 (helpers_1.sdkContext.rushLibModule === undefined) {\n helpers_1.sdkContext.rushLibModule =\n global.___rush___rushLibModule ||\n global.___rush___rushLibModuleFromEnvironment ||\n global.___rush___rushLibModuleFromRushGlobalFolder ||\n global.___rush___rushLibModuleFromInstallAndRunRush;\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 (helpers_1.sdkContext.rushLibModule === undefined) {\n const importingPath = (_a = module === null || module === void 0 ? void 0 : module.parent) === null || _a === void 0 ? void 0 : _a.filename;\n if (importingPath) {\n const callerPackageFolder = node_core_library_1.PackageJsonLookup.instance.tryGetPackageFolderFor(importingPath);\n if (callerPackageFolder !== undefined) {\n const callerPackageJson = (0, helpers_1._require)(path.join(callerPackageFolder, 'package.json'));\n // Does the caller properly declare a dependency on rush-lib?\n if ((callerPackageJson.dependencies && callerPackageJson.dependencies[helpers_1.RUSH_LIB_NAME] !== undefined) ||\n (callerPackageJson.devDependencies &&\n callerPackageJson.devDependencies[helpers_1.RUSH_LIB_NAME] !== undefined) ||\n (callerPackageJson.peerDependencies &&\n callerPackageJson.peerDependencies[helpers_1.RUSH_LIB_NAME] !== undefined)) {\n // Try to resolve rush-lib from the caller's folder\n terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from caller package`);\n try {\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(callerPackageFolder);\n }\n catch (error) {\n // If we fail to resolve it, ignore the error\n terminal.writeVerboseLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} from caller package`);\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 (helpers_1.sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModule = helpers_1.sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} from caller`);\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 (helpers_1.sdkContext.rushLibModule === undefined) {\n const rushLibPath = process.env[helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME];\n if (rushLibPath) {\n terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME} from caller package`);\n try {\n helpers_1.sdkContext.rushLibModule = (0, helpers_1._require)(rushLibPath);\n }\n catch (error) {\n // Log this as a warning, since it is unexpected to define an incorrect value of the variable.\n terminal.writeWarningLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} via process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME}`);\n }\n if (helpers_1.sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModuleFromEnvironment = helpers_1.sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} from process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME}`);\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 first load the rush-lib version in rush global folder. If the expected version is not installed,\n// using install-run-rush.js to obtain the appropriate rush-lib version for the monorepo.\nif (helpers_1.sdkContext.rushLibModule === undefined) {\n try {\n const rushJsonPath = (0, helpers_1.tryFindRushJsonLocation)(process.cwd());\n if (!rushJsonPath) {\n throw new Error('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 const monorepoRoot = path.dirname(rushJsonPath);\n const rushJson = node_core_library_1.JsonFile.load(rushJsonPath);\n const { rushVersion } = rushJson;\n try {\n terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from rush global folder`);\n const rushGlobalFolder = new RushGlobalFolder_1.RushGlobalFolder();\n // The path needs to keep align with the logic inside RushVersionSelector\n const expectedGlobalRushInstalledFolder = `${rushGlobalFolder.nodeSpecificPath}${path.sep}rush-${rushVersion}`;\n terminal.writeVerboseLine(`The expected global rush installed folder is \"${expectedGlobalRushInstalledFolder}\"`);\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(expectedGlobalRushInstalledFolder);\n }\n catch (e) {\n terminal.writeVerboseLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} from rush global folder: ${e.message}`);\n }\n if (helpers_1.sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModuleFromRushGlobalFolder = helpers_1.sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} installed from rush global folder`);\n }\n else {\n const installRunNodeModuleFolder = `${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 terminal.writeVerboseLine(`Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`);\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);\n }\n catch (e1) {\n let installAndRunRushStderrContent = '';\n try {\n const installAndRunRushJSPath = `${monorepoRoot}/common/scripts/install-run-rush.js`;\n terminal.writeLine('The Rush engine has not been installed yet. Invoking install-run-rush.js...');\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 // Retry to load \"rush-lib\" after install-run-rush run\n terminal.writeVerboseLine(`Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush a second time`);\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);\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 terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`);\n }\n }\n }\n catch (e) {\n // no-catch\n errorMessage = e.message;\n }\n}\nif (helpers_1.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// Based on TypeScript's __exportStar()\nfor (const property in helpers_1.sdkContext.rushLibModule) {\n if (property !== 'default' && !exports.hasOwnProperty(property)) {\n const rushLibModuleForClosure = helpers_1.sdkContext.rushLibModule;\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 * Used by the .js stubs for path-based imports of `@microsoft/rush-lib` internal APIs.\n */\nfunction _rushSdk_loadInternalModule(srcImportPath) {\n if (!exports._RushInternals) {\n throw new Error(`Rush version ${exports.Rush.version} does not support internal API imports via rush-sdk`);\n }\n return exports._RushInternals.loadModule(srcImportPath);\n}\n//# sourceMappingURL=index.js.map","module.exports = require(\"@rushstack/node-core-library\");","module.exports = require(\"@rushstack/terminal\");","module.exports = require(\"fs\");","module.exports = require(\"node:path\");","module.exports = require(\"os\");","module.exports = require(\"path\");","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// Check if module exists (development only)\n\tif (__webpack_modules__[moduleId] === undefined) {\n\t\tvar e = new Error(\"Cannot find module '\" + moduleId + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\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","// 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__.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};","","// 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/index.js\");\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"index.js","mappings":";;;;;;;;;;AAAY;;AAEZ,QAAQ,iCAAiC,EAAE,mBAAO,CAAC,cAAI;AACvD,QAAQ,WAAW,EAAE,mBAAO,CAAC,cAAI;AACjC,QAAQ,wBAAwB,EAAE,mBAAO,CAAC,kBAAM;AAChD,QAAQ,kBAAkB,EAAE,mBAAO,CAAC,kBAAM;;AAE1C;AACA;AACA;;AAEA;AACA,gCAAgC,aAAa;AAC7C,oCAAoC,YAAY;AAChD;;AAEA;AACA;AACA;;AAEA;AACA,+BAA+B;AAC/B;;AAEA;AACA;AACA,QAAQ,8BAA8B;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,SAAS;AAC9C;AACA;;AAEA,yBAAyB,MAAM;AAC/B;AACA;AACA;AACA;AACA,6EAA6E,SAAS;AACtF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;AC7FA;AACA;AACO;AACA;AACP;AACA;AACA;AACA,uBAAuB,4BAA4B;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8C;;AClBA;AACA;AACkC;AACgB;AACW;AAC7D;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,wEAAwE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,8DAA8D;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,6DAA6D;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY;AACZ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCAAgC;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CAA6C,UAAU;AACvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,+BAA+B;AACtF;AACA;AACA;AACA,oDAAoD,mEAAmE;AACvH,mBAAmB,yDAAyD;AAC5E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,MAAM,iCAAiC,KAAK;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,6BAAc;AACnC,2EAA2E,uBAAQ;AACnF,2BAA2B,yBAAU;AACrC;AACA;AACA,oDAAoD,uBAAQ;AAC5D;AACA;AACA;AACA;AACA;AACA,uCAAuC,QAAQ;AAC/C,oCAAoC,wBAAS;AAC7C;AACA,kDAAkD,mCAAgB;AAClE,+BAA+B,wBAAS;AACxC;AACA,8BAA8B,OAAO,EAAE,uBAAQ,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oD;;AC9kBA;AACA;AACkC;AACkB;AACkB;AACtE;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA,yCAAyC,wBAAwB;AACjE;AACA;AACA;AACA;AACA,wBAAwB,wBAAS,CAAC,uBAAI;AACtC;AACA;AACA;AACA;AACA,gCAAgC,wBAAS,oBAAoB,sBAAsB;AACnF;AACA;AACA,4C;;;;;;;;;;AC3Ba;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;AACA;AACA;AACA;AACA;AACA,2DAA2D,cAAc;AACzE;AACA;AACA;AACA,CAAC;AACD,8CAA6C,EAAE,aAAa,EAAC;AAC7D,kBAAkB,GAAG,kCAAkC,GAAG,qBAAqB;AAC/E,+BAA+B;AAC/B,gBAAgB;AAChB,qCAAqC;AACrC,0BAA0B,mBAAO,CAAC,4BAAW;AAC7C,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;AACA,eAAe,OAAuB;AACtC;AACA;AACA;AACA;AACA,eAAe,OAAuB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,mC;;;;;;;;;;;AC5Fa;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;AACA;AACA;AACA;AACA;AACA,2DAA2D,cAAc;AACzE;AACA;AACA;AACA,CAAC;AACD;AACA,8CAA6C,EAAE,aAAa,EAAC;AAC7D,mCAAmC;AACnC,0BAA0B,mBAAO,CAAC,4BAAW;AAC7C,4BAA4B,mBAAO,CAAC,kEAA8B;AAClE,mBAAmB,mBAAO,CAAC,gDAAqB;AAChD,2BAA2B,mBAAO,CAAC,8GAA8C;AACjF,kBAAkB,mBAAO,CAAC,yDAAW;AACrC;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,yBAAyB;AAClF;AACA;AACA;AACA;AACA;AACA,gEAAgE,yBAAyB;AACzF;AACA;AACA;AACA;AACA;AACA;AACA,wDAAwD,yBAAyB;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,yBAAyB,mBAAmB,sCAAsC;AACnI;AACA;AACA;AACA;AACA;AACA,wDAAwD,yBAAyB,kBAAkB,qCAAqC;AACxI;AACA;AACA;AACA;AACA,gDAAgD,yBAAyB,mBAAmB,qCAAqC;AACjI;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,cAAc;AAC9B;AACA,qDAAqD,yBAAyB;AAC9E;AACA;AACA,yDAAyD,kCAAkC,EAAE,SAAS,OAAO,YAAY;AACzH,uFAAuF,kCAAkC;AACzH;AACA;AACA;AACA,wDAAwD,yBAAyB,2BAA2B,UAAU;AACtH;AACA;AACA;AACA;AACA,gDAAgD,yBAAyB;AACzE;AACA;AACA,kDAAkD,aAAa,2CAA2C,YAAY;AACtH;AACA;AACA,6DAA6D,yBAAyB;AACtF;AACA;AACA;AACA;AACA;AACA,uDAAuD,aAAa;AACpE;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,+CAA+C,yBAAyB;AACxE;AACA;AACA,iEAAiE,yBAAyB;AAC1F;AACA;AACA;AACA;AACA,qCAAqC,+BAA+B;AACpE,2CAA2C,yBAAyB;AACpE;AACA;AACA;AACA;AACA;AACA,oDAAoD,yBAAyB;AAC7E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,sBAAsB;AAC9D;AACA;AACA;AACA,iC;;;;;;;;;;ACvNA,yD;;;;;;;;;;ACAA,gD;;;;;;;;;;ACAA,+B;;;;;;;;;;ACAA,sC;;;;;;;;;;ACAA,+B;;;;;;;;;;ACAA,iC;;;;;;;;;;ACAA,iC;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;;WC/BA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA,E;;;;;WCPA,wF;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;WACA;WACA;WACA;WACA,E;;;;;UEJA;UACA;UACA;UACA","sources":["webpack://@rushstack/rush-sdk/../../common/temp/default/node_modules/.pnpm/true-case-path@2.2.1/node_modules/true-case-path/index.js","webpack://@rushstack/rush-sdk/../rush-lib/lib-intermediate-esm/utilities/executionUtilities.js","webpack://@rushstack/rush-sdk/../rush-lib/lib-intermediate-esm/api/EnvironmentConfiguration.js","webpack://@rushstack/rush-sdk/../rush-lib/lib-intermediate-esm/api/RushGlobalFolder.js","webpack://@rushstack/rush-sdk/./lib-intermediate-commonjs/helpers.js","webpack://@rushstack/rush-sdk/./lib-intermediate-commonjs/index.js","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 \"fs\"","webpack://@rushstack/rush-sdk/external node-commonjs \"node:path\"","webpack://@rushstack/rush-sdk/external node-commonjs \"os\"","webpack://@rushstack/rush-sdk/external node-commonjs \"path\"","webpack://@rushstack/rush-sdk/external node-commonjs \"util\"","webpack://@rushstack/rush-sdk/webpack/bootstrap","webpack://@rushstack/rush-sdk/webpack/runtime/define property getters","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/before-startup","webpack://@rushstack/rush-sdk/webpack/startup","webpack://@rushstack/rush-sdk/webpack/after-startup"],"sourcesContent":["'use strict'\n\nconst { readdir: _readdir, readdirSync } = require('fs')\nconst { platform } = require('os')\nconst { isAbsolute, normalize } = require('path')\nconst { promisify: pify } = require('util')\n\nconst readdir = pify(_readdir)\nconst isWindows = platform() === 'win32'\nconst delimiter = isWindows ? '\\\\' : '/'\n\nmodule.exports = {\n trueCasePath: _trueCasePath({ sync: false }),\n trueCasePathSync: _trueCasePath({ sync: true })\n}\n\nfunction getRelevantFilePathSegments(filePath) {\n return filePath.split(delimiter).filter((s) => s !== '')\n}\n\nfunction escapeString(str) {\n return str.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&')\n}\n\nfunction matchCaseInsensitive(fileOrDirectory, directoryContents, filePath) {\n const caseInsensitiveRegex = new RegExp(\n `^${escapeString(fileOrDirectory)}$`,\n 'i'\n )\n for (const file of directoryContents) {\n if (caseInsensitiveRegex.test(file)) return file\n }\n throw new Error(\n `[true-case-path]: Called with ${filePath}, but no matching file exists`\n )\n}\n\nfunction _trueCasePath({ sync }) {\n return (filePath, basePath) => {\n if (basePath) {\n if (!isAbsolute(basePath)) {\n throw new Error(\n `[true-case-path]: basePath argument must be absolute. Received \"${basePath}\"`\n )\n }\n basePath = normalize(basePath)\n }\n filePath = normalize(filePath)\n const segments = getRelevantFilePathSegments(filePath)\n if (isAbsolute(filePath)) {\n if (basePath) {\n throw new Error(\n '[true-case-path]: filePath must be relative when used with basePath'\n )\n }\n basePath = isWindows\n ? segments.shift().toUpperCase() // drive letter\n : ''\n } else if (!basePath) {\n basePath = process.cwd()\n }\n return sync\n ? iterateSync(basePath, filePath, segments)\n : iterateAsync(basePath, filePath, segments)\n }\n}\n\nfunction iterateSync(basePath, filePath, segments) {\n return segments.reduce(\n (realPath, fileOrDirectory) =>\n realPath +\n delimiter +\n matchCaseInsensitive(\n fileOrDirectory,\n readdirSync(realPath + delimiter),\n filePath\n ),\n basePath\n )\n}\n\nasync function iterateAsync(basePath, filePath, segments) {\n return await segments.reduce(\n async (realPathPromise, fileOrDirectory) =>\n (await realPathPromise) +\n delimiter +\n matchCaseInsensitive(\n fileOrDirectory,\n await readdir((await realPathPromise) + delimiter),\n filePath\n ),\n basePath\n )\n}\n","// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nexport const IS_WINDOWS = process.platform === 'win32';\nexport function escapeArgumentIfNeeded(command, isWindows = IS_WINDOWS) {\n if (command.includes(' ')) {\n if (isWindows) {\n // Windows: use double quotes and escape internal double quotes\n return `\"${command.replace(/\"/g, '\"\"')}\"`;\n }\n else {\n // Unix: use JSON.stringify for proper escaping\n return JSON.stringify(command);\n }\n }\n else {\n return command;\n }\n}\n//# sourceMappingURL=executionUtilities.js.map","// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nimport * as path from 'node:path';\nimport { trueCasePathSync } from 'true-case-path';\nimport { IS_WINDOWS } from '../utilities/executionUtilities';\n/**\n * Names of environment variables used by Rush.\n * @beta\n */\n// eslint-disable-next-line @typescript-eslint/typedef\nexport const EnvironmentVariableNames = {\n /**\n * This variable overrides the temporary folder used by Rush.\n * The default value is \"common/temp\" under the repository root.\n *\n * @remarks This environment variable is not compatible with workspace installs. If attempting\n * to move the PNPM store path, see the `RUSH_PNPM_STORE_PATH` environment variable.\n */\n RUSH_TEMP_FOLDER: 'RUSH_TEMP_FOLDER',\n /**\n * This variable overrides the version of Rush that will be installed by\n * the version selector. The default value is determined by the \"rushVersion\"\n * field from rush.json.\n */\n RUSH_PREVIEW_VERSION: 'RUSH_PREVIEW_VERSION',\n /**\n * If this variable is set to \"1\", Rush will not fail the build when running a version\n * of Node that does not match the criteria specified in the \"nodeSupportedVersionRange\"\n * field from rush.json.\n */\n RUSH_ALLOW_UNSUPPORTED_NODEJS: 'RUSH_ALLOW_UNSUPPORTED_NODEJS',\n /**\n * Setting this environment variable overrides the value of `allowWarningsInSuccessfulBuild`\n * in the `command-line.json` configuration file. Specify `1` to allow warnings in a successful build,\n * or `0` to disallow them. (See the comments in the command-line.json file for more information).\n */\n RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD: 'RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD',\n /**\n * This variable selects a specific installation variant for Rush to use when installing\n * and linking package dependencies.\n * For more information, see the command-line help for the `--variant` parameter\n * and this article: https://rushjs.io/pages/advanced/installation_variants/\n */\n RUSH_VARIANT: 'RUSH_VARIANT',\n /**\n * Specifies the maximum number of concurrent processes to launch during a build.\n * For more information, see the command-line help for the `--parallelism` parameter for \"rush build\".\n */\n RUSH_PARALLELISM: 'RUSH_PARALLELISM',\n /**\n * If this variable is set to \"1\", Rush will create symlinks with absolute paths instead\n * of relative paths. This can be necessary when a repository is moved during a build or\n * if parts of a repository are moved into a sandbox.\n */\n RUSH_ABSOLUTE_SYMLINKS: 'RUSH_ABSOLUTE_SYMLINKS',\n /**\n * When using PNPM as the package manager, this variable can be used to configure the path that\n * PNPM will use as the store directory.\n *\n * If a relative path is used, then the store path will be resolved relative to the process's\n * current working directory. An absolute path is recommended.\n */\n RUSH_PNPM_STORE_PATH: 'RUSH_PNPM_STORE_PATH',\n /**\n * When using PNPM as the package manager, this variable can be used to control whether or not PNPM\n * validates the integrity of the PNPM store during installation. The value of this environment variable must be\n * `1` (for true) or `0` (for false). If not specified, defaults to the value in .npmrc.\n */\n RUSH_PNPM_VERIFY_STORE_INTEGRITY: 'RUSH_PNPM_VERIFY_STORE_INTEGRITY',\n /**\n * This environment variable can be used to specify the `--target-folder` parameter\n * for the \"rush deploy\" command.\n */\n RUSH_DEPLOY_TARGET_FOLDER: 'RUSH_DEPLOY_TARGET_FOLDER',\n /**\n * Overrides the location of the `~/.rush` global folder where Rush stores temporary files.\n *\n * @remarks\n *\n * Most of the temporary files created by Rush are stored separately for each monorepo working folder,\n * to avoid issues of concurrency and compatibility between tool versions. However, a small set\n * of files (e.g. installations of the `@microsoft/rush-lib` engine and the package manager) are stored\n * in a global folder to speed up installations. The default location is `~/.rush` on POSIX-like\n * operating systems or `C:\\Users\\YourName` on Windows.\n *\n * Use `RUSH_GLOBAL_FOLDER` to specify a different folder path. This is useful for example if a Windows\n * group policy forbids executing scripts installed in a user's home directory.\n *\n * POSIX is a registered trademark of the Institute of Electrical and Electronic Engineers, Inc.\n */\n RUSH_GLOBAL_FOLDER: 'RUSH_GLOBAL_FOLDER',\n /**\n * Provides a credential for a remote build cache, if configured. This credential overrides any cached credentials.\n *\n * @remarks\n * Setting this environment variable overrides whatever credential has been saved in the\n * local cloud cache credentials using `rush update-cloud-credentials`.\n *\n *\n * If Azure Blob Storage is used to store cache entries, this must be a SAS token serialized as query\n * parameters.\n *\n * For information on SAS tokens, see here: https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview\n */\n RUSH_BUILD_CACHE_CREDENTIAL: 'RUSH_BUILD_CACHE_CREDENTIAL',\n /**\n * Setting this environment variable overrides the value of `buildCacheEnabled` in the `build-cache.json`\n * configuration file.\n *\n * @remarks\n * Specify `1` to enable the build cache or `0` to disable it.\n *\n * If there is no build cache configured, then this environment variable is ignored.\n */\n RUSH_BUILD_CACHE_ENABLED: 'RUSH_BUILD_CACHE_ENABLED',\n /**\n * Overrides the value of `isCacheWriteAllowed` in the `build-cache.json` configuration file. The value of this\n * environment variable must be `1` (for true) or `0` (for false). If there is no build cache configured, then\n * this environment variable is ignored.\n */\n RUSH_BUILD_CACHE_WRITE_ALLOWED: 'RUSH_BUILD_CACHE_WRITE_ALLOWED',\n /**\n * Set this environment variable to a JSON string to override the build cache configuration that normally lives\n * at `common/config/rush/build-cache.json`.\n *\n * This is useful for testing purposes, or for OSS repos that are have a local-only cache, but can have\n * a different cache configuration in CI/CD pipelines.\n *\n * @remarks\n * This is similar to {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH}, but it allows you to specify\n * a JSON string instead of a file path. The two environment variables are mutually exclusive, meaning you can\n * only use one of them at a time.\n */\n RUSH_BUILD_CACHE_OVERRIDE_JSON: 'RUSH_BUILD_CACHE_OVERRIDE_JSON',\n /**\n * Set this environment variable to the path to a `build-cache.json` file to override the build cache configuration\n * that normally lives at `common/config/rush/build-cache.json`.\n *\n * This is useful for testing purposes, or for OSS repos that are have a local-only cache, but can have\n * a different cache configuration in CI/CD pipelines.\n *\n * @remarks\n * This is similar to {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON}, but it allows you to specify\n * a file path instead of a JSON string. The two environment variables are mutually exclusive, meaning you can\n * only use one of them at a time.\n */\n RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH: 'RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH',\n /**\n * Setting this environment variable opts into running with cobuilds. The context id should be the same across\n * multiple VMs, but changed when it is a new round of cobuilds.\n *\n * e.g. `Build.BuildNumber` in Azure DevOps Pipeline.\n *\n * @remarks\n * If there is no cobuild configured, then this environment variable is ignored.\n */\n RUSH_COBUILD_CONTEXT_ID: 'RUSH_COBUILD_CONTEXT_ID',\n /**\n * Explicitly specifies a name for each participating cobuild runner.\n *\n * Setting this environment variable opts into running with cobuilds.\n *\n * @remarks\n * This environment variable is optional, if it is not provided, a random id is used.\n *\n * If there is no cobuild configured, then this environment variable is ignored.\n */\n RUSH_COBUILD_RUNNER_ID: 'RUSH_COBUILD_RUNNER_ID',\n /**\n * If this variable is set to \"1\", When getting distributed builds, Rush will automatically handle the leaf project\n * with build cache \"disabled\" by writing to the cache in a special \"log files only mode\". This is useful when you\n * want to use Cobuilds to improve the performance in CI validations and the leaf projects have not enabled cache.\n */\n RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED: 'RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED',\n /**\n * Explicitly specifies the path for the Git binary that is invoked by certain Rush operations.\n */\n RUSH_GIT_BINARY_PATH: 'RUSH_GIT_BINARY_PATH',\n /**\n * Explicitly specifies the path for the `tar` binary that is invoked by certain Rush operations.\n */\n RUSH_TAR_BINARY_PATH: 'RUSH_TAR_BINARY_PATH',\n /**\n * Internal variable used by `rushx` when recursively invoking another `rushx` process, to avoid\n * nesting event hooks.\n */\n _RUSH_RECURSIVE_RUSHX_CALL: '_RUSH_RECURSIVE_RUSHX_CALL',\n /**\n * Internal variable that explicitly specifies the path for the version of `@microsoft/rush-lib` being executed.\n * Will be set upon loading Rush.\n */\n _RUSH_LIB_PATH: '_RUSH_LIB_PATH',\n /**\n * When Rush executes shell scripts, it sometimes changes the working directory to be a project folder or\n * the repository root folder. The original working directory (where the Rush command was invoked) is assigned\n * to the the child process's `RUSH_INVOKED_FOLDER` environment variable, in case it is needed by the script.\n *\n * @remarks\n * The `RUSH_INVOKED_FOLDER` variable is the same idea as the `INIT_CWD` variable that package managers\n * assign when they execute lifecycle scripts.\n */\n RUSH_INVOKED_FOLDER: 'RUSH_INVOKED_FOLDER',\n /**\n * When running a hook script, this environment variable communicates the original arguments\n * passed to the `rush` or `rushx` command.\n *\n * @remarks\n * Unlike `RUSH_INVOKED_FOLDER`, the `RUSH_INVOKED_ARGS` variable is only available for hook scripts.\n * Other lifecycle scripts should not make assumptions about Rush's command line syntax\n * if Rush did not explicitly pass along command-line parameters to their process.\n */\n RUSH_INVOKED_ARGS: 'RUSH_INVOKED_ARGS'\n};\n/**\n * Provides Rush-specific environment variable data. All Rush environment variables must start with \"RUSH_\". This class\n * is designed to be used by RushConfiguration.\n * @beta\n *\n * @remarks\n * Initialize will throw if any unknown parameters are present.\n */\nexport class EnvironmentConfiguration {\n /**\n * If true, the environment configuration has been validated and initialized.\n */\n static get hasBeenValidated() {\n return EnvironmentConfiguration._hasBeenValidated;\n }\n /**\n * An override for the common/temp folder path.\n */\n static get rushTempFolderOverride() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._rushTempFolderOverride;\n }\n /**\n * If \"1\", create symlinks with absolute paths instead of relative paths.\n * See {@link EnvironmentVariableNames.RUSH_ABSOLUTE_SYMLINKS}\n */\n static get absoluteSymlinks() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._absoluteSymlinks;\n }\n /**\n * If this environment variable is set to \"1\", the Node.js version check will print a warning\n * instead of causing a hard error if the environment's Node.js version doesn't match the\n * version specifier in `rush.json`'s \"nodeSupportedVersionRange\" property.\n *\n * See {@link EnvironmentVariableNames.RUSH_ALLOW_UNSUPPORTED_NODEJS}.\n */\n static get allowUnsupportedNodeVersion() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._allowUnsupportedNodeVersion;\n }\n /**\n * Setting this environment variable overrides the value of `allowWarningsInSuccessfulBuild`\n * in the `command-line.json` configuration file. Specify `1` to allow warnings in a successful build,\n * or `0` to disallow them. (See the comments in the command-line.json file for more information).\n */\n static get allowWarningsInSuccessfulBuild() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._allowWarningsInSuccessfulBuild;\n }\n /**\n * An override for the PNPM store path, if `pnpmStore` configuration is set to 'path'\n * See {@link EnvironmentVariableNames.RUSH_PNPM_STORE_PATH}\n */\n static get pnpmStorePathOverride() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._pnpmStorePathOverride;\n }\n /**\n * If specified, enables or disables integrity verification of the pnpm store during install.\n * See {@link EnvironmentVariableNames.RUSH_PNPM_VERIFY_STORE_INTEGRITY}\n */\n static get pnpmVerifyStoreIntegrity() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._pnpmVerifyStoreIntegrity;\n }\n /**\n * Overrides the location of the `~/.rush` global folder where Rush stores temporary files.\n * See {@link EnvironmentVariableNames.RUSH_GLOBAL_FOLDER}\n */\n static get rushGlobalFolderOverride() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._rushGlobalFolderOverride;\n }\n /**\n * Provides a credential for reading from and writing to a remote build cache, if configured.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_CREDENTIAL}\n */\n static get buildCacheCredential() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheCredential;\n }\n /**\n * If set, enables or disables the cloud build cache feature.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_ENABLED}\n */\n static get buildCacheEnabled() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheEnabled;\n }\n /**\n * If set, enables or disables writing to the cloud build cache.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_WRITE_ALLOWED}\n */\n static get buildCacheWriteAllowed() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheWriteAllowed;\n }\n /**\n * If set, overrides the build cache configuration that normally lives at `common/config/rush/build-cache.json`.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON}\n */\n static get buildCacheOverrideJson() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheOverrideJson;\n }\n /**\n * If set, overrides the build cache configuration that normally lives at `common/config/rush/build-cache.json`.\n * See {@link EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH}\n */\n static get buildCacheOverrideJsonFilePath() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._buildCacheOverrideJsonFilePath;\n }\n /**\n * Provides a determined cobuild context id if configured\n * See {@link EnvironmentVariableNames.RUSH_COBUILD_CONTEXT_ID}\n */\n static get cobuildContextId() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._cobuildContextId;\n }\n /**\n * Provides a determined cobuild runner id if configured\n * See {@link EnvironmentVariableNames.RUSH_COBUILD_RUNNER_ID}\n */\n static get cobuildRunnerId() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._cobuildRunnerId;\n }\n /**\n * If set, enables or disables the cobuild leaf project log only feature.\n * See {@link EnvironmentVariableNames.RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED}\n */\n static get cobuildLeafProjectLogOnlyAllowed() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._cobuildLeafProjectLogOnlyAllowed;\n }\n /**\n * Allows the git binary path to be explicitly provided.\n * See {@link EnvironmentVariableNames.RUSH_GIT_BINARY_PATH}\n */\n static get gitBinaryPath() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._gitBinaryPath;\n }\n /**\n * Allows the tar binary path to be explicitly provided.\n * See {@link EnvironmentVariableNames.RUSH_TAR_BINARY_PATH}\n */\n static get tarBinaryPath() {\n EnvironmentConfiguration._ensureValidated();\n return EnvironmentConfiguration._tarBinaryPath;\n }\n /**\n * The front-end RushVersionSelector relies on `RUSH_GLOBAL_FOLDER`, so its value must be read before\n * `EnvironmentConfiguration` is initialized (and actually before the correct version of `EnvironmentConfiguration`\n * is even installed). Thus we need to read this environment variable differently from all the others.\n * @internal\n */\n static _getRushGlobalFolderOverride(processEnv) {\n const value = processEnv[EnvironmentVariableNames.RUSH_GLOBAL_FOLDER];\n if (value) {\n const normalizedValue = EnvironmentConfiguration._normalizeDeepestParentFolderPath(value);\n return normalizedValue;\n }\n }\n /**\n * Reads and validates environment variables. If any are invalid, this function will throw.\n */\n static validate(options = {}) {\n var _a, _b, _c;\n EnvironmentConfiguration.reset();\n const unknownEnvVariables = [];\n for (const envVarName in process.env) {\n if (process.env.hasOwnProperty(envVarName) && envVarName.match(/^RUSH_/i)) {\n const value = process.env[envVarName];\n // Environment variables are only case-insensitive on Windows\n const normalizedEnvVarName = IS_WINDOWS ? envVarName.toUpperCase() : envVarName;\n switch (normalizedEnvVarName) {\n case EnvironmentVariableNames.RUSH_TEMP_FOLDER: {\n EnvironmentConfiguration._rushTempFolderOverride =\n value && !options.doNotNormalizePaths\n ? EnvironmentConfiguration._normalizeDeepestParentFolderPath(value) || value\n : value;\n break;\n }\n case EnvironmentVariableNames.RUSH_ABSOLUTE_SYMLINKS: {\n EnvironmentConfiguration._absoluteSymlinks =\n (_a = EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_ABSOLUTE_SYMLINKS, value)) !== null && _a !== void 0 ? _a : false;\n break;\n }\n case EnvironmentVariableNames.RUSH_ALLOW_UNSUPPORTED_NODEJS: {\n if (value === 'true' || value === 'false') {\n // Small, undocumented acceptance of old \"true\" and \"false\" values for\n // users of RUSH_ALLOW_UNSUPPORTED_NODEJS in rush pre-v5.46.\n EnvironmentConfiguration._allowUnsupportedNodeVersion = value === 'true';\n }\n else {\n EnvironmentConfiguration._allowUnsupportedNodeVersion =\n (_b = EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_ALLOW_UNSUPPORTED_NODEJS, value)) !== null && _b !== void 0 ? _b : false;\n }\n break;\n }\n case EnvironmentVariableNames.RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD: {\n EnvironmentConfiguration._allowWarningsInSuccessfulBuild =\n (_c = EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_ALLOW_WARNINGS_IN_SUCCESSFUL_BUILD, value)) !== null && _c !== void 0 ? _c : false;\n break;\n }\n case EnvironmentVariableNames.RUSH_PNPM_STORE_PATH: {\n EnvironmentConfiguration._pnpmStorePathOverride =\n value && !options.doNotNormalizePaths\n ? EnvironmentConfiguration._normalizeDeepestParentFolderPath(value) || value\n : value;\n break;\n }\n case EnvironmentVariableNames.RUSH_PNPM_VERIFY_STORE_INTEGRITY: {\n EnvironmentConfiguration._pnpmVerifyStoreIntegrity =\n value === '1' ? true : value === '0' ? false : undefined;\n break;\n }\n case EnvironmentVariableNames.RUSH_GLOBAL_FOLDER: {\n // Handled specially below\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_CREDENTIAL: {\n EnvironmentConfiguration._buildCacheCredential = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_ENABLED: {\n EnvironmentConfiguration._buildCacheEnabled =\n EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_BUILD_CACHE_ENABLED, value);\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_WRITE_ALLOWED: {\n EnvironmentConfiguration._buildCacheWriteAllowed =\n EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_BUILD_CACHE_WRITE_ALLOWED, value);\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON: {\n EnvironmentConfiguration._buildCacheOverrideJson = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH: {\n EnvironmentConfiguration._buildCacheOverrideJsonFilePath = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_COBUILD_CONTEXT_ID: {\n EnvironmentConfiguration._cobuildContextId = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_COBUILD_RUNNER_ID: {\n EnvironmentConfiguration._cobuildRunnerId = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED: {\n EnvironmentConfiguration._cobuildLeafProjectLogOnlyAllowed =\n EnvironmentConfiguration.parseBooleanEnvironmentVariable(EnvironmentVariableNames.RUSH_COBUILD_LEAF_PROJECT_LOG_ONLY_ALLOWED, value);\n break;\n }\n case EnvironmentVariableNames.RUSH_GIT_BINARY_PATH: {\n EnvironmentConfiguration._gitBinaryPath = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_TAR_BINARY_PATH: {\n EnvironmentConfiguration._tarBinaryPath = value;\n break;\n }\n case EnvironmentVariableNames.RUSH_PARALLELISM:\n case EnvironmentVariableNames.RUSH_PREVIEW_VERSION:\n case EnvironmentVariableNames.RUSH_VARIANT:\n case EnvironmentVariableNames.RUSH_DEPLOY_TARGET_FOLDER:\n // Handled by @microsoft/rush front end\n break;\n case EnvironmentVariableNames.RUSH_INVOKED_FOLDER:\n case EnvironmentVariableNames.RUSH_INVOKED_ARGS:\n case EnvironmentVariableNames._RUSH_LIB_PATH:\n // Assigned by Rush itself\n break;\n case EnvironmentVariableNames._RUSH_RECURSIVE_RUSHX_CALL:\n // Assigned/read internally by RushXCommandLine\n break;\n default:\n unknownEnvVariables.push(envVarName);\n break;\n }\n }\n }\n // This strictness intends to catch mistakes where variables are misspelled or not used correctly.\n if (unknownEnvVariables.length > 0) {\n throw new Error('The following environment variables were found with the \"RUSH_\" prefix, but they are not ' +\n `recognized by this version of Rush: ${unknownEnvVariables.join(', ')}`);\n }\n if (EnvironmentConfiguration._buildCacheOverrideJsonFilePath &&\n EnvironmentConfiguration._buildCacheOverrideJson) {\n throw new Error(`Environment variable ${EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON_FILE_PATH} and ` +\n `${EnvironmentVariableNames.RUSH_BUILD_CACHE_OVERRIDE_JSON} are mutually exclusive. ` +\n `Only one may be specified.`);\n }\n // See doc comment for EnvironmentConfiguration._getRushGlobalFolderOverride().\n EnvironmentConfiguration._rushGlobalFolderOverride =\n EnvironmentConfiguration._getRushGlobalFolderOverride(process.env);\n EnvironmentConfiguration._hasBeenValidated = true;\n }\n /**\n * Resets EnvironmentConfiguration into an un-initialized state.\n */\n static reset() {\n EnvironmentConfiguration._rushTempFolderOverride = undefined;\n EnvironmentConfiguration._hasBeenValidated = false;\n }\n static _ensureValidated() {\n if (!EnvironmentConfiguration._hasBeenValidated) {\n EnvironmentConfiguration.validate();\n }\n }\n static parseBooleanEnvironmentVariable(name, value) {\n if (value === '' || value === undefined) {\n return undefined;\n }\n else if (value === '0') {\n return false;\n }\n else if (value === '1') {\n return true;\n }\n else {\n throw new Error(`Invalid value \"${value}\" for the environment variable ${name}. Valid choices are 0 or 1.`);\n }\n }\n /**\n * Given a path to a folder (that may or may not exist), normalize the path, including casing,\n * to the first existing parent folder in the path.\n *\n * If no existing path can be found (for example, if the root is a volume that doesn't exist),\n * this function returns undefined.\n *\n * @example\n * If the following path exists on disk: `C:\\Folder1\\folder2\\`\n * _normalizeFirstExistingFolderPath('c:\\\\folder1\\\\folder2\\\\temp\\\\subfolder')\n * returns 'C:\\\\Folder1\\\\folder2\\\\temp\\\\subfolder'\n */\n static _normalizeDeepestParentFolderPath(folderPath) {\n folderPath = path.normalize(folderPath);\n const endsWithSlash = folderPath.charAt(folderPath.length - 1) === path.sep;\n const parsedPath = path.parse(folderPath);\n const pathRoot = parsedPath.root;\n const pathWithoutRoot = parsedPath.dir.substr(pathRoot.length);\n const pathParts = [...pathWithoutRoot.split(path.sep), parsedPath.name].filter((part) => !!part);\n // Starting with all path sections, and eliminating one from the end during each loop iteration,\n // run trueCasePathSync. If trueCasePathSync returns without exception, we've found a subset\n // of the path that exists and we've now gotten the correct casing.\n //\n // Once we've found a parent folder that exists, append the path sections that didn't exist.\n for (let i = pathParts.length; i >= 0; i--) {\n const constructedPath = path.join(pathRoot, ...pathParts.slice(0, i));\n try {\n const normalizedConstructedPath = trueCasePathSync(constructedPath);\n const result = path.join(normalizedConstructedPath, ...pathParts.slice(i));\n if (endsWithSlash) {\n return `${result}${path.sep}`;\n }\n else {\n return result;\n }\n }\n catch (e) {\n // This path doesn't exist, continue to the next subpath\n }\n }\n return undefined;\n }\n}\nEnvironmentConfiguration._hasBeenValidated = false;\nEnvironmentConfiguration._absoluteSymlinks = false;\nEnvironmentConfiguration._allowUnsupportedNodeVersion = false;\nEnvironmentConfiguration._allowWarningsInSuccessfulBuild = false;\n//# sourceMappingURL=EnvironmentConfiguration.js.map","// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\nimport * as path from 'node:path';\nimport { User } from '@rushstack/node-core-library';\nimport { EnvironmentConfiguration } from './EnvironmentConfiguration';\n/**\n * This class provides global folders that are used for rush's internal install locations.\n *\n * @internal\n */\nexport class RushGlobalFolder {\n constructor() {\n // Because RushGlobalFolder is used by the front-end VersionSelector before EnvironmentConfiguration\n // is initialized, we need to read it using a special internal API.\n const rushGlobalFolderOverride = EnvironmentConfiguration._getRushGlobalFolderOverride(process.env);\n if (rushGlobalFolderOverride !== undefined) {\n this.path = rushGlobalFolderOverride;\n }\n else {\n this.path = path.join(User.getHomeFolder(), '.rush');\n }\n const normalizedNodeVersion = process.version.match(/^[a-z0-9\\-\\.]+$/i)\n ? process.version\n : 'unknown-version';\n this.nodeSpecificPath = path.join(this.path, `node-${normalizedNodeVersion}`);\n }\n}\n//# sourceMappingURL=RushGlobalFolder.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 () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sdkContext = exports.RUSH_LIB_PATH_ENV_VAR_NAME = exports.RUSH_LIB_NAME = void 0;\nexports.tryFindRushJsonLocation = tryFindRushJsonLocation;\nexports._require = _require;\nexports.requireRushLibUnderFolderPath = requireRushLibUnderFolderPath;\nconst path = __importStar(require(\"node: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}\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}\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}\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 () {\n var ownKeys = function(o) {\n ownKeys = Object.getOwnPropertyNames || function (o) {\n var ar = [];\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\n return ar;\n };\n return ownKeys(o);\n };\n return function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\n __setModuleDefault(result, mod);\n return result;\n };\n})();\nvar _a;\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports._rushSdk_loadInternalModule = _rushSdk_loadInternalModule;\nconst path = __importStar(require(\"node:path\"));\nconst node_core_library_1 = require(\"@rushstack/node-core-library\");\nconst terminal_1 = require(\"@rushstack/terminal\");\nconst RushGlobalFolder_1 = require(\"@microsoft/rush-lib/lib/api/RushGlobalFolder\");\nconst helpers_1 = require(\"./helpers\");\nconst verboseEnabled = typeof process !== 'undefined' &&\n (process.env.RUSH_SDK_DEBUG === '1' || process.env._RUSH_SDK_DEBUG === '1');\nconst terminal = new terminal_1.Terminal(new terminal_1.ConsoleTerminalProvider({\n verboseEnabled\n}));\nlet errorMessage = '';\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 (helpers_1.sdkContext.rushLibModule === undefined) {\n helpers_1.sdkContext.rushLibModule =\n global.___rush___rushLibModule ||\n global.___rush___rushLibModuleFromEnvironment ||\n global.___rush___rushLibModuleFromRushGlobalFolder ||\n global.___rush___rushLibModuleFromInstallAndRunRush;\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 (helpers_1.sdkContext.rushLibModule === undefined) {\n const importingPath = (_a = module === null || module === void 0 ? void 0 : module.parent) === null || _a === void 0 ? void 0 : _a.filename;\n if (importingPath) {\n const callerPackageFolder = node_core_library_1.PackageJsonLookup.instance.tryGetPackageFolderFor(importingPath);\n if (callerPackageFolder !== undefined) {\n const callerPackageJson = (0, helpers_1._require)(path.join(callerPackageFolder, 'package.json'));\n // Does the caller properly declare a dependency on rush-lib?\n if ((callerPackageJson.dependencies && callerPackageJson.dependencies[helpers_1.RUSH_LIB_NAME] !== undefined) ||\n (callerPackageJson.devDependencies &&\n callerPackageJson.devDependencies[helpers_1.RUSH_LIB_NAME] !== undefined) ||\n (callerPackageJson.peerDependencies &&\n callerPackageJson.peerDependencies[helpers_1.RUSH_LIB_NAME] !== undefined)) {\n // Try to resolve rush-lib from the caller's folder\n terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from caller package`);\n try {\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(callerPackageFolder);\n }\n catch (error) {\n // If we fail to resolve it, ignore the error\n terminal.writeVerboseLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} from caller package`);\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 (helpers_1.sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModule = helpers_1.sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} from caller`);\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 (helpers_1.sdkContext.rushLibModule === undefined) {\n const rushLibPath = process.env[helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME];\n if (rushLibPath) {\n terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME} from caller package`);\n try {\n helpers_1.sdkContext.rushLibModule = (0, helpers_1._require)(rushLibPath);\n }\n catch (error) {\n // Log this as a warning, since it is unexpected to define an incorrect value of the variable.\n terminal.writeWarningLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} via process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME}`);\n }\n if (helpers_1.sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModuleFromEnvironment = helpers_1.sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} from process.env.${helpers_1.RUSH_LIB_PATH_ENV_VAR_NAME}`);\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 first load the rush-lib version in rush global folder. If the expected version is not installed,\n// using install-run-rush.js to obtain the appropriate rush-lib version for the monorepo.\nif (helpers_1.sdkContext.rushLibModule === undefined) {\n try {\n const rushJsonPath = (0, helpers_1.tryFindRushJsonLocation)(process.cwd());\n if (!rushJsonPath) {\n throw new Error('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 const monorepoRoot = path.dirname(rushJsonPath);\n const rushJson = node_core_library_1.JsonFile.load(rushJsonPath);\n const { rushVersion } = rushJson;\n try {\n terminal.writeVerboseLine(`Try to load ${helpers_1.RUSH_LIB_NAME} from rush global folder`);\n const rushGlobalFolder = new RushGlobalFolder_1.RushGlobalFolder();\n // The path needs to keep align with the logic inside RushVersionSelector\n const expectedGlobalRushInstalledFolder = `${rushGlobalFolder.nodeSpecificPath}${path.sep}rush-${rushVersion}`;\n terminal.writeVerboseLine(`The expected global rush installed folder is \"${expectedGlobalRushInstalledFolder}\"`);\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(expectedGlobalRushInstalledFolder);\n }\n catch (e) {\n terminal.writeVerboseLine(`Failed to load ${helpers_1.RUSH_LIB_NAME} from rush global folder: ${e.message}`);\n }\n if (helpers_1.sdkContext.rushLibModule !== undefined) {\n // to track which scenario is active and how it got initialized.\n global.___rush___rushLibModuleFromRushGlobalFolder = helpers_1.sdkContext.rushLibModule;\n terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} installed from rush global folder`);\n }\n else {\n const installRunNodeModuleFolder = `${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 terminal.writeVerboseLine(`Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`);\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);\n }\n catch (e1) {\n let installAndRunRushStderrContent = '';\n try {\n const installAndRunRushJSPath = `${monorepoRoot}/common/scripts/install-run-rush.js`;\n terminal.writeLine('The Rush engine has not been installed yet. Invoking install-run-rush.js...');\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 // Retry to load \"rush-lib\" after install-run-rush run\n terminal.writeVerboseLine(`Trying to load ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush a second time`);\n helpers_1.sdkContext.rushLibModule = (0, helpers_1.requireRushLibUnderFolderPath)(installRunNodeModuleFolder);\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 terminal.writeVerboseLine(`Loaded ${helpers_1.RUSH_LIB_NAME} installed by install-run-rush`);\n }\n }\n }\n catch (e) {\n // no-catch\n errorMessage = e.message;\n }\n}\nif (helpers_1.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// Based on TypeScript's __exportStar()\nfor (const property in helpers_1.sdkContext.rushLibModule) {\n if (property !== 'default' && !exports.hasOwnProperty(property)) {\n const rushLibModuleForClosure = helpers_1.sdkContext.rushLibModule;\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 * Used by the .js stubs for path-based imports of `@microsoft/rush-lib` internal APIs.\n */\nfunction _rushSdk_loadInternalModule(srcImportPath) {\n if (!exports._RushInternals) {\n throw new Error(`Rush version ${exports.Rush.version} does not support internal API imports via rush-sdk`);\n }\n return exports._RushInternals.loadModule(srcImportPath);\n}\n//# sourceMappingURL=index.js.map","module.exports = require(\"@rushstack/node-core-library\");","module.exports = require(\"@rushstack/terminal\");","module.exports = require(\"fs\");","module.exports = require(\"node:path\");","module.exports = require(\"os\");","module.exports = require(\"path\");","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// Check if module exists (development only)\n\tif (__webpack_modules__[moduleId] === undefined) {\n\t\tvar e = new Error(\"Cannot find module '\" + moduleId + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\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","// 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__.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};","","// 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-intermediate-commonjs/index.js\");\n",""],"names":[],"sourceRoot":""}