@rushstack/rush-sdk 5.109.1-pr3481.21 → 5.109.2

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 (35) hide show
  1. package/dist/rush-lib.d.ts +20 -166
  2. package/lib/api/ExperimentsConfiguration.d.ts +0 -5
  3. package/lib/api/LastInstallFlag.d.ts +21 -58
  4. package/lib/api/LastLinkFlag.d.ts +6 -2
  5. package/lib/api/RushConfiguration.d.ts +0 -52
  6. package/lib/api/RushConfigurationProject.d.ts +0 -6
  7. package/lib/api/packageManager/PnpmPackageManager.d.ts +0 -14
  8. package/lib/cli/RushXCommandLine.d.ts +0 -7
  9. package/lib/cli/actions/InstallAction.d.ts +0 -7
  10. package/lib/cli/actions/ListAction.d.ts +0 -4
  11. package/lib/cli/actions/UpdateAction.d.ts +0 -7
  12. package/lib/cli/parsing/SelectionParameterSet.d.ts +3 -17
  13. package/lib/index.d.ts +1 -2
  14. package/lib/logic/PurgeManager.d.ts +0 -1
  15. package/lib/logic/RushConstants.d.ts +0 -6
  16. package/lib/logic/UnlinkManager.d.ts +2 -2
  17. package/lib/logic/base/BaseInstallManagerTypes.d.ts +0 -23
  18. package/lib/logic/installManager/InstallHelpers.d.ts +0 -1
  19. package/lib/logic/pnpm/IPnpmfile.d.ts +0 -16
  20. package/lib/logic/pnpm/PnpmProjectShrinkwrapFile.d.ts +1 -8
  21. package/lib/logic/pnpm/PnpmShrinkwrapFile.d.ts +0 -17
  22. package/lib/logic/versionMismatch/VersionMismatchFinderProject.d.ts +0 -2
  23. package/lib/utilities/PathConstants.d.ts +0 -1
  24. package/lib/utilities/Utilities.d.ts +0 -6
  25. package/lib/utilities/npmrcUtilities.d.ts +1 -1
  26. package/lib/utilities/objectUtilities.d.ts +0 -5
  27. package/package.json +2 -2
  28. package/lib/api/base/BaseFlag.d.ts +0 -50
  29. package/lib/api/base/BaseFlag.js +0 -1
  30. package/lib/logic/pnpm/SplitWorkspaceGlobalPnpmfileShim.d.ts +0 -3
  31. package/lib/logic/pnpm/SplitWorkspaceGlobalPnpmfileShim.js +0 -1
  32. package/lib/logic/pnpm/SplitWorkspacePnpmfileConfiguration.d.ts +0 -23
  33. package/lib/logic/pnpm/SplitWorkspacePnpmfileConfiguration.js +0 -1
  34. package/lib/logic/selectors/SplitWorkspaceProjectSelectorParser.d.ts +0 -10
  35. package/lib/logic/selectors/SplitWorkspaceProjectSelectorParser.js +0 -1
@@ -132,55 +132,6 @@ export declare class ApprovedPackagesPolicy {
132
132
  constructor(rushConfiguration: RushConfiguration, rushConfigurationJson: IRushConfigurationJson);
133
133
  }
134
134
 
135
- /**
136
- * A base class for flag file.
137
- * @internal
138
- */
139
- export declare class _BaseFlag<T extends object = JsonObject> {
140
- /**
141
- * Flag file path
142
- */
143
- readonly path: string;
144
- /**
145
- * Content of the flag
146
- */
147
- protected _state: T;
148
- /**
149
- * Whether the current state is modified
150
- */
151
- protected _isModified: boolean;
152
- /**
153
- * Creates a new flag file
154
- * @param folderPath - the folder that this flag is managing
155
- * @param state - optional, the state that should be managed or compared
156
- */
157
- constructor(folderPath: string, state?: Partial<T>);
158
- /**
159
- * Returns true if the file exists and the contents match the current state.
160
- */
161
- isValid(): boolean;
162
- /**
163
- * Writes the flag file to disk with the current state
164
- */
165
- create(): void;
166
- /**
167
- * Merge new data into current state by "merge"
168
- */
169
- mergeFromObject(data: JsonObject): void;
170
- /**
171
- * Writes the flag file to disk with the current state if modified
172
- */
173
- saveIfModified(): void;
174
- /**
175
- * Removes the flag file
176
- */
177
- clear(): void;
178
- /**
179
- * Returns Name of the flag file
180
- */
181
- protected get flagName(): string;
182
- }
183
-
184
135
  /**
185
136
  * Use this class to load and save the "common/config/rush/build-cache.json" config file.
186
137
  * This file provides configuration options for cached project build output.
@@ -1356,11 +1307,6 @@ export declare interface IExperimentsJson {
1356
1307
  * in common/config/rush/command-line.json.
1357
1308
  */
1358
1309
  phasedCommands?: boolean;
1359
- /**
1360
- * If true, rush install or rush update implicitly specify --ignore-scripts during pnpm install,
1361
- * and run install lifecycle scripts by pnpm rebuild --pending after pnpm install successfully.
1362
- */
1363
- deferredInstallationScripts?: boolean;
1364
1310
  /**
1365
1311
  * If true, perform a clean install after when running `rush install` or `rush update` if the
1366
1312
  * `.npmrc` file has changed since the last install.
@@ -1440,51 +1386,6 @@ declare interface IIndividualVersionJson extends IVersionPolicyJson {
1440
1386
  lockedMajor?: number;
1441
1387
  }
1442
1388
 
1443
- /**
1444
- * This represents the JSON data structure for the "last-install.flag" file.
1445
- * @internal
1446
- */
1447
- export declare interface _ILastInstallFlagJson {
1448
- /**
1449
- * Current node version
1450
- */
1451
- node: string;
1452
- /**
1453
- * Current package manager name
1454
- */
1455
- packageManager: PackageManagerName;
1456
- /**
1457
- * Current package manager version
1458
- */
1459
- packageManagerVersion: string;
1460
- /**
1461
- * Current rush json folder
1462
- */
1463
- rushJsonFolder: string;
1464
- /**
1465
- * The content of package.json, used in the flag file of autoinstaller
1466
- */
1467
- packageJson?: IPackageJson;
1468
- /**
1469
- * Same with pnpmOptions.pnpmStorePath in rush.json
1470
- */
1471
- storePath?: string;
1472
- /**
1473
- * True when "useWorkspaces" is true in rush.json
1474
- */
1475
- workspaces?: true;
1476
- /**
1477
- * True when user explicitly specify "--ignore-scripts" CLI parameter or deferredInstallationScripts
1478
- */
1479
- ignoreScripts?: true;
1480
- /**
1481
- * When specified, it is a list of selected projects during partial install
1482
- * It is undefined when full install
1483
- */
1484
- selectedProjectNames?: string[];
1485
- [key: string]: unknown;
1486
- }
1487
-
1488
1389
  /**
1489
1390
  * Options to pass to the rush "launch" functions.
1490
1391
  *
@@ -2083,7 +1984,6 @@ declare interface IRushConfigurationProjectJson {
2083
1984
  skipRushCheck?: boolean;
2084
1985
  publishFolder?: string;
2085
1986
  tags?: string[];
2086
- splitWorkspace?: boolean;
2087
1987
  }
2088
1988
 
2089
1989
  /**
@@ -2108,16 +2008,6 @@ declare interface IRushConfigurationProjectOptions {
2108
2008
  allowedProjectTags: Set<string> | undefined;
2109
2009
  }
2110
2010
 
2111
- /**
2112
- * The filter parameters to search from all projects.
2113
- */
2114
- declare interface IRushConfigurationProjectsFilter {
2115
- /**
2116
- * If true, filter out projects that specify splitWorkspace as true.
2117
- */
2118
- splitWorkspace: boolean;
2119
- }
2120
-
2121
2011
  /**
2122
2012
  * Part of IRushConfigurationJson.
2123
2013
  */
@@ -2408,9 +2298,19 @@ export declare interface _IYarnOptionsJson extends IPackageManagerOptionsJsonBas
2408
2298
  * it can invalidate the last install.
2409
2299
  * @internal
2410
2300
  */
2411
- export declare class _LastInstallFlag extends _BaseFlag<_ILastInstallFlagJson> {
2301
+ export declare class _LastInstallFlag {
2302
+ private _state;
2303
+ /**
2304
+ * Returns the full path to the flag file
2305
+ */
2306
+ readonly path: string;
2307
+ /**
2308
+ * Creates a new LastInstall flag
2309
+ * @param folderPath - the folder that this flag is managing
2310
+ * @param state - optional, the state that should be managed or compared
2311
+ */
2312
+ constructor(folderPath: string, state?: JsonObject);
2412
2313
  /**
2413
- * @override
2414
2314
  * Returns true if the file exists and the contents match the current state.
2415
2315
  */
2416
2316
  isValid(options?: _ILockfileValidityCheckOptions): boolean;
@@ -2424,6 +2324,14 @@ export declare class _LastInstallFlag extends _BaseFlag<_ILastInstallFlagJson> {
2424
2324
  rushVerb: string;
2425
2325
  }): boolean;
2426
2326
  private _isValid;
2327
+ /**
2328
+ * Writes the flag file to disk with the current state
2329
+ */
2330
+ create(): void;
2331
+ /**
2332
+ * Removes the flag file
2333
+ */
2334
+ clear(): void;
2427
2335
  /**
2428
2336
  * Returns the name of the flag file
2429
2337
  */
@@ -3351,8 +3259,6 @@ export declare class RushConfiguration {
3351
3259
  private _projects;
3352
3260
  private _projectsByName;
3353
3261
  private _projectsByTag;
3354
- private _filteredProjectsCache;
3355
- private _hasSplitWorkspaceProject;
3356
3262
  private _commonVersionsConfigurationsByVariant;
3357
3263
  /**
3358
3264
  * The name of the package manager being used to install dependencies
@@ -3407,12 +3313,6 @@ export declare class RushConfiguration {
3407
3313
  * Example: `C:\MyRepo\common\temp`
3408
3314
  */
3409
3315
  readonly commonTempFolder: string;
3410
- /**
3411
- * The folder where temporary files will be stored. This is always a subfolder called "temp"
3412
- * under the common folder.
3413
- * Example: `C:\MyRepo\common\temp-split`
3414
- */
3415
- readonly commonTempSplitFolder: string;
3416
3316
  /**
3417
3317
  * The folder where automation scripts are stored. This is always a subfolder called "scripts"
3418
3318
  * under the common folder.
@@ -3467,21 +3367,6 @@ export declare class RushConfiguration {
3467
3367
  * or `C:\MyRepo\common\temp\pnpm-lock-preinstall.yaml`
3468
3368
  */
3469
3369
  readonly tempShrinkwrapPreinstallFilename: string;
3470
- /**
3471
- * The filename (without any path) of the shrinkwrap file for split workspace that is used by the package manager.
3472
- * @remarks
3473
- * This property merely reports the filename; the file itself may not actually exist.
3474
- * Example: `pnpm-lock.yaml`
3475
- */
3476
- readonly splitWorkspaceShrinkwrapFilename: string;
3477
- /**
3478
- * The full path of the temporary shrinkwrap file for split workspace that is used during
3479
- * "rush install". This file may get rewritten by the package manager during installation.
3480
- * @remarks
3481
- * This property merely reports the filename; the file itself may not actually exist.
3482
- * Example: `C:\MyRepo\common\temp-split\pnpm-lock.yaml`
3483
- */
3484
- readonly tempSplitWorkspaceShrinkwrapFilename: string;
3485
3370
  /**
3486
3371
  * The filename of the variant dependency data file. By default this is
3487
3372
  * called 'current-variant.json' resides in the Rush common folder.
@@ -3748,11 +3633,6 @@ export declare class RushConfiguration {
3748
3633
  * @beta
3749
3634
  */
3750
3635
  get projectsByTag(): ReadonlyMap<string, ReadonlySet<RushConfigurationProject>>;
3751
- /**
3752
- * Search for projects according to filter
3753
- * @beta
3754
- */
3755
- getFilteredProjects(filter: IRushConfigurationProjectsFilter): RushConfigurationProject[];
3756
3636
  /**
3757
3637
  * Settings from the common-versions.json config file.
3758
3638
  * @remarks
@@ -3771,10 +3651,6 @@ export declare class RushConfiguration {
3771
3651
  * or "rush update".
3772
3652
  */
3773
3653
  get currentInstalledVariant(): string | undefined;
3774
- /**
3775
- * Is there any split workspace project.
3776
- */
3777
- get hasSplitWorkspaceProject(): boolean;
3778
3654
  /**
3779
3655
  * Gets the path to the common-versions.json config file for a specific variant.
3780
3656
  * @param variant - The name of the current variant in use by the active command.
@@ -3807,11 +3683,6 @@ export declare class RushConfiguration {
3807
3683
  * @param variant - The name of the current variant in use by the active command.
3808
3684
  */
3809
3685
  getCommittedShrinkwrapFilename(variant?: string | undefined): string;
3810
- /**
3811
- * Gets the committed shrinkwrap file name for split workspace.
3812
- * @param variant - The name of the current variant in use by the active command.
3813
- */
3814
- getCommittedSplitWorkspaceShrinkwrapFilename(): string;
3815
3686
  /**
3816
3687
  * Gets the absolute path for "pnpmfile.js" for a specific variant.
3817
3688
  * @param variant - The name of the current variant in use by the active command.
@@ -3847,12 +3718,6 @@ export declare class RushConfiguration {
3847
3718
  */
3848
3719
  tryGetProjectForPath(currentFolderPath: string): RushConfigurationProject | undefined;
3849
3720
  private _getVariantConfigFolderPath;
3850
- /**
3851
- * Split workspace can only works on PNPM with "useWorkspaces" enabled.
3852
- * The workspace project can NOT depend on a split workspace project.
3853
- * The split workspace project CAN depend on a workspace project.
3854
- */
3855
- private _validateSplitWorkspaceRelationships;
3856
3721
  }
3857
3722
 
3858
3723
  /**
@@ -3968,11 +3833,6 @@ export declare class RushConfigurationProject {
3968
3833
  * @beta
3969
3834
  */
3970
3835
  readonly tags: ReadonlySet<string>;
3971
- /**
3972
- * Whether this project is a split workspace project.
3973
- * @beta
3974
- */
3975
- readonly splitWorkspace: boolean;
3976
3836
  /** @internal */
3977
3837
  constructor(options: IRushConfigurationProjectOptions);
3978
3838
  /**
@@ -4082,12 +3942,6 @@ export declare class RushConstants {
4082
3942
  * Example: `C:\MyRepo\common\temp`
4083
3943
  */
4084
3944
  static readonly rushTempFolderName: string;
4085
- /**
4086
- * The folder name ("temp-split") under the common folder, or under the .rush folder in each project's directory where
4087
- * temporary files will be stored.
4088
- * Example: `C:\MyRepo\common\temp-split`
4089
- */
4090
- static readonly rushTempSplitFolderName: string;
4091
3945
  /**
4092
3946
  * The folder name ("projects") where temporary projects will be stored.
4093
3947
  * Example: `C:\MyRepo\common\temp\projects`
@@ -41,11 +41,6 @@ export interface IExperimentsJson {
41
41
  * in common/config/rush/command-line.json.
42
42
  */
43
43
  phasedCommands?: boolean;
44
- /**
45
- * If true, rush install or rush update implicitly specify --ignore-scripts during pnpm install,
46
- * and run install lifecycle scripts by pnpm rebuild --pending after pnpm install successfully.
47
- */
48
- deferredInstallationScripts?: boolean;
49
44
  /**
50
45
  * If true, perform a clean install after when running `rush install` or `rush update` if the
51
46
  * `.npmrc` file has changed since the last install.
@@ -1,52 +1,6 @@
1
- import { type IPackageJson } from '@rushstack/node-core-library';
2
- import { BaseFlag } from './base/BaseFlag';
3
- import type { PackageManagerName } from './packageManager/PackageManager';
1
+ import { type JsonObject } from '@rushstack/node-core-library';
4
2
  import type { RushConfiguration } from './RushConfiguration';
5
3
  export declare const LAST_INSTALL_FLAG_FILE_NAME: string;
6
- /**
7
- * This represents the JSON data structure for the "last-install.flag" file.
8
- * @internal
9
- */
10
- export interface ILastInstallFlagJson {
11
- /**
12
- * Current node version
13
- */
14
- node: string;
15
- /**
16
- * Current package manager name
17
- */
18
- packageManager: PackageManagerName;
19
- /**
20
- * Current package manager version
21
- */
22
- packageManagerVersion: string;
23
- /**
24
- * Current rush json folder
25
- */
26
- rushJsonFolder: string;
27
- /**
28
- * The content of package.json, used in the flag file of autoinstaller
29
- */
30
- packageJson?: IPackageJson;
31
- /**
32
- * Same with pnpmOptions.pnpmStorePath in rush.json
33
- */
34
- storePath?: string;
35
- /**
36
- * True when "useWorkspaces" is true in rush.json
37
- */
38
- workspaces?: true;
39
- /**
40
- * True when user explicitly specify "--ignore-scripts" CLI parameter or deferredInstallationScripts
41
- */
42
- ignoreScripts?: true;
43
- /**
44
- * When specified, it is a list of selected projects during partial install
45
- * It is undefined when full install
46
- */
47
- selectedProjectNames?: string[];
48
- [key: string]: unknown;
49
- }
50
4
  /**
51
5
  * @internal
52
6
  */
@@ -61,9 +15,19 @@ export interface ILockfileValidityCheckOptions {
61
15
  * it can invalidate the last install.
62
16
  * @internal
63
17
  */
64
- export declare class LastInstallFlag extends BaseFlag<ILastInstallFlagJson> {
18
+ export declare class LastInstallFlag {
19
+ private _state;
20
+ /**
21
+ * Returns the full path to the flag file
22
+ */
23
+ readonly path: string;
24
+ /**
25
+ * Creates a new LastInstall flag
26
+ * @param folderPath - the folder that this flag is managing
27
+ * @param state - optional, the state that should be managed or compared
28
+ */
29
+ constructor(folderPath: string, state?: JsonObject);
65
30
  /**
66
- * @override
67
31
  * Returns true if the file exists and the contents match the current state.
68
32
  */
69
33
  isValid(options?: ILockfileValidityCheckOptions): boolean;
@@ -77,6 +41,14 @@ export declare class LastInstallFlag extends BaseFlag<ILastInstallFlagJson> {
77
41
  rushVerb: string;
78
42
  }): boolean;
79
43
  private _isValid;
44
+ /**
45
+ * Writes the flag file to disk with the current state
46
+ */
47
+ create(): void;
48
+ /**
49
+ * Removes the flag file
50
+ */
51
+ clear(): void;
80
52
  /**
81
53
  * Returns the name of the flag file
82
54
  */
@@ -97,14 +69,5 @@ export declare class LastInstallFlagFactory {
97
69
  * @internal
98
70
  */
99
71
  static getCommonTempFlag(rushConfiguration: RushConfiguration, extraState?: Record<string, string>): LastInstallFlag;
100
- /**
101
- * Gets the LastInstall flag and sets the current state. This state is used to compare
102
- * against the last-known-good state tracked by the LastInstall flag.
103
- * @param rushConfiguration - the configuration of the Rush repo to get the install
104
- * state from
105
- *
106
- * @internal
107
- */
108
- static getCommonTempSplitFlag(rushConfiguration: RushConfiguration): LastInstallFlag;
109
72
  }
110
73
  //# sourceMappingURL=LastInstallFlag.d.ts.map
@@ -1,4 +1,4 @@
1
- import { BaseFlag } from './base/BaseFlag';
1
+ import { LastInstallFlag } from './LastInstallFlag';
2
2
  import type { RushConfiguration } from './RushConfiguration';
3
3
  export declare const LAST_LINK_FLAG_FILE_NAME: string;
4
4
  /**
@@ -6,7 +6,11 @@ export declare const LAST_LINK_FLAG_FILE_NAME: string;
6
6
  * indicates that linking was completed successfully.
7
7
  * @internal
8
8
  */
9
- export declare class LastLinkFlag extends BaseFlag {
9
+ export declare class LastLinkFlag extends LastInstallFlag {
10
+ /**
11
+ * @override
12
+ */
13
+ isValid(): boolean;
10
14
  /**
11
15
  * @override
12
16
  */
@@ -118,15 +118,6 @@ export interface IRushConfigurationJson {
118
118
  export interface ICurrentVariantJson {
119
119
  variant: string | JsonNull;
120
120
  }
121
- /**
122
- * The filter parameters to search from all projects.
123
- */
124
- export interface IRushConfigurationProjectsFilter {
125
- /**
126
- * If true, filter out projects that specify splitWorkspace as true.
127
- */
128
- splitWorkspace: boolean;
129
- }
130
121
  /**
131
122
  * Options for `RushConfiguration.tryFindRushJsonLocation`.
132
123
  * @public
@@ -153,8 +144,6 @@ export declare class RushConfiguration {
153
144
  private _projects;
154
145
  private _projectsByName;
155
146
  private _projectsByTag;
156
- private _filteredProjectsCache;
157
- private _hasSplitWorkspaceProject;
158
147
  private _commonVersionsConfigurationsByVariant;
159
148
  /**
160
149
  * The name of the package manager being used to install dependencies
@@ -209,12 +198,6 @@ export declare class RushConfiguration {
209
198
  * Example: `C:\MyRepo\common\temp`
210
199
  */
211
200
  readonly commonTempFolder: string;
212
- /**
213
- * The folder where temporary files will be stored. This is always a subfolder called "temp"
214
- * under the common folder.
215
- * Example: `C:\MyRepo\common\temp-split`
216
- */
217
- readonly commonTempSplitFolder: string;
218
201
  /**
219
202
  * The folder where automation scripts are stored. This is always a subfolder called "scripts"
220
203
  * under the common folder.
@@ -269,21 +252,6 @@ export declare class RushConfiguration {
269
252
  * or `C:\MyRepo\common\temp\pnpm-lock-preinstall.yaml`
270
253
  */
271
254
  readonly tempShrinkwrapPreinstallFilename: string;
272
- /**
273
- * The filename (without any path) of the shrinkwrap file for split workspace that is used by the package manager.
274
- * @remarks
275
- * This property merely reports the filename; the file itself may not actually exist.
276
- * Example: `pnpm-lock.yaml`
277
- */
278
- readonly splitWorkspaceShrinkwrapFilename: string;
279
- /**
280
- * The full path of the temporary shrinkwrap file for split workspace that is used during
281
- * "rush install". This file may get rewritten by the package manager during installation.
282
- * @remarks
283
- * This property merely reports the filename; the file itself may not actually exist.
284
- * Example: `C:\MyRepo\common\temp-split\pnpm-lock.yaml`
285
- */
286
- readonly tempSplitWorkspaceShrinkwrapFilename: string;
287
255
  /**
288
256
  * The filename of the variant dependency data file. By default this is
289
257
  * called 'current-variant.json' resides in the Rush common folder.
@@ -550,11 +518,6 @@ export declare class RushConfiguration {
550
518
  * @beta
551
519
  */
552
520
  get projectsByTag(): ReadonlyMap<string, ReadonlySet<RushConfigurationProject>>;
553
- /**
554
- * Search for projects according to filter
555
- * @beta
556
- */
557
- getFilteredProjects(filter: IRushConfigurationProjectsFilter): RushConfigurationProject[];
558
521
  /**
559
522
  * Settings from the common-versions.json config file.
560
523
  * @remarks
@@ -573,10 +536,6 @@ export declare class RushConfiguration {
573
536
  * or "rush update".
574
537
  */
575
538
  get currentInstalledVariant(): string | undefined;
576
- /**
577
- * Is there any split workspace project.
578
- */
579
- get hasSplitWorkspaceProject(): boolean;
580
539
  /**
581
540
  * Gets the path to the common-versions.json config file for a specific variant.
582
541
  * @param variant - The name of the current variant in use by the active command.
@@ -609,11 +568,6 @@ export declare class RushConfiguration {
609
568
  * @param variant - The name of the current variant in use by the active command.
610
569
  */
611
570
  getCommittedShrinkwrapFilename(variant?: string | undefined): string;
612
- /**
613
- * Gets the committed shrinkwrap file name for split workspace.
614
- * @param variant - The name of the current variant in use by the active command.
615
- */
616
- getCommittedSplitWorkspaceShrinkwrapFilename(): string;
617
571
  /**
618
572
  * Gets the absolute path for "pnpmfile.js" for a specific variant.
619
573
  * @param variant - The name of the current variant in use by the active command.
@@ -649,11 +603,5 @@ export declare class RushConfiguration {
649
603
  */
650
604
  tryGetProjectForPath(currentFolderPath: string): RushConfigurationProject | undefined;
651
605
  private _getVariantConfigFolderPath;
652
- /**
653
- * Split workspace can only works on PNPM with "useWorkspaces" enabled.
654
- * The workspace project can NOT depend on a split workspace project.
655
- * The split workspace project CAN depend on a workspace project.
656
- */
657
- private _validateSplitWorkspaceRelationships;
658
606
  }
659
607
  //# sourceMappingURL=RushConfiguration.d.ts.map
@@ -16,7 +16,6 @@ export interface IRushConfigurationProjectJson {
16
16
  skipRushCheck?: boolean;
17
17
  publishFolder?: string;
18
18
  tags?: string[];
19
- splitWorkspace?: boolean;
20
19
  }
21
20
  /**
22
21
  * @internal
@@ -152,11 +151,6 @@ export declare class RushConfigurationProject {
152
151
  * @beta
153
152
  */
154
153
  readonly tags: ReadonlySet<string>;
155
- /**
156
- * Whether this project is a split workspace project.
157
- * @beta
158
- */
159
- readonly splitWorkspace: boolean;
160
154
  /** @internal */
161
155
  constructor(options: IRushConfigurationProjectOptions);
162
156
  /**
@@ -11,21 +11,7 @@ export declare class PnpmPackageManager extends PackageManager {
11
11
  * Example: `pnpmfile.js` or `.pnpmfile.cjs`
12
12
  */
13
13
  readonly pnpmfileFilename: string;
14
- /**
15
- * The filename of the shrinkwrap file of split workspace that is used by the package manager.
16
- *
17
- * @remarks
18
- * Example: `.pnpmfile-split-workspace.cjs`
19
- */
20
- splitWorkspacePnpmfileFilename: string;
21
14
  /** @internal */
22
15
  constructor(version: string);
23
- /**
24
- * The filename of the global shrinkwrap file that is used by the package manager.
25
- *
26
- * @remarks
27
- * Example: `global-pnpmfile.cjs`
28
- */
29
- get globalPnpmfileFilename(): string;
30
16
  }
31
17
  //# sourceMappingURL=PnpmPackageManager.d.ts.map
@@ -1,11 +1,4 @@
1
1
  import { type ILaunchOptions } from '../api/Rush';
2
- /**
3
- * @internal
4
- */
5
- export interface ILaunchRushXInternalOptions {
6
- isManaged: boolean;
7
- alreadyReportedNodeTooNewError?: boolean;
8
- }
9
2
  export declare class RushXCommandLine {
10
3
  static launchRushX(launcherVersion: string, options: ILaunchOptions): void;
11
4
  private static _launchRushXInternal;
@@ -3,13 +3,6 @@ import type { IInstallManagerOptions } from '../../logic/base/BaseInstallManager
3
3
  import type { RushCommandLineParser } from '../RushCommandLineParser';
4
4
  export declare class InstallAction extends BaseInstallAction {
5
5
  private readonly _checkOnlyParameter;
6
- private _ignoreScriptsParameter;
7
- /**
8
- * Whether split workspace projects are included in install
9
- *
10
- * This parameter only supported when there is split workspace project
11
- */
12
- private _includeSplitWorkspaceParameter?;
13
6
  constructor(parser: RushCommandLineParser);
14
7
  protected buildInstallOptionsAsync(): Promise<IInstallManagerOptions>;
15
8
  }
@@ -34,10 +34,6 @@ export interface IJsonEntry {
34
34
  * @see {@link ../../api/RushConfigurationProject#RushConfigurationProject.tags | RushConfigurationProject.tags}
35
35
  */
36
36
  tags: string[];
37
- /**
38
- * @see {@link ../../api/RushConfigurationProject#RushConfigurationProject.splitWorkspace | RushConfigurationProject.splitWorkspace}
39
- */
40
- splitWorkspace: boolean;
41
37
  }
42
38
  export interface IJsonOutput {
43
39
  projects: IJsonEntry[];
@@ -4,13 +4,6 @@ import type { RushCommandLineParser } from '../RushCommandLineParser';
4
4
  export declare class UpdateAction extends BaseInstallAction {
5
5
  private readonly _fullParameter;
6
6
  private readonly _recheckParameter;
7
- private _ignoreScriptsParameter;
8
- /**
9
- * Whether split workspace projects are included in update
10
- *
11
- * This parameter only supported when there is split workspace project
12
- */
13
- private _includeSplitWorkspaceParameter?;
14
7
  constructor(parser: RushCommandLineParser);
15
8
  protected runAsync(): Promise<void>;
16
9
  protected buildInstallOptionsAsync(): Promise<IInstallManagerOptions>;
@@ -20,15 +20,7 @@ export declare class SelectionParameterSet {
20
20
  private readonly _fromVersionPolicy;
21
21
  private readonly _toVersionPolicy;
22
22
  private readonly _selectorParserByScope;
23
- private readonly _selectors;
24
- private _isSelectionSpecified;
25
23
  constructor(rushConfiguration: RushConfiguration, action: CommandLineParameterProvider, gitOptions: IGitSelectorParserOptions);
26
- /**
27
- * Check if any of the selection parameters have a value specified on the command line
28
- *
29
- * Returns true if specifying any selection parameters, otherwise false.
30
- */
31
- get isSelectionSpecified(): boolean;
32
24
  /**
33
25
  * Computes the set of selected projects based on all parameter values.
34
26
  *
@@ -36,19 +28,14 @@ export declare class SelectionParameterSet {
36
28
  */
37
29
  getSelectedProjectsAsync(terminal: ITerminal): Promise<Set<RushConfigurationProject>>;
38
30
  /**
39
- * Represents the selection as `--filter` parameters to pnpm, and selected projects when partial install
31
+ * Represents the selection as `--filter` parameters to pnpm.
40
32
  *
41
33
  * @remarks
42
34
  * This is a separate from the selection to allow the filters to be represented more concisely.
43
35
  *
44
- * @see https://pnpm.io/filtering
36
+ * @see https://pnpm.js.org/en/filtering
45
37
  */
46
- getPnpmFilterArgumentsAsync(terminal: ITerminal): Promise<{
47
- pnpmFilterArguments: string[];
48
- splitWorkspacePnpmFilterArguments: string[];
49
- selectedProjects: Set<RushConfigurationProject> | undefined;
50
- hasSelectSplitWorkspaceProject: boolean;
51
- }>;
38
+ getPnpmFilterArgumentsAsync(terminal: ITerminal): Promise<string[]>;
52
39
  /**
53
40
  * Usage telemetry for selection parameters. Only saved locally, and if requested in the config.
54
41
  */
@@ -60,6 +47,5 @@ export declare class SelectionParameterSet {
60
47
  * Handles '.', unscoped names, and scoped names.
61
48
  */
62
49
  private _evaluateProjectParameterAsync;
63
- toArguments(): string[];
64
50
  }
65
51
  //# sourceMappingURL=SelectionParameterSet.d.ts.map
package/lib/index.d.ts CHANGED
@@ -27,8 +27,7 @@ export { RepoStateFile } from './logic/RepoStateFile';
27
27
  export { LookupByPath, IPrefixMatch } from './logic/LookupByPath';
28
28
  export { EventHooks, Event } from './api/EventHooks';
29
29
  export { ChangeManager } from './api/ChangeManager';
30
- export { LastInstallFlag as _LastInstallFlag, ILastInstallFlagJson as _ILastInstallFlagJson, ILockfileValidityCheckOptions as _ILockfileValidityCheckOptions } from './api/LastInstallFlag';
31
- export { BaseFlag as _BaseFlag } from './api/base/BaseFlag';
30
+ export { LastInstallFlag as _LastInstallFlag, ILockfileValidityCheckOptions as _ILockfileValidityCheckOptions } from './api/LastInstallFlag';
32
31
  export { VersionPolicyDefinitionName, BumpType, LockStepVersionPolicy, IndividualVersionPolicy, VersionPolicy } from './api/VersionPolicy';
33
32
  export { VersionPolicyConfiguration } from './api/VersionPolicyConfiguration';
34
33
  export { ILaunchOptions, Rush } from './api/Rush';
@@ -9,7 +9,6 @@ export declare class PurgeManager {
9
9
  private _rushGlobalFolder;
10
10
  private _rushUserFolderRecycler;
11
11
  readonly commonTempFolderRecycler: AsyncRecycler;
12
- readonly commonTempSplitFolderRecycler: AsyncRecycler;
13
12
  constructor(rushConfiguration: RushConfiguration, rushGlobalFolder: RushGlobalFolder);
14
13
  /**
15
14
  * Performs the AsyncRecycler.deleteAll() operation. This should be called before
@@ -43,12 +43,6 @@ export declare class RushConstants {
43
43
  * Example: `C:\MyRepo\common\temp`
44
44
  */
45
45
  static readonly rushTempFolderName: string;
46
- /**
47
- * The folder name ("temp-split") under the common folder, or under the .rush folder in each project's directory where
48
- * temporary files will be stored.
49
- * Example: `C:\MyRepo\common\temp-split`
50
- */
51
- static readonly rushTempSplitFolderName: string;
52
46
  /**
53
47
  * The folder name ("projects") where temporary projects will be stored.
54
48
  * Example: `C:\MyRepo\common\temp\projects`
@@ -11,7 +11,7 @@ export declare class UnlinkManager {
11
11
  *
12
12
  * Returns true if anything was deleted.
13
13
  */
14
- unlinkAsync(force?: boolean): Promise<boolean>;
14
+ unlink(force?: boolean): boolean;
15
15
  /**
16
16
  * Delete:
17
17
  * - all the node_modules symlinks of configured Rush projects
@@ -19,6 +19,6 @@ export declare class UnlinkManager {
19
19
  *
20
20
  * Returns true if anything was deleted
21
21
  * */
22
- private _deleteProjectFilesAsync;
22
+ private _deleteProjectFiles;
23
23
  }
24
24
  //# sourceMappingURL=UnlinkManager.d.ts.map
@@ -1,5 +1,3 @@
1
- import type { SelectionParameterSet } from '../../cli/parsing/SelectionParameterSet';
2
- import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
3
1
  export interface IInstallManagerOptions {
4
2
  /**
5
3
  * Whether the global "--debug" flag was specified.
@@ -76,26 +74,5 @@ export interface IInstallManagerOptions {
76
74
  * Callback to invoke between preparing the common/temp folder and running installation.
77
75
  */
78
76
  beforeInstallAsync?: () => Promise<void>;
79
- /**
80
- * Whether to specify "--ignore-scripts" command-line parameter, which ignores
81
- * install lifecycle scripts in package.json and its dependencies
82
- */
83
- ignoreScripts: boolean;
84
- /**
85
- * Whether to install for projects in split workspace
86
- */
87
- includeSplitWorkspace: boolean;
88
- /**
89
- * Filters to be passed to PNPM during installation for split workspace.
90
- */
91
- splitWorkspacePnpmFilterArguments: string[];
92
- /**
93
- * Selected projects during partial install.
94
- */
95
- selectedProjects?: Set<RushConfigurationProject>;
96
- /**
97
- * Selection parameters for partial install.
98
- */
99
- selectionParameters?: SelectionParameterSet;
100
77
  }
101
78
  //# sourceMappingURL=BaseInstallManagerTypes.d.ts.map
@@ -3,7 +3,6 @@ import type { RushConfiguration } from '../../api/RushConfiguration';
3
3
  import type { RushGlobalFolder } from '../../api/RushGlobalFolder';
4
4
  export declare class InstallHelpers {
5
5
  static generateCommonPackageJson(rushConfiguration: RushConfiguration, dependencies?: Map<string, string>): void;
6
- static generateCommonSplitPackageJson(rushConfiguration: RushConfiguration): void;
7
6
  static getPackageManagerEnvironment(rushConfiguration: RushConfiguration, options?: {
8
7
  debug?: boolean;
9
8
  }): NodeJS.ProcessEnv;
@@ -1,6 +1,5 @@
1
1
  import type { LogBase } from '@pnpm/logger';
2
2
  import type { IPackageJson } from '@rushstack/node-core-library';
3
- import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
4
3
  import type { IPnpmShrinkwrapYaml } from './PnpmShrinkwrapFile';
5
4
  /**
6
5
  * The `settings` parameter passed to {@link IPnpmfileShim.hooks.readPackage} and
@@ -20,20 +19,6 @@ export interface IPnpmfileShimSettings {
20
19
  workspaceVersions: Record<string, string>;
21
20
  userPnpmfilePath?: string;
22
21
  }
23
- export interface IWorkspaceProjectInfo extends Pick<RushConfigurationProject, 'packageName' | 'projectRelativeFolder'> {
24
- packageVersion: RushConfigurationProject['packageJson']['version'];
25
- }
26
- /**
27
- * The `settings` parameter passed to {@link IPnpmfileShim.hooks.readPackage} and
28
- * {@link IPnpmfileShim.hooks.afterAllResolved}.
29
- */
30
- export interface ISplitWorkspacePnpmfileShimSettings {
31
- semverPath: string;
32
- pathNormalizerPath: string;
33
- workspaceProjects: Record<string, IWorkspaceProjectInfo>;
34
- splitWorkspaceProjects: Record<string, IWorkspaceProjectInfo>;
35
- userPnpmfilePath?: string;
36
- }
37
22
  /**
38
23
  * The `context` parameter passed to {@link IPnpmfile.hooks.readPackage}, as defined by the
39
24
  * pnpmfile API contract.
@@ -41,7 +26,6 @@ export interface ISplitWorkspacePnpmfileShimSettings {
41
26
  export interface IPnpmfileContext {
42
27
  log: (message: string) => void;
43
28
  pnpmfileShimSettings?: IPnpmfileShimSettings;
44
- splitWorkspacePnpmfileShimSettings?: ISplitWorkspacePnpmfileShimSettings;
45
29
  }
46
30
  /**
47
31
  * The `log` parameter passed to {@link IPnpmfile.hooks.filterLog}.
@@ -1,15 +1,9 @@
1
1
  import { BaseProjectShrinkwrapFile } from '../base/BaseProjectShrinkwrapFile';
2
- import { PnpmShrinkwrapFile } from './PnpmShrinkwrapFile';
3
- import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
2
+ import type { PnpmShrinkwrapFile } from './PnpmShrinkwrapFile';
4
3
  /**
5
4
  *
6
5
  */
7
6
  export declare class PnpmProjectShrinkwrapFile extends BaseProjectShrinkwrapFile<PnpmShrinkwrapFile> {
8
- /**
9
- * When split workspace projects turn off shared-workspace-lockfiles, Pnpm creates individual
10
- * shrinkwrap files for each project.
11
- */
12
- static generateIndividualProjectShrinkwrapAsync(project: RushConfigurationProject): Promise<void>;
13
7
  /**
14
8
  * Generate and write the project shrinkwrap file to <project>/.rush/temp/shrinkwrap-deps.json.
15
9
  * @returns True if the project shrinkwrap was created or updated, false otherwise.
@@ -22,7 +16,6 @@ export declare class PnpmProjectShrinkwrapFile extends BaseProjectShrinkwrapFile
22
16
  protected generateProjectShrinkwrapMap(): Map<string, string> | undefined;
23
17
  protected generateWorkspaceProjectShrinkwrapMap(): Map<string, string> | undefined;
24
18
  protected generateLegacyProjectShrinkwrapMap(): Map<string, string>;
25
- protected generateIndividualProjectShrinkwrapMap(): Map<string, string>;
26
19
  private _addDependencyRecursive;
27
20
  private _resolveAndAddPeerDependencies;
28
21
  /**
@@ -4,7 +4,6 @@ import type { RushConfiguration } from '../../api/RushConfiguration';
4
4
  import type { IShrinkwrapFilePolicyValidatorOptions } from '../policy/ShrinkwrapFilePolicy';
5
5
  import type { IExperimentsJson } from '../../api/ExperimentsConfiguration';
6
6
  import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
7
- import { SplitWorkspacePnpmfileConfiguration } from './SplitWorkspacePnpmfileConfiguration';
8
7
  import { PnpmProjectShrinkwrapFile } from './PnpmProjectShrinkwrapFile';
9
8
  import type { PackageManagerOptionsConfigurationBase } from '../base/BasePackageManagerOptionsConfiguration';
10
9
  export interface IPeerDependenciesMetaYaml {
@@ -87,10 +86,6 @@ export interface IPnpmShrinkwrapYaml {
87
86
  lockfileVersion?: string | number;
88
87
  /** The list of resolved version numbers for direct dependencies */
89
88
  dependencies: Record<string, string>;
90
- /** The list of resolved version numbers for dev dependencies */
91
- devDependencies: Record<string, string>;
92
- /** The list of resolved version numbers for optional dependencies */
93
- optionalDependencies: Record<string, string>;
94
89
  /** The list of importers for local workspace projects */
95
90
  importers: Record<string, IPnpmShrinkwrapImporterYaml>;
96
91
  /** The description of the solved graph */
@@ -117,8 +112,6 @@ export declare class PnpmShrinkwrapFile extends BaseShrinkwrapFile {
117
112
  readonly isWorkspaceCompatible: boolean;
118
113
  readonly registry: string;
119
114
  readonly dependencies: ReadonlyMap<string, IPnpmVersionSpecifier>;
120
- readonly devDependencies: ReadonlyMap<string, IPnpmVersionSpecifier>;
121
- readonly optionalDependencies: ReadonlyMap<string, IPnpmVersionSpecifier>;
122
115
  readonly importers: ReadonlyMap<string, IPnpmShrinkwrapImporterYaml>;
123
116
  readonly specifiers: ReadonlyMap<string, string>;
124
117
  readonly packages: ReadonlyMap<string, IPnpmShrinkwrapDependencyYaml>;
@@ -126,14 +119,9 @@ export declare class PnpmShrinkwrapFile extends BaseShrinkwrapFile {
126
119
  private readonly _shrinkwrapJson;
127
120
  private readonly _integrities;
128
121
  private _pnpmfileConfiguration;
129
- private _splitWorkspaceGlobalPnpmfileConfiguration;
130
- private _individualPackageName;
131
- private _individualShrinkwrapImporter;
132
122
  private constructor();
133
123
  static loadFromFile(shrinkwrapYamlFilename: string): PnpmShrinkwrapFile | undefined;
134
124
  static loadFromString(shrinkwrapContent: string): PnpmShrinkwrapFile;
135
- setIndividualPackage(packageName: string, splitWorkspaceGlobalPnpmfileConfiguration?: SplitWorkspacePnpmfileConfiguration): void;
136
- get isIndividual(): boolean;
137
125
  getShrinkwrapHash(experimentsConfig?: IExperimentsJson): string;
138
126
  /** @override */
139
127
  validate(packageManagerOptionsConfig: PackageManagerOptionsConfigurationBase, policyOptions: IShrinkwrapFilePolicyValidatorOptions, experimentsConfig?: IExperimentsJson): void;
@@ -220,12 +208,8 @@ export declare class PnpmShrinkwrapFile extends BaseShrinkwrapFile {
220
208
  getImporterKeyByPath(workspaceRoot: string, projectFolder: string): string;
221
209
  getImporter(importerKey: string): IPnpmShrinkwrapImporterYaml | undefined;
222
210
  getIntegrityForImporter(importerKey: string): Map<string, string> | undefined;
223
- getIntegrityForIndividualProject(): Map<string, string>;
224
211
  /** @override */
225
212
  isWorkspaceProjectModifiedAsync(project: RushConfigurationProject, variant?: string): Promise<boolean>;
226
- isSplitWorkspaceProjectModified(project: RushConfigurationProject): boolean;
227
- isSplitWorkspaceIndividualProjectModified(project: RushConfigurationProject): boolean;
228
- private _isProjectModified;
229
213
  private _getIntegrityForPackage;
230
214
  private _addIntegrities;
231
215
  /**
@@ -235,6 +219,5 @@ export declare class PnpmShrinkwrapFile extends BaseShrinkwrapFile {
235
219
  private _getPackageId;
236
220
  private _parsePnpmDependencyKey;
237
221
  private _serializeInternal;
238
- private _getIndividualShrinkwrapImporter;
239
222
  }
240
223
  //# sourceMappingURL=PnpmShrinkwrapFile.d.ts.map
@@ -4,10 +4,8 @@ import type { RushConfigurationProject } from '../../api/RushConfigurationProjec
4
4
  export declare class VersionMismatchFinderProject extends VersionMismatchFinderEntity {
5
5
  packageName: string;
6
6
  private _fileManager;
7
- private _project;
8
7
  constructor(project: RushConfigurationProject);
9
8
  get filePath(): string;
10
- get project(): RushConfigurationProject;
11
9
  get allDependencies(): ReadonlyArray<PackageJsonDependency>;
12
10
  tryGetDependency(packageName: string): PackageJsonDependency | undefined;
13
11
  tryGetDevDependency(packageName: string): PackageJsonDependency | undefined;
@@ -11,7 +11,6 @@ export declare const assetsFolderPath: string;
11
11
  */
12
12
  export declare const scriptsFolderName: string;
13
13
  export declare const pnpmfileShimFilename: string;
14
- export declare const splitWorkspacePnpmfileShimFilename: string;
15
14
  export declare const installRunScriptFilename: string;
16
15
  export declare const installRunRushScriptFilename: string;
17
16
  export declare const installRunRushxScriptFilename: string;
@@ -106,12 +106,6 @@ export declare class Utilities {
106
106
  * hard disk.
107
107
  */
108
108
  static dangerouslyDeletePath(folderPath: string): void;
109
- /**
110
- * BE VERY CAREFUL CALLING THIS FUNCTION!
111
- * If you specify the wrong folderPath (e.g. "/"), it could potentially delete your entire
112
- * hard disk.
113
- */
114
- static dangerouslyDeletePathAsync(folderPath: string): Promise<void>;
115
109
  static isFileTimestampCurrent(dateToCompare: Date, inputFilenames: string[]): boolean;
116
110
  /**
117
111
  * Executes the command with the specified command-line parameters, and waits for it to complete.
@@ -11,6 +11,6 @@ export interface ILogger {
11
11
  * @returns
12
12
  * The text of the the synced .npmrc, if one exists. If one does not exist, then undefined is returned.
13
13
  */
14
- export declare function syncNpmrc(sourceNpmrcFolder: string, targetNpmrcFolder: string, useNpmrcPublish?: boolean, sourceNpmrcFilename?: string, logger?: ILogger): string | undefined;
14
+ export declare function syncNpmrc(sourceNpmrcFolder: string, targetNpmrcFolder: string, useNpmrcPublish?: boolean, logger?: ILogger): string | undefined;
15
15
  export declare function isVariableSetInNpmrcFile(sourceNpmrcFolder: string, variableKey: string): boolean;
16
16
  //# sourceMappingURL=npmrcUtilities.d.ts.map
@@ -4,9 +4,4 @@
4
4
  export declare function objectsAreDeepEqual<TObject>(a: TObject, b: TObject): boolean;
5
5
  export declare function cloneDeep<TObject>(obj: TObject): TObject;
6
6
  export declare function merge<TBase extends object, TOther>(base: TBase, other: TOther): (TBase & TOther) | TOther;
7
- /**
8
- * Performs a partial deep comparison between `obj` and `source` to
9
- * determine if `obj` contains equivalent property values.
10
- */
11
- export declare function isMatch<TObject>(obj: TObject, source: TObject): boolean;
12
7
  //# sourceMappingURL=objectUtilities.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-sdk",
3
- "version": "5.109.1-pr3481.21",
3
+ "version": "5.109.2",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@types/semver": "7.5.0",
32
32
  "@types/webpack-env": "1.18.0",
33
- "@microsoft/rush-lib": "5.109.1-pr3481.21",
33
+ "@microsoft/rush-lib": "5.109.2",
34
34
  "@rushstack/heft": "0.62.3",
35
35
  "local-node-rig": "1.0.0",
36
36
  "@rushstack/stream-collator": "4.1.10",
@@ -1,50 +0,0 @@
1
- import { type JsonObject } from '@rushstack/node-core-library';
2
- /**
3
- * A base class for flag file.
4
- * @internal
5
- */
6
- export declare class BaseFlag<T extends object = JsonObject> {
7
- /**
8
- * Flag file path
9
- */
10
- readonly path: string;
11
- /**
12
- * Content of the flag
13
- */
14
- protected _state: T;
15
- /**
16
- * Whether the current state is modified
17
- */
18
- protected _isModified: boolean;
19
- /**
20
- * Creates a new flag file
21
- * @param folderPath - the folder that this flag is managing
22
- * @param state - optional, the state that should be managed or compared
23
- */
24
- constructor(folderPath: string, state?: Partial<T>);
25
- /**
26
- * Returns true if the file exists and the contents match the current state.
27
- */
28
- isValid(): boolean;
29
- /**
30
- * Writes the flag file to disk with the current state
31
- */
32
- create(): void;
33
- /**
34
- * Merge new data into current state by "merge"
35
- */
36
- mergeFromObject(data: JsonObject): void;
37
- /**
38
- * Writes the flag file to disk with the current state if modified
39
- */
40
- saveIfModified(): void;
41
- /**
42
- * Removes the flag file
43
- */
44
- clear(): void;
45
- /**
46
- * Returns Name of the flag file
47
- */
48
- protected get flagName(): string;
49
- }
50
- //# sourceMappingURL=BaseFlag.d.ts.map
@@ -1 +0,0 @@
1
- module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("api/base/BaseFlag");
@@ -1,3 +0,0 @@
1
- import type { IPnpmfileHooks } from './IPnpmfile';
2
- export declare const hooks: IPnpmfileHooks;
3
- //# sourceMappingURL=SplitWorkspaceGlobalPnpmfileShim.d.ts.map
@@ -1 +0,0 @@
1
- module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/pnpm/SplitWorkspaceGlobalPnpmfileShim");
@@ -1,23 +0,0 @@
1
- import { type IPackageJson } from '@rushstack/node-core-library';
2
- import type { RushConfiguration } from '../../api/RushConfiguration';
3
- /**
4
- * Loads PNPM's pnpmfile.js configuration, and invokes it to preprocess package.json files,
5
- * optionally utilizing a pnpmfile shim to inject preferred versions.
6
- */
7
- export declare class SplitWorkspacePnpmfileConfiguration {
8
- private _context;
9
- constructor(rushConfiguration: RushConfiguration);
10
- /**
11
- * Split workspace use global pnpmfile, because in split workspace, user may set `shared-workspace-lockfile=false`.
12
- * That means each project owns their individual pnpmfile under project folder. While the global pnpmfile could be
13
- * under the common/temp-split/ folder and be used by all split workspace projects.
14
- */
15
- static writeCommonTempSplitGlobalPnpmfileAsync(rushConfiguration: RushConfiguration): Promise<void>;
16
- private static _getSplitWorkspacePnpmfileShimSettings;
17
- /**
18
- * Transform a package.json file using the pnpmfile.js hook.
19
- * @returns the tranformed object, or the original input if pnpmfile.js was not found.
20
- */
21
- transform(packageJson: IPackageJson): IPackageJson;
22
- }
23
- //# sourceMappingURL=SplitWorkspacePnpmfileConfiguration.d.ts.map
@@ -1 +0,0 @@
1
- module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/pnpm/SplitWorkspacePnpmfileConfiguration");
@@ -1,10 +0,0 @@
1
- import type { RushConfiguration } from '../../api/RushConfiguration';
2
- import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
3
- import type { IEvaluateSelectorOptions, ISelectorParser } from './ISelectorParser';
4
- export declare class SplitWorkspaceProjectSelectorParser implements ISelectorParser<RushConfigurationProject> {
5
- private readonly _rushConfiguration;
6
- constructor(rushConfiguration: RushConfiguration);
7
- evaluateSelectorAsync({ unscopedSelector, terminal, parameterName }: IEvaluateSelectorOptions): Promise<Iterable<RushConfigurationProject>>;
8
- getCompletions(): Iterable<string>;
9
- }
10
- //# sourceMappingURL=SplitWorkspaceProjectSelectorParser.d.ts.map
@@ -1 +0,0 @@
1
- module.exports = require("../../../lib-shim/index")._rushSdk_loadInternalModule("logic/selectors/SplitWorkspaceProjectSelectorParser");