@rushstack/rush-sdk 5.90.0-pr3481.16 → 5.90.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.
Files changed (2) hide show
  1. package/dist/rush-lib.d.ts +20 -166
  2. package/package.json +9 -9
@@ -131,55 +131,6 @@ export declare class ApprovedPackagesPolicy {
131
131
  constructor(rushConfiguration: RushConfiguration, rushConfigurationJson: IRushConfigurationJson);
132
132
  }
133
133
 
134
- /**
135
- * A base class for flag file.
136
- * @internal
137
- */
138
- export declare class _BaseFlag<T extends object = JsonObject> {
139
- /**
140
- * Flag file path
141
- */
142
- readonly path: string;
143
- /**
144
- * Content of the flag
145
- */
146
- protected _state: T;
147
- /**
148
- * Whether the current state is modified
149
- */
150
- protected _isModified: boolean;
151
- /**
152
- * Creates a new flag file
153
- * @param folderPath - the folder that this flag is managing
154
- * @param state - optional, the state that should be managed or compared
155
- */
156
- constructor(folderPath: string, state?: Partial<T>);
157
- /**
158
- * Returns true if the file exists and the contents match the current state.
159
- */
160
- isValid(): boolean;
161
- /**
162
- * Writes the flag file to disk with the current state
163
- */
164
- create(): void;
165
- /**
166
- * Merge new data into current state by lodash "merge"
167
- */
168
- mergeFromObject(data: JsonObject): void;
169
- /**
170
- * Writes the flag file to disk with the current state if modified
171
- */
172
- saveIfModified(): void;
173
- /**
174
- * Removes the flag file
175
- */
176
- clear(): void;
177
- /**
178
- * Returns Name of the flag file
179
- */
180
- protected get flagName(): string;
181
- }
182
-
183
134
  /**
184
135
  * Use this class to load and save the "common/config/rush/build-cache.json" config file.
185
136
  * This file provides configuration options for cached project build output.
@@ -927,11 +878,6 @@ export declare interface IExperimentsJson {
927
878
  * in common/config/rush/command-line.json.
928
879
  */
929
880
  phasedCommands?: boolean;
930
- /**
931
- * If true, rush install or rush update implicitly specify --ignore-scripts during pnpm install,
932
- * and run install lifecycle scripts by pnpm rebuild --pending after pnpm install successfully.
933
- */
934
- deferredInstallationScripts?: boolean;
935
881
  /**
936
882
  * If true, perform a clean install after when running `rush install` or `rush update` if the
937
883
  * `.npmrc` file has changed since the last install.
@@ -1003,51 +949,6 @@ declare interface IIndividualVersionJson extends IVersionPolicyJson {
1003
949
  lockedMajor?: number;
1004
950
  }
1005
951
 
1006
- /**
1007
- * This represents the JSON data structure for the "last-install.flag" file.
1008
- * @internal
1009
- */
1010
- export declare interface _ILastInstallFlagJson {
1011
- /**
1012
- * Current node version
1013
- */
1014
- node: string;
1015
- /**
1016
- * Current package manager name
1017
- */
1018
- packageManager: PackageManagerName;
1019
- /**
1020
- * Current package manager version
1021
- */
1022
- packageManagerVersion: string;
1023
- /**
1024
- * Current rush json folder
1025
- */
1026
- rushJsonFolder: string;
1027
- /**
1028
- * The content of package.json, used in the flag file of autoinstaller
1029
- */
1030
- packageJson?: IPackageJson;
1031
- /**
1032
- * Same with pnpmOptions.pnpmStorePath in rush.json
1033
- */
1034
- storePath?: string;
1035
- /**
1036
- * True when "useWorkspaces" is true in rush.json
1037
- */
1038
- workspaces?: true;
1039
- /**
1040
- * True when user explicitly specify "--ignore-scripts" CLI parameter or deferredInstallationScripts
1041
- */
1042
- ignoreScripts?: true;
1043
- /**
1044
- * When specified, it is a list of selected projects during partial install
1045
- * It is undefined when full install
1046
- */
1047
- selectedProjectNames?: string[];
1048
- [key: string]: unknown;
1049
- }
1050
-
1051
952
  /**
1052
953
  * Options to pass to the rush "launch" functions.
1053
954
  *
@@ -1515,7 +1416,6 @@ declare interface IRushConfigurationProjectJson {
1515
1416
  skipRushCheck?: boolean;
1516
1417
  publishFolder?: string;
1517
1418
  tags?: string[];
1518
- splitWorkspace?: boolean;
1519
1419
  }
1520
1420
 
1521
1421
  /**
@@ -1540,16 +1440,6 @@ declare interface IRushConfigurationProjectOptions {
1540
1440
  allowedProjectTags: Set<string> | undefined;
1541
1441
  }
1542
1442
 
1543
- /**
1544
- * The filter parameters to search from all projects.
1545
- */
1546
- declare interface IRushConfigurationProjectsFilter {
1547
- /**
1548
- * If true, filter out projects that specify splitWorkspace as true.
1549
- */
1550
- splitWorkspace: boolean;
1551
- }
1552
-
1553
1443
  /**
1554
1444
  * Part of IRushConfigurationJson.
1555
1445
  */
@@ -1813,9 +1703,19 @@ export declare interface _IYarnOptionsJson extends IPackageManagerOptionsJsonBas
1813
1703
  * it can invalidate the last install.
1814
1704
  * @internal
1815
1705
  */
1816
- export declare class _LastInstallFlag extends _BaseFlag<_ILastInstallFlagJson> {
1706
+ export declare class _LastInstallFlag {
1707
+ private _state;
1708
+ /**
1709
+ * Returns the full path to the flag file
1710
+ */
1711
+ readonly path: string;
1712
+ /**
1713
+ * Creates a new LastInstall flag
1714
+ * @param folderPath - the folder that this flag is managing
1715
+ * @param state - optional, the state that should be managed or compared
1716
+ */
1717
+ constructor(folderPath: string, state?: JsonObject);
1817
1718
  /**
1818
- * @override
1819
1719
  * Returns true if the file exists and the contents match the current state.
1820
1720
  */
1821
1721
  isValid(options?: _ILockfileValidityCheckOptions): boolean;
@@ -1829,6 +1729,14 @@ export declare class _LastInstallFlag extends _BaseFlag<_ILastInstallFlagJson> {
1829
1729
  rushVerb: string;
1830
1730
  }): boolean;
1831
1731
  private _isValid;
1732
+ /**
1733
+ * Writes the flag file to disk with the current state
1734
+ */
1735
+ create(): void;
1736
+ /**
1737
+ * Removes the flag file
1738
+ */
1739
+ clear(): void;
1832
1740
  /**
1833
1741
  * Returns the name of the flag file
1834
1742
  */
@@ -2607,8 +2515,6 @@ export declare class RushConfiguration {
2607
2515
  private _projects;
2608
2516
  private _projectsByName;
2609
2517
  private _projectsByTag;
2610
- private _filteredProjectsCache;
2611
- private _hasSplitWorkspaceProject;
2612
2518
  private _commonVersionsConfigurationsByVariant;
2613
2519
  /**
2614
2520
  * The name of the package manager being used to install dependencies
@@ -2663,12 +2569,6 @@ export declare class RushConfiguration {
2663
2569
  * Example: `C:\MyRepo\common\temp`
2664
2570
  */
2665
2571
  readonly commonTempFolder: string;
2666
- /**
2667
- * The folder where temporary files will be stored. This is always a subfolder called "temp"
2668
- * under the common folder.
2669
- * Example: `C:\MyRepo\common\temp-split`
2670
- */
2671
- readonly commonTempSplitFolder: string;
2672
2572
  /**
2673
2573
  * The folder where automation scripts are stored. This is always a subfolder called "scripts"
2674
2574
  * under the common folder.
@@ -2723,21 +2623,6 @@ export declare class RushConfiguration {
2723
2623
  * or `C:\MyRepo\common\temp\pnpm-lock-preinstall.yaml`
2724
2624
  */
2725
2625
  readonly tempShrinkwrapPreinstallFilename: string;
2726
- /**
2727
- * The filename (without any path) of the shrinkwrap file for split workspace that is used by the package manager.
2728
- * @remarks
2729
- * This property merely reports the filename; the file itself may not actually exist.
2730
- * Example: `pnpm-lock.yaml`
2731
- */
2732
- readonly splitWorkspaceShrinkwrapFilename: string;
2733
- /**
2734
- * The full path of the temporary shrinkwrap file for split workspace that is used during
2735
- * "rush install". This file may get rewritten by the package manager during installation.
2736
- * @remarks
2737
- * This property merely reports the filename; the file itself may not actually exist.
2738
- * Example: `C:\MyRepo\common\temp-split\pnpm-lock.yaml`
2739
- */
2740
- readonly tempSplitWorkspaceShrinkwrapFilename: string;
2741
2626
  /**
2742
2627
  * The filename of the variant dependency data file. By default this is
2743
2628
  * called 'current-variant.json' resides in the Rush common folder.
@@ -2993,11 +2878,6 @@ export declare class RushConfiguration {
2993
2878
  * @beta
2994
2879
  */
2995
2880
  get projectsByTag(): ReadonlyMap<string, ReadonlySet<RushConfigurationProject>>;
2996
- /**
2997
- * Search for projects according to filter
2998
- * @beta
2999
- */
3000
- getFilteredProjects(filter: IRushConfigurationProjectsFilter): RushConfigurationProject[];
3001
2881
  /**
3002
2882
  * Settings from the common-versions.json config file.
3003
2883
  * @remarks
@@ -3016,10 +2896,6 @@ export declare class RushConfiguration {
3016
2896
  * or "rush update".
3017
2897
  */
3018
2898
  get currentInstalledVariant(): string | undefined;
3019
- /**
3020
- * Is there any split workspace project.
3021
- */
3022
- get hasSplitWorkspaceProject(): boolean;
3023
2899
  /**
3024
2900
  * Gets the path to the common-versions.json config file for a specific variant.
3025
2901
  * @param variant - The name of the current variant in use by the active command.
@@ -3052,11 +2928,6 @@ export declare class RushConfiguration {
3052
2928
  * @param variant - The name of the current variant in use by the active command.
3053
2929
  */
3054
2930
  getCommittedShrinkwrapFilename(variant?: string | undefined): string;
3055
- /**
3056
- * Gets the committed shrinkwrap file name for split workspace.
3057
- * @param variant - The name of the current variant in use by the active command.
3058
- */
3059
- getCommittedSplitWorkspaceShrinkwrapFilename(): string;
3060
2931
  /**
3061
2932
  * Gets the absolute path for "pnpmfile.js" for a specific variant.
3062
2933
  * @param variant - The name of the current variant in use by the active command.
@@ -3092,12 +2963,6 @@ export declare class RushConfiguration {
3092
2963
  */
3093
2964
  tryGetProjectForPath(currentFolderPath: string): RushConfigurationProject | undefined;
3094
2965
  private _getVariantConfigFolderPath;
3095
- /**
3096
- * Split workspace can only works on PNPM with "useWorkspaces" enabled.
3097
- * The workspace project can NOT depend on a split workspace project.
3098
- * The split workspace project CAN depend on a workspace project.
3099
- */
3100
- private _validateSplitWorkspaceRelationships;
3101
2966
  }
3102
2967
 
3103
2968
  /**
@@ -3213,11 +3078,6 @@ export declare class RushConfigurationProject {
3213
3078
  * @beta
3214
3079
  */
3215
3080
  readonly tags: ReadonlySet<string>;
3216
- /**
3217
- * Whether this project is a split workspace project.
3218
- * @beta
3219
- */
3220
- readonly splitWorkspace: boolean;
3221
3081
  /** @internal */
3222
3082
  constructor(options: IRushConfigurationProjectOptions);
3223
3083
  /**
@@ -3327,12 +3187,6 @@ export declare class RushConstants {
3327
3187
  * Example: `C:\MyRepo\common\temp`
3328
3188
  */
3329
3189
  static readonly rushTempFolderName: string;
3330
- /**
3331
- * The folder name ("temp-split") under the common folder, or under the .rush folder in each project's directory where
3332
- * temporary files will be stored.
3333
- * Example: `C:\MyRepo\common\temp-split`
3334
- */
3335
- static readonly rushTempSplitFolderName: string;
3336
3190
  /**
3337
3191
  * The folder name ("projects") where temporary projects will be stored.
3338
3192
  * 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.90.0-pr3481.16",
3
+ "version": "5.90.1",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,21 +12,21 @@
12
12
  "typings": "dist/rush-lib.d.ts",
13
13
  "license": "MIT",
14
14
  "dependencies": {
15
- "@types/node-fetch": "1.6.9",
15
+ "@types/node-fetch": "2.6.2",
16
16
  "tapable": "2.2.1",
17
- "@rushstack/node-core-library": "3.53.3"
17
+ "@rushstack/node-core-library": "3.55.1"
18
18
  },
19
19
  "devDependencies": {
20
- "@microsoft/rush-lib": "5.90.0-pr3481.16",
21
20
  "@types/heft-jest": "1.0.1",
22
21
  "@types/semver": "7.3.5",
23
- "@types/webpack-env": "1.13.0",
22
+ "@types/webpack-env": "1.18.0",
23
+ "@microsoft/rush-lib": "5.90.1",
24
24
  "@rushstack/eslint-config": "3.1.1",
25
- "@rushstack/heft": "0.49.3",
26
- "@rushstack/heft-node-rig": "1.12.0",
27
- "@rushstack/stream-collator": "4.0.223",
25
+ "@rushstack/heft": "0.49.6",
26
+ "@rushstack/heft-node-rig": "1.12.3",
27
+ "@rushstack/stream-collator": "4.0.226",
28
28
  "@rushstack/ts-command-line": "4.13.1",
29
- "@rushstack/terminal": "0.3.92"
29
+ "@rushstack/terminal": "0.5.1"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "heft build --clean",