@rushstack/rush-sdk 5.91.0 → 5.93.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 (363) hide show
  1. package/README.md +47 -10
  2. package/dist/rush-lib.d.ts +23 -0
  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 +263 -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 +92 -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/SetRushLibPath.d.ts +2 -0
  342. package/lib/utilities/SetRushLibPath.js +1 -0
  343. package/lib/utilities/Stopwatch.d.ts +75 -0
  344. package/lib/utilities/Stopwatch.js +1 -0
  345. package/lib/utilities/TarExecutable.d.ts +32 -0
  346. package/lib/utilities/TarExecutable.js +1 -0
  347. package/lib/utilities/Utilities.d.ts +189 -0
  348. package/lib/utilities/Utilities.js +1 -0
  349. package/lib/utilities/WebClient.d.ts +49 -0
  350. package/lib/utilities/WebClient.js +1 -0
  351. package/lib/utilities/npmrcUtilities.d.ts +15 -0
  352. package/lib/utilities/npmrcUtilities.js +1 -0
  353. package/lib-shim/generate-stubs.d.ts +2 -0
  354. package/lib-shim/generate-stubs.d.ts.map +1 -0
  355. package/lib-shim/generate-stubs.js +82 -0
  356. package/lib-shim/generate-stubs.js.map +1 -0
  357. package/lib-shim/index.d.ts +5 -0
  358. package/lib-shim/index.d.ts.map +1 -0
  359. package/lib-shim/index.js +224 -0
  360. package/lib-shim/index.js.map +1 -0
  361. package/package.json +4 -4
  362. package/lib/index.d.ts.map +0 -1
  363. package/lib/index.js.map +0 -1
@@ -0,0 +1,161 @@
1
+ import type { CommandLineParameter } from '@rushstack/ts-command-line';
2
+ import type { ICommandLineJson, IGlobalCommandJson, IFlagParameterJson, IChoiceParameterJson, IStringParameterJson, IIntegerParameterJson, IStringListParameterJson, IIntegerListParameterJson, IChoiceListParameterJson, IPhasedCommandWithoutPhasesJson } from './CommandLineJson';
3
+ export interface IShellCommandTokenContext {
4
+ packageFolder: string;
5
+ }
6
+ /**
7
+ * Metadata about a phase.
8
+ * @alpha
9
+ */
10
+ export interface IPhase {
11
+ /**
12
+ * The name of this phase.
13
+ */
14
+ name: string;
15
+ /**
16
+ * If set to `true,` this this phase was generated from a bulk command, and
17
+ * was not explicitly defined in the command-line.json file.
18
+ */
19
+ isSynthetic: boolean;
20
+ /**
21
+ * This property is used in the name of the filename for the logs generated by this
22
+ * phase. This is a filesystem-safe version of the phase name. For example,
23
+ * a phase with name `_phase:compile` has a `logFilenameIdentifier` of `_phase_compile`.
24
+ */
25
+ logFilenameIdentifier: string;
26
+ /**
27
+ * The set of custom command line parameters that are relevant to this phase.
28
+ */
29
+ associatedParameters: Set<CommandLineParameter>;
30
+ /**
31
+ * The resolved dependencies of the phase
32
+ */
33
+ dependencies: {
34
+ self: Set<IPhase>;
35
+ upstream: Set<IPhase>;
36
+ };
37
+ /**
38
+ * Normally Rush requires that each project's package.json has a `"scripts"` entry matching the phase name.
39
+ * To disable this check, set `ignoreMissingScript` to true.
40
+ */
41
+ ignoreMissingScript: boolean;
42
+ /**
43
+ * By default, Rush returns a nonzero exit code if errors or warnings occur during a command. If this option is
44
+ * set to `true`, Rush will return a zero exit code if warnings occur during the execution of this phase.
45
+ */
46
+ allowWarningsOnSuccess: boolean;
47
+ /**
48
+ * (Optional) If the `shellCommand` field is set for a bulk command, Rush will invoke it for each
49
+ * selected project; otherwise, Rush will invoke the package.json `"scripts"` entry matching Rush command/phase name.
50
+ *
51
+ * This string is the path to a script that will be invoked using the OS shell. The working directory will be
52
+ * the folder that contains rush.json. If custom parameters are associated with this command, their
53
+ * values will be appended to the end of this string.
54
+ */
55
+ shellCommand?: string;
56
+ }
57
+ export interface ICommandWithParameters {
58
+ associatedParameters: Set<IParameterJson>;
59
+ }
60
+ export interface IPhasedCommandConfig extends IPhasedCommandWithoutPhasesJson, ICommandWithParameters {
61
+ /**
62
+ * If set to `true`, then this phased command was generated from a bulk command, and
63
+ * was not explicitly defined in the command-line.json file.
64
+ */
65
+ isSynthetic: boolean;
66
+ disableBuildCache?: boolean;
67
+ phases: Set<IPhase>;
68
+ /**
69
+ * If set to `true`, this phased command will always run in watch mode, regardless of CLI flags.
70
+ */
71
+ alwaysWatch: boolean;
72
+ /**
73
+ * The set of phases to execute when running this phased command in watch mode.
74
+ */
75
+ watchPhases: Set<IPhase>;
76
+ /**
77
+ * How many milliseconds to wait after receiving a file system notification before executing in watch mode.
78
+ */
79
+ watchDebounceMs?: number;
80
+ /**
81
+ * If set to `true`, then this phased command will always perform an install before executing, regardless of CLI flags.
82
+ * If set to `false`, then Rush will define a built-in "--install" CLI flag for this command.
83
+ * If undefined, then Rush does not define a built-in "--install" CLI flag for this command and no installation is performed.
84
+ */
85
+ alwaysInstall: boolean | undefined;
86
+ }
87
+ export interface IGlobalCommandConfig extends IGlobalCommandJson, ICommandWithParameters {
88
+ }
89
+ export declare type Command = IGlobalCommandConfig | IPhasedCommandConfig;
90
+ /**
91
+ * Metadata about a custom parameter defined in command-line.json
92
+ * @alpha
93
+ */
94
+ export declare type IParameterJson = IFlagParameterJson | IChoiceParameterJson | IStringParameterJson | IIntegerParameterJson | IStringListParameterJson | IIntegerListParameterJson | IChoiceListParameterJson;
95
+ interface ICommandLineConfigurationOptions {
96
+ /**
97
+ * If true, do not include default build and rebuild commands.
98
+ */
99
+ doNotIncludeDefaultBuildCommands?: boolean;
100
+ }
101
+ /**
102
+ * Custom Commands and Options for the Rush Command Line
103
+ */
104
+ export declare class CommandLineConfiguration {
105
+ private static _jsonSchema;
106
+ readonly commands: Map<string, Command>;
107
+ readonly phases: Map<string, IPhase>;
108
+ readonly parameters: IParameterJson[];
109
+ /**
110
+ * shellCommand from plugin custom command line configuration needs to be expanded with tokens
111
+ */
112
+ shellCommandTokenContext: IShellCommandTokenContext | undefined;
113
+ /**
114
+ * These path will be prepended to the PATH environment variable
115
+ */
116
+ readonly additionalPathFolders: Readonly<string[]>;
117
+ /**
118
+ * A map of bulk command names to their corresponding synthetic phase identifiers
119
+ */
120
+ private readonly _syntheticPhasesByTranslatedBulkCommandName;
121
+ /**
122
+ * Use CommandLineConfiguration.loadFromFile()
123
+ *
124
+ * @internal
125
+ */
126
+ constructor(commandLineJson: ICommandLineJson | undefined, options?: ICommandLineConfigurationOptions);
127
+ /**
128
+ * Performs a depth-first search to detect cycles in the directed graph of phase "self" dependencies.
129
+ *
130
+ * @param phase The phase node currently being checked
131
+ * @param phasesInPath The current path from the start node to `phase`
132
+ * @param cycleFreePhases Phases that have already been fully walked and confirmed to not be in any cycles
133
+ */
134
+ private _checkForPhaseSelfCycles;
135
+ /**
136
+ * Load the command-line.json configuration file from the specified path. Note that this
137
+ * does not include the default build settings. This option is intended to be used to load
138
+ * command-line.json files from plugins. To load a common/config/rush/command-line.json file,
139
+ * use {@see loadFromFileOrDefault} instead.
140
+ *
141
+ * If the file does not exist, this function returns `undefined`
142
+ */
143
+ static tryLoadFromFile(jsonFilePath: string): CommandLineConfiguration | undefined;
144
+ /**
145
+ * Loads the configuration from the specified file and applies any omitted default build
146
+ * settings. If the file does not exist, then a default instance is returned.
147
+ * If the file contains errors, then an exception is thrown.
148
+ */
149
+ static loadFromFileOrDefault(jsonFilePath?: string): CommandLineConfiguration;
150
+ prependAdditionalPathFolder(pathFolder: string): void;
151
+ /**
152
+ * This function replaces colons (":") with underscores ("_").
153
+ *
154
+ * ts-command-line restricts command names to lowercase letters, numbers, underscores, and colons.
155
+ * Replacing colons with underscores produces a filesystem-safe name.
156
+ */
157
+ private _normalizeNameForLogFilenameIdentifiers;
158
+ private _translateBulkCommandToPhasedCommand;
159
+ }
160
+ export {};
161
+ //# sourceMappingURL=CommandLineConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("api/CommandLineConfiguration");
@@ -0,0 +1,251 @@
1
+ /**
2
+ * "baseCommand" from command-line.schema.json
3
+ */
4
+ export interface IBaseCommandJson {
5
+ commandKind: 'bulk' | 'global' | 'phased';
6
+ name: string;
7
+ summary: string;
8
+ /**
9
+ * If omitted, the summary will be used instead.
10
+ */
11
+ description?: string;
12
+ safeForSimultaneousRushProcesses: boolean;
13
+ autoinstallerName?: string;
14
+ shellCommand?: string;
15
+ }
16
+ /**
17
+ * "bulkCommand" from command-line.schema.json
18
+ */
19
+ export interface IBulkCommandJson extends IBaseCommandJson {
20
+ commandKind: 'bulk';
21
+ enableParallelism: boolean;
22
+ ignoreDependencyOrder?: boolean;
23
+ ignoreMissingScript?: boolean;
24
+ incremental?: boolean;
25
+ allowWarningsInSuccessfulBuild?: boolean;
26
+ watchForChanges?: boolean;
27
+ disableBuildCache?: boolean;
28
+ }
29
+ /**
30
+ * Base interface shared by the "phasedCommand" JSON entries and the post-processed
31
+ * "IPhase" interface in the CommandLineConfiguration
32
+ */
33
+ export interface IPhasedCommandWithoutPhasesJson extends IBaseCommandJson {
34
+ commandKind: 'phased';
35
+ enableParallelism: boolean;
36
+ incremental?: boolean;
37
+ }
38
+ /**
39
+ * "phasedCommand" from command-line.schema.json
40
+ */
41
+ export interface IPhasedCommandJson extends IPhasedCommandWithoutPhasesJson {
42
+ phases: string[];
43
+ watchOptions?: {
44
+ alwaysWatch: boolean;
45
+ debounceMs?: number;
46
+ watchPhases: string[];
47
+ };
48
+ installOptions?: {
49
+ alwaysInstall: boolean;
50
+ };
51
+ }
52
+ /**
53
+ * "globalCommand" from command-line.schema.json
54
+ */
55
+ export interface IGlobalCommandJson extends IBaseCommandJson {
56
+ commandKind: 'global';
57
+ shellCommand: string;
58
+ }
59
+ export declare type CommandJson = IBulkCommandJson | IGlobalCommandJson | IPhasedCommandJson;
60
+ /**
61
+ * The dependencies of a phase.
62
+ * @alpha
63
+ */
64
+ export interface IPhaseDependencies {
65
+ /**
66
+ * Dependency phases within the same project.
67
+ */
68
+ self?: string[];
69
+ /**
70
+ * Dependency phases in upstream projects.
71
+ */
72
+ upstream?: string[];
73
+ }
74
+ /**
75
+ * A phase, used in the phased command feature.
76
+ * @alpha
77
+ */
78
+ export interface IPhaseJson {
79
+ /**
80
+ * The name of the phase. Note that this value must start with the \"_phase:\" prefix.
81
+ */
82
+ name: string;
83
+ /**
84
+ * The dependencies of this phase.
85
+ */
86
+ dependencies?: IPhaseDependencies;
87
+ /**
88
+ * Normally Rush requires that each project's package.json has a \"scripts\" entry matching the phase name. To disable this check, set \"ignoreMissingScript\" to true.
89
+ */
90
+ ignoreMissingScript?: boolean;
91
+ /**
92
+ * By default, Rush returns a nonzero exit code if errors or warnings occur during a command. If this option is set to \"true\", Rush will return a zero exit code if warnings occur during the execution of this phase.
93
+ */
94
+ allowWarningsOnSuccess?: boolean;
95
+ }
96
+ /**
97
+ * "baseParameter" from command-line.schema.json
98
+ * @public
99
+ */
100
+ export interface IBaseParameterJson {
101
+ /**
102
+ * Indicates the kind of syntax for this command-line parameter: \"flag\" or \"choice\" or \"string\" or \"stringList\" or \"integerList\" or \"choiceList\".
103
+ */
104
+ parameterKind: 'flag' | 'choice' | 'string' | 'integer' | 'stringList' | 'integerList' | 'choiceList';
105
+ /**
106
+ * The name of the parameter (e.g. \"--verbose\"). This is a required field.
107
+ */
108
+ longName: string;
109
+ /**
110
+ * An optional short form of the parameter (e.g. \"-v\" instead of \"--verbose\").
111
+ */
112
+ shortName?: string;
113
+ /**
114
+ * A detailed description of the parameter, which appears when requesting help for the command (e.g. \"rush --help my-command\").
115
+ */
116
+ description: string;
117
+ /**
118
+ * A list of custom commands and/or built-in Rush commands that this parameter may be used with, by name.
119
+ */
120
+ associatedCommands?: string[];
121
+ /**
122
+ * A list of the names of the phases that this command-line parameter should be provided to.
123
+ */
124
+ associatedPhases?: string[];
125
+ /**
126
+ * If true, then this parameter must be included on the command line.
127
+ */
128
+ required?: boolean;
129
+ }
130
+ /**
131
+ * A custom command-line parameter whose presence acts as an on/off switch.
132
+ * @public
133
+ */
134
+ export interface IFlagParameterJson extends IBaseParameterJson {
135
+ /**
136
+ * Denotes that this is a flag (boolean) parameter.
137
+ */
138
+ parameterKind: 'flag';
139
+ }
140
+ /**
141
+ * Part of "choiceParameter" from command-line.schema.json
142
+ * @public
143
+ */
144
+ export interface IChoiceParameterAlternativeJson {
145
+ /**
146
+ * A token that is one of the alternatives that can be used with the choice parameter, e.g. \"vanilla\" in \"--flavor vanilla\".
147
+ */
148
+ name: string;
149
+ /**
150
+ * A detailed description for the alternative that will be shown in the command-line help.
151
+ */
152
+ description: string;
153
+ }
154
+ /**
155
+ * A custom command-line parameter whose argument must be chosen from a list of allowable alternatives.
156
+ * @public
157
+ */
158
+ export interface IChoiceParameterJson extends IBaseParameterJson {
159
+ /**
160
+ * Denotes that this is a choice parameter.
161
+ */
162
+ parameterKind: 'choice';
163
+ /**
164
+ * A list of alternative argument values that can be chosen for this parameter.
165
+ */
166
+ alternatives: IChoiceParameterAlternativeJson[];
167
+ /**
168
+ * If the parameter is omitted from the command line, this value will be inserted by default.
169
+ */
170
+ defaultValue?: string;
171
+ }
172
+ /**
173
+ * A custom command-line parameter whose value is interpreted as a string.
174
+ * @public
175
+ */
176
+ export interface IStringParameterJson extends IBaseParameterJson {
177
+ /**
178
+ * Denotes that this is a string parameter.
179
+ */
180
+ parameterKind: 'string';
181
+ /**
182
+ * The name of the argument for this parameter.
183
+ */
184
+ argumentName: string;
185
+ }
186
+ /**
187
+ * A custom command-line parameter whose value is interpreted as a integer.
188
+ * @public
189
+ */
190
+ export interface IIntegerParameterJson extends IBaseParameterJson {
191
+ /**
192
+ * Denotes that this is a string parameter.
193
+ */
194
+ parameterKind: 'integer';
195
+ /**
196
+ * The name of the argument for this parameter.
197
+ */
198
+ argumentName: string;
199
+ }
200
+ /**
201
+ * A custom command-line parameter whose presence acts as a list of string
202
+ * @public
203
+ */
204
+ export interface IStringListParameterJson extends IBaseParameterJson {
205
+ /**
206
+ * Denotes that this is a string list parameter.
207
+ */
208
+ parameterKind: 'stringList';
209
+ /**
210
+ * The name of the argument for this parameter.
211
+ */
212
+ argumentName: string;
213
+ }
214
+ /**
215
+ * A custom command-line parameter whose presence acts as a list of integer
216
+ * @public
217
+ */
218
+ export interface IIntegerListParameterJson extends IBaseParameterJson {
219
+ /**
220
+ * Denotes that this is a integer list parameter.
221
+ */
222
+ parameterKind: 'integerList';
223
+ /**
224
+ * The name of the argument for this parameter.
225
+ */
226
+ argumentName: string;
227
+ }
228
+ /**
229
+ * A custom command-line parameter whose presence acts as a list of choice
230
+ * @public
231
+ */
232
+ export interface IChoiceListParameterJson extends IBaseParameterJson {
233
+ /**
234
+ * Denotes that this is a choice list parameter.
235
+ */
236
+ parameterKind: 'choiceList';
237
+ /**
238
+ * A list of alternative argument values that can be chosen for this parameter.
239
+ */
240
+ alternatives: IChoiceParameterAlternativeJson[];
241
+ }
242
+ export declare type ParameterJson = IFlagParameterJson | IChoiceParameterJson | IStringParameterJson | IIntegerParameterJson | IStringListParameterJson | IIntegerListParameterJson | IChoiceListParameterJson;
243
+ /**
244
+ * Interfaces for the file format described by command-line.schema.json
245
+ */
246
+ export interface ICommandLineJson {
247
+ commands?: CommandJson[];
248
+ phases?: IPhaseJson[];
249
+ parameters?: ParameterJson[];
250
+ }
251
+ //# sourceMappingURL=CommandLineJson.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("api/CommandLineJson");
@@ -0,0 +1,96 @@
1
+ /**
2
+ * Part of the ICommonVersionsJson structure.
3
+ */
4
+ export declare interface ICommonVersionsJsonVersionMap {
5
+ /**
6
+ * The key is the name of a dependency. The value is a Semantic Versioning (SemVer)
7
+ * range specifier.
8
+ */
9
+ [dependencyName: string]: string;
10
+ }
11
+ /**
12
+ * Part of the ICommonVersionsJson structure.
13
+ */
14
+ export declare interface ICommonVersionsJsonVersionsMap {
15
+ /**
16
+ * The key is the name of a dependency. The value is a list of Semantic Versioning (SemVer)
17
+ * range specifiers.
18
+ */
19
+ [dependencyName: string]: string[];
20
+ }
21
+ /**
22
+ * Use this class to load and save the "common/config/rush/common-versions.json" config file.
23
+ * This config file stores dependency version information that affects all projects in the repo.
24
+ * @public
25
+ */
26
+ export declare class CommonVersionsConfiguration {
27
+ private static _jsonSchema;
28
+ private _preferredVersions;
29
+ private _allowedAlternativeVersions;
30
+ private _modified;
31
+ /**
32
+ * Get the absolute file path of the common-versions.json file.
33
+ */
34
+ readonly filePath: string;
35
+ /**
36
+ * When set to true, for all projects in the repo, all dependencies will be automatically added as preferredVersions,
37
+ * except in cases where different projects specify different version ranges for a given dependency. For older
38
+ * package managers, this tended to reduce duplication of indirect dependencies. However, it can sometimes cause
39
+ * trouble for indirect dependencies with incompatible peerDependencies ranges.
40
+ *
41
+ * If the value is `undefined`, then the default value is `true`.
42
+ */
43
+ readonly implicitlyPreferredVersions: boolean | undefined;
44
+ /**
45
+ * A table that specifies a "preferred version" for a given NPM package. This feature is typically used
46
+ * to hold back an indirect dependency to a specific older version, or to reduce duplication of indirect dependencies.
47
+ *
48
+ * @remarks
49
+ * The "preferredVersions" value can be any SemVer range specifier (e.g. `~1.2.3`). Rush injects these values into
50
+ * the "dependencies" field of the top-level common/temp/package.json, which influences how the package manager
51
+ * will calculate versions. The specific effect depends on your package manager. Generally it will have no
52
+ * effect on an incompatible or already constrained SemVer range. If you are using PNPM, similar effects can be
53
+ * achieved using the pnpmfile.js hook. See the Rush documentation for more details.
54
+ *
55
+ * After modifying this field, it's recommended to run `rush update --full` so that the package manager
56
+ * will recalculate all version selections.
57
+ */
58
+ readonly preferredVersions: Map<string, string>;
59
+ /**
60
+ * A table that stores, for a given dependency, a list of SemVer ranges that will be accepted
61
+ * by "rush check" in addition to the normal version range.
62
+ *
63
+ * @remarks
64
+ * The "rush check" command can be used to enforce that every project in the repo
65
+ * must specify the same SemVer range for a given dependency. However, sometimes
66
+ * exceptions are needed. The allowedAlternativeVersions table allows you to list
67
+ * other SemVer ranges that will be accepted by "rush check" for a given dependency.
68
+ * Note that the normal version range (as inferred by looking at all projects in the repo)
69
+ * should NOT be included in this list.
70
+ */
71
+ readonly allowedAlternativeVersions: Map<string, ReadonlyArray<string>>;
72
+ private constructor();
73
+ /**
74
+ * Loads the common-versions.json data from the specified file path.
75
+ * If the file has not been created yet, then an empty object is returned.
76
+ */
77
+ static loadFromFile(jsonFilename: string): CommonVersionsConfiguration;
78
+ private static _deserializeTable;
79
+ private static _serializeTable;
80
+ /**
81
+ * Get a sha1 hash of the preferred versions.
82
+ */
83
+ getPreferredVersionsHash(): string;
84
+ /**
85
+ * Writes the "common-versions.json" file to disk, using the filename that was passed to loadFromFile().
86
+ */
87
+ save(): boolean;
88
+ /**
89
+ * Returns preferredVersions.
90
+ */
91
+ getAllPreferredVersions(): Map<string, string>;
92
+ private _onSetPreferredVersions;
93
+ private _onSetAllowedAlternativeVersions;
94
+ private _serialize;
95
+ }
96
+ //# sourceMappingURL=CommonVersionsConfiguration.d.ts.map
@@ -0,0 +1 @@
1
+ module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("api/CommonVersionsConfiguration");