@rushstack/rush-sdk 5.124.4 → 5.124.5
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/dist/tsdoc-metadata.json +1 -1
- package/lib/cli/RushCommandLineParser.d.ts +1 -1
- package/lib/cli/actions/BaseInstallAction.d.ts +2 -2
- package/lib/cli/actions/ChangeAction.d.ts +9 -9
- package/lib/cli/parsing/SelectionParameterSet.d.ts +1 -0
- package/lib/cli/scriptActions/GlobalScriptAction.d.ts +1 -1
- package/lib/cli/scriptActions/PhasedScriptAction.d.ts +3 -3
- package/lib/logic/buildCache/ProjectBuildCache.d.ts +2 -2
- package/lib/logic/installManager/InstallHelpers.d.ts +1 -1
- package/lib/logic/operations/OperationExecutionManager.d.ts +5 -4
- package/lib/logic/setup/SetupPackageRegistry.d.ts +3 -3
- package/lib/logic/setup/TerminalInput.d.ts +4 -4
- package/package.json +7 -7
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -35,7 +35,7 @@ export declare class RushCommandLineParser extends CommandLineParser {
|
|
|
35
35
|
*/
|
|
36
36
|
static shouldRestrictConsoleOutput(): boolean;
|
|
37
37
|
flushTelemetry(): void;
|
|
38
|
-
|
|
38
|
+
executeAsync(args?: string[]): Promise<boolean>;
|
|
39
39
|
protected onExecute(): Promise<void>;
|
|
40
40
|
private _normalizeOptions;
|
|
41
41
|
private _wrapOnExecuteAsync;
|
|
@@ -2,7 +2,7 @@ import type { CommandLineFlagParameter, CommandLineIntegerParameter, IRequiredCo
|
|
|
2
2
|
import { type ITerminal } from '@rushstack/terminal';
|
|
3
3
|
import { BaseRushAction, type IBaseRushActionOptions } from './BaseRushAction';
|
|
4
4
|
import type { IInstallManagerOptions } from '../../logic/base/BaseInstallManagerTypes';
|
|
5
|
-
import type
|
|
5
|
+
import { type SelectionParameterSet } from '../parsing/SelectionParameterSet';
|
|
6
6
|
/**
|
|
7
7
|
* This is the common base class for InstallAction and UpdateAction.
|
|
8
8
|
*/
|
|
@@ -20,7 +20,7 @@ export declare abstract class BaseInstallAction extends BaseRushAction {
|
|
|
20
20
|
constructor(options: IBaseRushActionOptions);
|
|
21
21
|
protected abstract buildInstallOptionsAsync(): Promise<Omit<IInstallManagerOptions, 'subspace'>>;
|
|
22
22
|
protected runAsync(): Promise<void>;
|
|
23
|
-
private
|
|
23
|
+
private _doInstallAsync;
|
|
24
24
|
private _collectTelemetry;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=BaseInstallAction.d.ts.map
|
|
@@ -25,36 +25,36 @@ export declare class ChangeAction extends BaseRushAction {
|
|
|
25
25
|
/**
|
|
26
26
|
* The main loop which prompts the user for information on changed projects.
|
|
27
27
|
*/
|
|
28
|
-
private
|
|
28
|
+
private _promptForChangeFileDataAsync;
|
|
29
29
|
/**
|
|
30
30
|
* Asks all questions which are needed to generate changelist for a project.
|
|
31
31
|
*/
|
|
32
|
-
private
|
|
33
|
-
private
|
|
32
|
+
private _askQuestionsAsync;
|
|
33
|
+
private _promptForCommentsAsync;
|
|
34
34
|
private _getBumpOptions;
|
|
35
35
|
private _isEmailRequired;
|
|
36
36
|
/**
|
|
37
37
|
* Will determine a user's email by first detecting it from their Git config,
|
|
38
38
|
* or will ask for it if it is not found or the Git config is wrong.
|
|
39
39
|
*/
|
|
40
|
-
private
|
|
40
|
+
private _detectOrAskForEmailAsync;
|
|
41
41
|
private _detectEmail;
|
|
42
42
|
/**
|
|
43
43
|
* Detects the user's email address from their Git configuration, prompts the user to approve the
|
|
44
44
|
* detected email. It returns undefined if it cannot be detected.
|
|
45
45
|
*/
|
|
46
|
-
private
|
|
46
|
+
private _detectAndConfirmEmailAsync;
|
|
47
47
|
/**
|
|
48
48
|
* Asks the user for their email address
|
|
49
49
|
*/
|
|
50
|
-
private
|
|
50
|
+
private _promptForEmailAsync;
|
|
51
51
|
private _warnUnstagedChanges;
|
|
52
52
|
/**
|
|
53
53
|
* Writes change files to the common/changes folder. Will prompt for overwrite if file already exists.
|
|
54
54
|
*/
|
|
55
|
-
private
|
|
56
|
-
private
|
|
57
|
-
private
|
|
55
|
+
private _writeChangeFilesAsync;
|
|
56
|
+
private _writeChangeFileAsync;
|
|
57
|
+
private _promptForOverwriteAsync;
|
|
58
58
|
/**
|
|
59
59
|
* Writes a file to disk, ensuring the directory structure up to that point exists
|
|
60
60
|
*/
|
|
@@ -3,6 +3,7 @@ import type { CommandLineParameterProvider } from '@rushstack/ts-command-line';
|
|
|
3
3
|
import type { RushConfiguration } from '../../api/RushConfiguration';
|
|
4
4
|
import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
|
|
5
5
|
import { type IGitSelectorParserOptions } from '../../logic/selectors/GitChangedProjectSelectorParser';
|
|
6
|
+
export declare const SUBSPACE_LONG_ARG_NAME: '--subspace';
|
|
6
7
|
interface ISelectionParameterSetOptions {
|
|
7
8
|
gitOptions: IGitSelectorParserOptions;
|
|
8
9
|
includeSubspaceSelector: boolean;
|
|
@@ -22,7 +22,7 @@ export declare class GlobalScriptAction extends BaseScriptAction<IGlobalCommandC
|
|
|
22
22
|
private readonly _autoinstallerName;
|
|
23
23
|
private readonly _autoinstallerFullPath;
|
|
24
24
|
constructor(options: IGlobalScriptActionOptions);
|
|
25
|
-
private
|
|
25
|
+
private _prepareAutoinstallerNameAsync;
|
|
26
26
|
runAsync(): Promise<void>;
|
|
27
27
|
private _expandShellCommandWithTokens;
|
|
28
28
|
private _rejectAnyTokensInShellCommand;
|
|
@@ -53,7 +53,7 @@ export declare class PhasedScriptAction extends BaseScriptAction<IPhasedCommandC
|
|
|
53
53
|
private readonly _noIPCParameter;
|
|
54
54
|
constructor(options: IPhasedScriptActionOptions);
|
|
55
55
|
runAsync(): Promise<void>;
|
|
56
|
-
private
|
|
56
|
+
private _runInitialPhasesAsync;
|
|
57
57
|
private _registerWatchModeInterface;
|
|
58
58
|
/**
|
|
59
59
|
* Runs the command in watch mode. Fundamentally is a simple loop:
|
|
@@ -62,11 +62,11 @@ export declare class PhasedScriptAction extends BaseScriptAction<IPhasedCommandC
|
|
|
62
62
|
* Uses the same algorithm as --impacted-by
|
|
63
63
|
* 3) Goto (1)
|
|
64
64
|
*/
|
|
65
|
-
private
|
|
65
|
+
private _runWatchPhasesAsync;
|
|
66
66
|
/**
|
|
67
67
|
* Runs a set of operations and reports the results.
|
|
68
68
|
*/
|
|
69
|
-
private
|
|
69
|
+
private _executeOperationsAsync;
|
|
70
70
|
private _doBeforeTask;
|
|
71
71
|
private _doAfterTask;
|
|
72
72
|
}
|
|
@@ -30,7 +30,7 @@ export declare class ProjectBuildCache {
|
|
|
30
30
|
private constructor();
|
|
31
31
|
private static _tryGetTarUtility;
|
|
32
32
|
get cacheId(): string | undefined;
|
|
33
|
-
static
|
|
33
|
+
static tryGetProjectBuildCacheAsync(options: IProjectBuildCacheOptions): Promise<ProjectBuildCache | undefined>;
|
|
34
34
|
tryRestoreFromCacheAsync(terminal: ITerminal, specifiedCacheId?: string): Promise<boolean>;
|
|
35
35
|
trySetCacheEntryAsync(terminal: ITerminal, specifiedCacheId?: string): Promise<boolean>;
|
|
36
36
|
/**
|
|
@@ -40,6 +40,6 @@ export declare class ProjectBuildCache {
|
|
|
40
40
|
*/
|
|
41
41
|
private _tryCollectPathsToCacheAsync;
|
|
42
42
|
private _getTarLogFilePath;
|
|
43
|
-
private static
|
|
43
|
+
private static _getCacheIdAsync;
|
|
44
44
|
}
|
|
45
45
|
//# sourceMappingURL=ProjectBuildCache.d.ts.map
|
|
@@ -11,7 +11,7 @@ export declare class InstallHelpers {
|
|
|
11
11
|
* If the "(p)npm-local" symlink hasn't been set up yet, this creates it, installing the
|
|
12
12
|
* specified (P)npm version in the user's home directory if needed.
|
|
13
13
|
*/
|
|
14
|
-
static
|
|
14
|
+
static ensureLocalPackageManagerAsync(rushConfiguration: RushConfiguration, rushGlobalFolder: RushGlobalFolder, maxInstallAttempts: number, restrictConsoleOutput?: boolean): Promise<void>;
|
|
15
15
|
private static _mergeEnvironmentVariables;
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=InstallHelpers.d.ts.map
|
|
@@ -9,10 +9,10 @@ export interface IOperationExecutionManagerOptions {
|
|
|
9
9
|
parallelism: number;
|
|
10
10
|
changedProjectsOnly: boolean;
|
|
11
11
|
destination?: TerminalWritable;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
beforeExecuteOperationAsync?: (operation: OperationExecutionRecord) => Promise<OperationStatus | undefined>;
|
|
13
|
+
afterExecuteOperationAsync?: (operation: OperationExecutionRecord) => Promise<void>;
|
|
14
|
+
onOperationStatusChangedAsync?: (record: OperationExecutionRecord) => void;
|
|
15
|
+
beforeExecuteOperationsAsync?: (records: Map<Operation, OperationExecutionRecord>) => Promise<void>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* A class which manages the execution of a set of tasks with interdependencies.
|
|
@@ -45,6 +45,7 @@ export declare class OperationExecutionManager {
|
|
|
45
45
|
* operations are completed successfully, or rejects when any operation fails.
|
|
46
46
|
*/
|
|
47
47
|
executeAsync(): Promise<IExecutionResult>;
|
|
48
|
+
private _reportOperationErrorIfAny;
|
|
48
49
|
/**
|
|
49
50
|
* Handles the result of the operation and propagates any relevant effects.
|
|
50
51
|
*/
|
|
@@ -20,16 +20,16 @@ export declare class SetupPackageRegistry {
|
|
|
20
20
|
*
|
|
21
21
|
* @returns - `true` if valid, `false` if not valid
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
checkOnlyAsync(): Promise<boolean>;
|
|
24
24
|
/**
|
|
25
25
|
* Test whether the NPM token is valid. If not, prompt to update it.
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
checkAndSetupAsync(): Promise<void>;
|
|
28
28
|
/**
|
|
29
29
|
* Fetch a valid NPM token from the Artifactory service and add it to the `~/.npmrc` file,
|
|
30
30
|
* preserving other settings in that file.
|
|
31
31
|
*/
|
|
32
|
-
private
|
|
32
|
+
private _fetchTokenAndUpdateNpmrcAsync;
|
|
33
33
|
/**
|
|
34
34
|
* Update the `~/.npmrc` file by adding `linesToAdd` to it.
|
|
35
35
|
* @remarks
|
|
@@ -14,9 +14,9 @@ export interface IPromptPasswordOptions extends IBasePromptOptions {
|
|
|
14
14
|
export interface IPromptLineOptions extends IBasePromptOptions {
|
|
15
15
|
}
|
|
16
16
|
export declare class TerminalInput {
|
|
17
|
-
private static
|
|
18
|
-
static
|
|
19
|
-
static
|
|
20
|
-
static
|
|
17
|
+
private static _readLineAsync;
|
|
18
|
+
static promptYesNoAsync(options: IPromptYesNoOptions): Promise<boolean>;
|
|
19
|
+
static promptLineAsync(options: IPromptLineOptions): Promise<string>;
|
|
20
|
+
static promptPasswordLineAsync(options: IPromptLineOptions): Promise<string>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=TerminalInput.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.124.
|
|
3
|
+
"version": "5.124.5",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@types/node-fetch": "2.6.2",
|
|
27
27
|
"tapable": "2.2.1",
|
|
28
|
-
"@rushstack/
|
|
29
|
-
"@rushstack/
|
|
28
|
+
"@rushstack/node-core-library": "4.3.0",
|
|
29
|
+
"@rushstack/terminal": "0.11.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/semver": "7.5.0",
|
|
33
33
|
"@types/webpack-env": "1.18.0",
|
|
34
|
-
"@
|
|
34
|
+
"@rushstack/heft": "0.66.8",
|
|
35
|
+
"@rushstack/stream-collator": "4.1.46",
|
|
35
36
|
"local-node-rig": "1.0.0",
|
|
36
|
-
"@
|
|
37
|
-
"@rushstack/
|
|
38
|
-
"@rushstack/ts-command-line": "4.19.5"
|
|
37
|
+
"@microsoft/rush-lib": "5.124.5",
|
|
38
|
+
"@rushstack/ts-command-line": "4.20.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "heft build --clean",
|