@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,92 @@
1
+ import { DependencySpecifier } from '../DependencySpecifier';
2
+ import { IShrinkwrapFilePolicyValidatorOptions } from '../policy/ShrinkwrapFilePolicy';
3
+ import { RushConfiguration } from '../../api/RushConfiguration';
4
+ import { IExperimentsJson } from '../../api/ExperimentsConfiguration';
5
+ import { RushConfigurationProject } from '../../api/RushConfigurationProject';
6
+ import { BaseProjectShrinkwrapFile } from './BaseProjectShrinkwrapFile';
7
+ import { PackageManagerOptionsConfigurationBase } from './BasePackageManagerOptionsConfiguration';
8
+ /**
9
+ * This class is a parser for both npm's npm-shrinkwrap.json and pnpm's pnpm-lock.yaml file formats.
10
+ */
11
+ export declare abstract class BaseShrinkwrapFile {
12
+ abstract readonly isWorkspaceCompatible: boolean;
13
+ protected _alreadyWarnedSpecs: Set<string>;
14
+ protected static tryGetValue<T>(dictionary: {
15
+ [key2: string]: T;
16
+ }, key: string): T | undefined;
17
+ /**
18
+ * Validate the shrinkwrap using the provided policy options.
19
+ *
20
+ * @virtual
21
+ */
22
+ validate(packageManagerOptionsConfig: PackageManagerOptionsConfigurationBase, policyOptions: IShrinkwrapFilePolicyValidatorOptions, experimentsConfig?: IExperimentsJson): void;
23
+ /**
24
+ * Returns true if the shrinkwrap file includes a top-level package that would satisfy the specified
25
+ * package name and SemVer version range
26
+ *
27
+ * @virtual
28
+ */
29
+ hasCompatibleTopLevelDependency(dependencySpecifier: DependencySpecifier): boolean;
30
+ /**
31
+ * Returns true if the shrinkwrap file includes a package that would satisfying the specified
32
+ * package name and SemVer version range. By default, the dependencies are resolved by looking
33
+ * at the root of the node_modules folder described by the shrinkwrap file. However, if
34
+ * tempProjectName is specified, then the resolution will start in that subfolder.
35
+ *
36
+ * Consider this example:
37
+ *
38
+ * - node_modules\
39
+ * - temp-project\
40
+ * - lib-a@1.2.3
41
+ * - lib-b@1.0.0
42
+ * - lib-b@2.0.0
43
+ *
44
+ * In this example, hasCompatibleDependency("lib-b", ">= 1.1.0", "temp-project") would fail
45
+ * because it finds lib-b@1.0.0 which does not satisfy the pattern ">= 1.1.0".
46
+ *
47
+ * @virtual
48
+ */
49
+ tryEnsureCompatibleDependency(dependencySpecifier: DependencySpecifier, tempProjectName: string): boolean;
50
+ /**
51
+ * Returns the list of temp projects defined in this file.
52
+ * Example: [ '@rush-temp/project1', '@rush-temp/project2' ]
53
+ *
54
+ * @virtual
55
+ */
56
+ abstract getTempProjectNames(): ReadonlyArray<string>;
57
+ /** @virtual */
58
+ protected abstract tryEnsureDependencyVersion(dependencySpecifier: DependencySpecifier, tempProjectName: string): DependencySpecifier | undefined;
59
+ /** @virtual */
60
+ protected abstract getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined;
61
+ /**
62
+ * Check for projects that exist in the shrinkwrap file, but don't exist
63
+ * in rush.json. This might occur, e.g. if a project was recently deleted or renamed.
64
+ *
65
+ * @returns a list of orphaned projects.
66
+ */
67
+ findOrphanedProjects(rushConfiguration: RushConfiguration): ReadonlyArray<string>;
68
+ /**
69
+ * Returns a project shrinkwrap file for the specified project that contains all dependencies and transitive
70
+ * dependencies.
71
+ *
72
+ * @virtual
73
+ **/
74
+ abstract getProjectShrinkwrap(project: RushConfigurationProject): BaseProjectShrinkwrapFile<BaseShrinkwrapFile> | undefined;
75
+ /**
76
+ * Returns whether or not the workspace specified by the shrinkwrap matches the state of
77
+ * a given package.json. Returns true if any dependencies are not aligned with the shrinkwrap.
78
+ *
79
+ * @param project - the Rush project that is being validated against the shrinkwrap
80
+ * @param variant - the variant that is being validated
81
+ *
82
+ * @virtual
83
+ */
84
+ abstract isWorkspaceProjectModifiedAsync(project: RushConfigurationProject, variant?: string): Promise<boolean>;
85
+ /** @virtual */
86
+ protected abstract serialize(): string;
87
+ protected _getTempProjectNames(dependencies: {
88
+ [key: string]: {};
89
+ }): ReadonlyArray<string>;
90
+ private _checkDependencyVersion;
91
+ }
92
+ //# sourceMappingURL=BaseShrinkwrapFile.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/base/BaseShrinkwrapFile");
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Options for generating the cache id for an operation.
3
+ * @beta
4
+ */
5
+ export interface IGenerateCacheEntryIdOptions {
6
+ /**
7
+ * The name of the project
8
+ */
9
+ projectName: string;
10
+ /**
11
+ * The name of the phase
12
+ */
13
+ phaseName: string;
14
+ /**
15
+ * A hash of the input files
16
+ */
17
+ projectStateHash: string;
18
+ }
19
+ /**
20
+ * Calculates the cache entry id string for an operation.
21
+ * @beta
22
+ */
23
+ export declare type GetCacheEntryIdFunction = (options: IGenerateCacheEntryIdOptions) => string;
24
+ export declare class CacheEntryId {
25
+ private constructor();
26
+ static parsePattern(pattern?: string): GetCacheEntryIdFunction;
27
+ }
28
+ //# sourceMappingURL=CacheEntryId.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/buildCache/CacheEntryId");
@@ -0,0 +1,40 @@
1
+ /// <reference types="node" />
2
+ import { ITerminal } from '@rushstack/node-core-library';
3
+ import { RushConfiguration } from '../../api/RushConfiguration';
4
+ import { RushUserConfiguration } from '../../api/RushUserConfiguration';
5
+ /**
6
+ * Options for creating a file system build cache provider.
7
+ * @beta
8
+ */
9
+ export interface IFileSystemBuildCacheProviderOptions {
10
+ /**
11
+ * The workspace Rush configuration
12
+ */
13
+ rushConfiguration: RushConfiguration;
14
+ /**
15
+ * The user Rush configuration
16
+ */
17
+ rushUserConfiguration: RushUserConfiguration;
18
+ }
19
+ /**
20
+ * A build cache provider using the local file system.
21
+ * Required by all cloud cache providers.
22
+ * @beta
23
+ */
24
+ export declare class FileSystemBuildCacheProvider {
25
+ private readonly _cacheFolderPath;
26
+ constructor(options: IFileSystemBuildCacheProviderOptions);
27
+ /**
28
+ * Returns the absolute disk path for the specified cache id.
29
+ */
30
+ getCacheEntryPath(cacheId: string): string;
31
+ /**
32
+ * Validates that the specified cache id exists on disk, and returns the path if it does.
33
+ */
34
+ tryGetCacheEntryPathByIdAsync(terminal: ITerminal, cacheId: string): Promise<string | undefined>;
35
+ /**
36
+ * Writes the specified buffer to the corresponding file system path for the cache id.
37
+ */
38
+ trySetCacheEntryBufferAsync(terminal: ITerminal, cacheId: string, entryBuffer: Buffer): Promise<string>;
39
+ }
40
+ //# sourceMappingURL=FileSystemBuildCacheProvider.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/buildCache/FileSystemBuildCacheProvider");
@@ -0,0 +1,14 @@
1
+ /// <reference types="node" />
2
+ import { ITerminal } from '@rushstack/node-core-library';
3
+ /**
4
+ * @beta
5
+ */
6
+ export interface ICloudBuildCacheProvider {
7
+ readonly isCacheWriteAllowed: boolean;
8
+ tryGetCacheEntryBufferByIdAsync(terminal: ITerminal, cacheId: string): Promise<Buffer | undefined>;
9
+ trySetCacheEntryBufferAsync(terminal: ITerminal, cacheId: string, entryBuffer: Buffer): Promise<boolean>;
10
+ updateCachedCredentialAsync(terminal: ITerminal, credential: string): Promise<void>;
11
+ updateCachedCredentialInteractiveAsync(terminal: ITerminal): Promise<void>;
12
+ deleteCachedCredentialsAsync(terminal: ITerminal): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=ICloudBuildCacheProvider.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/buildCache/ICloudBuildCacheProvider");
@@ -0,0 +1,46 @@
1
+ import { ITerminal } from '@rushstack/node-core-library';
2
+ import { ProjectChangeAnalyzer } from '../ProjectChangeAnalyzer';
3
+ import { RushProjectConfiguration } from '../../api/RushProjectConfiguration';
4
+ import { BuildCacheConfiguration } from '../../api/BuildCacheConfiguration';
5
+ export interface IProjectBuildCacheOptions {
6
+ buildCacheConfiguration: BuildCacheConfiguration;
7
+ projectConfiguration: RushProjectConfiguration;
8
+ projectOutputFolderNames: ReadonlyArray<string>;
9
+ additionalProjectOutputFilePaths?: ReadonlyArray<string>;
10
+ additionalContext?: Record<string, string>;
11
+ command: string;
12
+ trackedProjectFiles: string[] | undefined;
13
+ projectChangeAnalyzer: ProjectChangeAnalyzer;
14
+ terminal: ITerminal;
15
+ phaseName: string;
16
+ }
17
+ export declare class ProjectBuildCache {
18
+ /**
19
+ * null === we haven't tried to initialize yet
20
+ * undefined === unable to initialize
21
+ */
22
+ private static _tarUtilityPromise;
23
+ private readonly _project;
24
+ private readonly _localBuildCacheProvider;
25
+ private readonly _cloudBuildCacheProvider;
26
+ private readonly _buildCacheEnabled;
27
+ private readonly _cacheWriteEnabled;
28
+ private readonly _projectOutputFolderNames;
29
+ private readonly _additionalProjectOutputFilePaths;
30
+ private _cacheId;
31
+ private constructor();
32
+ private static _tryGetTarUtility;
33
+ static tryGetProjectBuildCache(options: IProjectBuildCacheOptions): Promise<ProjectBuildCache | undefined>;
34
+ private static _validateProject;
35
+ tryRestoreFromCacheAsync(terminal: ITerminal): Promise<boolean>;
36
+ trySetCacheEntryAsync(terminal: ITerminal): Promise<boolean>;
37
+ /**
38
+ * Walks the declared output folders of the project and collects a list of files.
39
+ * @returns The list of output files as project-relative paths, or `undefined` if a
40
+ * symbolic link was encountered.
41
+ */
42
+ private _tryCollectPathsToCacheAsync;
43
+ private _getTarLogFilePath;
44
+ private static _getCacheId;
45
+ }
46
+ //# sourceMappingURL=ProjectBuildCache.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/buildCache/ProjectBuildCache");
@@ -0,0 +1,3 @@
1
+ import type { IRawRepoState } from '../ProjectChangeAnalyzer';
2
+ export declare function getHashesForGlobsAsync(globPatterns: Iterable<string>, packagePath: string, repoState: IRawRepoState | undefined): Promise<Map<string, string>>;
3
+ //# sourceMappingURL=getHashesForGlobsAsync.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/buildCache/getHashesForGlobsAsync");
@@ -0,0 +1,39 @@
1
+ import { RushConfiguration } from '../../api/RushConfiguration';
2
+ export interface IDeployScenarioProjectJson {
3
+ projectName: string;
4
+ additionalProjectsToInclude?: string[];
5
+ additionalDependenciesToInclude?: string[];
6
+ dependenciesToExclude?: string[];
7
+ }
8
+ export interface IDeployScenarioJson {
9
+ deploymentProjectNames: string[];
10
+ includeDevDependencies?: boolean;
11
+ includeNpmIgnoreFiles?: boolean;
12
+ omitPnpmWorkaroundLinks?: boolean;
13
+ linkCreation?: 'default' | 'script' | 'none';
14
+ folderToCopy?: string;
15
+ projectSettings?: IDeployScenarioProjectJson[];
16
+ }
17
+ export declare class DeployScenarioConfiguration {
18
+ private static _scenarioNameRegExp;
19
+ private static _jsonSchema;
20
+ readonly json: IDeployScenarioJson;
21
+ /**
22
+ * Used to lookup items in IDeployScenarioJson.projectSettings based on their IDeployScenarioProjectJson.projectName
23
+ */
24
+ readonly projectJsonsByName: Map<string, IDeployScenarioProjectJson>;
25
+ private constructor();
26
+ /**
27
+ * Validates that the input string conforms to the naming rules for a "rush deploy" scenario name.
28
+ */
29
+ static validateScenarioName(scenarioName: string): void;
30
+ /**
31
+ * Given the --scenarioName value, return the full path of the filename.
32
+ *
33
+ * Example: "ftp-site" --> "...common/config/rush/deploy-ftp-site.json"
34
+ * Example: undefined --> "...common/config/rush/deploy.json"
35
+ */
36
+ static getConfigFilePath(scenarioName: string | undefined, rushConfiguration: RushConfiguration): string;
37
+ static loadFromFile(scenarioFilePath: string, rushConfiguration: RushConfiguration): DeployScenarioConfiguration;
38
+ }
39
+ //# sourceMappingURL=DeployScenarioConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/deploy/DeployScenarioConfiguration");
@@ -0,0 +1,16 @@
1
+ /// <reference types="node" />
2
+ import { RushConfiguration } from '../../api/RushConfiguration';
3
+ import { RushGlobalFolder } from '../../api/RushGlobalFolder';
4
+ export declare class InstallHelpers {
5
+ static generateCommonPackageJson(rushConfiguration: RushConfiguration, dependencies?: Map<string, string>): void;
6
+ static getPackageManagerEnvironment(rushConfiguration: RushConfiguration, options?: {
7
+ debug?: boolean;
8
+ }): NodeJS.ProcessEnv;
9
+ /**
10
+ * If the "(p)npm-local" symlink hasn't been set up yet, this creates it, installing the
11
+ * specified (P)npm version in the user's home directory if needed.
12
+ */
13
+ static ensureLocalPackageManager(rushConfiguration: RushConfiguration, rushGlobalFolder: RushGlobalFolder, maxInstallAttempts: number, restrictConsoleOutput?: boolean): Promise<void>;
14
+ private static _mergeEnvironmentVariables;
15
+ }
16
+ //# sourceMappingURL=InstallHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/installManager/InstallHelpers");
@@ -0,0 +1,21 @@
1
+ import { IPackageManagerOptionsJsonBase, PackageManagerOptionsConfigurationBase } from '../base/BasePackageManagerOptionsConfiguration';
2
+ /**
3
+ * Part of IRushConfigurationJson.
4
+ * @internal
5
+ */
6
+ export interface INpmOptionsJson extends IPackageManagerOptionsJsonBase {
7
+ }
8
+ /**
9
+ * Options that are only used when the NPM package manager is selected.
10
+ *
11
+ * @remarks
12
+ * It is valid to define these options in rush.json even if the NPM package manager
13
+ * is not being used.
14
+ *
15
+ * @public
16
+ */
17
+ export declare class NpmOptionsConfiguration extends PackageManagerOptionsConfigurationBase {
18
+ /** @internal */
19
+ constructor(json: INpmOptionsJson);
20
+ }
21
+ //# sourceMappingURL=NpmOptionsConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/npm/NpmOptionsConfiguration");
@@ -0,0 +1,29 @@
1
+ import { BaseShrinkwrapFile } from '../base/BaseShrinkwrapFile';
2
+ import { DependencySpecifier } from '../DependencySpecifier';
3
+ import { RushConfigurationProject } from '../../api/RushConfigurationProject';
4
+ import { BaseProjectShrinkwrapFile } from '../base/BaseProjectShrinkwrapFile';
5
+ export declare class NpmShrinkwrapFile extends BaseShrinkwrapFile {
6
+ readonly isWorkspaceCompatible: boolean;
7
+ private _shrinkwrapJson;
8
+ private constructor();
9
+ static loadFromFile(shrinkwrapJsonFilename: string): NpmShrinkwrapFile | undefined;
10
+ static loadFromString(shrinkwrapContent: string): NpmShrinkwrapFile;
11
+ /** @override */
12
+ getTempProjectNames(): ReadonlyArray<string>;
13
+ /** @override */
14
+ protected serialize(): string;
15
+ /** @override */
16
+ protected getTopLevelDependencyVersion(dependencyName: string): DependencySpecifier | undefined;
17
+ /**
18
+ * @param dependencyName the name of the dependency to get a version for
19
+ * @param tempProjectName the name of the temp project to check for this dependency
20
+ * @param versionRange Not used, just exists to satisfy abstract API contract
21
+ * @override
22
+ */
23
+ protected tryEnsureDependencyVersion(dependencySpecifier: DependencySpecifier, tempProjectName: string): DependencySpecifier | undefined;
24
+ /** @override */
25
+ getProjectShrinkwrap(project: RushConfigurationProject): BaseProjectShrinkwrapFile<NpmShrinkwrapFile> | undefined;
26
+ /** @override */
27
+ isWorkspaceProjectModifiedAsync(project: RushConfigurationProject, variant?: string): Promise<boolean>;
28
+ }
29
+ //# sourceMappingURL=NpmShrinkwrapFile.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/npm/NpmShrinkwrapFile");
@@ -0,0 +1,47 @@
1
+ import { OperationExecutionRecord } from './OperationExecutionRecord';
2
+ /**
3
+ * Implmentation of the async iteration protocol for a collection of IOperation objects.
4
+ * The async iterator will wait for an operation to be ready for execution, or terminate if there are no more operations.
5
+ *
6
+ * @remarks
7
+ * If the caller does not update dependencies prior to invoking `next()` on the iterator again,
8
+ * it must manually invoke `assignOperations()` after performing the updates, otherwise iterators will
9
+ * stall until another operations completes.
10
+ */
11
+ export declare class AsyncOperationQueue implements AsyncIterable<OperationExecutionRecord>, AsyncIterator<OperationExecutionRecord> {
12
+ private readonly _queue;
13
+ private readonly _pendingIterators;
14
+ /**
15
+ * @param operations - The set of operations to be executed
16
+ * @param sortFn - A function that sorts operations in reverse priority order:
17
+ * - Returning a positive value indicates that `a` should execute before `b`.
18
+ * - Returning a negative value indicates that `b` should execute before `a`.
19
+ * - Returning 0 indicates no preference.
20
+ */
21
+ constructor(operations: Iterable<OperationExecutionRecord>, sortFn: IOperationSortFunction);
22
+ /**
23
+ * For use with `for await (const operation of taskQueue)`
24
+ * @see {AsyncIterator}
25
+ */
26
+ next(): Promise<IteratorResult<OperationExecutionRecord>>;
27
+ /**
28
+ * Routes ready operations with 0 dependencies to waiting iterators. Normally invoked as part of `next()`, but
29
+ * if the caller does not update operation dependencies prior to calling `next()`, may need to be invoked manually.
30
+ */
31
+ assignOperations(): void;
32
+ /**
33
+ * Returns this queue as an async iterator, such that multiple functions iterating this object concurrently
34
+ * receive distinct iteration results.
35
+ */
36
+ [Symbol.asyncIterator](): AsyncIterator<OperationExecutionRecord>;
37
+ }
38
+ export interface IOperationSortFunction {
39
+ /**
40
+ * A function that sorts operations in reverse priority order:
41
+ * Returning a positive value indicates that `a` should execute before `b`.
42
+ * Returning a negative value indicates that `b` should execute before `a`.
43
+ * Returning 0 indicates no preference.
44
+ */
45
+ (a: OperationExecutionRecord, b: OperationExecutionRecord): number;
46
+ }
47
+ //# sourceMappingURL=AsyncOperationQueue.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/operations/AsyncOperationQueue");
@@ -0,0 +1,49 @@
1
+ import type { StdioSummarizer } from '@rushstack/terminal';
2
+ import type { OperationStatus } from './OperationStatus';
3
+ import type { IStopwatchResult } from '../../utilities/Stopwatch';
4
+ import type { Operation } from './Operation';
5
+ /**
6
+ * The `IOperationExecutionResult` interface represents the results of executing an {@link Operation}.
7
+ * @alpha
8
+ */
9
+ export interface IOperationExecutionResult {
10
+ /**
11
+ * The current execution status of an operation. Operations start in the 'ready' state,
12
+ * but can be 'blocked' if an upstream operation failed. It is 'executing' when
13
+ * the operation is executing. Once execution is complete, it is either 'success' or
14
+ * 'failure'.
15
+ */
16
+ readonly status: OperationStatus;
17
+ /**
18
+ * The error which occurred while executing this operation, this is stored in case we need
19
+ * it later (for example to re-print errors at end of execution).
20
+ */
21
+ readonly error: Error | undefined;
22
+ /**
23
+ * Object tracking execution timing.
24
+ */
25
+ readonly stopwatch: IStopwatchResult;
26
+ /**
27
+ * Object used to report a summary at the end of the Rush invocation.
28
+ */
29
+ readonly stdioSummarizer: StdioSummarizer;
30
+ /**
31
+ * The value indicates the duration of the same operation without cache hit.
32
+ */
33
+ readonly nonCachedDurationMs: number | undefined;
34
+ }
35
+ /**
36
+ * The `IExecutionResult` interface represents the results of executing a set of {@link Operation}s.
37
+ * @alpha
38
+ */
39
+ export interface IExecutionResult {
40
+ /**
41
+ * The results for each scheduled operation.
42
+ */
43
+ readonly operationResults: ReadonlyMap<Operation, IOperationExecutionResult>;
44
+ /**
45
+ * The overall result.
46
+ */
47
+ readonly status: OperationStatus;
48
+ }
49
+ //# sourceMappingURL=IOperationExecutionResult.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/operations/IOperationExecutionResult");
@@ -0,0 +1,77 @@
1
+ import type { StdioSummarizer } from '@rushstack/terminal';
2
+ import type { CollatedWriter } from '@rushstack/stream-collator';
3
+ import type { OperationStatus } from './OperationStatus';
4
+ import type { OperationMetadataManager } from './OperationMetadataManager';
5
+ import type { IStopwatchResult } from '../../utilities/Stopwatch';
6
+ /**
7
+ * Information passed to the executing `IOperationRunner`
8
+ *
9
+ * @beta
10
+ */
11
+ export interface IOperationRunnerContext {
12
+ /**
13
+ * The writer into which this `IOperationRunner` should write its logs.
14
+ */
15
+ collatedWriter: CollatedWriter;
16
+ /**
17
+ * If Rush was invoked with `--debug`
18
+ */
19
+ debugMode: boolean;
20
+ /**
21
+ * Defaults to `true`. Will be `false` if Rush was invoked with `--verbose`.
22
+ */
23
+ quietMode: boolean;
24
+ /**
25
+ * Object used to report a summary at the end of the Rush invocation.
26
+ */
27
+ stdioSummarizer: StdioSummarizer;
28
+ /**
29
+ * Object used to manage metadata of the operation.
30
+ *
31
+ * @internal
32
+ */
33
+ _operationMetadataManager?: OperationMetadataManager;
34
+ /**
35
+ * Object used to track elapsed time.
36
+ */
37
+ stopwatch: IStopwatchResult;
38
+ }
39
+ /**
40
+ * The `Operation` class is a node in the dependency graph of work that needs to be scheduled by the
41
+ * `OperationExecutionManager`. Each `Operation` has a `runner` member of type `IOperationRunner`, whose
42
+ * implementation manages the actual process for running a single operation.
43
+ *
44
+ * @beta
45
+ */
46
+ export interface IOperationRunner {
47
+ /**
48
+ * Name of the operation, for logging.
49
+ */
50
+ readonly name: string;
51
+ /**
52
+ * This flag determines if the operation is allowed to be skipped if up to date.
53
+ */
54
+ isSkipAllowed: boolean;
55
+ /**
56
+ * Indicates that this runner's duration has meaning.
57
+ */
58
+ reportTiming: boolean;
59
+ /**
60
+ * Indicates that this runner is architectural and should not be reported on.
61
+ */
62
+ silent: boolean;
63
+ /**
64
+ * If set to true, a warning result should not make Rush exit with a nonzero
65
+ * exit code
66
+ */
67
+ warningsAreAllowed: boolean;
68
+ /**
69
+ * Indicates if the output of this operation may be written to the cache
70
+ */
71
+ isCacheWriteAllowed: boolean;
72
+ /**
73
+ * Method to be executed for the operation.
74
+ */
75
+ executeAsync(context: IOperationRunnerContext): Promise<OperationStatus>;
76
+ }
77
+ //# sourceMappingURL=IOperationRunner.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/operations/IOperationRunner");
@@ -0,0 +1,35 @@
1
+ import type { OperationStatus } from './OperationStatus';
2
+ import type { IOperationRunner, IOperationRunnerContext } from './IOperationRunner';
3
+ /**
4
+ *
5
+ */
6
+ export interface INullOperationRunnerParams {
7
+ /**
8
+ * The name to report in logs.
9
+ */
10
+ name: string;
11
+ /**
12
+ * The result to report from the runner.
13
+ */
14
+ result: OperationStatus;
15
+ /**
16
+ * If true, the operation will not log anything or be tracked in statistics.
17
+ */
18
+ silent: boolean;
19
+ }
20
+ /**
21
+ * Implementation of `IOperationRunner` for operations that require no work, such as empty scripts,
22
+ * skipped operations, or blocked operations.
23
+ */
24
+ export declare class NullOperationRunner implements IOperationRunner {
25
+ readonly name: string;
26
+ readonly reportTiming: boolean;
27
+ readonly silent: boolean;
28
+ isSkipAllowed: boolean;
29
+ isCacheWriteAllowed: boolean;
30
+ readonly warningsAreAllowed: boolean;
31
+ readonly result: OperationStatus;
32
+ constructor({ name, result, silent }: INullOperationRunnerParams);
33
+ executeAsync(context: IOperationRunnerContext): Promise<OperationStatus>;
34
+ }
35
+ //# sourceMappingURL=NullOperationRunner.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/operations/NullOperationRunner");