@rushstack/rush-sdk 5.90.2 → 5.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/README.md +46 -11
  2. package/dist/rush-lib.d.ts +77 -11
  3. package/lib/api/ApprovedPackagesConfiguration.d.ts +74 -0
  4. package/lib/api/ApprovedPackagesConfiguration.js +1 -0
  5. package/lib/api/ApprovedPackagesPolicy.d.ts +54 -0
  6. package/lib/api/ApprovedPackagesPolicy.js +1 -0
  7. package/lib/api/BuildCacheConfiguration.d.ts +77 -0
  8. package/lib/api/BuildCacheConfiguration.js +1 -0
  9. package/lib/api/ChangeFile.d.ts +42 -0
  10. package/lib/api/ChangeFile.js +1 -0
  11. package/lib/api/ChangeManagement.d.ts +85 -0
  12. package/lib/api/ChangeManagement.js +1 -0
  13. package/lib/api/ChangeManager.d.ts +16 -0
  14. package/lib/api/ChangeManager.js +1 -0
  15. package/lib/api/Changelog.d.ts +74 -0
  16. package/lib/api/Changelog.js +1 -0
  17. package/lib/api/CommandLineConfiguration.d.ts +161 -0
  18. package/lib/api/CommandLineConfiguration.js +1 -0
  19. package/lib/api/CommandLineJson.d.ts +251 -0
  20. package/lib/api/CommandLineJson.js +1 -0
  21. package/lib/api/CommonVersionsConfiguration.d.ts +96 -0
  22. package/lib/api/CommonVersionsConfiguration.js +1 -0
  23. package/lib/api/EnvironmentConfiguration.d.ts +258 -0
  24. package/lib/api/EnvironmentConfiguration.js +1 -0
  25. package/lib/api/EventHooks.d.ts +42 -0
  26. package/lib/api/EventHooks.js +1 -0
  27. package/lib/api/ExperimentsConfiguration.d.ts +62 -0
  28. package/lib/api/ExperimentsConfiguration.js +1 -0
  29. package/lib/api/LastInstallFlag.d.ts +73 -0
  30. package/lib/api/LastInstallFlag.js +1 -0
  31. package/lib/api/LastLinkFlag.d.ts +41 -0
  32. package/lib/api/LastLinkFlag.js +1 -0
  33. package/lib/api/PackageJsonEditor.d.ts +79 -0
  34. package/lib/api/PackageJsonEditor.js +1 -0
  35. package/lib/api/PackageNameParsers.d.ts +18 -0
  36. package/lib/api/PackageNameParsers.js +1 -0
  37. package/lib/api/Rush.d.ts +91 -0
  38. package/lib/api/Rush.js +1 -0
  39. package/lib/api/RushConfiguration.d.ts +595 -0
  40. package/lib/api/RushConfiguration.js +1 -0
  41. package/lib/api/RushConfigurationProject.d.ts +217 -0
  42. package/lib/api/RushConfigurationProject.js +1 -0
  43. package/lib/api/RushGlobalFolder.d.ts +32 -0
  44. package/lib/api/RushGlobalFolder.js +1 -0
  45. package/lib/api/RushInternals.d.ts +15 -0
  46. package/lib/api/RushInternals.js +1 -0
  47. package/lib/api/RushPluginsConfiguration.d.ts +21 -0
  48. package/lib/api/RushPluginsConfiguration.js +1 -0
  49. package/lib/api/RushProjectConfiguration.d.ts +117 -0
  50. package/lib/api/RushProjectConfiguration.js +1 -0
  51. package/lib/api/RushUserConfiguration.d.ts +16 -0
  52. package/lib/api/RushUserConfiguration.js +1 -0
  53. package/lib/api/SaveCallbackPackageJsonEditor.d.ts +14 -0
  54. package/lib/api/SaveCallbackPackageJsonEditor.js +1 -0
  55. package/lib/api/Variants.d.ts +11 -0
  56. package/lib/api/Variants.js +1 -0
  57. package/lib/api/VersionPolicy.d.ts +203 -0
  58. package/lib/api/VersionPolicy.js +1 -0
  59. package/lib/api/VersionPolicyConfiguration.d.ts +75 -0
  60. package/lib/api/VersionPolicyConfiguration.js +1 -0
  61. package/lib/api/packageManager/NpmPackageManager.d.ts +9 -0
  62. package/lib/api/packageManager/NpmPackageManager.js +1 -0
  63. package/lib/api/packageManager/PackageManager.d.ts +29 -0
  64. package/lib/api/packageManager/PackageManager.js +1 -0
  65. package/lib/api/packageManager/PnpmPackageManager.d.ts +17 -0
  66. package/lib/api/packageManager/PnpmPackageManager.js +1 -0
  67. package/lib/api/packageManager/YarnPackageManager.d.ts +9 -0
  68. package/lib/api/packageManager/YarnPackageManager.js +1 -0
  69. package/lib/cli/CommandLineMigrationAdvisor.d.ts +5 -0
  70. package/lib/cli/CommandLineMigrationAdvisor.js +1 -0
  71. package/lib/cli/RushCommandLineParser.d.ts +49 -0
  72. package/lib/cli/RushCommandLineParser.js +1 -0
  73. package/lib/cli/RushPnpmCommandLine.d.ts +7 -0
  74. package/lib/cli/RushPnpmCommandLine.js +1 -0
  75. package/lib/cli/RushPnpmCommandLineParser.d.ts +26 -0
  76. package/lib/cli/RushPnpmCommandLineParser.js +1 -0
  77. package/lib/cli/RushStartupBanner.d.ts +7 -0
  78. package/lib/cli/RushStartupBanner.js +1 -0
  79. package/lib/cli/RushXCommandLine.d.ts +17 -0
  80. package/lib/cli/RushXCommandLine.js +1 -0
  81. package/lib/cli/actions/AddAction.d.ts +15 -0
  82. package/lib/cli/actions/AddAction.js +1 -0
  83. package/lib/cli/actions/BaseAddAndRemoveAction.d.ts +36 -0
  84. package/lib/cli/actions/BaseAddAndRemoveAction.js +1 -0
  85. package/lib/cli/actions/BaseInstallAction.d.ts +23 -0
  86. package/lib/cli/actions/BaseInstallAction.js +1 -0
  87. package/lib/cli/actions/BaseRushAction.d.ts +55 -0
  88. package/lib/cli/actions/BaseRushAction.js +1 -0
  89. package/lib/cli/actions/ChangeAction.d.ts +65 -0
  90. package/lib/cli/actions/ChangeAction.js +1 -0
  91. package/lib/cli/actions/CheckAction.d.ts +10 -0
  92. package/lib/cli/actions/CheckAction.js +1 -0
  93. package/lib/cli/actions/DeployAction.d.ts +12 -0
  94. package/lib/cli/actions/DeployAction.js +1 -0
  95. package/lib/cli/actions/InitAction.d.ts +16 -0
  96. package/lib/cli/actions/InitAction.js +1 -0
  97. package/lib/cli/actions/InitAutoinstallerAction.d.ts +8 -0
  98. package/lib/cli/actions/InitAutoinstallerAction.js +1 -0
  99. package/lib/cli/actions/InitDeployAction.d.ts +9 -0
  100. package/lib/cli/actions/InitDeployAction.js +1 -0
  101. package/lib/cli/actions/InstallAction.d.ts +9 -0
  102. package/lib/cli/actions/InstallAction.js +1 -0
  103. package/lib/cli/actions/LinkAction.d.ts +8 -0
  104. package/lib/cli/actions/LinkAction.js +1 -0
  105. package/lib/cli/actions/ListAction.d.ts +54 -0
  106. package/lib/cli/actions/ListAction.js +1 -0
  107. package/lib/cli/actions/PublishAction.d.ts +49 -0
  108. package/lib/cli/actions/PublishAction.js +1 -0
  109. package/lib/cli/actions/PurgeAction.d.ts +8 -0
  110. package/lib/cli/actions/PurgeAction.js +1 -0
  111. package/lib/cli/actions/RemoveAction.d.ts +13 -0
  112. package/lib/cli/actions/RemoveAction.js +1 -0
  113. package/lib/cli/actions/ScanAction.d.ts +23 -0
  114. package/lib/cli/actions/ScanAction.js +1 -0
  115. package/lib/cli/actions/SetupAction.d.ts +7 -0
  116. package/lib/cli/actions/SetupAction.js +1 -0
  117. package/lib/cli/actions/UnlinkAction.d.ts +7 -0
  118. package/lib/cli/actions/UnlinkAction.js +1 -0
  119. package/lib/cli/actions/UpdateAction.d.ts +11 -0
  120. package/lib/cli/actions/UpdateAction.js +1 -0
  121. package/lib/cli/actions/UpdateAutoinstallerAction.d.ts +8 -0
  122. package/lib/cli/actions/UpdateAutoinstallerAction.js +1 -0
  123. package/lib/cli/actions/UpdateCloudCredentialsAction.d.ts +10 -0
  124. package/lib/cli/actions/UpdateCloudCredentialsAction.js +1 -0
  125. package/lib/cli/actions/UpgradeInteractiveAction.d.ts +9 -0
  126. package/lib/cli/actions/UpgradeInteractiveAction.js +1 -0
  127. package/lib/cli/actions/VersionAction.d.ts +22 -0
  128. package/lib/cli/actions/VersionAction.js +1 -0
  129. package/lib/cli/parsing/ParseParallelism.d.ts +6 -0
  130. package/lib/cli/parsing/ParseParallelism.js +1 -0
  131. package/lib/cli/parsing/SelectionParameterSet.d.ts +51 -0
  132. package/lib/cli/parsing/SelectionParameterSet.js +1 -0
  133. package/lib/cli/scriptActions/BaseScriptAction.d.ts +28 -0
  134. package/lib/cli/scriptActions/BaseScriptAction.js +1 -0
  135. package/lib/cli/scriptActions/GlobalScriptAction.d.ts +30 -0
  136. package/lib/cli/scriptActions/GlobalScriptAction.js +1 -0
  137. package/lib/cli/scriptActions/PhasedScriptAction.d.ts +65 -0
  138. package/lib/cli/scriptActions/PhasedScriptAction.js +1 -0
  139. package/lib/index.d.ts +51 -1
  140. package/lib/index.js +1 -190
  141. package/lib/logic/Autoinstaller.d.ts +21 -0
  142. package/lib/logic/Autoinstaller.js +1 -0
  143. package/lib/logic/ChangeFiles.d.ts +33 -0
  144. package/lib/logic/ChangeFiles.js +1 -0
  145. package/lib/logic/ChangeManager.d.ts +39 -0
  146. package/lib/logic/ChangeManager.js +1 -0
  147. package/lib/logic/ChangelogGenerator.d.ts +46 -0
  148. package/lib/logic/ChangelogGenerator.js +1 -0
  149. package/lib/logic/CredentialCache.d.ts +36 -0
  150. package/lib/logic/CredentialCache.js +1 -0
  151. package/lib/logic/DependencyAnalyzer.d.ts +34 -0
  152. package/lib/logic/DependencyAnalyzer.js +1 -0
  153. package/lib/logic/DependencySpecifier.d.ts +70 -0
  154. package/lib/logic/DependencySpecifier.js +1 -0
  155. package/lib/logic/EventHooksManager.d.ts +10 -0
  156. package/lib/logic/EventHooksManager.js +1 -0
  157. package/lib/logic/Git.d.ts +103 -0
  158. package/lib/logic/Git.js +1 -0
  159. package/lib/logic/GitStatusParser.d.ts +42 -0
  160. package/lib/logic/GitStatusParser.js +1 -0
  161. package/lib/logic/JsonSchemaUrls.d.ts +8 -0
  162. package/lib/logic/JsonSchemaUrls.js +1 -0
  163. package/lib/logic/LookupByPath.d.ts +86 -0
  164. package/lib/logic/LookupByPath.js +1 -0
  165. package/lib/logic/NodeJsCompatibility.d.ts +42 -0
  166. package/lib/logic/NodeJsCompatibility.js +1 -0
  167. package/lib/logic/PackageJsonUpdaterTypes.d.ts +75 -0
  168. package/lib/logic/PackageJsonUpdaterTypes.js +1 -0
  169. package/lib/logic/PrereleaseToken.d.ts +12 -0
  170. package/lib/logic/PrereleaseToken.js +1 -0
  171. package/lib/logic/ProjectChangeAnalyzer.d.ts +81 -0
  172. package/lib/logic/ProjectChangeAnalyzer.js +1 -0
  173. package/lib/logic/ProjectCommandSet.d.ts +13 -0
  174. package/lib/logic/ProjectCommandSet.js +1 -0
  175. package/lib/logic/PublishGit.d.ts +19 -0
  176. package/lib/logic/PublishGit.js +1 -0
  177. package/lib/logic/PublishUtilities.d.ts +71 -0
  178. package/lib/logic/PublishUtilities.js +1 -0
  179. package/lib/logic/PurgeManager.d.ts +29 -0
  180. package/lib/logic/PurgeManager.js +1 -0
  181. package/lib/logic/RepoStateFile.d.ts +55 -0
  182. package/lib/logic/RepoStateFile.js +1 -0
  183. package/lib/logic/RushConstants.d.ts +219 -0
  184. package/lib/logic/RushConstants.js +1 -0
  185. package/lib/logic/Selection.d.ts +39 -0
  186. package/lib/logic/Selection.js +1 -0
  187. package/lib/logic/SetupChecks.d.ts +22 -0
  188. package/lib/logic/SetupChecks.js +1 -0
  189. package/lib/logic/ShrinkwrapFileFactory.d.ts +8 -0
  190. package/lib/logic/ShrinkwrapFileFactory.js +1 -0
  191. package/lib/logic/StandardScriptUpdater.d.ts +26 -0
  192. package/lib/logic/StandardScriptUpdater.js +1 -0
  193. package/lib/logic/Telemetry.d.ts +123 -0
  194. package/lib/logic/Telemetry.js +1 -0
  195. package/lib/logic/UnlinkManager.d.ts +24 -0
  196. package/lib/logic/UnlinkManager.js +1 -0
  197. package/lib/logic/base/BaseInstallManagerTypes.d.ts +65 -0
  198. package/lib/logic/base/BaseInstallManagerTypes.js +1 -0
  199. package/lib/logic/base/BasePackageManagerOptionsConfiguration.d.ts +50 -0
  200. package/lib/logic/base/BasePackageManagerOptionsConfiguration.js +1 -0
  201. package/lib/logic/base/BaseProjectShrinkwrapFile.d.ts +36 -0
  202. package/lib/logic/base/BaseProjectShrinkwrapFile.js +1 -0
  203. package/lib/logic/base/BaseShrinkwrapFile.d.ts +92 -0
  204. package/lib/logic/base/BaseShrinkwrapFile.js +1 -0
  205. package/lib/logic/buildCache/CacheEntryId.d.ts +28 -0
  206. package/lib/logic/buildCache/CacheEntryId.js +1 -0
  207. package/lib/logic/buildCache/FileSystemBuildCacheProvider.d.ts +40 -0
  208. package/lib/logic/buildCache/FileSystemBuildCacheProvider.js +1 -0
  209. package/lib/logic/buildCache/ICloudBuildCacheProvider.d.ts +14 -0
  210. package/lib/logic/buildCache/ICloudBuildCacheProvider.js +1 -0
  211. package/lib/logic/buildCache/ProjectBuildCache.d.ts +46 -0
  212. package/lib/logic/buildCache/ProjectBuildCache.js +1 -0
  213. package/lib/logic/buildCache/getHashesForGlobsAsync.d.ts +3 -0
  214. package/lib/logic/buildCache/getHashesForGlobsAsync.js +1 -0
  215. package/lib/logic/deploy/DeployScenarioConfiguration.d.ts +39 -0
  216. package/lib/logic/deploy/DeployScenarioConfiguration.js +1 -0
  217. package/lib/logic/installManager/InstallHelpers.d.ts +16 -0
  218. package/lib/logic/installManager/InstallHelpers.js +1 -0
  219. package/lib/logic/npm/NpmOptionsConfiguration.d.ts +21 -0
  220. package/lib/logic/npm/NpmOptionsConfiguration.js +1 -0
  221. package/lib/logic/npm/NpmShrinkwrapFile.d.ts +29 -0
  222. package/lib/logic/npm/NpmShrinkwrapFile.js +1 -0
  223. package/lib/logic/operations/AsyncOperationQueue.d.ts +47 -0
  224. package/lib/logic/operations/AsyncOperationQueue.js +1 -0
  225. package/lib/logic/operations/IOperationExecutionResult.d.ts +49 -0
  226. package/lib/logic/operations/IOperationExecutionResult.js +1 -0
  227. package/lib/logic/operations/IOperationRunner.d.ts +77 -0
  228. package/lib/logic/operations/IOperationRunner.js +1 -0
  229. package/lib/logic/operations/NullOperationRunner.d.ts +35 -0
  230. package/lib/logic/operations/NullOperationRunner.js +1 -0
  231. package/lib/logic/operations/Operation.d.ts +80 -0
  232. package/lib/logic/operations/Operation.js +1 -0
  233. package/lib/logic/operations/OperationError.d.ts +11 -0
  234. package/lib/logic/operations/OperationError.js +1 -0
  235. package/lib/logic/operations/OperationExecutionManager.d.ts +42 -0
  236. package/lib/logic/operations/OperationExecutionManager.js +1 -0
  237. package/lib/logic/operations/OperationExecutionRecord.d.ts +82 -0
  238. package/lib/logic/operations/OperationExecutionRecord.js +1 -0
  239. package/lib/logic/operations/OperationMetadataManager.d.ts +48 -0
  240. package/lib/logic/operations/OperationMetadataManager.js +1 -0
  241. package/lib/logic/operations/OperationResultSummarizerPlugin.d.ts +17 -0
  242. package/lib/logic/operations/OperationResultSummarizerPlugin.js +1 -0
  243. package/lib/logic/operations/OperationStateFile.d.ts +39 -0
  244. package/lib/logic/operations/OperationStateFile.js +1 -0
  245. package/lib/logic/operations/OperationStatus.d.ts +43 -0
  246. package/lib/logic/operations/OperationStatus.js +1 -0
  247. package/lib/logic/operations/PhasedOperationPlugin.d.ts +9 -0
  248. package/lib/logic/operations/PhasedOperationPlugin.js +1 -0
  249. package/lib/logic/operations/ProjectLogWritable.d.ts +17 -0
  250. package/lib/logic/operations/ProjectLogWritable.js +1 -0
  251. package/lib/logic/operations/ShellOperationRunner.d.ts +87 -0
  252. package/lib/logic/operations/ShellOperationRunner.js +1 -0
  253. package/lib/logic/operations/ShellOperationRunnerPlugin.d.ts +8 -0
  254. package/lib/logic/operations/ShellOperationRunnerPlugin.js +1 -0
  255. package/lib/logic/pnpm/IPnpmfile.d.ts +54 -0
  256. package/lib/logic/pnpm/IPnpmfile.js +1 -0
  257. package/lib/logic/pnpm/PnpmOptionsConfiguration.d.ts +242 -0
  258. package/lib/logic/pnpm/PnpmOptionsConfiguration.js +1 -0
  259. package/lib/logic/pnpm/PnpmProjectShrinkwrapFile.d.ts +26 -0
  260. package/lib/logic/pnpm/PnpmProjectShrinkwrapFile.js +1 -0
  261. package/lib/logic/pnpm/PnpmShrinkwrapFile.d.ts +207 -0
  262. package/lib/logic/pnpm/PnpmShrinkwrapFile.js +1 -0
  263. package/lib/logic/pnpm/PnpmYamlCommon.d.ts +8 -0
  264. package/lib/logic/pnpm/PnpmYamlCommon.js +1 -0
  265. package/lib/logic/pnpm/PnpmfileConfiguration.d.ts +28 -0
  266. package/lib/logic/pnpm/PnpmfileConfiguration.js +1 -0
  267. package/lib/logic/pnpm/PnpmfileShim.d.ts +3 -0
  268. package/lib/logic/pnpm/PnpmfileShim.js +1 -0
  269. package/lib/logic/policy/GitEmailPolicy.d.ts +6 -0
  270. package/lib/logic/policy/GitEmailPolicy.js +1 -0
  271. package/lib/logic/policy/PolicyValidator.d.ts +10 -0
  272. package/lib/logic/policy/PolicyValidator.js +1 -0
  273. package/lib/logic/policy/ShrinkwrapFilePolicy.d.ts +13 -0
  274. package/lib/logic/policy/ShrinkwrapFilePolicy.js +1 -0
  275. package/lib/logic/selectors/GitChangedProjectSelectorParser.d.ts +23 -0
  276. package/lib/logic/selectors/GitChangedProjectSelectorParser.js +1 -0
  277. package/lib/logic/selectors/ISelectorParser.d.ts +11 -0
  278. package/lib/logic/selectors/ISelectorParser.js +1 -0
  279. package/lib/logic/selectors/NamedProjectSelectorParser.d.ts +10 -0
  280. package/lib/logic/selectors/NamedProjectSelectorParser.js +1 -0
  281. package/lib/logic/selectors/TagProjectSelectorParser.d.ts +10 -0
  282. package/lib/logic/selectors/TagProjectSelectorParser.js +1 -0
  283. package/lib/logic/selectors/VersionPolicyProjectSelectorParser.d.ts +10 -0
  284. package/lib/logic/selectors/VersionPolicyProjectSelectorParser.js +1 -0
  285. package/lib/logic/setup/ArtifactoryConfiguration.d.ts +38 -0
  286. package/lib/logic/setup/ArtifactoryConfiguration.js +1 -0
  287. package/lib/logic/setup/KeyboardLoop.d.ts +27 -0
  288. package/lib/logic/setup/KeyboardLoop.js +1 -0
  289. package/lib/logic/setup/SetupPackageRegistry.d.ts +72 -0
  290. package/lib/logic/setup/SetupPackageRegistry.js +1 -0
  291. package/lib/logic/setup/TerminalInput.d.ts +22 -0
  292. package/lib/logic/setup/TerminalInput.js +1 -0
  293. package/lib/logic/versionMismatch/VersionMismatchFinder.d.ts +49 -0
  294. package/lib/logic/versionMismatch/VersionMismatchFinder.js +1 -0
  295. package/lib/logic/versionMismatch/VersionMismatchFinderCommonVersions.d.ts +16 -0
  296. package/lib/logic/versionMismatch/VersionMismatchFinderCommonVersions.js +1 -0
  297. package/lib/logic/versionMismatch/VersionMismatchFinderEntity.d.ts +20 -0
  298. package/lib/logic/versionMismatch/VersionMismatchFinderEntity.js +1 -0
  299. package/lib/logic/versionMismatch/VersionMismatchFinderProject.d.ts +16 -0
  300. package/lib/logic/versionMismatch/VersionMismatchFinderProject.js +1 -0
  301. package/lib/logic/yarn/YarnOptionsConfiguration.d.ts +37 -0
  302. package/lib/logic/yarn/YarnOptionsConfiguration.js +1 -0
  303. package/lib/logic/yarn/YarnShrinkwrapFile.d.ts +55 -0
  304. package/lib/logic/yarn/YarnShrinkwrapFile.js +1 -0
  305. package/lib/pluginFramework/IRushPlugin.d.ts +9 -0
  306. package/lib/pluginFramework/IRushPlugin.js +1 -0
  307. package/lib/pluginFramework/PhasedCommandHooks.d.ts +93 -0
  308. package/lib/pluginFramework/PhasedCommandHooks.js +1 -0
  309. package/lib/pluginFramework/PluginLoader/AutoinstallerPluginLoader.d.ts +27 -0
  310. package/lib/pluginFramework/PluginLoader/AutoinstallerPluginLoader.js +1 -0
  311. package/lib/pluginFramework/PluginLoader/BuiltInPluginLoader.d.ts +17 -0
  312. package/lib/pluginFramework/PluginLoader/BuiltInPluginLoader.js +1 -0
  313. package/lib/pluginFramework/PluginLoader/PluginLoaderBase.d.ts +47 -0
  314. package/lib/pluginFramework/PluginLoader/PluginLoaderBase.js +1 -0
  315. package/lib/pluginFramework/PluginLoader/RushSdk.d.ts +5 -0
  316. package/lib/pluginFramework/PluginLoader/RushSdk.js +1 -0
  317. package/lib/pluginFramework/PluginManager.d.ts +47 -0
  318. package/lib/pluginFramework/PluginManager.js +1 -0
  319. package/lib/pluginFramework/RushLifeCycle.d.ts +66 -0
  320. package/lib/pluginFramework/RushLifeCycle.js +1 -0
  321. package/lib/pluginFramework/RushSession.d.ts +30 -0
  322. package/lib/pluginFramework/RushSession.js +1 -0
  323. package/lib/pluginFramework/logging/Logger.d.ts +40 -0
  324. package/lib/pluginFramework/logging/Logger.js +1 -0
  325. package/lib/start-pnpm.d.ts +2 -0
  326. package/lib/start-pnpm.js +1 -0
  327. package/lib/start.d.ts +2 -0
  328. package/lib/start.js +1 -0
  329. package/lib/startx.d.ts +2 -0
  330. package/lib/startx.js +1 -0
  331. package/lib/utilities/AsyncRecycler.d.ts +38 -0
  332. package/lib/utilities/AsyncRecycler.js +1 -0
  333. package/lib/utilities/CollatedTerminalProvider.d.ts +18 -0
  334. package/lib/utilities/CollatedTerminalProvider.js +1 -0
  335. package/lib/utilities/Npm.d.ts +6 -0
  336. package/lib/utilities/Npm.js +1 -0
  337. package/lib/utilities/OverlappingPathAnalyzer.d.ts +9 -0
  338. package/lib/utilities/OverlappingPathAnalyzer.js +1 -0
  339. package/lib/utilities/PathConstants.d.ts +23 -0
  340. package/lib/utilities/PathConstants.js +1 -0
  341. package/lib/utilities/Stopwatch.d.ts +75 -0
  342. package/lib/utilities/Stopwatch.js +1 -0
  343. package/lib/utilities/TarExecutable.d.ts +32 -0
  344. package/lib/utilities/TarExecutable.js +1 -0
  345. package/lib/utilities/Utilities.d.ts +189 -0
  346. package/lib/utilities/Utilities.js +1 -0
  347. package/lib/utilities/WebClient.d.ts +49 -0
  348. package/lib/utilities/WebClient.js +1 -0
  349. package/lib/utilities/npmrcUtilities.d.ts +15 -0
  350. package/lib/utilities/npmrcUtilities.js +1 -0
  351. package/lib-shim/generate-stubs.d.ts +2 -0
  352. package/lib-shim/generate-stubs.d.ts.map +1 -0
  353. package/lib-shim/generate-stubs.js +82 -0
  354. package/lib-shim/generate-stubs.js.map +1 -0
  355. package/lib-shim/index.d.ts +5 -0
  356. package/lib-shim/index.d.ts.map +1 -0
  357. package/lib-shim/index.js +201 -0
  358. package/lib-shim/index.js.map +1 -0
  359. package/package.json +10 -10
  360. package/lib/index.d.ts.map +0 -1
  361. package/lib/index.js.map +0 -1
@@ -0,0 +1,219 @@
1
+ /**
2
+ * Constants used by the Rush tool.
3
+ * @beta
4
+ *
5
+ * @remarks
6
+ *
7
+ * These are NOT part of the public API surface for rush-lib.
8
+ * The rationale is that we don't want people implementing custom parsers for
9
+ * the Rush config files; instead, they should rely on the official APIs from rush-lib.
10
+ */
11
+ export declare class RushConstants {
12
+ /**
13
+ * The filename ("browser-approved-packages.json") for an optional policy configuration file
14
+ * that stores a list of NPM packages that have been approved for usage by Rush projects.
15
+ * This is part of a pair of config files, one for projects that run in a web browser
16
+ * (e.g. whose approval criteria mostly focuses on licensing and code size), and one for everywhere else
17
+ * (e.g. tooling projects whose approval criteria mostly focuses on avoiding node_modules sprawl).
18
+ */
19
+ static readonly browserApprovedPackagesFilename: string;
20
+ /**
21
+ * The folder name ("changes") where change files will be stored.
22
+ */
23
+ static readonly changeFilesFolderName: string;
24
+ /**
25
+ * The filename ("nonbrowser-approved-packages.json") for an optional policy configuration file
26
+ * that stores a list of NPM packages that have been approved for usage by Rush projects.
27
+ * This is part of a pair of config files, one for projects that run in a web browser
28
+ * (e.g. whose approval criteria mostly focuses on licensing and code size), and one for everywhere else
29
+ * (e.g. tooling projects whose approval criteria mostly focuses on avoiding node_modules sprawl).
30
+ */
31
+ static readonly nonbrowserApprovedPackagesFilename: string;
32
+ /**
33
+ * The folder name ("common") where Rush's common data will be stored.
34
+ */
35
+ static readonly commonFolderName: string;
36
+ /**
37
+ * The NPM scope ("\@rush-temp") that is used for Rush's temporary projects.
38
+ */
39
+ static readonly rushTempNpmScope: string;
40
+ /**
41
+ * The folder name ("temp") under the common folder, or under the .rush folder in each project's directory where
42
+ * temporary files will be stored.
43
+ * Example: `C:\MyRepo\common\temp`
44
+ */
45
+ static readonly rushTempFolderName: string;
46
+ /**
47
+ * The folder name ("projects") where temporary projects will be stored.
48
+ * Example: `C:\MyRepo\common\temp\projects`
49
+ */
50
+ static readonly rushTempProjectsFolderName: string;
51
+ /**
52
+ * The folder name ("variants") under which named variant configurations for
53
+ * alternate dependency sets may be found.
54
+ * Example: `C:\MyRepo\common\config\rush\variants`
55
+ */
56
+ static readonly rushVariantsFolderName: string;
57
+ /**
58
+ * The filename ("npm-shrinkwrap.json") used to store an installation plan for the NPM package manger.
59
+ */
60
+ static readonly npmShrinkwrapFilename: string;
61
+ /**
62
+ * Number of installation attempts
63
+ */
64
+ static readonly defaultMaxInstallAttempts: number;
65
+ /**
66
+ * The filename ("pnpm-lock.yaml") used to store an installation plan for the PNPM package manger
67
+ * (PNPM version 3.x and later).
68
+ */
69
+ static readonly pnpmV3ShrinkwrapFilename: string;
70
+ /**
71
+ * The filename ("pnpmfile.js") used to add custom configuration to PNPM (PNPM version 1.x and later).
72
+ */
73
+ static readonly pnpmfileV1Filename: string;
74
+ /**
75
+ * The filename (".pnpmfile.cjs") used to add custom configuration to PNPM (PNPM version 6.x and later).
76
+ */
77
+ static readonly pnpmfileV6Filename: string;
78
+ /**
79
+ * The folder name used to store patch files for pnpm
80
+ * Example: `C:\MyRepo\common\config\pnpm-patches`
81
+ * Example: `C:\MyRepo\common\temp\patches`
82
+ */
83
+ static readonly pnpmPatchesFolderName: string;
84
+ /**
85
+ * The filename ("shrinkwrap.yaml") used to store state for pnpm
86
+ */
87
+ static readonly yarnShrinkwrapFilename: string;
88
+ /**
89
+ * The folder name ("node_modules") where NPM installs its packages.
90
+ */
91
+ static readonly nodeModulesFolderName: string;
92
+ /**
93
+ * The filename ("pinned-versions.json") for an old configuration file that
94
+ * that is no longer supported.
95
+ *
96
+ * @deprecated This feature has been superseded by the "preferredVersions" setting
97
+ * in common-versions.json
98
+ */
99
+ static readonly pinnedVersionsFilename: string;
100
+ /**
101
+ * The filename ("common-versions.json") for an optional configuration file
102
+ * that stores dependency version information that affects all projects in the repo.
103
+ * This configuration file should go in the "common/config/rush" folder.
104
+ */
105
+ static readonly commonVersionsFilename: string;
106
+ /**
107
+ * The filename ("repo-state.json") for a file used by Rush to
108
+ * store the state of various features as they stand in the repo.
109
+ */
110
+ static readonly repoStateFilename: string;
111
+ /**
112
+ * The name of the per-project folder where project-specific Rush files are stored. For example,
113
+ * the package-deps files, which are used by commands to determine if a particular project needs to be rebuilt.
114
+ */
115
+ static readonly projectRushFolderName: string;
116
+ /**
117
+ * Custom command line configuration file, which is used by rush for implementing
118
+ * custom command and options.
119
+ */
120
+ static readonly commandLineFilename: string;
121
+ static readonly versionPoliciesFilename: string;
122
+ /**
123
+ * Experiments configuration file.
124
+ */
125
+ static readonly experimentsFilename: string;
126
+ /**
127
+ * Pnpm configuration file
128
+ */
129
+ static readonly pnpmConfigFilename: string;
130
+ /**
131
+ * Rush plugins configuration file name.
132
+ */
133
+ static readonly rushPluginsConfigFilename: string;
134
+ /**
135
+ * Rush plugin manifest file name.
136
+ */
137
+ static readonly rushPluginManifestFilename: string;
138
+ /**
139
+ * The artifactory.json configuration file name.
140
+ */
141
+ static readonly artifactoryFilename: string;
142
+ /**
143
+ * Build cache configuration file.
144
+ */
145
+ static readonly buildCacheFilename: string;
146
+ /**
147
+ * Build cache version number, incremented when the logic to create cache entries changes.
148
+ * Changing this ensures that cache entries generated by an old version will no longer register as a cache hit.
149
+ */
150
+ static readonly buildCacheVersion: number;
151
+ /**
152
+ * Per-project configuration filename.
153
+ */
154
+ static readonly rushProjectConfigFilename: string;
155
+ /**
156
+ * The URL ("http://rushjs.io") for the Rush web site.
157
+ */
158
+ static readonly rushWebSiteUrl: string;
159
+ /**
160
+ * The name of the NPM package for the Rush tool ("\@microsoft/rush").
161
+ */
162
+ static readonly rushPackageName: string;
163
+ /**
164
+ * The folder name ("rush-recycler") where Rush moves large folder trees
165
+ * before asynchronously deleting them.
166
+ */
167
+ static readonly rushRecyclerFolderName: string;
168
+ /**
169
+ * The name of the file to drop in project-folder/.rush/temp/ containing a listing of the project's direct
170
+ * and indirect dependencies. This is used to detect if a project's dependencies have changed since the last build.
171
+ */
172
+ static readonly projectShrinkwrapFilename: string;
173
+ /**
174
+ * The value of the "commandKind" property for a bulk command in command-line.json
175
+ */
176
+ static readonly bulkCommandKind: 'bulk';
177
+ /**
178
+ * The value of the "commandKind" property for a global command in command-line.json
179
+ */
180
+ static readonly globalCommandKind: 'global';
181
+ /**
182
+ * The value of the "commandKind" property for a phased command in command-line.json
183
+ */
184
+ static readonly phasedCommandKind: 'phased';
185
+ /**
186
+ * The name of the incremental build command.
187
+ */
188
+ static readonly buildCommandName: string;
189
+ /**
190
+ * The name of the non-incremental build command.
191
+ */
192
+ static readonly rebuildCommandName: string;
193
+ static readonly updateCloudCredentialsCommandName: string;
194
+ /**
195
+ * When a hash generated that contains multiple input segments, this character may be used
196
+ * to separate them to avoid issues like
197
+ * crypto.createHash('sha1').update('a').update('bc').digest('hex') === crypto.createHash('sha1').update('ab').update('c').digest('hex')
198
+ */
199
+ static readonly hashDelimiter: string;
200
+ /**
201
+ * The name of the per-user Rush configuration data folder.
202
+ */
203
+ static readonly rushUserConfigurationFolderName: string;
204
+ /**
205
+ * The name of the project `rush-logs` folder.
206
+ */
207
+ static readonly rushLogsFolderName: string;
208
+ /**
209
+ * The expected prefix for phase names in "common/config/rush/command-line.json"
210
+ */
211
+ static readonly phaseNamePrefix: '_phase:';
212
+ /**
213
+ * The default debounce value for Rush multi-project watch mode. When watching, controls
214
+ * how long to wait after the last encountered file system event before execution. If another
215
+ * file system event occurs in this interval, the timeout will reset.
216
+ */
217
+ static readonly defaultWatchDebounceMs: number;
218
+ }
219
+ //# sourceMappingURL=RushConstants.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/RushConstants");
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Minimal subset of RushConfigurationProject needed for graph manipulation.
3
+ * Used to facilitate type safety in unit tests.
4
+ * @internal
5
+ */
6
+ export interface IPartialProject<T extends IPartialProject<T>> {
7
+ dependencyProjects: ReadonlySet<T>;
8
+ consumingProjects: ReadonlySet<T>;
9
+ }
10
+ /**
11
+ * This namespace contains functions for manipulating sets of projects
12
+ */
13
+ export declare class Selection {
14
+ /**
15
+ * Computes the intersection of two or more sets.
16
+ */
17
+ static intersection<T>(first: Iterable<T>, ...rest: ReadonlySet<T>[]): Set<T>;
18
+ /**
19
+ * Computes the union of two or more sets.
20
+ */
21
+ static union<T>(...sets: Iterable<T>[]): Set<T>;
22
+ /**
23
+ * Computes a set that contains the input projects and all the direct and indirect dependencies thereof.
24
+ */
25
+ static expandAllDependencies<T extends IPartialProject<T>>(input: Iterable<T>): Set<T>;
26
+ /**
27
+ * Computes a set that contains the input projects and all projects that directly or indirectly depend on them.
28
+ */
29
+ static expandAllConsumers<T extends IPartialProject<T>>(input: Iterable<T>): Set<T>;
30
+ /**
31
+ * Iterates the direct dependencies of the listed projects. May contain duplicates.
32
+ */
33
+ static directDependenciesOf<T extends IPartialProject<T>>(input: Iterable<T>): Iterable<T>;
34
+ /**
35
+ * Iterates the projects that declare any of the listed projects as a dependency. May contain duplicates.
36
+ */
37
+ static directConsumersOf<T extends IPartialProject<T>>(input: Iterable<T>): Iterable<T>;
38
+ }
39
+ //# sourceMappingURL=Selection.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/Selection");
@@ -0,0 +1,22 @@
1
+ import { RushConfiguration } from '../api/RushConfiguration';
2
+ /**
3
+ * Validate that the developer's setup is good.
4
+ *
5
+ * These checks are invoked prior to the following commands:
6
+ * - rush install
7
+ * - rush update
8
+ * - rush build
9
+ * - rush rebuild
10
+ */
11
+ export declare class SetupChecks {
12
+ static validate(rushConfiguration: RushConfiguration): void;
13
+ private static _validate;
14
+ private static _checkForPhantomFolders;
15
+ /**
16
+ * Checks "folder" and each of its parents to see if it contains a node_modules folder.
17
+ * The bad folders will be added to phantomFolders.
18
+ * The seenFolders set is used to avoid duplicates.
19
+ */
20
+ private static _collectPhantomFoldersUpwards;
21
+ }
22
+ //# sourceMappingURL=SetupChecks.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/SetupChecks");
@@ -0,0 +1,8 @@
1
+ import { PackageManagerName } from '../api/packageManager/PackageManager';
2
+ import { PackageManagerOptionsConfigurationBase } from './base/BasePackageManagerOptionsConfiguration';
3
+ import { BaseShrinkwrapFile } from './base/BaseShrinkwrapFile';
4
+ export declare class ShrinkwrapFileFactory {
5
+ static getShrinkwrapFile(packageManager: PackageManagerName, packageManagerOptions: PackageManagerOptionsConfigurationBase, shrinkwrapFilename: string): BaseShrinkwrapFile | undefined;
6
+ static parseShrinkwrapFile(packageManager: PackageManagerName, packageManagerOptions: PackageManagerOptionsConfigurationBase, shrinkwrapContent: string): BaseShrinkwrapFile | undefined;
7
+ }
8
+ //# sourceMappingURL=ShrinkwrapFileFactory.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/ShrinkwrapFileFactory");
@@ -0,0 +1,26 @@
1
+ import { RushConfiguration } from '../api/RushConfiguration';
2
+ /**
3
+ * Checks whether the common/scripts files are up to date, and recopies them if needed.
4
+ * This is used by the "rush install" and "rush update" commands.
5
+ */
6
+ export declare class StandardScriptUpdater {
7
+ /**
8
+ * Recopy the scripts if the scripts are out of date.
9
+ * Used by "rush update".
10
+ */
11
+ static updateAsync(rushConfiguration: RushConfiguration): Promise<boolean>;
12
+ /**
13
+ * Throw an exception if the scripts are out of date.
14
+ * Used by "rush install".
15
+ */
16
+ static validateAsync(rushConfiguration: RushConfiguration): Promise<void>;
17
+ /**
18
+ * Compares a single script in the common/script folder to see if it needs to be updated.
19
+ * If throwInsteadOfCopy=false, then an outdated or missing script will be recopied;
20
+ * otherwise, an exception is thrown.
21
+ */
22
+ private static _updateScriptOrThrowAsync;
23
+ private static _normalize;
24
+ private static _getExpectedFileDataAsync;
25
+ }
26
+ //# sourceMappingURL=StandardScriptUpdater.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/StandardScriptUpdater");
@@ -0,0 +1,123 @@
1
+ import { RushConfiguration } from '../api/RushConfiguration';
2
+ import { RushSession } from '../pluginFramework/RushSession';
3
+ /**
4
+ * @beta
5
+ */
6
+ export interface ITelemetryMachineInfo {
7
+ /**
8
+ * The CPU architecture
9
+ * @example `"AMD64"`
10
+ */
11
+ machineArchitecture: string;
12
+ /**
13
+ * The CPU model
14
+ * * @example `"AMD Ryzen 7 3700X 8-Core Processor"`
15
+ */
16
+ machineCpu: string;
17
+ /**
18
+ * The number of logical CPU cores.
19
+ */
20
+ machineCores: number;
21
+ /**
22
+ * The total amount of RAM on the machine, in MiB.
23
+ */
24
+ machineTotalMemoryMiB: number;
25
+ /**
26
+ * The amount of free RAM on the machine at the end of execution, in MiB.
27
+ */
28
+ machineFreeMemoryMiB: number;
29
+ }
30
+ /**
31
+ * @beta
32
+ */
33
+ export interface ITelemetryOperationResult {
34
+ /**
35
+ * The names of operations that this operation depends on.
36
+ */
37
+ dependencies: string[];
38
+ /**
39
+ * The status code for the operation.
40
+ */
41
+ result: string;
42
+ /**
43
+ * A timestamp in milliseconds (from `performance.now()`) when the operation started.
44
+ * If the operation was blocked, will be `undefined`.
45
+ */
46
+ startTimestampMs?: number;
47
+ /**
48
+ * A timestamp in milliseconds (from `performance.now()`) when the operation finished.
49
+ * If the operation was blocked, will be `undefined`.
50
+ */
51
+ endTimestampMs?: number;
52
+ /**
53
+ * Duration in milliseconds when the operation does not hit cache
54
+ */
55
+ nonCachedDurationMs?: number;
56
+ }
57
+ /**
58
+ * @beta
59
+ */
60
+ export interface ITelemetryData {
61
+ /**
62
+ * Command name
63
+ * @example `"build"`
64
+ */
65
+ readonly name: string;
66
+ /**
67
+ * Duration in seconds
68
+ */
69
+ readonly durationInSeconds: number;
70
+ /**
71
+ * The result of the command
72
+ */
73
+ readonly result: 'Succeeded' | 'Failed';
74
+ /**
75
+ * The millisecond-resolution timestamp of the telemetry logging
76
+ * @example 1648001893024
77
+ */
78
+ readonly timestampMs?: number;
79
+ /**
80
+ * The platform the command was executed on, based on the Node.js `process.platform()` API
81
+ * @example `"darwin"`, `"win32"`, `"linux"`
82
+ */
83
+ readonly platform?: string;
84
+ /**
85
+ * The Rush version
86
+ * @example `5.63.0`
87
+ */
88
+ readonly rushVersion?: string;
89
+ /**
90
+ * Detailed information about the host machine.
91
+ */
92
+ readonly machineInfo?: ITelemetryMachineInfo;
93
+ /**
94
+ * Only applicable to phased commands. Provides detailed results by operation.
95
+ * Keys are operation names, values contain result, timing information, and dependencies.
96
+ */
97
+ readonly operationResults?: Record<string, ITelemetryOperationResult>;
98
+ readonly extraData?: {
99
+ [key: string]: string | number | boolean;
100
+ };
101
+ }
102
+ export declare class Telemetry {
103
+ private _enabled;
104
+ private _store;
105
+ private _dataFolder;
106
+ private _rushConfiguration;
107
+ private _rushSession;
108
+ private _flushAsyncTasks;
109
+ constructor(rushConfiguration: RushConfiguration, rushSession: RushSession);
110
+ log(telemetryData: ITelemetryData): void;
111
+ flush(): void;
112
+ /**
113
+ * There are some async tasks that are not finished when the process is exiting.
114
+ */
115
+ ensureFlushedAsync(): Promise<void>;
116
+ get store(): ITelemetryData[];
117
+ /**
118
+ * When there are too many log files, delete the old ones.
119
+ */
120
+ private _cleanUp;
121
+ private _getFilePath;
122
+ }
123
+ //# sourceMappingURL=Telemetry.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/Telemetry");
@@ -0,0 +1,24 @@
1
+ import { RushConfiguration } from '../api/RushConfiguration';
2
+ /**
3
+ * This class implements the logic for "rush unlink"
4
+ */
5
+ export declare class UnlinkManager {
6
+ private _rushConfiguration;
7
+ constructor(rushConfiguration: RushConfiguration);
8
+ /**
9
+ * Delete flag file and all the existing node_modules symlinks and all
10
+ * project/.rush/temp/shrinkwrap-deps.json files
11
+ *
12
+ * Returns true if anything was deleted.
13
+ */
14
+ unlink(force?: boolean): boolean;
15
+ /**
16
+ * Delete:
17
+ * - all the node_modules symlinks of configured Rush projects
18
+ * - all of the project/.rush/temp/shrinkwrap-deps.json files of configured Rush projects
19
+ *
20
+ * Returns true if anything was deleted
21
+ * */
22
+ private _deleteProjectFiles;
23
+ }
24
+ //# sourceMappingURL=UnlinkManager.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/UnlinkManager");
@@ -0,0 +1,65 @@
1
+ export interface IInstallManagerOptions {
2
+ /**
3
+ * Whether the global "--debug" flag was specified.
4
+ */
5
+ debug: boolean;
6
+ /**
7
+ * Whether or not Rush will automatically update the shrinkwrap file.
8
+ * True for "rush update", false for "rush install".
9
+ */
10
+ allowShrinkwrapUpdates: boolean;
11
+ /**
12
+ * Whether to check the validation before install only, without actually installing anything.
13
+ */
14
+ checkOnly: boolean;
15
+ /**
16
+ * Whether to skip policy checks.
17
+ */
18
+ bypassPolicy: boolean;
19
+ /**
20
+ * Whether to skip linking, i.e. require "rush link" to be done manually later.
21
+ */
22
+ noLink: boolean;
23
+ /**
24
+ * Whether to delete the shrinkwrap file before installation, i.e. so that all dependencies
25
+ * will be upgraded to the latest SemVer-compatible version.
26
+ */
27
+ fullUpgrade: boolean;
28
+ /**
29
+ * Whether to force an update to the shrinkwrap file even if it appears to be unnecessary.
30
+ * Normally Rush uses heuristics to determine when "pnpm install" can be skipped,
31
+ * but sometimes the heuristics can be inaccurate due to external influences
32
+ * (pnpmfile.js script logic, registry changes, etc).
33
+ */
34
+ recheckShrinkwrap: boolean;
35
+ /**
36
+ * The value of the "--network-concurrency" command-line parameter, which
37
+ * is a diagnostic option used to troubleshoot network failures.
38
+ *
39
+ * Currently only supported for PNPM.
40
+ */
41
+ networkConcurrency: number | undefined;
42
+ /**
43
+ * Whether or not to collect verbose logs from the package manager.
44
+ * If specified when using PNPM, the logs will be in /common/temp/pnpm.log
45
+ */
46
+ collectLogFile: boolean;
47
+ /**
48
+ * The variant to consider when performing installations and validating shrinkwrap updates.
49
+ */
50
+ variant?: string | undefined;
51
+ /**
52
+ * Retry the install the specified number of times
53
+ */
54
+ maxInstallAttempts: number;
55
+ /**
56
+ * Filters to be passed to PNPM during installation, if applicable.
57
+ * These restrict the scope of a workspace installation.
58
+ */
59
+ pnpmFilterArguments: string[];
60
+ /**
61
+ * Callback to invoke between preparing the common/temp folder and running installation.
62
+ */
63
+ beforeInstallAsync?: () => Promise<void>;
64
+ }
65
+ //# sourceMappingURL=BaseInstallManagerTypes.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/base/BaseInstallManagerTypes");
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Represents the value of an environment variable, and if the value should be overridden if the variable is set
3
+ * in the parent environment.
4
+ * @public
5
+ */
6
+ export interface IConfigurationEnvironmentVariable {
7
+ /**
8
+ * Value of the environment variable
9
+ */
10
+ value: string;
11
+ /**
12
+ * Set to true to override the environment variable even if it is set in the parent environment.
13
+ * The default value is false.
14
+ */
15
+ override?: boolean;
16
+ }
17
+ /**
18
+ * A collection of environment variables
19
+ * @public
20
+ */
21
+ export interface IConfigurationEnvironment {
22
+ /**
23
+ * Environment variables
24
+ */
25
+ [environmentVariableName: string]: IConfigurationEnvironmentVariable;
26
+ }
27
+ /**
28
+ * Options for the package manager.
29
+ * @public
30
+ */
31
+ export interface IPackageManagerOptionsJsonBase {
32
+ /**
33
+ * Environment variables for the package manager
34
+ */
35
+ environmentVariables?: IConfigurationEnvironment;
36
+ }
37
+ /**
38
+ * Options that all package managers share.
39
+ *
40
+ * @public
41
+ */
42
+ export declare abstract class PackageManagerOptionsConfigurationBase implements IPackageManagerOptionsJsonBase {
43
+ /**
44
+ * Environment variables for the package manager
45
+ */
46
+ readonly environmentVariables?: IConfigurationEnvironment;
47
+ /** @internal */
48
+ protected constructor(json: IPackageManagerOptionsJsonBase);
49
+ }
50
+ //# sourceMappingURL=BasePackageManagerOptionsConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/base/BasePackageManagerOptionsConfiguration");
@@ -0,0 +1,36 @@
1
+ import { RushConfigurationProject } from '../../api/RushConfigurationProject';
2
+ import { BaseShrinkwrapFile } from './BaseShrinkwrapFile';
3
+ /**
4
+ * This class handles creating the project/.rush/temp/shrinkwrap-deps.json file
5
+ * which tracks the direct and indirect dependencies that a project consumes. This is used
6
+ * to better determine which projects should be rebuilt when dependencies are updated.
7
+ */
8
+ export declare abstract class BaseProjectShrinkwrapFile<TShrinkwrapFile extends BaseShrinkwrapFile> {
9
+ readonly projectShrinkwrapFilePath: string;
10
+ protected readonly project: RushConfigurationProject;
11
+ /**
12
+ * The shrinkwrap file that the project shrinkwrap file is based off of.
13
+ */
14
+ protected readonly shrinkwrapFile: TShrinkwrapFile;
15
+ constructor(shrinkwrapFile: TShrinkwrapFile, project: RushConfigurationProject);
16
+ /**
17
+ * Save an empty project shrinkwrap file. This is used in repos with no dependencies.
18
+ */
19
+ static saveEmptyProjectShrinkwrapFileAsync(project: RushConfigurationProject): Promise<void>;
20
+ /**
21
+ * Get the fully-qualified path to the <project>/.rush/temp/shrinkwrap-deps.json
22
+ * for the specified project.
23
+ */
24
+ static getFilePathForProject(project: RushConfigurationProject): string;
25
+ /**
26
+ * If the <project>/.rush/temp/shrinkwrap-deps.json file exists, delete it. Otherwise, do nothing.
27
+ */
28
+ deleteIfExistsAsync(): Promise<void>;
29
+ /**
30
+ * Generate and write the project shrinkwrap file to <project>/.rush/temp/shrinkwrap-deps.json.
31
+ *
32
+ * @virtual
33
+ */
34
+ abstract updateProjectShrinkwrapAsync(): Promise<void>;
35
+ }
36
+ //# sourceMappingURL=BaseProjectShrinkwrapFile.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/base/BaseProjectShrinkwrapFile");