@rushstack/rush-sdk 5.98.0 → 5.100.0-pr4132
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 +5 -0
- package/lib/api/BuildCacheConfiguration.d.ts +1 -1
- package/lib/api/CommandLineConfiguration.d.ts +3 -3
- package/lib/api/CommandLineJson.d.ts +2 -2
- package/lib/api/RushConfiguration.d.ts +1 -1
- package/lib/api/packageManager/PackageManager.d.ts +1 -1
- package/lib/logic/GitStatusParser.d.ts +2 -2
- package/lib/logic/buildCache/CacheEntryId.d.ts +1 -1
- package/lib/logic/pnpm/IPnpmfile.d.ts +1 -1
- package/lib/logic/pnpm/PnpmOptionsConfiguration.d.ts +1 -1
- package/lib/pluginFramework/PhasedCommandHooks.d.ts +6 -0
- package/lib/pluginFramework/RushSession.d.ts +1 -1
- package/lib/utilities/Utilities.d.ts +1 -1
- package/lib/utilities/WebClient.d.ts +1 -1
- package/package.json +11 -12
package/dist/rush-lib.d.ts
CHANGED
|
@@ -2279,6 +2279,11 @@ export declare class PhasedCommandHooks {
|
|
|
2279
2279
|
* Only relevant when running in watch mode.
|
|
2280
2280
|
*/
|
|
2281
2281
|
readonly waitingForChanges: SyncHook<void>;
|
|
2282
|
+
/**
|
|
2283
|
+
* Hook invoked after executing operations and before waitingForChanges. Allows the caller
|
|
2284
|
+
* to augment or modify the log entry about to be written.
|
|
2285
|
+
*/
|
|
2286
|
+
readonly beforeLog: SyncHook<ITelemetryData, void>;
|
|
2282
2287
|
}
|
|
2283
2288
|
|
|
2284
2289
|
/**
|
|
@@ -28,7 +28,7 @@ export interface ICloudBuildCacheJson extends IBaseBuildCacheJson {
|
|
|
28
28
|
/**
|
|
29
29
|
* @beta
|
|
30
30
|
*/
|
|
31
|
-
export
|
|
31
|
+
export type IBuildCacheJson = ICloudBuildCacheJson | ILocalBuildCacheJson;
|
|
32
32
|
/**
|
|
33
33
|
* Use this class to load and save the "common/config/rush/build-cache.json" config file.
|
|
34
34
|
* This file provides configuration options for cached project build output.
|
|
@@ -7,7 +7,7 @@ export interface IShellCommandTokenContext {
|
|
|
7
7
|
* The set of valid behaviors for a missing script in a project's package.json scripts for a given phase.
|
|
8
8
|
* @alpha
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type PhaseBehaviorForMissingScript = 'silent' | 'log' | 'error';
|
|
11
11
|
/**
|
|
12
12
|
* Metadata about a phase.
|
|
13
13
|
* @alpha
|
|
@@ -94,12 +94,12 @@ export interface IPhasedCommandConfig extends IPhasedCommandWithoutPhasesJson, I
|
|
|
94
94
|
}
|
|
95
95
|
export interface IGlobalCommandConfig extends IGlobalCommandJson, ICommandWithParameters {
|
|
96
96
|
}
|
|
97
|
-
export
|
|
97
|
+
export type Command = IGlobalCommandConfig | IPhasedCommandConfig;
|
|
98
98
|
/**
|
|
99
99
|
* Metadata about a custom parameter defined in command-line.json
|
|
100
100
|
* @alpha
|
|
101
101
|
*/
|
|
102
|
-
export
|
|
102
|
+
export type IParameterJson = IFlagParameterJson | IChoiceParameterJson | IStringParameterJson | IIntegerParameterJson | IStringListParameterJson | IIntegerListParameterJson | IChoiceListParameterJson;
|
|
103
103
|
interface ICommandLineConfigurationOptions {
|
|
104
104
|
/**
|
|
105
105
|
* If true, do not include default build and rebuild commands.
|
|
@@ -56,7 +56,7 @@ export interface IGlobalCommandJson extends IBaseCommandJson {
|
|
|
56
56
|
commandKind: 'global';
|
|
57
57
|
shellCommand: string;
|
|
58
58
|
}
|
|
59
|
-
export
|
|
59
|
+
export type CommandJson = IBulkCommandJson | IGlobalCommandJson | IPhasedCommandJson;
|
|
60
60
|
/**
|
|
61
61
|
* The dependencies of a phase.
|
|
62
62
|
* @alpha
|
|
@@ -243,7 +243,7 @@ export interface IChoiceListParameterJson extends IBaseParameterJson {
|
|
|
243
243
|
*/
|
|
244
244
|
alternatives: IChoiceParameterAlternativeJson[];
|
|
245
245
|
}
|
|
246
|
-
export
|
|
246
|
+
export type ParameterJson = IFlagParameterJson | IChoiceParameterJson | IStringParameterJson | IIntegerParameterJson | IStringListParameterJson | IIntegerListParameterJson | IChoiceListParameterJson;
|
|
247
247
|
/**
|
|
248
248
|
* Interfaces for the file format described by command-line.schema.json
|
|
249
249
|
*/
|
|
@@ -73,7 +73,7 @@ export interface IRushRepositoryJsonMultipleUrls extends IRushRepositoryJsonBase
|
|
|
73
73
|
*/
|
|
74
74
|
urls?: string[];
|
|
75
75
|
}
|
|
76
|
-
export
|
|
76
|
+
export type IRushRepositoryJson = IRushRepositoryJsonSingleUrl | IRushRepositoryJsonMultipleUrls;
|
|
77
77
|
/**
|
|
78
78
|
* Options defining an allowed variant as part of IRushConfigurationJson.
|
|
79
79
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This represents the available Package Manager tools as a string
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type PackageManagerName = 'pnpm' | 'npm' | 'yarn';
|
|
6
6
|
/**
|
|
7
7
|
* An abstraction for controlling the supported package managers: PNPM, NPM, and Yarn.
|
|
8
8
|
* @public
|
|
@@ -5,7 +5,7 @@ export interface IGitStatusEntryBase {
|
|
|
5
5
|
export interface IUntrackedGitStatusEntry extends IGitStatusEntryBase {
|
|
6
6
|
kind: 'untracked';
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type GitStatusChangeType = 'added' | 'deleted' | 'modified' | 'renamed' | 'copied' | 'type-changed';
|
|
9
9
|
export interface IChangedGitStatusEntryFields {
|
|
10
10
|
stagedChangeType: GitStatusChangeType | undefined;
|
|
11
11
|
unstagedChangeType: GitStatusChangeType | undefined;
|
|
@@ -37,6 +37,6 @@ export interface IUnmergedGitStatusEntry extends IGitStatusEntryBase {
|
|
|
37
37
|
stage2ObjectName: string;
|
|
38
38
|
stage3ObjectName: string;
|
|
39
39
|
}
|
|
40
|
-
export
|
|
40
|
+
export type IGitStatusEntry = IUntrackedGitStatusEntry | IChangedGitStatusEntry | IRenamedOrCopiedGitStatusEntry | IUnmergedGitStatusEntry;
|
|
41
41
|
export declare function parseGitStatus(gitStatusOutput: string): Iterable<IGitStatusEntry>;
|
|
42
42
|
//# sourceMappingURL=GitStatusParser.d.ts.map
|
|
@@ -20,7 +20,7 @@ export interface IGenerateCacheEntryIdOptions {
|
|
|
20
20
|
* Calculates the cache entry id string for an operation.
|
|
21
21
|
* @beta
|
|
22
22
|
*/
|
|
23
|
-
export
|
|
23
|
+
export type GetCacheEntryIdFunction = (options: IGenerateCacheEntryIdOptions) => string;
|
|
24
24
|
export declare class CacheEntryId {
|
|
25
25
|
private constructor();
|
|
26
26
|
static parsePattern(pattern?: string): GetCacheEntryIdFunction;
|
|
@@ -3,7 +3,7 @@ import { IPackageManagerOptionsJsonBase, PackageManagerOptionsConfigurationBase
|
|
|
3
3
|
* This represents the available PNPM store options
|
|
4
4
|
* @public
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export type PnpmStoreOptions = 'local' | 'global';
|
|
7
7
|
/**
|
|
8
8
|
* @beta
|
|
9
9
|
*/
|
|
@@ -6,6 +6,7 @@ import type { RushConfiguration } from '../api/RushConfiguration';
|
|
|
6
6
|
import type { RushConfigurationProject } from '../api/RushConfigurationProject';
|
|
7
7
|
import type { Operation } from '../logic/operations/Operation';
|
|
8
8
|
import type { ProjectChangeAnalyzer } from '../logic/ProjectChangeAnalyzer';
|
|
9
|
+
import { ITelemetryData } from '../logic/Telemetry';
|
|
9
10
|
import { IExecutionResult, IOperationExecutionResult } from '../logic/operations/IOperationExecutionResult';
|
|
10
11
|
/**
|
|
11
12
|
* A plugin that interacts with a phased commands.
|
|
@@ -103,5 +104,10 @@ export declare class PhasedCommandHooks {
|
|
|
103
104
|
* Only relevant when running in watch mode.
|
|
104
105
|
*/
|
|
105
106
|
readonly waitingForChanges: SyncHook<void>;
|
|
107
|
+
/**
|
|
108
|
+
* Hook invoked after executing operations and before waitingForChanges. Allows the caller
|
|
109
|
+
* to augment or modify the log entry about to be written.
|
|
110
|
+
*/
|
|
111
|
+
readonly beforeLog: SyncHook<ITelemetryData, void>;
|
|
106
112
|
}
|
|
107
113
|
//# sourceMappingURL=PhasedCommandHooks.d.ts.map
|
|
@@ -13,7 +13,7 @@ export interface IRushSessionOptions {
|
|
|
13
13
|
/**
|
|
14
14
|
* @beta
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export type CloudBuildCacheProviderFactory = (buildCacheJson: IBuildCacheJson) => ICloudBuildCacheProvider | Promise<ICloudBuildCacheProvider>;
|
|
17
17
|
/**
|
|
18
18
|
* @beta
|
|
19
19
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as child_process from 'child_process';
|
|
3
3
|
import { RushConfiguration } from '../api/RushConfiguration';
|
|
4
4
|
import { syncNpmrc } from './npmrcUtilities';
|
|
5
|
-
export
|
|
5
|
+
export type UNINITIALIZED = 'UNINITIALIZED';
|
|
6
6
|
export declare const UNINITIALIZED: UNINITIALIZED;
|
|
7
7
|
export interface IEnvironment {
|
|
8
8
|
[environmentVariableName: string]: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.100.0-pr4132",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,23 +14,22 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@types/node-fetch": "2.6.2",
|
|
16
16
|
"tapable": "2.2.1",
|
|
17
|
-
"@rushstack/node-core-library": "3.59.
|
|
17
|
+
"@rushstack/node-core-library": "3.59.2"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/heft-jest": "1.0.1",
|
|
21
20
|
"@types/semver": "7.3.5",
|
|
22
21
|
"@types/webpack-env": "1.18.0",
|
|
23
|
-
"@microsoft/rush-lib": "5.
|
|
24
|
-
"@rushstack/eslint-config": "3.
|
|
25
|
-
"@rushstack/heft": "0.
|
|
26
|
-
"@rushstack/heft-node-rig": "
|
|
27
|
-
"@rushstack/stream-collator": "4.0.
|
|
28
|
-
"@rushstack/ts-command-line": "4.13.
|
|
29
|
-
"@rushstack/terminal": "0.5.
|
|
22
|
+
"@microsoft/rush-lib": "5.100.0-pr4132",
|
|
23
|
+
"@rushstack/eslint-config": "3.3.0",
|
|
24
|
+
"@rushstack/heft": "0.51.0",
|
|
25
|
+
"@rushstack/heft-node-rig": "2.0.0",
|
|
26
|
+
"@rushstack/stream-collator": "4.0.237",
|
|
27
|
+
"@rushstack/ts-command-line": "4.13.3",
|
|
28
|
+
"@rushstack/terminal": "0.5.12"
|
|
30
29
|
},
|
|
31
30
|
"scripts": {
|
|
32
31
|
"build": "heft build --clean",
|
|
33
|
-
"_phase:build": "heft build --clean",
|
|
34
|
-
"_phase:test": "heft test --
|
|
32
|
+
"_phase:build": "heft run --only build -- --clean",
|
|
33
|
+
"_phase:test": "heft run --only test -- --clean"
|
|
35
34
|
}
|
|
36
35
|
}
|