@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.
- package/README.md +46 -11
- package/dist/rush-lib.d.ts +77 -11
- package/lib/api/ApprovedPackagesConfiguration.d.ts +74 -0
- package/lib/api/ApprovedPackagesConfiguration.js +1 -0
- package/lib/api/ApprovedPackagesPolicy.d.ts +54 -0
- package/lib/api/ApprovedPackagesPolicy.js +1 -0
- package/lib/api/BuildCacheConfiguration.d.ts +77 -0
- package/lib/api/BuildCacheConfiguration.js +1 -0
- package/lib/api/ChangeFile.d.ts +42 -0
- package/lib/api/ChangeFile.js +1 -0
- package/lib/api/ChangeManagement.d.ts +85 -0
- package/lib/api/ChangeManagement.js +1 -0
- package/lib/api/ChangeManager.d.ts +16 -0
- package/lib/api/ChangeManager.js +1 -0
- package/lib/api/Changelog.d.ts +74 -0
- package/lib/api/Changelog.js +1 -0
- package/lib/api/CommandLineConfiguration.d.ts +161 -0
- package/lib/api/CommandLineConfiguration.js +1 -0
- package/lib/api/CommandLineJson.d.ts +251 -0
- package/lib/api/CommandLineJson.js +1 -0
- package/lib/api/CommonVersionsConfiguration.d.ts +96 -0
- package/lib/api/CommonVersionsConfiguration.js +1 -0
- package/lib/api/EnvironmentConfiguration.d.ts +258 -0
- package/lib/api/EnvironmentConfiguration.js +1 -0
- package/lib/api/EventHooks.d.ts +42 -0
- package/lib/api/EventHooks.js +1 -0
- package/lib/api/ExperimentsConfiguration.d.ts +62 -0
- package/lib/api/ExperimentsConfiguration.js +1 -0
- package/lib/api/LastInstallFlag.d.ts +73 -0
- package/lib/api/LastInstallFlag.js +1 -0
- package/lib/api/LastLinkFlag.d.ts +41 -0
- package/lib/api/LastLinkFlag.js +1 -0
- package/lib/api/PackageJsonEditor.d.ts +79 -0
- package/lib/api/PackageJsonEditor.js +1 -0
- package/lib/api/PackageNameParsers.d.ts +18 -0
- package/lib/api/PackageNameParsers.js +1 -0
- package/lib/api/Rush.d.ts +91 -0
- package/lib/api/Rush.js +1 -0
- package/lib/api/RushConfiguration.d.ts +595 -0
- package/lib/api/RushConfiguration.js +1 -0
- package/lib/api/RushConfigurationProject.d.ts +217 -0
- package/lib/api/RushConfigurationProject.js +1 -0
- package/lib/api/RushGlobalFolder.d.ts +32 -0
- package/lib/api/RushGlobalFolder.js +1 -0
- package/lib/api/RushInternals.d.ts +15 -0
- package/lib/api/RushInternals.js +1 -0
- package/lib/api/RushPluginsConfiguration.d.ts +21 -0
- package/lib/api/RushPluginsConfiguration.js +1 -0
- package/lib/api/RushProjectConfiguration.d.ts +117 -0
- package/lib/api/RushProjectConfiguration.js +1 -0
- package/lib/api/RushUserConfiguration.d.ts +16 -0
- package/lib/api/RushUserConfiguration.js +1 -0
- package/lib/api/SaveCallbackPackageJsonEditor.d.ts +14 -0
- package/lib/api/SaveCallbackPackageJsonEditor.js +1 -0
- package/lib/api/Variants.d.ts +11 -0
- package/lib/api/Variants.js +1 -0
- package/lib/api/VersionPolicy.d.ts +203 -0
- package/lib/api/VersionPolicy.js +1 -0
- package/lib/api/VersionPolicyConfiguration.d.ts +75 -0
- package/lib/api/VersionPolicyConfiguration.js +1 -0
- package/lib/api/packageManager/NpmPackageManager.d.ts +9 -0
- package/lib/api/packageManager/NpmPackageManager.js +1 -0
- package/lib/api/packageManager/PackageManager.d.ts +29 -0
- package/lib/api/packageManager/PackageManager.js +1 -0
- package/lib/api/packageManager/PnpmPackageManager.d.ts +17 -0
- package/lib/api/packageManager/PnpmPackageManager.js +1 -0
- package/lib/api/packageManager/YarnPackageManager.d.ts +9 -0
- package/lib/api/packageManager/YarnPackageManager.js +1 -0
- package/lib/cli/CommandLineMigrationAdvisor.d.ts +5 -0
- package/lib/cli/CommandLineMigrationAdvisor.js +1 -0
- package/lib/cli/RushCommandLineParser.d.ts +49 -0
- package/lib/cli/RushCommandLineParser.js +1 -0
- package/lib/cli/RushPnpmCommandLine.d.ts +7 -0
- package/lib/cli/RushPnpmCommandLine.js +1 -0
- package/lib/cli/RushPnpmCommandLineParser.d.ts +26 -0
- package/lib/cli/RushPnpmCommandLineParser.js +1 -0
- package/lib/cli/RushStartupBanner.d.ts +7 -0
- package/lib/cli/RushStartupBanner.js +1 -0
- package/lib/cli/RushXCommandLine.d.ts +17 -0
- package/lib/cli/RushXCommandLine.js +1 -0
- package/lib/cli/actions/AddAction.d.ts +15 -0
- package/lib/cli/actions/AddAction.js +1 -0
- package/lib/cli/actions/BaseAddAndRemoveAction.d.ts +36 -0
- package/lib/cli/actions/BaseAddAndRemoveAction.js +1 -0
- package/lib/cli/actions/BaseInstallAction.d.ts +23 -0
- package/lib/cli/actions/BaseInstallAction.js +1 -0
- package/lib/cli/actions/BaseRushAction.d.ts +55 -0
- package/lib/cli/actions/BaseRushAction.js +1 -0
- package/lib/cli/actions/ChangeAction.d.ts +65 -0
- package/lib/cli/actions/ChangeAction.js +1 -0
- package/lib/cli/actions/CheckAction.d.ts +10 -0
- package/lib/cli/actions/CheckAction.js +1 -0
- package/lib/cli/actions/DeployAction.d.ts +12 -0
- package/lib/cli/actions/DeployAction.js +1 -0
- package/lib/cli/actions/InitAction.d.ts +16 -0
- package/lib/cli/actions/InitAction.js +1 -0
- package/lib/cli/actions/InitAutoinstallerAction.d.ts +8 -0
- package/lib/cli/actions/InitAutoinstallerAction.js +1 -0
- package/lib/cli/actions/InitDeployAction.d.ts +9 -0
- package/lib/cli/actions/InitDeployAction.js +1 -0
- package/lib/cli/actions/InstallAction.d.ts +9 -0
- package/lib/cli/actions/InstallAction.js +1 -0
- package/lib/cli/actions/LinkAction.d.ts +8 -0
- package/lib/cli/actions/LinkAction.js +1 -0
- package/lib/cli/actions/ListAction.d.ts +54 -0
- package/lib/cli/actions/ListAction.js +1 -0
- package/lib/cli/actions/PublishAction.d.ts +49 -0
- package/lib/cli/actions/PublishAction.js +1 -0
- package/lib/cli/actions/PurgeAction.d.ts +8 -0
- package/lib/cli/actions/PurgeAction.js +1 -0
- package/lib/cli/actions/RemoveAction.d.ts +13 -0
- package/lib/cli/actions/RemoveAction.js +1 -0
- package/lib/cli/actions/ScanAction.d.ts +23 -0
- package/lib/cli/actions/ScanAction.js +1 -0
- package/lib/cli/actions/SetupAction.d.ts +7 -0
- package/lib/cli/actions/SetupAction.js +1 -0
- package/lib/cli/actions/UnlinkAction.d.ts +7 -0
- package/lib/cli/actions/UnlinkAction.js +1 -0
- package/lib/cli/actions/UpdateAction.d.ts +11 -0
- package/lib/cli/actions/UpdateAction.js +1 -0
- package/lib/cli/actions/UpdateAutoinstallerAction.d.ts +8 -0
- package/lib/cli/actions/UpdateAutoinstallerAction.js +1 -0
- package/lib/cli/actions/UpdateCloudCredentialsAction.d.ts +10 -0
- package/lib/cli/actions/UpdateCloudCredentialsAction.js +1 -0
- package/lib/cli/actions/UpgradeInteractiveAction.d.ts +9 -0
- package/lib/cli/actions/UpgradeInteractiveAction.js +1 -0
- package/lib/cli/actions/VersionAction.d.ts +22 -0
- package/lib/cli/actions/VersionAction.js +1 -0
- package/lib/cli/parsing/ParseParallelism.d.ts +6 -0
- package/lib/cli/parsing/ParseParallelism.js +1 -0
- package/lib/cli/parsing/SelectionParameterSet.d.ts +51 -0
- package/lib/cli/parsing/SelectionParameterSet.js +1 -0
- package/lib/cli/scriptActions/BaseScriptAction.d.ts +28 -0
- package/lib/cli/scriptActions/BaseScriptAction.js +1 -0
- package/lib/cli/scriptActions/GlobalScriptAction.d.ts +30 -0
- package/lib/cli/scriptActions/GlobalScriptAction.js +1 -0
- package/lib/cli/scriptActions/PhasedScriptAction.d.ts +65 -0
- package/lib/cli/scriptActions/PhasedScriptAction.js +1 -0
- package/lib/index.d.ts +51 -1
- package/lib/index.js +1 -190
- package/lib/logic/Autoinstaller.d.ts +21 -0
- package/lib/logic/Autoinstaller.js +1 -0
- package/lib/logic/ChangeFiles.d.ts +33 -0
- package/lib/logic/ChangeFiles.js +1 -0
- package/lib/logic/ChangeManager.d.ts +39 -0
- package/lib/logic/ChangeManager.js +1 -0
- package/lib/logic/ChangelogGenerator.d.ts +46 -0
- package/lib/logic/ChangelogGenerator.js +1 -0
- package/lib/logic/CredentialCache.d.ts +36 -0
- package/lib/logic/CredentialCache.js +1 -0
- package/lib/logic/DependencyAnalyzer.d.ts +34 -0
- package/lib/logic/DependencyAnalyzer.js +1 -0
- package/lib/logic/DependencySpecifier.d.ts +70 -0
- package/lib/logic/DependencySpecifier.js +1 -0
- package/lib/logic/EventHooksManager.d.ts +10 -0
- package/lib/logic/EventHooksManager.js +1 -0
- package/lib/logic/Git.d.ts +103 -0
- package/lib/logic/Git.js +1 -0
- package/lib/logic/GitStatusParser.d.ts +42 -0
- package/lib/logic/GitStatusParser.js +1 -0
- package/lib/logic/JsonSchemaUrls.d.ts +8 -0
- package/lib/logic/JsonSchemaUrls.js +1 -0
- package/lib/logic/LookupByPath.d.ts +86 -0
- package/lib/logic/LookupByPath.js +1 -0
- package/lib/logic/NodeJsCompatibility.d.ts +42 -0
- package/lib/logic/NodeJsCompatibility.js +1 -0
- package/lib/logic/PackageJsonUpdaterTypes.d.ts +75 -0
- package/lib/logic/PackageJsonUpdaterTypes.js +1 -0
- package/lib/logic/PrereleaseToken.d.ts +12 -0
- package/lib/logic/PrereleaseToken.js +1 -0
- package/lib/logic/ProjectChangeAnalyzer.d.ts +81 -0
- package/lib/logic/ProjectChangeAnalyzer.js +1 -0
- package/lib/logic/ProjectCommandSet.d.ts +13 -0
- package/lib/logic/ProjectCommandSet.js +1 -0
- package/lib/logic/PublishGit.d.ts +19 -0
- package/lib/logic/PublishGit.js +1 -0
- package/lib/logic/PublishUtilities.d.ts +71 -0
- package/lib/logic/PublishUtilities.js +1 -0
- package/lib/logic/PurgeManager.d.ts +29 -0
- package/lib/logic/PurgeManager.js +1 -0
- package/lib/logic/RepoStateFile.d.ts +55 -0
- package/lib/logic/RepoStateFile.js +1 -0
- package/lib/logic/RushConstants.d.ts +219 -0
- package/lib/logic/RushConstants.js +1 -0
- package/lib/logic/Selection.d.ts +39 -0
- package/lib/logic/Selection.js +1 -0
- package/lib/logic/SetupChecks.d.ts +22 -0
- package/lib/logic/SetupChecks.js +1 -0
- package/lib/logic/ShrinkwrapFileFactory.d.ts +8 -0
- package/lib/logic/ShrinkwrapFileFactory.js +1 -0
- package/lib/logic/StandardScriptUpdater.d.ts +26 -0
- package/lib/logic/StandardScriptUpdater.js +1 -0
- package/lib/logic/Telemetry.d.ts +123 -0
- package/lib/logic/Telemetry.js +1 -0
- package/lib/logic/UnlinkManager.d.ts +24 -0
- package/lib/logic/UnlinkManager.js +1 -0
- package/lib/logic/base/BaseInstallManagerTypes.d.ts +65 -0
- package/lib/logic/base/BaseInstallManagerTypes.js +1 -0
- package/lib/logic/base/BasePackageManagerOptionsConfiguration.d.ts +50 -0
- package/lib/logic/base/BasePackageManagerOptionsConfiguration.js +1 -0
- package/lib/logic/base/BaseProjectShrinkwrapFile.d.ts +36 -0
- package/lib/logic/base/BaseProjectShrinkwrapFile.js +1 -0
- package/lib/logic/base/BaseShrinkwrapFile.d.ts +92 -0
- package/lib/logic/base/BaseShrinkwrapFile.js +1 -0
- package/lib/logic/buildCache/CacheEntryId.d.ts +28 -0
- package/lib/logic/buildCache/CacheEntryId.js +1 -0
- package/lib/logic/buildCache/FileSystemBuildCacheProvider.d.ts +40 -0
- package/lib/logic/buildCache/FileSystemBuildCacheProvider.js +1 -0
- package/lib/logic/buildCache/ICloudBuildCacheProvider.d.ts +14 -0
- package/lib/logic/buildCache/ICloudBuildCacheProvider.js +1 -0
- package/lib/logic/buildCache/ProjectBuildCache.d.ts +46 -0
- package/lib/logic/buildCache/ProjectBuildCache.js +1 -0
- package/lib/logic/buildCache/getHashesForGlobsAsync.d.ts +3 -0
- package/lib/logic/buildCache/getHashesForGlobsAsync.js +1 -0
- package/lib/logic/deploy/DeployScenarioConfiguration.d.ts +39 -0
- package/lib/logic/deploy/DeployScenarioConfiguration.js +1 -0
- package/lib/logic/installManager/InstallHelpers.d.ts +16 -0
- package/lib/logic/installManager/InstallHelpers.js +1 -0
- package/lib/logic/npm/NpmOptionsConfiguration.d.ts +21 -0
- package/lib/logic/npm/NpmOptionsConfiguration.js +1 -0
- package/lib/logic/npm/NpmShrinkwrapFile.d.ts +29 -0
- package/lib/logic/npm/NpmShrinkwrapFile.js +1 -0
- package/lib/logic/operations/AsyncOperationQueue.d.ts +47 -0
- package/lib/logic/operations/AsyncOperationQueue.js +1 -0
- package/lib/logic/operations/IOperationExecutionResult.d.ts +49 -0
- package/lib/logic/operations/IOperationExecutionResult.js +1 -0
- package/lib/logic/operations/IOperationRunner.d.ts +77 -0
- package/lib/logic/operations/IOperationRunner.js +1 -0
- package/lib/logic/operations/NullOperationRunner.d.ts +35 -0
- package/lib/logic/operations/NullOperationRunner.js +1 -0
- package/lib/logic/operations/Operation.d.ts +80 -0
- package/lib/logic/operations/Operation.js +1 -0
- package/lib/logic/operations/OperationError.d.ts +11 -0
- package/lib/logic/operations/OperationError.js +1 -0
- package/lib/logic/operations/OperationExecutionManager.d.ts +42 -0
- package/lib/logic/operations/OperationExecutionManager.js +1 -0
- package/lib/logic/operations/OperationExecutionRecord.d.ts +82 -0
- package/lib/logic/operations/OperationExecutionRecord.js +1 -0
- package/lib/logic/operations/OperationMetadataManager.d.ts +48 -0
- package/lib/logic/operations/OperationMetadataManager.js +1 -0
- package/lib/logic/operations/OperationResultSummarizerPlugin.d.ts +17 -0
- package/lib/logic/operations/OperationResultSummarizerPlugin.js +1 -0
- package/lib/logic/operations/OperationStateFile.d.ts +39 -0
- package/lib/logic/operations/OperationStateFile.js +1 -0
- package/lib/logic/operations/OperationStatus.d.ts +43 -0
- package/lib/logic/operations/OperationStatus.js +1 -0
- package/lib/logic/operations/PhasedOperationPlugin.d.ts +9 -0
- package/lib/logic/operations/PhasedOperationPlugin.js +1 -0
- package/lib/logic/operations/ProjectLogWritable.d.ts +17 -0
- package/lib/logic/operations/ProjectLogWritable.js +1 -0
- package/lib/logic/operations/ShellOperationRunner.d.ts +87 -0
- package/lib/logic/operations/ShellOperationRunner.js +1 -0
- package/lib/logic/operations/ShellOperationRunnerPlugin.d.ts +8 -0
- package/lib/logic/operations/ShellOperationRunnerPlugin.js +1 -0
- package/lib/logic/pnpm/IPnpmfile.d.ts +54 -0
- package/lib/logic/pnpm/IPnpmfile.js +1 -0
- package/lib/logic/pnpm/PnpmOptionsConfiguration.d.ts +242 -0
- package/lib/logic/pnpm/PnpmOptionsConfiguration.js +1 -0
- package/lib/logic/pnpm/PnpmProjectShrinkwrapFile.d.ts +26 -0
- package/lib/logic/pnpm/PnpmProjectShrinkwrapFile.js +1 -0
- package/lib/logic/pnpm/PnpmShrinkwrapFile.d.ts +207 -0
- package/lib/logic/pnpm/PnpmShrinkwrapFile.js +1 -0
- package/lib/logic/pnpm/PnpmYamlCommon.d.ts +8 -0
- package/lib/logic/pnpm/PnpmYamlCommon.js +1 -0
- package/lib/logic/pnpm/PnpmfileConfiguration.d.ts +28 -0
- package/lib/logic/pnpm/PnpmfileConfiguration.js +1 -0
- package/lib/logic/pnpm/PnpmfileShim.d.ts +3 -0
- package/lib/logic/pnpm/PnpmfileShim.js +1 -0
- package/lib/logic/policy/GitEmailPolicy.d.ts +6 -0
- package/lib/logic/policy/GitEmailPolicy.js +1 -0
- package/lib/logic/policy/PolicyValidator.d.ts +10 -0
- package/lib/logic/policy/PolicyValidator.js +1 -0
- package/lib/logic/policy/ShrinkwrapFilePolicy.d.ts +13 -0
- package/lib/logic/policy/ShrinkwrapFilePolicy.js +1 -0
- package/lib/logic/selectors/GitChangedProjectSelectorParser.d.ts +23 -0
- package/lib/logic/selectors/GitChangedProjectSelectorParser.js +1 -0
- package/lib/logic/selectors/ISelectorParser.d.ts +11 -0
- package/lib/logic/selectors/ISelectorParser.js +1 -0
- package/lib/logic/selectors/NamedProjectSelectorParser.d.ts +10 -0
- package/lib/logic/selectors/NamedProjectSelectorParser.js +1 -0
- package/lib/logic/selectors/TagProjectSelectorParser.d.ts +10 -0
- package/lib/logic/selectors/TagProjectSelectorParser.js +1 -0
- package/lib/logic/selectors/VersionPolicyProjectSelectorParser.d.ts +10 -0
- package/lib/logic/selectors/VersionPolicyProjectSelectorParser.js +1 -0
- package/lib/logic/setup/ArtifactoryConfiguration.d.ts +38 -0
- package/lib/logic/setup/ArtifactoryConfiguration.js +1 -0
- package/lib/logic/setup/KeyboardLoop.d.ts +27 -0
- package/lib/logic/setup/KeyboardLoop.js +1 -0
- package/lib/logic/setup/SetupPackageRegistry.d.ts +72 -0
- package/lib/logic/setup/SetupPackageRegistry.js +1 -0
- package/lib/logic/setup/TerminalInput.d.ts +22 -0
- package/lib/logic/setup/TerminalInput.js +1 -0
- package/lib/logic/versionMismatch/VersionMismatchFinder.d.ts +49 -0
- package/lib/logic/versionMismatch/VersionMismatchFinder.js +1 -0
- package/lib/logic/versionMismatch/VersionMismatchFinderCommonVersions.d.ts +16 -0
- package/lib/logic/versionMismatch/VersionMismatchFinderCommonVersions.js +1 -0
- package/lib/logic/versionMismatch/VersionMismatchFinderEntity.d.ts +20 -0
- package/lib/logic/versionMismatch/VersionMismatchFinderEntity.js +1 -0
- package/lib/logic/versionMismatch/VersionMismatchFinderProject.d.ts +16 -0
- package/lib/logic/versionMismatch/VersionMismatchFinderProject.js +1 -0
- package/lib/logic/yarn/YarnOptionsConfiguration.d.ts +37 -0
- package/lib/logic/yarn/YarnOptionsConfiguration.js +1 -0
- package/lib/logic/yarn/YarnShrinkwrapFile.d.ts +55 -0
- package/lib/logic/yarn/YarnShrinkwrapFile.js +1 -0
- package/lib/pluginFramework/IRushPlugin.d.ts +9 -0
- package/lib/pluginFramework/IRushPlugin.js +1 -0
- package/lib/pluginFramework/PhasedCommandHooks.d.ts +93 -0
- package/lib/pluginFramework/PhasedCommandHooks.js +1 -0
- package/lib/pluginFramework/PluginLoader/AutoinstallerPluginLoader.d.ts +27 -0
- package/lib/pluginFramework/PluginLoader/AutoinstallerPluginLoader.js +1 -0
- package/lib/pluginFramework/PluginLoader/BuiltInPluginLoader.d.ts +17 -0
- package/lib/pluginFramework/PluginLoader/BuiltInPluginLoader.js +1 -0
- package/lib/pluginFramework/PluginLoader/PluginLoaderBase.d.ts +47 -0
- package/lib/pluginFramework/PluginLoader/PluginLoaderBase.js +1 -0
- package/lib/pluginFramework/PluginLoader/RushSdk.d.ts +5 -0
- package/lib/pluginFramework/PluginLoader/RushSdk.js +1 -0
- package/lib/pluginFramework/PluginManager.d.ts +47 -0
- package/lib/pluginFramework/PluginManager.js +1 -0
- package/lib/pluginFramework/RushLifeCycle.d.ts +66 -0
- package/lib/pluginFramework/RushLifeCycle.js +1 -0
- package/lib/pluginFramework/RushSession.d.ts +30 -0
- package/lib/pluginFramework/RushSession.js +1 -0
- package/lib/pluginFramework/logging/Logger.d.ts +40 -0
- package/lib/pluginFramework/logging/Logger.js +1 -0
- package/lib/start-pnpm.d.ts +2 -0
- package/lib/start-pnpm.js +1 -0
- package/lib/start.d.ts +2 -0
- package/lib/start.js +1 -0
- package/lib/startx.d.ts +2 -0
- package/lib/startx.js +1 -0
- package/lib/utilities/AsyncRecycler.d.ts +38 -0
- package/lib/utilities/AsyncRecycler.js +1 -0
- package/lib/utilities/CollatedTerminalProvider.d.ts +18 -0
- package/lib/utilities/CollatedTerminalProvider.js +1 -0
- package/lib/utilities/Npm.d.ts +6 -0
- package/lib/utilities/Npm.js +1 -0
- package/lib/utilities/OverlappingPathAnalyzer.d.ts +9 -0
- package/lib/utilities/OverlappingPathAnalyzer.js +1 -0
- package/lib/utilities/PathConstants.d.ts +23 -0
- package/lib/utilities/PathConstants.js +1 -0
- package/lib/utilities/Stopwatch.d.ts +75 -0
- package/lib/utilities/Stopwatch.js +1 -0
- package/lib/utilities/TarExecutable.d.ts +32 -0
- package/lib/utilities/TarExecutable.js +1 -0
- package/lib/utilities/Utilities.d.ts +189 -0
- package/lib/utilities/Utilities.js +1 -0
- package/lib/utilities/WebClient.d.ts +49 -0
- package/lib/utilities/WebClient.js +1 -0
- package/lib/utilities/npmrcUtilities.d.ts +15 -0
- package/lib/utilities/npmrcUtilities.js +1 -0
- package/lib-shim/generate-stubs.d.ts +2 -0
- package/lib-shim/generate-stubs.d.ts.map +1 -0
- package/lib-shim/generate-stubs.js +82 -0
- package/lib-shim/generate-stubs.js.map +1 -0
- package/lib-shim/index.d.ts +5 -0
- package/lib-shim/index.d.ts.map +1 -0
- package/lib-shim/index.js +201 -0
- package/lib-shim/index.js.map +1 -0
- package/package.json +10 -10
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/JsonSchemaUrls");
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This class is used to associate POSIX relative paths, such as those returned by `git` commands,
|
|
3
|
+
* with entities that correspond with ancestor folders, such as Rush Projects.
|
|
4
|
+
*
|
|
5
|
+
* It is optimized for efficiently locating the nearest ancestor path with an associated value.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const tree = new LookupByPath([['foo', 1], ['bar', 2], ['foo/bar', 3]]);
|
|
10
|
+
* tree.getNearestAncestor('foo'); // returns 1
|
|
11
|
+
* tree.getNearestAncestor('foo/baz'); // returns 1
|
|
12
|
+
* tree.getNearestAncestor('baz'); // returns undefined
|
|
13
|
+
* tree.getNearestAncestor('foo/bar/baz'); returns 3
|
|
14
|
+
* tree.getNearestAncestor('bar/foo/bar'); returns 2
|
|
15
|
+
* ```
|
|
16
|
+
* @beta
|
|
17
|
+
*/
|
|
18
|
+
export declare class LookupByPath<TItem> {
|
|
19
|
+
/**
|
|
20
|
+
* The delimiter used to split paths
|
|
21
|
+
*/
|
|
22
|
+
readonly delimiter: string;
|
|
23
|
+
/**
|
|
24
|
+
* The root node of the tree, corresponding to the path ''
|
|
25
|
+
*/
|
|
26
|
+
private readonly _root;
|
|
27
|
+
/**
|
|
28
|
+
* Constructs a new `LookupByPath`
|
|
29
|
+
*
|
|
30
|
+
* @param entries - Initial path-value pairs to populate the tree.
|
|
31
|
+
*/
|
|
32
|
+
constructor(entries?: Iterable<[string, TItem]>, delimiter?: string);
|
|
33
|
+
/**
|
|
34
|
+
* Iterates over the segments of a serialized path.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
*
|
|
38
|
+
* `LookupByPath.iteratePathSegments('foo/bar/baz')` yields 'foo', 'bar', 'baz'
|
|
39
|
+
*
|
|
40
|
+
* `LookupByPath.iteratePathSegments('foo\\bar\\baz', '\\')` yields 'foo', 'bar', 'baz'
|
|
41
|
+
*/
|
|
42
|
+
static iteratePathSegments(serializedPath: string, delimiter?: string): Iterable<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Associates the value with the specified serialized path.
|
|
45
|
+
* If a value is already associated, will overwrite.
|
|
46
|
+
*
|
|
47
|
+
* @returns this, for chained calls
|
|
48
|
+
*/
|
|
49
|
+
setItem(serializedPath: string, value: TItem): this;
|
|
50
|
+
/**
|
|
51
|
+
* Associates the value with the specified path.
|
|
52
|
+
* If a value is already associated, will overwrite.
|
|
53
|
+
*
|
|
54
|
+
* @returns this, for chained calls
|
|
55
|
+
*/
|
|
56
|
+
setItemFromSegments(pathSegments: Iterable<string>, value: TItem): this;
|
|
57
|
+
/**
|
|
58
|
+
* Searches for the item associated with `childPath`, or the nearest ancestor of that path that
|
|
59
|
+
* has an associated item.
|
|
60
|
+
*
|
|
61
|
+
* @returns the found item, or `undefined` if no item was found
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const tree = new LookupByPath([['foo', 1], ['foo/bar', 2]]);
|
|
66
|
+
* tree.findChildPath('foo/baz'); // returns 1
|
|
67
|
+
* tree.findChildPath('foo/bar/baz'); // returns 2
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
findChildPath(childPath: string): TItem | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Searches for the item associated with `childPathSegments`, or the nearest ancestor of that path that
|
|
73
|
+
* has an associated item.
|
|
74
|
+
*
|
|
75
|
+
* @returns the found item, or `undefined` if no item was found
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const tree = new LookupByPath([['foo', 1], ['foo/bar', 2]]);
|
|
80
|
+
* tree.findChildPathFromSegments(['foo', 'baz']); // returns 1
|
|
81
|
+
* tree.findChildPathFromSegments(['foo','bar', 'baz']); // returns 2
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
findChildPathFromSegments(childPathSegments: Iterable<string>): TItem | undefined;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=LookupByPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/LookupByPath");
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { RushConfiguration } from '../api/RushConfiguration';
|
|
2
|
+
export interface IWarnAboutVersionTooNewOptions {
|
|
3
|
+
isRushLib: boolean;
|
|
4
|
+
/**
|
|
5
|
+
* The CLI front-end does an early check for NodeJsCompatibility.warnAboutVersionTooNew(),
|
|
6
|
+
* so this flag is used to avoid reporting the same message twice. Note that the definition
|
|
7
|
+
* of "too new" may differ between the globally installed "@microsoft/rush" front end
|
|
8
|
+
* versus the "@microsoft/rush-lib" loaded by the version selector.
|
|
9
|
+
*/
|
|
10
|
+
alreadyReportedNodeTooNewError: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IWarnAboutCompatibilityIssuesOptions extends IWarnAboutVersionTooNewOptions {
|
|
13
|
+
rushConfiguration: RushConfiguration | undefined;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* This class provides useful functions for warning if the current Node.js runtime isn't supported.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare class NodeJsCompatibility {
|
|
21
|
+
/**
|
|
22
|
+
* This reports if the Node.js version is known to have serious incompatibilities. In that situation, the user
|
|
23
|
+
* should downgrade Rush to an older release that supported their Node.js version.
|
|
24
|
+
*/
|
|
25
|
+
static reportAncientIncompatibleVersion(): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Detect whether the Node.js version is "supported" by the Rush maintainers. We generally
|
|
28
|
+
* only support versions that were "Long Term Support" (LTS) at the time when Rush was published.
|
|
29
|
+
*
|
|
30
|
+
* This is a warning only -- the user is free to ignore it and use Rush anyway.
|
|
31
|
+
*/
|
|
32
|
+
static warnAboutCompatibilityIssues(options: IWarnAboutCompatibilityIssuesOptions): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Warn about a Node.js version that has not been tested yet with Rush.
|
|
35
|
+
*/
|
|
36
|
+
static warnAboutVersionTooNew(options: IWarnAboutVersionTooNewOptions): boolean;
|
|
37
|
+
private static _warnAboutNonLtsVersion;
|
|
38
|
+
private static _warnAboutOddNumberedVersion;
|
|
39
|
+
static get isLtsVersion(): boolean;
|
|
40
|
+
static get isOddNumberedVersion(): boolean;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=NodeJsCompatibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/NodeJsCompatibility");
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { RushConfigurationProject } from '../api/RushConfigurationProject';
|
|
2
|
+
/**
|
|
3
|
+
* The type of SemVer range specifier that is prepended to the version
|
|
4
|
+
*/
|
|
5
|
+
export declare const enum SemVerStyle {
|
|
6
|
+
Exact = "exact",
|
|
7
|
+
Caret = "caret",
|
|
8
|
+
Tilde = "tilde",
|
|
9
|
+
Passthrough = "passthrough"
|
|
10
|
+
}
|
|
11
|
+
export interface IPackageForRushUpdate {
|
|
12
|
+
packageName: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IPackageForRushAdd extends IPackageForRushUpdate {
|
|
15
|
+
/**
|
|
16
|
+
* The style of range that should be used if the version is automatically detected.
|
|
17
|
+
*/
|
|
18
|
+
rangeStyle: SemVerStyle;
|
|
19
|
+
/**
|
|
20
|
+
* If not undefined, the latest version will be used (that doesn't break ensureConsistentVersions).
|
|
21
|
+
* If specified, the latest version meeting the SemVer specifier will be used as the basis.
|
|
22
|
+
*/
|
|
23
|
+
version?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface IPackageForRushRemove extends IPackageForRushUpdate {
|
|
26
|
+
}
|
|
27
|
+
export interface IPackageJsonUpdaterRushBaseUpdateOptions {
|
|
28
|
+
/**
|
|
29
|
+
* The projects whose package.jsons should get updated
|
|
30
|
+
*/
|
|
31
|
+
projects: RushConfigurationProject[];
|
|
32
|
+
/**
|
|
33
|
+
* The dependencies to be added or removed.
|
|
34
|
+
*/
|
|
35
|
+
packagesToUpdate: IPackageForRushUpdate[];
|
|
36
|
+
/**
|
|
37
|
+
* If specified, "rush update" will not be run after updating the package.json file(s).
|
|
38
|
+
*/
|
|
39
|
+
skipUpdate: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* If specified, "rush update" will be run in debug mode.
|
|
42
|
+
*/
|
|
43
|
+
debugInstall: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* actionName
|
|
46
|
+
*/
|
|
47
|
+
actionName: string;
|
|
48
|
+
/**
|
|
49
|
+
* The variant to consider when performing installations and validating shrinkwrap updates.
|
|
50
|
+
*/
|
|
51
|
+
variant?: string | undefined;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Configuration options for adding or updating a dependency in a single project
|
|
55
|
+
*/
|
|
56
|
+
export interface IPackageJsonUpdaterRushAddOptions extends IPackageJsonUpdaterRushBaseUpdateOptions {
|
|
57
|
+
/**
|
|
58
|
+
* Whether or not this dependency should be added as a devDependency or a regular dependency.
|
|
59
|
+
*/
|
|
60
|
+
devDependency: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* If specified, other packages that use this dependency will also have their package.json's updated.
|
|
63
|
+
*/
|
|
64
|
+
updateOtherPackages: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* The dependencies to be added.
|
|
67
|
+
*/
|
|
68
|
+
packagesToUpdate: IPackageForRushAdd[];
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Options for remove a dependency from a particular project.
|
|
72
|
+
*/
|
|
73
|
+
export interface IPackageJsonUpdaterRushRemoveOptions extends IPackageJsonUpdaterRushBaseUpdateOptions {
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=PackageJsonUpdaterTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/PackageJsonUpdaterTypes");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class PrereleaseToken {
|
|
2
|
+
private _prereleaseName;
|
|
3
|
+
private _suffixName;
|
|
4
|
+
private _partialPrerelease;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
constructor(prereleaseName?: string, suffixName?: string, partialPrerelease?: boolean);
|
|
7
|
+
get hasValue(): boolean;
|
|
8
|
+
get isPrerelease(): boolean;
|
|
9
|
+
get isSuffix(): boolean;
|
|
10
|
+
get isPartialPrerelease(): boolean;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=PrereleaseToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/PrereleaseToken");
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ITerminal } from '@rushstack/node-core-library';
|
|
2
|
+
import { RushConfiguration } from '../api/RushConfiguration';
|
|
3
|
+
import { RushConfigurationProject } from '../api/RushConfigurationProject';
|
|
4
|
+
/**
|
|
5
|
+
* @beta
|
|
6
|
+
*/
|
|
7
|
+
export interface IGetChangedProjectsOptions {
|
|
8
|
+
targetBranchName: string;
|
|
9
|
+
terminal: ITerminal;
|
|
10
|
+
shouldFetch?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* If set to `true`, consider a project's external dependency installation layout as defined in the
|
|
13
|
+
* package manager lockfile when determining if it has changed.
|
|
14
|
+
*/
|
|
15
|
+
includeExternalDependencies: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* If set to `true` apply the `incrementalBuildIgnoredGlobs` property in a project's `rush-project.json`
|
|
18
|
+
* and exclude matched files from change detection.
|
|
19
|
+
*/
|
|
20
|
+
enableFiltering: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export interface IRawRepoState {
|
|
26
|
+
projectState: Map<RushConfigurationProject, Map<string, string>> | undefined;
|
|
27
|
+
rootDir: string;
|
|
28
|
+
rawHashes: Map<string, string>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @beta
|
|
32
|
+
*/
|
|
33
|
+
export declare class ProjectChangeAnalyzer {
|
|
34
|
+
/**
|
|
35
|
+
* UNINITIALIZED === we haven't looked
|
|
36
|
+
* undefined === data isn't available (i.e. - git isn't present)
|
|
37
|
+
*/
|
|
38
|
+
private _data;
|
|
39
|
+
private readonly _filteredData;
|
|
40
|
+
private readonly _projectStateCache;
|
|
41
|
+
private readonly _rushConfiguration;
|
|
42
|
+
private readonly _git;
|
|
43
|
+
constructor(rushConfiguration: RushConfiguration);
|
|
44
|
+
/**
|
|
45
|
+
* Try to get a list of the specified project's dependencies and their hashes.
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* If the data can't be generated (i.e. - if Git is not present) this returns undefined.
|
|
49
|
+
*
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
_tryGetProjectDependenciesAsync(project: RushConfigurationProject, terminal: ITerminal): Promise<Map<string, string> | undefined>;
|
|
53
|
+
/**
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
_ensureInitializedAsync(terminal: ITerminal): Promise<IRawRepoState | undefined>;
|
|
57
|
+
/**
|
|
58
|
+
* The project state hash is calculated in the following way:
|
|
59
|
+
* - Project dependencies are collected (see ProjectChangeAnalyzer.getPackageDeps)
|
|
60
|
+
* - If project dependencies cannot be collected (i.e. - if Git isn't available),
|
|
61
|
+
* this function returns `undefined`
|
|
62
|
+
* - The (path separator normalized) repo-root-relative dependencies' file paths are sorted
|
|
63
|
+
* - A SHA1 hash is created and each (sorted) file path is fed into the hash and then its
|
|
64
|
+
* Git SHA is fed into the hash
|
|
65
|
+
* - A hex digest of the hash is returned
|
|
66
|
+
*
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
_tryGetProjectStateHashAsync(project: RushConfigurationProject, terminal: ITerminal): Promise<string | undefined>;
|
|
70
|
+
_filterProjectDataAsync<T>(project: RushConfigurationProject, unfilteredProjectData: Map<string, T>, rootDir: string, terminal: ITerminal): Promise<Map<string, T>>;
|
|
71
|
+
/**
|
|
72
|
+
* Gets a list of projects that have changed in the current state of the repo
|
|
73
|
+
* when compared to the specified branch, optionally taking the shrinkwrap and settings in
|
|
74
|
+
* the rush-project.json file into consideration.
|
|
75
|
+
*/
|
|
76
|
+
getChangedProjectsAsync(options: IGetChangedProjectsOptions): Promise<Set<RushConfigurationProject>>;
|
|
77
|
+
private _getDataAsync;
|
|
78
|
+
private _getIgnoreMatcherForProjectAsync;
|
|
79
|
+
private _getRepoDepsAsync;
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=ProjectChangeAnalyzer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/ProjectChangeAnalyzer");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IPackageJson } from '@rushstack/node-core-library';
|
|
2
|
+
/**
|
|
3
|
+
* Parses the "scripts" section from package.json and provides support for executing scripts.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ProjectCommandSet {
|
|
6
|
+
readonly malformedScriptNames: string[];
|
|
7
|
+
readonly commandNames: string[];
|
|
8
|
+
private readonly _scriptsByName;
|
|
9
|
+
constructor(packageJson: IPackageJson);
|
|
10
|
+
tryGetScriptBody(commandName: string): string | undefined;
|
|
11
|
+
getScriptBody(commandName: string): string;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ProjectCommandSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/ProjectCommandSet");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RushConfigurationProject } from '../api/RushConfigurationProject';
|
|
2
|
+
import { Git } from './Git';
|
|
3
|
+
export declare class PublishGit {
|
|
4
|
+
private readonly _targetBranch;
|
|
5
|
+
private readonly _gitPath;
|
|
6
|
+
private readonly _gitTagSeparator;
|
|
7
|
+
constructor(git: Git, targetBranch: string | undefined);
|
|
8
|
+
checkout(branchName: string | undefined, createBranch?: boolean): void;
|
|
9
|
+
merge(branchName: string, verify?: boolean): void;
|
|
10
|
+
deleteBranch(branchName: string | undefined, hasRemote?: boolean, verify?: boolean): void;
|
|
11
|
+
pull(verify?: boolean): void;
|
|
12
|
+
fetch(): void;
|
|
13
|
+
addChanges(pathspec?: string, workingDirectory?: string): void;
|
|
14
|
+
addTag(shouldExecute: boolean, packageName: string, packageVersion: string, commitId: string | undefined, preReleaseName?: string): void;
|
|
15
|
+
hasTag(packageConfig: RushConfigurationProject): boolean;
|
|
16
|
+
commit(commitMessage: string, verify?: boolean): void;
|
|
17
|
+
push(branchName: string | undefined, verify?: boolean): void;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=PublishGit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/PublishGit");
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { type IPackageJson } from '@rushstack/node-core-library';
|
|
2
|
+
import { type IChangeInfo, type IVersionPolicyChangeInfo } from '../api/ChangeManagement';
|
|
3
|
+
import type { RushConfigurationProject } from '../api/RushConfigurationProject';
|
|
4
|
+
import { type IEnvironment } from '../utilities/Utilities';
|
|
5
|
+
import type { PrereleaseToken } from './PrereleaseToken';
|
|
6
|
+
import type { ChangeFiles } from './ChangeFiles';
|
|
7
|
+
import type { RushConfiguration } from '../api/RushConfiguration';
|
|
8
|
+
export interface IChangeRequests {
|
|
9
|
+
packageChanges: Map<string, IChangeInfo>;
|
|
10
|
+
versionPolicyChanges: Map<string, IVersionPolicyChangeInfo>;
|
|
11
|
+
}
|
|
12
|
+
export declare class PublishUtilities {
|
|
13
|
+
/**
|
|
14
|
+
* Finds change requests in the given folder.
|
|
15
|
+
* @param changesPath Path to the changes folder.
|
|
16
|
+
* @returns Dictionary of all change requests, keyed by package name.
|
|
17
|
+
*/
|
|
18
|
+
static findChangeRequests(allPackages: Map<string, RushConfigurationProject>, rushConfiguration: RushConfiguration, changeFiles: ChangeFiles, includeCommitDetails?: boolean, prereleaseToken?: PrereleaseToken, projectsToExclude?: Set<string>): IChangeRequests;
|
|
19
|
+
/**
|
|
20
|
+
* Given the changes hash, flattens them into a sorted array based on their dependency order.
|
|
21
|
+
* @params packageChanges - hash of change requests.
|
|
22
|
+
* @returns Sorted array of change requests.
|
|
23
|
+
*/
|
|
24
|
+
static sortChangeRequests(packageChanges: Map<string, IChangeInfo>): IChangeInfo[];
|
|
25
|
+
/**
|
|
26
|
+
* Given a single change request, updates the package json file with updated versions on disk.
|
|
27
|
+
*/
|
|
28
|
+
static updatePackages(allChanges: IChangeRequests, allPackages: Map<string, RushConfigurationProject>, rushConfiguration: RushConfiguration, shouldCommit: boolean, prereleaseToken?: PrereleaseToken, projectsToExclude?: Set<string>): Map<string, IPackageJson>;
|
|
29
|
+
/**
|
|
30
|
+
* Returns the generated tagname to use for a published commit, given package name and version.
|
|
31
|
+
*/
|
|
32
|
+
static createTagname(packageName: string, version: string, separator?: string): string;
|
|
33
|
+
static isRangeDependency(version: string): boolean;
|
|
34
|
+
static getEnvArgs(): {
|
|
35
|
+
[key: string]: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @param secretSubstring -- if specified, a substring to be replaced by `<<SECRET>>` to avoid printing secrets
|
|
39
|
+
* on the console
|
|
40
|
+
*/
|
|
41
|
+
static execCommand(shouldExecute: boolean, command: string, args?: string[], workingDirectory?: string, environment?: IEnvironment, secretSubstring?: string): void;
|
|
42
|
+
static getNewDependencyVersion(dependencies: {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
}, dependencyName: string, newProjectVersion: string): string;
|
|
45
|
+
private static _getReleaseType;
|
|
46
|
+
private static _getChangeTypeForSemverReleaseType;
|
|
47
|
+
private static _getNewRangeDependency;
|
|
48
|
+
private static _shouldSkipVersionBump;
|
|
49
|
+
private static _updateCommitDetails;
|
|
50
|
+
private static _writePackageChanges;
|
|
51
|
+
private static _isCyclicDependency;
|
|
52
|
+
private static _updateDependencies;
|
|
53
|
+
/**
|
|
54
|
+
* Gets the new version from the ChangeInfo.
|
|
55
|
+
* The value of newVersion in ChangeInfo remains unchanged when the change type is dependency,
|
|
56
|
+
* However, for pre-release build, it won't pick up the updated pre-released dependencies. That is why
|
|
57
|
+
* this function should return a pre-released patch for that case. The exception to this is when we're
|
|
58
|
+
* running a partial pre-release build. In this case, only user-changed packages should update.
|
|
59
|
+
*/
|
|
60
|
+
private static _getChangeInfoNewVersion;
|
|
61
|
+
/**
|
|
62
|
+
* Adds the given change to the packageChanges map.
|
|
63
|
+
*
|
|
64
|
+
* @returns true if the change caused the dependency change type to increase.
|
|
65
|
+
*/
|
|
66
|
+
private static _addChange;
|
|
67
|
+
private static _updateDownstreamDependencies;
|
|
68
|
+
private static _updateDownstreamDependency;
|
|
69
|
+
private static _updateDependencyVersion;
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=PublishUtilities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/PublishUtilities");
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AsyncRecycler } from '../utilities/AsyncRecycler';
|
|
2
|
+
import { RushConfiguration } from '../api/RushConfiguration';
|
|
3
|
+
import { RushGlobalFolder } from '../api/RushGlobalFolder';
|
|
4
|
+
/**
|
|
5
|
+
* This class implements the logic for "rush purge"
|
|
6
|
+
*/
|
|
7
|
+
export declare class PurgeManager {
|
|
8
|
+
private _rushConfiguration;
|
|
9
|
+
private _rushGlobalFolder;
|
|
10
|
+
private _rushUserFolderRecycler;
|
|
11
|
+
readonly commonTempFolderRecycler: AsyncRecycler;
|
|
12
|
+
constructor(rushConfiguration: RushConfiguration, rushGlobalFolder: RushGlobalFolder);
|
|
13
|
+
/**
|
|
14
|
+
* Performs the AsyncRecycler.deleteAll() operation. This should be called before
|
|
15
|
+
* the PurgeManager instance is disposed.
|
|
16
|
+
*/
|
|
17
|
+
deleteAll(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Delete everything from the common/temp folder
|
|
20
|
+
*/
|
|
21
|
+
purgeNormal(): void;
|
|
22
|
+
/**
|
|
23
|
+
* In addition to performing the purgeNormal() operation, this method also cleans the
|
|
24
|
+
* .rush folder in the user's home directory.
|
|
25
|
+
*/
|
|
26
|
+
purgeUnsafe(): void;
|
|
27
|
+
private _getMembersToExclude;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=PurgeManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/PurgeManager");
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { RushConfiguration } from '../api/RushConfiguration';
|
|
2
|
+
/**
|
|
3
|
+
* This file is used to track the state of various Rush-related features. It is generated
|
|
4
|
+
* and updated by Rush.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare class RepoStateFile {
|
|
9
|
+
private static _jsonSchema;
|
|
10
|
+
private _variant;
|
|
11
|
+
private _pnpmShrinkwrapHash;
|
|
12
|
+
private _preferredVersionsHash;
|
|
13
|
+
private _isValid;
|
|
14
|
+
private _modified;
|
|
15
|
+
/**
|
|
16
|
+
* Get the absolute file path of the repo-state.json file.
|
|
17
|
+
*/
|
|
18
|
+
readonly filePath: string;
|
|
19
|
+
private constructor();
|
|
20
|
+
/**
|
|
21
|
+
* The hash of the pnpm shrinkwrap file at the end of the last update.
|
|
22
|
+
*/
|
|
23
|
+
get pnpmShrinkwrapHash(): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The hash of all preferred versions at the end of the last update.
|
|
26
|
+
*/
|
|
27
|
+
get preferredVersionsHash(): string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* If false, the repo-state.json file is not valid and its values cannot be relied upon
|
|
30
|
+
*/
|
|
31
|
+
get isValid(): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Loads the repo-state.json data from the specified file path.
|
|
34
|
+
* If the file has not been created yet, then an empty object is returned.
|
|
35
|
+
*
|
|
36
|
+
* @param jsonFilename - The path to the repo-state.json file.
|
|
37
|
+
* @param variant - The variant currently being used by Rush.
|
|
38
|
+
*/
|
|
39
|
+
static loadFromFile(jsonFilename: string, variant: string | undefined): RepoStateFile;
|
|
40
|
+
/**
|
|
41
|
+
* Refresh the data contained in repo-state.json using the current state
|
|
42
|
+
* of the Rush repo, and save the file if changes were made.
|
|
43
|
+
*
|
|
44
|
+
* @param rushConfiguration - The Rush configuration for the repo.
|
|
45
|
+
*
|
|
46
|
+
* @returns true if the file was modified, otherwise false.
|
|
47
|
+
*/
|
|
48
|
+
refreshState(rushConfiguration: RushConfiguration): boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Writes the "repo-state.json" file to disk, using the filename that was passed to loadFromFile().
|
|
51
|
+
*/
|
|
52
|
+
private _saveIfModified;
|
|
53
|
+
private _serialize;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=RepoStateFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../lib-shim/index")._rushSdk_loadInternalModule("logic/RepoStateFile");
|