@rushstack/rush-sdk 5.97.1 → 5.98.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 +20 -6
- package/lib/api/CommandLineConfiguration.d.ts +9 -5
- package/lib/api/CommandLineJson.d.ts +4 -0
- package/lib/api/ExperimentsConfiguration.d.ts +4 -0
- package/lib/api/RushConfiguration.d.ts +1 -0
- 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/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/deploy/DeployScenarioConfiguration.d.ts +3 -2
- 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/RushSession.d.ts +1 -1
- package/lib/utilities/PathConstants.d.ts +0 -1
- package/lib/utilities/Utilities.d.ts +0 -16
- package/package.json +7 -7
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
|
|
@@ -2916,6 +2925,7 @@ export declare class RushConfiguration {
|
|
|
2916
2925
|
* an RushConfiguration object.
|
|
2917
2926
|
*/
|
|
2918
2927
|
static loadFromConfigurationFile(rushJsonFilename: string): RushConfiguration;
|
|
2928
|
+
static tryLoadFromDefaultLocation(options?: ITryFindRushJsonLocationOptions): RushConfiguration | undefined;
|
|
2919
2929
|
static loadFromDefaultLocation(options?: ITryFindRushJsonLocationOptions): RushConfiguration;
|
|
2920
2930
|
/**
|
|
2921
2931
|
* Find the rush.json location and return the path, or undefined if a rush.json can't be found.
|
|
@@ -3468,6 +3478,10 @@ export declare class RushConstants {
|
|
|
3468
3478
|
* file system event occurs in this interval, the timeout will reset.
|
|
3469
3479
|
*/
|
|
3470
3480
|
static readonly defaultWatchDebounceMs: number;
|
|
3481
|
+
/**
|
|
3482
|
+
* The name of the parameter that can be used to bypass policies.
|
|
3483
|
+
*/
|
|
3484
|
+
static readonly bypassPolicyFlagLongName: '--bypass-policy';
|
|
3471
3485
|
}
|
|
3472
3486
|
|
|
3473
3487
|
/**
|
|
@@ -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 declare 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.
|
|
@@ -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
|
*/
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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
|
|
@@ -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
|
*/
|
|
@@ -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
|
|
@@ -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
|
|
@@ -13,7 +13,7 @@ export interface IRushSessionOptions {
|
|
|
13
13
|
/**
|
|
14
14
|
* @beta
|
|
15
15
|
*/
|
|
16
|
-
export declare type CloudBuildCacheProviderFactory = (buildCacheJson: IBuildCacheJson) => ICloudBuildCacheProvider
|
|
16
|
+
export declare 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,8 +1,5 @@
|
|
|
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
5
|
export declare type UNINITIALIZED = 'UNINITIALIZED';
|
|
@@ -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.98.0",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,19 +14,19 @@
|
|
|
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.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/heft-jest": "1.0.1",
|
|
21
21
|
"@types/semver": "7.3.5",
|
|
22
22
|
"@types/webpack-env": "1.18.0",
|
|
23
|
-
"@microsoft/rush-lib": "5.
|
|
23
|
+
"@microsoft/rush-lib": "5.98.0",
|
|
24
24
|
"@rushstack/eslint-config": "3.2.0",
|
|
25
|
-
"@rushstack/heft": "0.50.
|
|
26
|
-
"@rushstack/heft-node-rig": "1.12.
|
|
27
|
-
"@rushstack/stream-collator": "4.0.
|
|
25
|
+
"@rushstack/heft": "0.50.5",
|
|
26
|
+
"@rushstack/heft-node-rig": "1.12.11",
|
|
27
|
+
"@rushstack/stream-collator": "4.0.234",
|
|
28
28
|
"@rushstack/ts-command-line": "4.13.2",
|
|
29
|
-
"@rushstack/terminal": "0.5.
|
|
29
|
+
"@rushstack/terminal": "0.5.9"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
32
|
"build": "heft build --clean",
|