@rushstack/rush-sdk 5.153.1 → 5.153.2
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/rush-lib.d.ts +9 -5
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/logic/incremental/InputsSnapshot.d.ts +12 -0
- package/lib/logic/operations/ConsoleTimelinePlugin.d.ts +2 -2
- package/lib/logic/operations/IOperationExecutionResult.d.ts +0 -4
- package/lib/logic/operations/OperationExecutionRecord.d.ts +1 -1
- package/lib/logic/operations/OperationMetadataManager.d.ts +6 -1
- package/lib/utilities/Stopwatch.d.ts +4 -0
- package/package.json +11 -11
package/dist/rush-lib.d.ts
CHANGED
|
@@ -1580,6 +1580,10 @@ export declare interface IInputsSnapshot {
|
|
|
1580
1580
|
* The directory that all paths in `hashes` are relative to.
|
|
1581
1581
|
*/
|
|
1582
1582
|
readonly rootDirectory: string;
|
|
1583
|
+
/**
|
|
1584
|
+
* Whether or not the repository has uncommitted changes.
|
|
1585
|
+
*/
|
|
1586
|
+
readonly hasUncommittedChanges: boolean;
|
|
1583
1587
|
/**
|
|
1584
1588
|
* Gets the map of file paths to Git hashes that will be used to compute the local state hash of the operation.
|
|
1585
1589
|
* Exposed separately from the final state hash to facilitate detailed change detection.
|
|
@@ -1782,10 +1786,6 @@ export declare interface IOperationExecutionResult {
|
|
|
1782
1786
|
* The value indicates the duration of the same operation without cache hit.
|
|
1783
1787
|
*/
|
|
1784
1788
|
readonly nonCachedDurationMs: number | undefined;
|
|
1785
|
-
/**
|
|
1786
|
-
* The id of the runner which actually runs the building process in cobuild mode.
|
|
1787
|
-
*/
|
|
1788
|
-
readonly cobuildRunnerId: string | undefined;
|
|
1789
1789
|
/**
|
|
1790
1790
|
* The relative path to the folder that contains operation metadata. This folder will be automatically included in cache entries.
|
|
1791
1791
|
*/
|
|
@@ -2869,6 +2869,7 @@ export declare class _OperationMetadataManager {
|
|
|
2869
2869
|
private readonly _logPath;
|
|
2870
2870
|
private readonly _errorLogPath;
|
|
2871
2871
|
private readonly _logChunksPath;
|
|
2872
|
+
wasCobuilt: boolean;
|
|
2872
2873
|
constructor(options: _IOperationMetadataManagerOptions);
|
|
2873
2874
|
/**
|
|
2874
2875
|
* Returns the relative paths of the metadata files to project folder.
|
|
@@ -2879,11 +2880,14 @@ export declare class _OperationMetadataManager {
|
|
|
2879
2880
|
*/
|
|
2880
2881
|
get metadataFolderPath(): string;
|
|
2881
2882
|
saveAsync({ durationInSeconds, cobuildContextId, cobuildRunnerId, logPath, errorLogPath, logChunksPath }: _IOperationMetadata): Promise<void>;
|
|
2882
|
-
tryRestoreAsync({ terminal, terminalProvider, errorLogPath }: {
|
|
2883
|
+
tryRestoreAsync({ terminal, terminalProvider, errorLogPath, cobuildContextId, cobuildRunnerId }: {
|
|
2883
2884
|
terminalProvider: ITerminalProvider;
|
|
2884
2885
|
terminal: ITerminal;
|
|
2885
2886
|
errorLogPath: string;
|
|
2887
|
+
cobuildContextId?: string;
|
|
2888
|
+
cobuildRunnerId?: string;
|
|
2886
2889
|
}): Promise<void>;
|
|
2890
|
+
tryRestoreStopwatch(originalStopwatch: IStopwatchResult): IStopwatchResult;
|
|
2887
2891
|
}
|
|
2888
2892
|
|
|
2889
2893
|
/**
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -50,6 +50,10 @@ export interface IInputsSnapshotParameters {
|
|
|
50
50
|
* The hashes of all tracked files in the repository.
|
|
51
51
|
*/
|
|
52
52
|
hashes: ReadonlyMap<string, string>;
|
|
53
|
+
/**
|
|
54
|
+
* Whether or not the repository has uncommitted changes.
|
|
55
|
+
*/
|
|
56
|
+
hasUncommittedChanges: boolean;
|
|
53
57
|
/**
|
|
54
58
|
* Optimized lookup engine used to route `hashes` to individual projects.
|
|
55
59
|
*/
|
|
@@ -78,6 +82,10 @@ export interface IInputsSnapshot {
|
|
|
78
82
|
* The directory that all paths in `hashes` are relative to.
|
|
79
83
|
*/
|
|
80
84
|
readonly rootDirectory: string;
|
|
85
|
+
/**
|
|
86
|
+
* Whether or not the repository has uncommitted changes.
|
|
87
|
+
*/
|
|
88
|
+
readonly hasUncommittedChanges: boolean;
|
|
81
89
|
/**
|
|
82
90
|
* Gets the map of file paths to Git hashes that will be used to compute the local state hash of the operation.
|
|
83
91
|
* Exposed separately from the final state hash to facilitate detailed change detection.
|
|
@@ -110,6 +118,10 @@ export declare class InputsSnapshot implements IInputsSnapshot {
|
|
|
110
118
|
* {@inheritdoc IInputsSnapshot.hashes}
|
|
111
119
|
*/
|
|
112
120
|
readonly hashes: ReadonlyMap<string, string>;
|
|
121
|
+
/**
|
|
122
|
+
* {@inheritdoc IInputsSnapshot.hasUncommittedChanges}
|
|
123
|
+
*/
|
|
124
|
+
readonly hasUncommittedChanges: boolean;
|
|
113
125
|
/**
|
|
114
126
|
* {@inheritdoc IInputsSnapshot.rootDirectory}
|
|
115
127
|
*/
|
|
@@ -16,11 +16,11 @@ export declare class ConsoleTimelinePlugin implements IPhasedCommandPlugin {
|
|
|
16
16
|
export interface IPrintTimelineParameters {
|
|
17
17
|
terminal: ITerminal;
|
|
18
18
|
result: IExecutionResult;
|
|
19
|
-
cobuildConfiguration
|
|
19
|
+
cobuildConfiguration?: CobuildConfiguration;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Print a more detailed timeline and analysis of CPU usage for the build.
|
|
23
23
|
* @internal
|
|
24
24
|
*/
|
|
25
|
-
export declare function _printTimeline({ terminal, result
|
|
25
|
+
export declare function _printTimeline({ terminal, result }: IPrintTimelineParameters): void;
|
|
26
26
|
//# sourceMappingURL=ConsoleTimelinePlugin.d.ts.map
|
|
@@ -40,10 +40,6 @@ export interface IOperationExecutionResult {
|
|
|
40
40
|
* The value indicates the duration of the same operation without cache hit.
|
|
41
41
|
*/
|
|
42
42
|
readonly nonCachedDurationMs: number | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* The id of the runner which actually runs the building process in cobuild mode.
|
|
45
|
-
*/
|
|
46
|
-
readonly cobuildRunnerId: string | undefined;
|
|
47
43
|
/**
|
|
48
44
|
* The relative path to the folder that contains operation metadata. This folder will be automatically included in cache entries.
|
|
49
45
|
*/
|
|
@@ -7,10 +7,10 @@ import { Stopwatch } from '../../utilities/Stopwatch';
|
|
|
7
7
|
import { OperationMetadataManager } from './OperationMetadataManager';
|
|
8
8
|
import type { IPhase } from '../../api/CommandLineConfiguration';
|
|
9
9
|
import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
|
|
10
|
-
import { type ILogFilePaths } from './ProjectLogWritable';
|
|
11
10
|
import type { IOperationExecutionResult } from './IOperationExecutionResult';
|
|
12
11
|
import type { IInputsSnapshot } from '../incremental/InputsSnapshot';
|
|
13
12
|
import type { IEnvironment } from '../../utilities/Utilities';
|
|
13
|
+
import { type ILogFilePaths } from './ProjectLogWritable';
|
|
14
14
|
export interface IOperationExecutionRecordContext {
|
|
15
15
|
streamCollator: StreamCollator;
|
|
16
16
|
onOperationStatusChanged?: (record: OperationExecutionRecord) => void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type ITerminalChunk, type ITerminal, type ITerminalProvider } from '@rushstack/terminal';
|
|
2
2
|
import { OperationStateFile } from './OperationStateFile';
|
|
3
3
|
import type { Operation } from './Operation';
|
|
4
|
+
import { type IStopwatchResult } from '../../utilities/Stopwatch';
|
|
4
5
|
/**
|
|
5
6
|
* @internal
|
|
6
7
|
*/
|
|
@@ -33,6 +34,7 @@ export declare class OperationMetadataManager {
|
|
|
33
34
|
private readonly _logPath;
|
|
34
35
|
private readonly _errorLogPath;
|
|
35
36
|
private readonly _logChunksPath;
|
|
37
|
+
wasCobuilt: boolean;
|
|
36
38
|
constructor(options: IOperationMetadataManagerOptions);
|
|
37
39
|
/**
|
|
38
40
|
* Returns the relative paths of the metadata files to project folder.
|
|
@@ -43,10 +45,13 @@ export declare class OperationMetadataManager {
|
|
|
43
45
|
*/
|
|
44
46
|
get metadataFolderPath(): string;
|
|
45
47
|
saveAsync({ durationInSeconds, cobuildContextId, cobuildRunnerId, logPath, errorLogPath, logChunksPath }: IOperationMetaData): Promise<void>;
|
|
46
|
-
tryRestoreAsync({ terminal, terminalProvider, errorLogPath }: {
|
|
48
|
+
tryRestoreAsync({ terminal, terminalProvider, errorLogPath, cobuildContextId, cobuildRunnerId }: {
|
|
47
49
|
terminalProvider: ITerminalProvider;
|
|
48
50
|
terminal: ITerminal;
|
|
49
51
|
errorLogPath: string;
|
|
52
|
+
cobuildContextId?: string;
|
|
53
|
+
cobuildRunnerId?: string;
|
|
50
54
|
}): Promise<void>;
|
|
55
|
+
tryRestoreStopwatch(originalStopwatch: IStopwatchResult): IStopwatchResult;
|
|
51
56
|
}
|
|
52
57
|
//# sourceMappingURL=OperationMetadataManager.d.ts.map
|
|
@@ -37,6 +37,10 @@ export declare class Stopwatch implements IStopwatchResult {
|
|
|
37
37
|
private _state;
|
|
38
38
|
private _getTime;
|
|
39
39
|
constructor(getTime?: () => number);
|
|
40
|
+
static fromState({ startTime, endTime }: {
|
|
41
|
+
startTime: number;
|
|
42
|
+
endTime: number;
|
|
43
|
+
}): Stopwatch;
|
|
40
44
|
/**
|
|
41
45
|
* Static helper function which creates a stopwatch which is immediately started
|
|
42
46
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.153.
|
|
3
|
+
"version": "5.153.2",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@pnpm/lockfile.types": "~1.0.3",
|
|
38
38
|
"tapable": "2.2.1",
|
|
39
|
-
"@rushstack/lookup-by-path": "0.
|
|
40
|
-
"@rushstack/node-core-library": "5.13.
|
|
41
|
-
"@rushstack/
|
|
42
|
-
"@rushstack/
|
|
39
|
+
"@rushstack/lookup-by-path": "0.7.0",
|
|
40
|
+
"@rushstack/node-core-library": "5.13.1",
|
|
41
|
+
"@rushstack/terminal": "0.15.3",
|
|
42
|
+
"@rushstack/package-deps-hash": "4.4.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/semver": "7.5.0",
|
|
46
46
|
"@types/webpack-env": "1.18.8",
|
|
47
47
|
"webpack": "~5.98.0",
|
|
48
|
-
"@microsoft/rush-lib": "5.153.
|
|
49
|
-
"@rushstack/heft": "0.73.
|
|
50
|
-
"@rushstack/heft-webpack5-plugin": "0.11.30",
|
|
48
|
+
"@microsoft/rush-lib": "5.153.2",
|
|
49
|
+
"@rushstack/heft": "0.73.6",
|
|
51
50
|
"local-node-rig": "1.0.0",
|
|
52
|
-
"@rushstack/
|
|
53
|
-
"@rushstack/
|
|
54
|
-
"@rushstack/
|
|
51
|
+
"@rushstack/heft-webpack5-plugin": "0.11.33",
|
|
52
|
+
"@rushstack/stream-collator": "4.1.103",
|
|
53
|
+
"@rushstack/webpack-preserve-dynamic-require-plugin": "0.11.102",
|
|
54
|
+
"@rushstack/ts-command-line": "5.0.1"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "heft build --clean",
|