@rushstack/rush-sdk 5.78.0-pr3481.6 → 5.78.1
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 +21 -167
- package/package.json +7 -7
package/dist/rush-lib.d.ts
CHANGED
|
@@ -136,59 +136,6 @@ export declare class ApprovedPackagesPolicy {
|
|
|
136
136
|
get nonbrowserApprovedPackages(): ApprovedPackagesConfiguration;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
/**
|
|
140
|
-
* A base class for flag file.
|
|
141
|
-
* @internal
|
|
142
|
-
*/
|
|
143
|
-
export declare class _BaseFlag<T extends object = JsonObject> {
|
|
144
|
-
/**
|
|
145
|
-
* Flag file path
|
|
146
|
-
*/
|
|
147
|
-
protected _path: string;
|
|
148
|
-
/**
|
|
149
|
-
* Content of the flag
|
|
150
|
-
*/
|
|
151
|
-
protected _state: T;
|
|
152
|
-
/**
|
|
153
|
-
* Whether the current state is modified
|
|
154
|
-
*/
|
|
155
|
-
protected _isModified: boolean;
|
|
156
|
-
/**
|
|
157
|
-
* Creates a new flag file
|
|
158
|
-
* @param folderPath - the folder that this flag is managing
|
|
159
|
-
* @param state - optional, the state that should be managed or compared
|
|
160
|
-
*/
|
|
161
|
-
constructor(folderPath: string, state?: Partial<T>);
|
|
162
|
-
/**
|
|
163
|
-
* Returns true if the file exists and the contents match the current state.
|
|
164
|
-
*/
|
|
165
|
-
isValid(): boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Writes the flag file to disk with the current state
|
|
168
|
-
*/
|
|
169
|
-
create(): void;
|
|
170
|
-
/**
|
|
171
|
-
* Merge new data into current state by lodash "merge"
|
|
172
|
-
*/
|
|
173
|
-
mergeFromObject(data: JsonObject): void;
|
|
174
|
-
/**
|
|
175
|
-
* Writes the flag file to disk with the current state if modified
|
|
176
|
-
*/
|
|
177
|
-
saveIfModified(): void;
|
|
178
|
-
/**
|
|
179
|
-
* Removes the flag file
|
|
180
|
-
*/
|
|
181
|
-
clear(): void;
|
|
182
|
-
/**
|
|
183
|
-
* Returns the full path to the flag file
|
|
184
|
-
*/
|
|
185
|
-
get path(): string;
|
|
186
|
-
/**
|
|
187
|
-
* Returns the name of the flag file
|
|
188
|
-
*/
|
|
189
|
-
protected get flagName(): string;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
139
|
/**
|
|
193
140
|
* Use this class to load and save the "common/config/rush/build-cache.json" config file.
|
|
194
141
|
* This file provides configuration options for cached project build output.
|
|
@@ -940,11 +887,6 @@ export declare interface IExperimentsJson {
|
|
|
940
887
|
* in common/config/rush/command-line.json.
|
|
941
888
|
*/
|
|
942
889
|
phasedCommands?: boolean;
|
|
943
|
-
/**
|
|
944
|
-
* If true, rush install or rush update implicitly specify --ignore-scripts during pnpm install,
|
|
945
|
-
* and run install lifecycle scripts by pnpm rebuild --pending after pnpm install successfully.
|
|
946
|
-
*/
|
|
947
|
-
deferredInstallationScripts?: boolean;
|
|
948
890
|
}
|
|
949
891
|
|
|
950
892
|
/**
|
|
@@ -1011,50 +953,6 @@ declare interface IIndividualVersionJson extends IVersionPolicyJson {
|
|
|
1011
953
|
lockedMajor?: number;
|
|
1012
954
|
}
|
|
1013
955
|
|
|
1014
|
-
/**
|
|
1015
|
-
* This represents the JSON data structure for the "last-install.flag" file.
|
|
1016
|
-
* @internal
|
|
1017
|
-
*/
|
|
1018
|
-
export declare interface _ILastInstallFlagJson {
|
|
1019
|
-
/**
|
|
1020
|
-
* Current node version
|
|
1021
|
-
*/
|
|
1022
|
-
node: string;
|
|
1023
|
-
/**
|
|
1024
|
-
* Current package manager name
|
|
1025
|
-
*/
|
|
1026
|
-
packageManager: PackageManagerName;
|
|
1027
|
-
/**
|
|
1028
|
-
* Current package manager version
|
|
1029
|
-
*/
|
|
1030
|
-
packageManagerVersion: string;
|
|
1031
|
-
/**
|
|
1032
|
-
* Current rush json folder
|
|
1033
|
-
*/
|
|
1034
|
-
rushJsonFolder: string;
|
|
1035
|
-
/**
|
|
1036
|
-
* The content of package.json, used in the flag file of autoinstaller
|
|
1037
|
-
*/
|
|
1038
|
-
packageJson?: IPackageJson;
|
|
1039
|
-
/**
|
|
1040
|
-
* Same with pnpmOptions.pnpmStorePath in rush.json
|
|
1041
|
-
*/
|
|
1042
|
-
storePath?: string;
|
|
1043
|
-
/**
|
|
1044
|
-
* True when "useWorkspaces" is true in rush.json
|
|
1045
|
-
*/
|
|
1046
|
-
workspaces?: true;
|
|
1047
|
-
/**
|
|
1048
|
-
* True when user explicitly specify "--ignore-scripts" CLI parameter or deferredInstallationScripts
|
|
1049
|
-
*/
|
|
1050
|
-
ignoreScripts?: true;
|
|
1051
|
-
/**
|
|
1052
|
-
* When specified, it is a list of selected projects during partial install
|
|
1053
|
-
* It is undefined when full install
|
|
1054
|
-
*/
|
|
1055
|
-
selectedProjectNames?: string[];
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
956
|
/**
|
|
1059
957
|
* Options to pass to the rush "launch" functions.
|
|
1060
958
|
*
|
|
@@ -1420,7 +1318,6 @@ declare interface IRushConfigurationProjectJson {
|
|
|
1420
1318
|
skipRushCheck?: boolean;
|
|
1421
1319
|
publishFolder?: string;
|
|
1422
1320
|
tags?: string[];
|
|
1423
|
-
splitWorkspace?: boolean;
|
|
1424
1321
|
}
|
|
1425
1322
|
|
|
1426
1323
|
/**
|
|
@@ -1445,16 +1342,6 @@ declare interface IRushConfigurationProjectOptions {
|
|
|
1445
1342
|
allowedProjectTags: Set<string> | undefined;
|
|
1446
1343
|
}
|
|
1447
1344
|
|
|
1448
|
-
/**
|
|
1449
|
-
* The filter parameters to search from all projects.
|
|
1450
|
-
*/
|
|
1451
|
-
declare interface IRushConfigurationProjectsFilter {
|
|
1452
|
-
/**
|
|
1453
|
-
* If true, filter out projects that specify splitWorkspace as true.
|
|
1454
|
-
*/
|
|
1455
|
-
splitWorkspace: boolean;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
1345
|
/**
|
|
1459
1346
|
* Part of IRushConfigurationJson.
|
|
1460
1347
|
*/
|
|
@@ -1713,9 +1600,16 @@ export declare interface _IYarnOptionsJson extends IPackageManagerOptionsJsonBas
|
|
|
1713
1600
|
* it can invalidate the last install.
|
|
1714
1601
|
* @internal
|
|
1715
1602
|
*/
|
|
1716
|
-
export declare class _LastInstallFlag
|
|
1603
|
+
export declare class _LastInstallFlag {
|
|
1604
|
+
private _path;
|
|
1605
|
+
private _state;
|
|
1606
|
+
/**
|
|
1607
|
+
* Creates a new LastInstall flag
|
|
1608
|
+
* @param folderPath - the folder that this flag is managing
|
|
1609
|
+
* @param state - optional, the state that should be managed or compared
|
|
1610
|
+
*/
|
|
1611
|
+
constructor(folderPath: string, state?: JsonObject);
|
|
1717
1612
|
/**
|
|
1718
|
-
* @override
|
|
1719
1613
|
* Returns true if the file exists and the contents match the current state.
|
|
1720
1614
|
*/
|
|
1721
1615
|
isValid(): boolean;
|
|
@@ -1727,6 +1621,18 @@ export declare class _LastInstallFlag extends _BaseFlag<_ILastInstallFlagJson> {
|
|
|
1727
1621
|
*/
|
|
1728
1622
|
checkValidAndReportStoreIssues(): boolean;
|
|
1729
1623
|
private _isValid;
|
|
1624
|
+
/**
|
|
1625
|
+
* Writes the flag file to disk with the current state
|
|
1626
|
+
*/
|
|
1627
|
+
create(): void;
|
|
1628
|
+
/**
|
|
1629
|
+
* Removes the flag file
|
|
1630
|
+
*/
|
|
1631
|
+
clear(): void;
|
|
1632
|
+
/**
|
|
1633
|
+
* Returns the full path to the flag file
|
|
1634
|
+
*/
|
|
1635
|
+
get path(): string;
|
|
1730
1636
|
/**
|
|
1731
1637
|
* Returns the name of the flag file
|
|
1732
1638
|
*/
|
|
@@ -2379,7 +2285,6 @@ export declare class RushConfiguration {
|
|
|
2379
2285
|
private _changesFolder;
|
|
2380
2286
|
private _commonFolder;
|
|
2381
2287
|
private _commonTempFolder;
|
|
2382
|
-
private _commonTempSplitFolder;
|
|
2383
2288
|
private _commonScriptsFolder;
|
|
2384
2289
|
private _commonRushConfigFolder;
|
|
2385
2290
|
private _packageManager;
|
|
@@ -2388,10 +2293,8 @@ export declare class RushConfiguration {
|
|
|
2388
2293
|
private _npmTmpFolder;
|
|
2389
2294
|
private _yarnCacheFolder;
|
|
2390
2295
|
private _shrinkwrapFilename;
|
|
2391
|
-
private _splitWorkspaceShrinkwrapFilename;
|
|
2392
2296
|
private _tempShrinkwrapFilename;
|
|
2393
2297
|
private _tempShrinkwrapPreinstallFilename;
|
|
2394
|
-
private _tempSplitWorkspaceShrinkwrapFilename;
|
|
2395
2298
|
private _currentVariantJsonFilename;
|
|
2396
2299
|
private _packageManagerToolVersion;
|
|
2397
2300
|
private _packageManagerToolFilename;
|
|
@@ -2422,8 +2325,6 @@ export declare class RushConfiguration {
|
|
|
2422
2325
|
private _projects;
|
|
2423
2326
|
private _projectsByName;
|
|
2424
2327
|
private _projectsByTag;
|
|
2425
|
-
private _filteredProjectsCache;
|
|
2426
|
-
private _hasSplitWorkspaceProject;
|
|
2427
2328
|
private _commonVersionsConfigurationsByVariant;
|
|
2428
2329
|
private _versionPolicyConfiguration;
|
|
2429
2330
|
private _versionPolicyConfigurationFilePath;
|
|
@@ -2516,12 +2417,6 @@ export declare class RushConfiguration {
|
|
|
2516
2417
|
* Example: `C:\MyRepo\common\temp`
|
|
2517
2418
|
*/
|
|
2518
2419
|
get commonTempFolder(): string;
|
|
2519
|
-
/**
|
|
2520
|
-
* The folder where temporary files will be stored. This is always a subfolder called "temp"
|
|
2521
|
-
* under the common folder.
|
|
2522
|
-
* Example: `C:\MyRepo\common\temp-split`
|
|
2523
|
-
*/
|
|
2524
|
-
get commonTempSplitFolder(): string;
|
|
2525
2420
|
/**
|
|
2526
2421
|
* The folder where automation scripts are stored. This is always a subfolder called "scripts"
|
|
2527
2422
|
* under the common folder.
|
|
@@ -2579,7 +2474,6 @@ export declare class RushConfiguration {
|
|
|
2579
2474
|
* Example: `npm-shrinkwrap.json` or `pnpm-lock.yaml`
|
|
2580
2475
|
*/
|
|
2581
2476
|
get shrinkwrapFilename(): string;
|
|
2582
|
-
get splitWorkspaceShrinkwrapFilename(): string;
|
|
2583
2477
|
/**
|
|
2584
2478
|
* The full path of the temporary shrinkwrap file that is used during "rush install".
|
|
2585
2479
|
* This file may get rewritten by the package manager during installation.
|
|
@@ -2588,14 +2482,6 @@ export declare class RushConfiguration {
|
|
|
2588
2482
|
* Example: `C:\MyRepo\common\temp\npm-shrinkwrap.json` or `C:\MyRepo\common\temp\pnpm-lock.yaml`
|
|
2589
2483
|
*/
|
|
2590
2484
|
get tempShrinkwrapFilename(): string;
|
|
2591
|
-
/**
|
|
2592
|
-
* The full path of the temporary shrinkwrap file for split workspace that is used during
|
|
2593
|
-
* "rush install". This file may get rewritten by the package manager during installation.
|
|
2594
|
-
* @remarks
|
|
2595
|
-
* This property merely reports the filename; the file itself may not actually exist.
|
|
2596
|
-
* Example: `C:\MyRepo\common\temp-split\pnpm-lock.yaml`
|
|
2597
|
-
*/
|
|
2598
|
-
get tempSplitWorkspaceShrinkwrapFilename(): string;
|
|
2599
2485
|
/**
|
|
2600
2486
|
* The full path of a backup copy of tempShrinkwrapFilename. This backup copy is made
|
|
2601
2487
|
* before installation begins, and can be compared to determine how the package manager
|
|
@@ -2755,11 +2641,6 @@ export declare class RushConfiguration {
|
|
|
2755
2641
|
* @beta
|
|
2756
2642
|
*/
|
|
2757
2643
|
get projectsByTag(): ReadonlyMap<string, ReadonlySet<RushConfigurationProject>>;
|
|
2758
|
-
/**
|
|
2759
|
-
* Search for projects according to filter
|
|
2760
|
-
* @beta
|
|
2761
|
-
*/
|
|
2762
|
-
getFilteredProjects(filter: IRushConfigurationProjectsFilter): RushConfigurationProject[];
|
|
2763
2644
|
/**
|
|
2764
2645
|
* {@inheritDoc NpmOptionsConfiguration}
|
|
2765
2646
|
*/
|
|
@@ -2806,10 +2687,6 @@ export declare class RushConfiguration {
|
|
|
2806
2687
|
* The rush hooks. It allows customized scripts to run at the specified point.
|
|
2807
2688
|
*/
|
|
2808
2689
|
get packageNameParser(): PackageNameParser;
|
|
2809
|
-
/**
|
|
2810
|
-
* Is there any split workspace project.
|
|
2811
|
-
*/
|
|
2812
|
-
get hasSplitWorkspaceProject(): boolean;
|
|
2813
2690
|
/**
|
|
2814
2691
|
* Gets the path to the common-versions.json config file for a specific variant.
|
|
2815
2692
|
* @param variant - The name of the current variant in use by the active command.
|
|
@@ -2842,11 +2719,6 @@ export declare class RushConfiguration {
|
|
|
2842
2719
|
* @param variant - The name of the current variant in use by the active command.
|
|
2843
2720
|
*/
|
|
2844
2721
|
getCommittedShrinkwrapFilename(variant?: string | undefined): string;
|
|
2845
|
-
/**
|
|
2846
|
-
* Gets the committed shrinkwrap file name for split workspace.
|
|
2847
|
-
* @param variant - The name of the current variant in use by the active command.
|
|
2848
|
-
*/
|
|
2849
|
-
getCommittedSplitWorkspaceShrinkwrapFilename(): string;
|
|
2850
2722
|
/**
|
|
2851
2723
|
* Gets the absolute path for "pnpmfile.js" for a specific variant.
|
|
2852
2724
|
* @param variant - The name of the current variant in use by the active command.
|
|
@@ -2901,12 +2773,6 @@ export declare class RushConfiguration {
|
|
|
2901
2773
|
*/
|
|
2902
2774
|
tryGetProjectForPath(currentFolderPath: string): RushConfigurationProject | undefined;
|
|
2903
2775
|
private _getVariantConfigFolderPath;
|
|
2904
|
-
/**
|
|
2905
|
-
* Split workspace can only works on PNPM with "useWorkspaces" enabled.
|
|
2906
|
-
* The workspace project can NOT depend on a split workspace project.
|
|
2907
|
-
* The split workspace project CAN depend on a workspace project.
|
|
2908
|
-
*/
|
|
2909
|
-
private _validateSplitWorkspaceRelationships;
|
|
2910
2776
|
}
|
|
2911
2777
|
|
|
2912
2778
|
/**
|
|
@@ -2932,7 +2798,6 @@ export declare class RushConfigurationProject {
|
|
|
2932
2798
|
private readonly _publishFolder;
|
|
2933
2799
|
private readonly _rushConfiguration;
|
|
2934
2800
|
private readonly _tags;
|
|
2935
|
-
private readonly _splitWorkspace;
|
|
2936
2801
|
private _versionPolicy;
|
|
2937
2802
|
private _dependencyProjects;
|
|
2938
2803
|
private _consumingProjects;
|
|
@@ -3100,11 +2965,6 @@ export declare class RushConfigurationProject {
|
|
|
3100
2965
|
* @beta
|
|
3101
2966
|
*/
|
|
3102
2967
|
get tags(): ReadonlySet<string>;
|
|
3103
|
-
/**
|
|
3104
|
-
* Whether this project is a split workspace project.
|
|
3105
|
-
* @beta
|
|
3106
|
-
*/
|
|
3107
|
-
get splitWorkspace(): boolean;
|
|
3108
2968
|
}
|
|
3109
2969
|
|
|
3110
2970
|
/**
|
|
@@ -3152,12 +3012,6 @@ export declare class RushConstants {
|
|
|
3152
3012
|
* Example: `C:\MyRepo\common\temp`
|
|
3153
3013
|
*/
|
|
3154
3014
|
static readonly rushTempFolderName: string;
|
|
3155
|
-
/**
|
|
3156
|
-
* The folder name ("temp-split") under the common folder, or under the .rush folder in each project's directory where
|
|
3157
|
-
* temporary files will be stored.
|
|
3158
|
-
* Example: `C:\MyRepo\common\temp-split`
|
|
3159
|
-
*/
|
|
3160
|
-
static readonly rushTempSplitFolderName: string;
|
|
3161
3015
|
/**
|
|
3162
3016
|
* The folder name ("projects") where temporary projects will be stored.
|
|
3163
3017
|
* Example: `C:\MyRepo\common\temp\projects`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.78.
|
|
3
|
+
"version": "5.78.1",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,18 +12,18 @@
|
|
|
12
12
|
"typings": "dist/rush-lib.d.ts",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@rushstack/node-core-library": "3.
|
|
15
|
+
"@rushstack/node-core-library": "3.52.0",
|
|
16
16
|
"@types/node-fetch": "1.6.9",
|
|
17
17
|
"tapable": "2.2.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/rush-lib": "5.78.
|
|
20
|
+
"@microsoft/rush-lib": "5.78.1",
|
|
21
21
|
"@rushstack/eslint-config": "3.0.1",
|
|
22
|
-
"@rushstack/heft": "0.47.
|
|
23
|
-
"@rushstack/heft-node-rig": "1.10.
|
|
24
|
-
"@rushstack/stream-collator": "4.0.
|
|
22
|
+
"@rushstack/heft": "0.47.10",
|
|
23
|
+
"@rushstack/heft-node-rig": "1.10.12",
|
|
24
|
+
"@rushstack/stream-collator": "4.0.205",
|
|
25
25
|
"@rushstack/ts-command-line": "4.12.3",
|
|
26
|
-
"@rushstack/terminal": "0.3.
|
|
26
|
+
"@rushstack/terminal": "0.3.74",
|
|
27
27
|
"@types/heft-jest": "1.0.1",
|
|
28
28
|
"@types/semver": "7.3.5",
|
|
29
29
|
"@types/webpack-env": "1.13.0"
|