@rushstack/rush-sdk 5.97.1 → 5.99.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/dist/rush-lib.d.ts +25 -6
- package/lib/api/BuildCacheConfiguration.d.ts +1 -1
- package/lib/api/CommandLineConfiguration.d.ts +11 -7
- package/lib/api/CommandLineJson.d.ts +6 -2
- package/lib/api/ExperimentsConfiguration.d.ts +4 -0
- package/lib/api/RushConfiguration.d.ts +2 -1
- package/lib/api/packageManager/PackageManager.d.ts +1 -1
- package/lib/cli/RushPnpmCommandLineParser.d.ts +7 -8
- package/lib/cli/actions/DeployAction.d.ts +3 -1
- package/lib/cli/actions/PublishAction.d.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/logic/ChangeFiles.d.ts +3 -3
- package/lib/logic/ChangeManager.d.ts +2 -2
- package/lib/logic/GitStatusParser.d.ts +2 -2
- package/lib/logic/PublishUtilities.d.ts +1 -1
- package/lib/logic/RushConstants.d.ts +4 -0
- package/lib/logic/base/BaseInstallManagerTypes.d.ts +4 -0
- package/lib/logic/buildCache/CacheEntryId.d.ts +1 -1
- package/lib/logic/deploy/DeployScenarioConfiguration.d.ts +3 -2
- package/lib/logic/pnpm/IPnpmfile.d.ts +1 -1
- package/lib/logic/pnpm/PnpmOptionsConfiguration.d.ts +1 -1
- package/lib/logic/policy/EnvironmentPolicy.d.ts +7 -0
- package/lib/logic/policy/EnvironmentPolicy.js +1 -0
- package/lib/logic/policy/GitEmailPolicy.d.ts +4 -5
- package/lib/logic/policy/PolicyValidator.d.ts +3 -4
- package/lib/logic/policy/ShrinkwrapFilePolicy.d.ts +4 -6
- package/lib/pluginFramework/PhasedCommandHooks.d.ts +6 -0
- package/lib/pluginFramework/RushSession.d.ts +1 -1
- package/lib/utilities/PathConstants.d.ts +0 -1
- package/lib/utilities/Utilities.d.ts +1 -17
- package/lib/utilities/WebClient.d.ts +1 -1
- package/package.json +11 -12
package/dist/rush-lib.d.ts
CHANGED
|
@@ -208,7 +208,7 @@ export declare class ChangeManager {
|
|
|
208
208
|
/**
|
|
209
209
|
* @beta
|
|
210
210
|
*/
|
|
211
|
-
export declare type CloudBuildCacheProviderFactory = (buildCacheJson: IBuildCacheJson) => ICloudBuildCacheProvider
|
|
211
|
+
export declare type CloudBuildCacheProviderFactory = (buildCacheJson: IBuildCacheJson) => ICloudBuildCacheProvider | Promise<ICloudBuildCacheProvider>;
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* Use this class to load and save the "common/config/rush/common-versions.json" config file.
|
|
@@ -896,6 +896,10 @@ export declare interface IExperimentsJson {
|
|
|
896
896
|
* If true, print the outputs of shell commands defined in event hooks to the console.
|
|
897
897
|
*/
|
|
898
898
|
printEventHooksOutputToConsole?: boolean;
|
|
899
|
+
/**
|
|
900
|
+
* If true, Rush will not allow node_modules in the repo folder or in parent folders.
|
|
901
|
+
*/
|
|
902
|
+
forbidPhantomResolvableNodeModulesFolders?: boolean;
|
|
899
903
|
}
|
|
900
904
|
|
|
901
905
|
/**
|
|
@@ -1275,16 +1279,15 @@ export declare interface IPhase {
|
|
|
1275
1279
|
self: Set<IPhase>;
|
|
1276
1280
|
upstream: Set<IPhase>;
|
|
1277
1281
|
};
|
|
1278
|
-
/**
|
|
1279
|
-
* Normally Rush requires that each project's package.json has a `"scripts"` entry matching the phase name.
|
|
1280
|
-
* To disable this check, set `ignoreMissingScript` to true.
|
|
1281
|
-
*/
|
|
1282
|
-
ignoreMissingScript: boolean;
|
|
1283
1282
|
/**
|
|
1284
1283
|
* By default, Rush returns a nonzero exit code if errors or warnings occur during a command. If this option is
|
|
1285
1284
|
* set to `true`, Rush will return a zero exit code if warnings occur during the execution of this phase.
|
|
1286
1285
|
*/
|
|
1287
1286
|
allowWarningsOnSuccess: boolean;
|
|
1287
|
+
/**
|
|
1288
|
+
* What should happen if the script is not defined in a project's package.json scripts field. Default is "error".
|
|
1289
|
+
*/
|
|
1290
|
+
missingScriptBehavior: IPhaseBehaviorForMissingScript;
|
|
1288
1291
|
/**
|
|
1289
1292
|
* (Optional) If the `shellCommand` field is set for a bulk command, Rush will invoke it for each
|
|
1290
1293
|
* selected project; otherwise, Rush will invoke the package.json `"scripts"` entry matching Rush command/phase name.
|
|
@@ -1296,6 +1299,12 @@ export declare interface IPhase {
|
|
|
1296
1299
|
shellCommand?: string;
|
|
1297
1300
|
}
|
|
1298
1301
|
|
|
1302
|
+
/**
|
|
1303
|
+
* The set of valid behaviors for a missing script in a project's package.json scripts for a given phase.
|
|
1304
|
+
* @alpha
|
|
1305
|
+
*/
|
|
1306
|
+
export declare type IPhaseBehaviorForMissingScript = 'silent' | 'log' | 'error';
|
|
1307
|
+
|
|
1299
1308
|
/**
|
|
1300
1309
|
* Information about the currently executing phased script command (as defined in command-line.json, or default "build" or "rebuild") provided to plugins.
|
|
1301
1310
|
* @beta
|
|
@@ -2270,6 +2279,11 @@ export declare class PhasedCommandHooks {
|
|
|
2270
2279
|
* Only relevant when running in watch mode.
|
|
2271
2280
|
*/
|
|
2272
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>;
|
|
2273
2287
|
}
|
|
2274
2288
|
|
|
2275
2289
|
/**
|
|
@@ -2916,6 +2930,7 @@ export declare class RushConfiguration {
|
|
|
2916
2930
|
* an RushConfiguration object.
|
|
2917
2931
|
*/
|
|
2918
2932
|
static loadFromConfigurationFile(rushJsonFilename: string): RushConfiguration;
|
|
2933
|
+
static tryLoadFromDefaultLocation(options?: ITryFindRushJsonLocationOptions): RushConfiguration | undefined;
|
|
2919
2934
|
static loadFromDefaultLocation(options?: ITryFindRushJsonLocationOptions): RushConfiguration;
|
|
2920
2935
|
/**
|
|
2921
2936
|
* Find the rush.json location and return the path, or undefined if a rush.json can't be found.
|
|
@@ -3468,6 +3483,10 @@ export declare class RushConstants {
|
|
|
3468
3483
|
* file system event occurs in this interval, the timeout will reset.
|
|
3469
3484
|
*/
|
|
3470
3485
|
static readonly defaultWatchDebounceMs: number;
|
|
3486
|
+
/**
|
|
3487
|
+
* The name of the parameter that can be used to bypass policies.
|
|
3488
|
+
*/
|
|
3489
|
+
static readonly bypassPolicyFlagLongName: '--bypass-policy';
|
|
3471
3490
|
}
|
|
3472
3491
|
|
|
3473
3492
|
/**
|
|
@@ -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.
|
|
@@ -3,6 +3,11 @@ import type { ICommandLineJson, IGlobalCommandJson, IFlagParameterJson, IChoiceP
|
|
|
3
3
|
export interface IShellCommandTokenContext {
|
|
4
4
|
packageFolder: string;
|
|
5
5
|
}
|
|
6
|
+
/**
|
|
7
|
+
* The set of valid behaviors for a missing script in a project's package.json scripts for a given phase.
|
|
8
|
+
* @alpha
|
|
9
|
+
*/
|
|
10
|
+
export type PhaseBehaviorForMissingScript = 'silent' | 'log' | 'error';
|
|
6
11
|
/**
|
|
7
12
|
* Metadata about a phase.
|
|
8
13
|
* @alpha
|
|
@@ -34,16 +39,15 @@ export interface IPhase {
|
|
|
34
39
|
self: Set<IPhase>;
|
|
35
40
|
upstream: Set<IPhase>;
|
|
36
41
|
};
|
|
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
42
|
/**
|
|
43
43
|
* By default, Rush returns a nonzero exit code if errors or warnings occur during a command. If this option is
|
|
44
44
|
* set to `true`, Rush will return a zero exit code if warnings occur during the execution of this phase.
|
|
45
45
|
*/
|
|
46
46
|
allowWarningsOnSuccess: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* What should happen if the script is not defined in a project's package.json scripts field. Default is "error".
|
|
49
|
+
*/
|
|
50
|
+
missingScriptBehavior: PhaseBehaviorForMissingScript;
|
|
47
51
|
/**
|
|
48
52
|
* (Optional) If the `shellCommand` field is set for a bulk command, Rush will invoke it for each
|
|
49
53
|
* selected project; otherwise, Rush will invoke the package.json `"scripts"` entry matching Rush command/phase name.
|
|
@@ -90,12 +94,12 @@ export interface IPhasedCommandConfig extends IPhasedCommandWithoutPhasesJson, I
|
|
|
90
94
|
}
|
|
91
95
|
export interface IGlobalCommandConfig extends IGlobalCommandJson, ICommandWithParameters {
|
|
92
96
|
}
|
|
93
|
-
export
|
|
97
|
+
export type Command = IGlobalCommandConfig | IPhasedCommandConfig;
|
|
94
98
|
/**
|
|
95
99
|
* Metadata about a custom parameter defined in command-line.json
|
|
96
100
|
* @alpha
|
|
97
101
|
*/
|
|
98
|
-
export
|
|
102
|
+
export type IParameterJson = IFlagParameterJson | IChoiceParameterJson | IStringParameterJson | IIntegerParameterJson | IStringListParameterJson | IIntegerListParameterJson | IChoiceListParameterJson;
|
|
99
103
|
interface ICommandLineConfigurationOptions {
|
|
100
104
|
/**
|
|
101
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
|
|
@@ -88,6 +88,10 @@ export interface IPhaseJson {
|
|
|
88
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
89
|
*/
|
|
90
90
|
ignoreMissingScript?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* What should happen if the script is not defined in a project's package.json scripts field. Default is "error". Supersedes \"ignoreMissingScript\".
|
|
93
|
+
*/
|
|
94
|
+
missingScriptBehavior?: 'silent' | 'log' | 'error';
|
|
91
95
|
/**
|
|
92
96
|
* 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
97
|
*/
|
|
@@ -239,7 +243,7 @@ export interface IChoiceListParameterJson extends IBaseParameterJson {
|
|
|
239
243
|
*/
|
|
240
244
|
alternatives: IChoiceParameterAlternativeJson[];
|
|
241
245
|
}
|
|
242
|
-
export
|
|
246
|
+
export type ParameterJson = IFlagParameterJson | IChoiceParameterJson | IStringParameterJson | IIntegerParameterJson | IStringListParameterJson | IIntegerListParameterJson | IChoiceListParameterJson;
|
|
243
247
|
/**
|
|
244
248
|
* Interfaces for the file format described by command-line.schema.json
|
|
245
249
|
*/
|
|
@@ -44,6 +44,10 @@ export interface IExperimentsJson {
|
|
|
44
44
|
* If true, print the outputs of shell commands defined in event hooks to the console.
|
|
45
45
|
*/
|
|
46
46
|
printEventHooksOutputToConsole?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* If true, Rush will not allow node_modules in the repo folder or in parent folders.
|
|
49
|
+
*/
|
|
50
|
+
forbidPhantomResolvableNodeModulesFolders?: boolean;
|
|
47
51
|
}
|
|
48
52
|
/**
|
|
49
53
|
* Use this class to load the "common/config/rush/experiments.json" config file.
|
|
@@ -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
|
*/
|
|
@@ -435,6 +435,7 @@ export declare class RushConfiguration {
|
|
|
435
435
|
* an RushConfiguration object.
|
|
436
436
|
*/
|
|
437
437
|
static loadFromConfigurationFile(rushJsonFilename: string): RushConfiguration;
|
|
438
|
+
static tryLoadFromDefaultLocation(options?: ITryFindRushJsonLocationOptions): RushConfiguration | undefined;
|
|
438
439
|
static loadFromDefaultLocation(options?: ITryFindRushJsonLocationOptions): RushConfiguration;
|
|
439
440
|
/**
|
|
440
441
|
* Find the rush.json location and return the path, or undefined if a rush.json can't be found.
|
|
@@ -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
|
|
@@ -9,18 +9,17 @@ export interface IRushPnpmCommandLineParserOptions {
|
|
|
9
9
|
terminalProvider?: ITerminalProvider;
|
|
10
10
|
}
|
|
11
11
|
export declare class RushPnpmCommandLineParser {
|
|
12
|
-
private _terminal;
|
|
13
|
-
private _rushConfiguration;
|
|
14
|
-
private _pnpmArgs;
|
|
12
|
+
private readonly _terminal;
|
|
13
|
+
private readonly _rushConfiguration;
|
|
14
|
+
private readonly _pnpmArgs;
|
|
15
15
|
private _commandName;
|
|
16
|
-
private _debugEnabled;
|
|
17
|
-
private
|
|
18
|
-
|
|
16
|
+
private readonly _debugEnabled;
|
|
17
|
+
private constructor();
|
|
18
|
+
static initializeAsync(options: IRushPnpmCommandLineParserOptions): Promise<RushPnpmCommandLineParser>;
|
|
19
19
|
executeAsync(): Promise<void>;
|
|
20
|
-
private
|
|
20
|
+
private _validatePnpmUsageAsync;
|
|
21
21
|
private _execute;
|
|
22
22
|
private _postExecuteAsync;
|
|
23
23
|
private _doRushUpdateAsync;
|
|
24
|
-
private _reportErrorAndSetExitCode;
|
|
25
24
|
}
|
|
26
25
|
//# sourceMappingURL=RushPnpmCommandLineParser.d.ts.map
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { BaseRushAction } from './BaseRushAction';
|
|
2
|
-
import { RushCommandLineParser } from '../RushCommandLineParser';
|
|
2
|
+
import type { RushCommandLineParser } from '../RushCommandLineParser';
|
|
3
3
|
export declare class DeployAction extends BaseRushAction {
|
|
4
|
+
private readonly _logger;
|
|
4
5
|
private readonly _scenario;
|
|
5
6
|
private readonly _project;
|
|
6
7
|
private readonly _overwrite;
|
|
7
8
|
private readonly _targetFolder;
|
|
8
9
|
private readonly _createArchivePath;
|
|
10
|
+
private readonly _createArchiveOnly;
|
|
9
11
|
constructor(parser: RushCommandLineParser);
|
|
10
12
|
protected runAsync(): Promise<void>;
|
|
11
13
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { IPnpmOptionsJson as _IPnpmOptionsJson, PnpmStoreOptions, PnpmOptionsCon
|
|
|
11
11
|
export { BuildCacheConfiguration } from './api/BuildCacheConfiguration';
|
|
12
12
|
export { GetCacheEntryIdFunction, IGenerateCacheEntryIdOptions } from './logic/buildCache/CacheEntryId';
|
|
13
13
|
export { FileSystemBuildCacheProvider, IFileSystemBuildCacheProviderOptions } from './logic/buildCache/FileSystemBuildCacheProvider';
|
|
14
|
-
export { IPhase } from './api/CommandLineConfiguration';
|
|
14
|
+
export { IPhase, PhaseBehaviorForMissingScript as IPhaseBehaviorForMissingScript } from './api/CommandLineConfiguration';
|
|
15
15
|
export { EnvironmentConfiguration, EnvironmentVariableNames, IEnvironmentConfigurationInitializeOptions } from './api/EnvironmentConfiguration';
|
|
16
16
|
export { RushConstants } from './logic/RushConstants';
|
|
17
17
|
export { PackageManagerName, PackageManager } from './api/packageManager/PackageManager';
|
|
@@ -19,7 +19,7 @@ export declare class ChangeFiles {
|
|
|
19
19
|
/**
|
|
20
20
|
* Get the array of absolute paths of change files.
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
getFilesAsync(): Promise<string[]>;
|
|
23
23
|
/**
|
|
24
24
|
* Get the path of changes folder.
|
|
25
25
|
*/
|
|
@@ -27,7 +27,7 @@ export declare class ChangeFiles {
|
|
|
27
27
|
/**
|
|
28
28
|
* Delete all change files
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
private
|
|
30
|
+
deleteAllAsync(shouldDelete: boolean, updatedChangelogs?: IChangelog[]): Promise<number>;
|
|
31
|
+
private _deleteFilesAsync;
|
|
32
32
|
}
|
|
33
33
|
//# sourceMappingURL=ChangeFiles.d.ts.map
|
|
@@ -23,7 +23,7 @@ export declare class ChangeManager {
|
|
|
23
23
|
* @param prereleaseToken - prerelease token
|
|
24
24
|
* @param includeCommitDetails - whether commit details need to be included in changes
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
loadAsync(changesPath: string, prereleaseToken?: PrereleaseToken, includeCommitDetails?: boolean): Promise<void>;
|
|
27
27
|
hasChanges(): boolean;
|
|
28
28
|
get packageChanges(): IChangeInfo[];
|
|
29
29
|
get allPackages(): Map<string, RushConfigurationProject>;
|
|
@@ -34,6 +34,6 @@ export declare class ChangeManager {
|
|
|
34
34
|
* If the value is false, package.json and change logs will not be updated. It will only do a dry-run.
|
|
35
35
|
*/
|
|
36
36
|
apply(shouldCommit: boolean): Map<string, IPackageJson> | undefined;
|
|
37
|
-
|
|
37
|
+
updateChangelogAsync(shouldCommit: boolean): Promise<void>;
|
|
38
38
|
}
|
|
39
39
|
//# sourceMappingURL=ChangeManager.d.ts.map
|
|
@@ -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
|
|
@@ -15,7 +15,7 @@ export declare class PublishUtilities {
|
|
|
15
15
|
* @param changesPath Path to the changes folder.
|
|
16
16
|
* @returns Dictionary of all change requests, keyed by package name.
|
|
17
17
|
*/
|
|
18
|
-
static
|
|
18
|
+
static findChangeRequestsAsync(allPackages: Map<string, RushConfigurationProject>, rushConfiguration: RushConfiguration, changeFiles: ChangeFiles, includeCommitDetails?: boolean, prereleaseToken?: PrereleaseToken, projectsToExclude?: Set<string>): Promise<IChangeRequests>;
|
|
19
19
|
/**
|
|
20
20
|
* Given the changes hash, flattens them into a sorted array based on their dependency order.
|
|
21
21
|
* @params packageChanges - hash of change requests.
|
|
@@ -215,5 +215,9 @@ export declare class RushConstants {
|
|
|
215
215
|
* file system event occurs in this interval, the timeout will reset.
|
|
216
216
|
*/
|
|
217
217
|
static readonly defaultWatchDebounceMs: number;
|
|
218
|
+
/**
|
|
219
|
+
* The name of the parameter that can be used to bypass policies.
|
|
220
|
+
*/
|
|
221
|
+
static readonly bypassPolicyFlagLongName: '--bypass-policy';
|
|
218
222
|
}
|
|
219
223
|
//# sourceMappingURL=RushConstants.d.ts.map
|
|
@@ -12,6 +12,10 @@ export interface IInstallManagerOptions {
|
|
|
12
12
|
* Whether to check the validation before install only, without actually installing anything.
|
|
13
13
|
*/
|
|
14
14
|
checkOnly: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a "--bypass-policy" flag can be specified.
|
|
17
|
+
*/
|
|
18
|
+
bypassPolicyAllowed?: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* Whether to skip policy checks.
|
|
17
21
|
*/
|
|
@@ -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;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type ITerminal } from '@rushstack/node-core-library';
|
|
2
|
+
import type { RushConfiguration } from '../../api/RushConfiguration';
|
|
2
3
|
export interface IDeployScenarioProjectJson {
|
|
3
4
|
projectName: string;
|
|
4
5
|
additionalProjectsToInclude?: string[];
|
|
@@ -34,6 +35,6 @@ export declare class DeployScenarioConfiguration {
|
|
|
34
35
|
* Example: undefined --> "...common/config/rush/deploy.json"
|
|
35
36
|
*/
|
|
36
37
|
static getConfigFilePath(scenarioName: string | undefined, rushConfiguration: RushConfiguration): string;
|
|
37
|
-
static loadFromFile(scenarioFilePath: string, rushConfiguration: RushConfiguration): DeployScenarioConfiguration;
|
|
38
|
+
static loadFromFile(terminal: ITerminal, scenarioFilePath: string, rushConfiguration: RushConfiguration): DeployScenarioConfiguration;
|
|
38
39
|
}
|
|
39
40
|
//# sourceMappingURL=DeployScenarioConfiguration.d.ts.map
|
|
@@ -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
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RushConfiguration } from '../../api/RushConfiguration';
|
|
2
|
+
import type { IPolicyValidatorOptions } from './PolicyValidator';
|
|
3
|
+
/**
|
|
4
|
+
* Ensures the environment where the Rush repo exists is valid
|
|
5
|
+
*/
|
|
6
|
+
export declare function validateAsync(rushConfiguration: RushConfiguration, options: IPolicyValidatorOptions): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=EnvironmentPolicy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/policy/EnvironmentPolicy");
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { RushConfiguration } from '../../api/RushConfiguration';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
import type { RushConfiguration } from '../../api/RushConfiguration';
|
|
2
|
+
import type { IPolicyValidatorOptions } from './PolicyValidator';
|
|
3
|
+
export declare function validate(rushConfiguration: RushConfiguration, options: IPolicyValidatorOptions): void;
|
|
4
|
+
export declare function getEmailExampleLines(rushConfiguration: RushConfiguration): string[];
|
|
6
5
|
//# sourceMappingURL=GitEmailPolicy.d.ts.map
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { RushConfiguration } from '../../api/RushConfiguration';
|
|
1
|
+
import type { RushConfiguration } from '../../api/RushConfiguration';
|
|
2
2
|
export interface IPolicyValidatorOptions {
|
|
3
|
+
bypassPolicyAllowed?: boolean;
|
|
3
4
|
bypassPolicy?: boolean;
|
|
4
5
|
allowShrinkwrapUpdates?: boolean;
|
|
5
6
|
shrinkwrapVariant?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare
|
|
8
|
-
static validatePolicy(rushConfiguration: RushConfiguration, options: IPolicyValidatorOptions): void;
|
|
9
|
-
}
|
|
8
|
+
export declare function validatePolicyAsync(rushConfiguration: RushConfiguration, options: IPolicyValidatorOptions): Promise<void>;
|
|
10
9
|
//# sourceMappingURL=PolicyValidator.d.ts.map
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { RushConfiguration } from '../../api/RushConfiguration';
|
|
2
|
-
import { IPolicyValidatorOptions } from './PolicyValidator';
|
|
3
|
-
import { RepoStateFile } from '../RepoStateFile';
|
|
1
|
+
import type { RushConfiguration } from '../../api/RushConfiguration';
|
|
2
|
+
import type { IPolicyValidatorOptions } from './PolicyValidator';
|
|
3
|
+
import type { RepoStateFile } from '../RepoStateFile';
|
|
4
4
|
export interface IShrinkwrapFilePolicyValidatorOptions extends IPolicyValidatorOptions {
|
|
5
5
|
repoState: RepoStateFile;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* A policy that validates shrinkwrap files used by package managers.
|
|
9
9
|
*/
|
|
10
|
-
export declare
|
|
11
|
-
static validate(rushConfiguration: RushConfiguration, options: IPolicyValidatorOptions): void;
|
|
12
|
-
}
|
|
10
|
+
export declare function validate(rushConfiguration: RushConfiguration, options: IPolicyValidatorOptions): void;
|
|
13
11
|
//# sourceMappingURL=ShrinkwrapFilePolicy.d.ts.map
|
|
@@ -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
|
*/
|
|
@@ -15,7 +15,6 @@ export declare const installRunScriptFilename: string;
|
|
|
15
15
|
export declare const installRunRushScriptFilename: string;
|
|
16
16
|
export declare const installRunRushxScriptFilename: string;
|
|
17
17
|
export declare const installRunRushPnpmScriptFilename: string;
|
|
18
|
-
export declare const createLinksScriptFilename: string;
|
|
19
18
|
/**
|
|
20
19
|
* The path to the scripts folder in rush-lib/dist.
|
|
21
20
|
*/
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
2
|
import * as child_process from 'child_process';
|
|
5
|
-
import type * as stream from 'stream';
|
|
6
3
|
import { RushConfiguration } from '../api/RushConfiguration';
|
|
7
4
|
import { syncNpmrc } from './npmrcUtilities';
|
|
8
|
-
export
|
|
5
|
+
export type UNINITIALIZED = 'UNINITIALIZED';
|
|
9
6
|
export declare const UNINITIALIZED: UNINITIALIZED;
|
|
10
7
|
export interface IEnvironment {
|
|
11
8
|
[environmentVariableName: string]: string | undefined;
|
|
@@ -84,10 +81,6 @@ export declare class Utilities {
|
|
|
84
81
|
* Node.js equivalent of performance.now().
|
|
85
82
|
*/
|
|
86
83
|
static getTimeInMs(): number;
|
|
87
|
-
/**
|
|
88
|
-
* Returns the values from a Set<T>
|
|
89
|
-
*/
|
|
90
|
-
static getSetAsArray<T>(set: Set<T> | ReadonlySet<T>): T[];
|
|
91
84
|
/**
|
|
92
85
|
* Retries a function until a timeout is reached. The function is expected to throw if it failed and
|
|
93
86
|
* should be retried.
|
|
@@ -99,10 +92,6 @@ export declare class Utilities {
|
|
|
99
92
|
* If the folder already exists, no error occurs.
|
|
100
93
|
*/
|
|
101
94
|
static createFolderWithRetry(folderName: string): void;
|
|
102
|
-
/**
|
|
103
|
-
* Determines if the path points to a file and that it exists.
|
|
104
|
-
*/
|
|
105
|
-
static fileExists(filePath: string): boolean;
|
|
106
95
|
/**
|
|
107
96
|
* Determines if a path points to a directory and that it exists.
|
|
108
97
|
*/
|
|
@@ -113,10 +102,6 @@ export declare class Utilities {
|
|
|
113
102
|
* hard disk.
|
|
114
103
|
*/
|
|
115
104
|
static dangerouslyDeletePath(folderPath: string): void;
|
|
116
|
-
/**
|
|
117
|
-
* Attempts to delete a file. If it does not exist, or the path is not a file, it no-ops.
|
|
118
|
-
*/
|
|
119
|
-
static deleteFile(filePath: string): void;
|
|
120
105
|
static isFileTimestampCurrent(dateToCompare: Date, inputFilenames: string[]): boolean;
|
|
121
106
|
/**
|
|
122
107
|
* Executes the command with the specified command-line parameters, and waits for it to complete.
|
|
@@ -162,7 +147,6 @@ export declare class Utilities {
|
|
|
162
147
|
static syncFile(sourcePath: string, destinationPath: string): void;
|
|
163
148
|
static getRushConfigNotFoundError(): Error;
|
|
164
149
|
static usingAsync<TDisposable extends IDisposable>(getDisposableAsync: () => Promise<TDisposable> | IDisposable, doActionAsync: (disposable: TDisposable) => Promise<void> | void): Promise<void>;
|
|
165
|
-
static readStreamToBufferAsync(stream: stream.Readable): Promise<Buffer>;
|
|
166
150
|
private static _executeLifecycleCommandInternal;
|
|
167
151
|
/**
|
|
168
152
|
* Returns a process.env environment suitable for executing lifecycle scripts.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.99.0",
|
|
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.
|
|
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.99.0",
|
|
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
|
}
|