@rushstack/rush-sdk 5.124.3 → 5.124.4

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.
@@ -1,9 +1,8 @@
1
- import type { CommandLineFlagParameter, CommandLineIntegerParameter, CommandLineStringParameter, IRequiredCommandLineIntegerParameter } from '@rushstack/ts-command-line';
1
+ import type { CommandLineFlagParameter, CommandLineIntegerParameter, IRequiredCommandLineIntegerParameter } from '@rushstack/ts-command-line';
2
2
  import { type ITerminal } from '@rushstack/terminal';
3
3
  import { BaseRushAction, type IBaseRushActionOptions } from './BaseRushAction';
4
4
  import type { IInstallManagerOptions } from '../../logic/base/BaseInstallManagerTypes';
5
5
  import type { SelectionParameterSet } from '../parsing/SelectionParameterSet';
6
- import type { Subspace } from '../../api/Subspace';
7
6
  /**
8
7
  * This is the common base class for InstallAction and UpdateAction.
9
8
  */
@@ -17,11 +16,9 @@ export declare abstract class BaseInstallAction extends BaseRushAction {
17
16
  protected readonly _maxInstallAttempts: IRequiredCommandLineIntegerParameter;
18
17
  protected readonly _ignoreHooksParameter: CommandLineFlagParameter;
19
18
  protected readonly _offlineParameter: CommandLineFlagParameter;
20
- protected readonly _subspaceParameter: CommandLineStringParameter;
21
19
  protected _selectionParameters?: SelectionParameterSet;
22
20
  constructor(options: IBaseRushActionOptions);
23
- protected abstract buildInstallOptionsAsync(): Promise<IInstallManagerOptions>;
24
- protected getTargetSubspace(): Subspace;
21
+ protected abstract buildInstallOptionsAsync(): Promise<Omit<IInstallManagerOptions, 'subspace'>>;
25
22
  protected runAsync(): Promise<void>;
26
23
  private _doInstall;
27
24
  private _collectTelemetry;
@@ -4,6 +4,6 @@ import type { RushCommandLineParser } from '../RushCommandLineParser';
4
4
  export declare class InstallAction extends BaseInstallAction {
5
5
  private readonly _checkOnlyParameter;
6
6
  constructor(parser: RushCommandLineParser);
7
- protected buildInstallOptionsAsync(): Promise<IInstallManagerOptions>;
7
+ protected buildInstallOptionsAsync(): Promise<Omit<IInstallManagerOptions, 'subspace'>>;
8
8
  }
9
9
  //# sourceMappingURL=InstallAction.d.ts.map
@@ -6,6 +6,6 @@ export declare class UpdateAction extends BaseInstallAction {
6
6
  private readonly _recheckParameter;
7
7
  constructor(parser: RushCommandLineParser);
8
8
  protected runAsync(): Promise<void>;
9
- protected buildInstallOptionsAsync(): Promise<IInstallManagerOptions>;
9
+ protected buildInstallOptionsAsync(): Promise<Omit<IInstallManagerOptions, 'subspace'>>;
10
10
  }
11
11
  //# sourceMappingURL=UpdateAction.d.ts.map
@@ -1,8 +1,12 @@
1
- import type { ITerminal } from '@rushstack/terminal';
1
+ import { type ITerminal } from '@rushstack/terminal';
2
2
  import type { CommandLineParameterProvider } from '@rushstack/ts-command-line';
3
3
  import type { RushConfiguration } from '../../api/RushConfiguration';
4
4
  import type { RushConfigurationProject } from '../../api/RushConfigurationProject';
5
5
  import { type IGitSelectorParserOptions } from '../../logic/selectors/GitChangedProjectSelectorParser';
6
+ interface ISelectionParameterSetOptions {
7
+ gitOptions: IGitSelectorParserOptions;
8
+ includeSubspaceSelector: boolean;
9
+ }
6
10
  /**
7
11
  * This class is provides the set of command line parameters used to select projects
8
12
  * based on dependencies.
@@ -17,10 +21,20 @@ export declare class SelectionParameterSet {
17
21
  private readonly _onlyProject;
18
22
  private readonly _toProject;
19
23
  private readonly _toExceptProject;
24
+ private readonly _subspaceParameter;
20
25
  private readonly _fromVersionPolicy;
21
26
  private readonly _toVersionPolicy;
22
27
  private readonly _selectorParserByScope;
23
- constructor(rushConfiguration: RushConfiguration, action: CommandLineParameterProvider, gitOptions: IGitSelectorParserOptions);
28
+ constructor(rushConfiguration: RushConfiguration, action: CommandLineParameterProvider, options: ISelectionParameterSetOptions);
29
+ /**
30
+ * Used to implement the `preventSelectingAllSubspaces` policy which checks for commands that accidentally
31
+ * select everything. Return `true` if the CLI was invoked with selection parameters.
32
+ *
33
+ * @remarks
34
+ * It is still possible for a user to select everything, but they must do so using an explicit selection
35
+ * such as `rush install --from thing-that-everything-depends-on`.
36
+ */
37
+ didUserSelectAnything(): boolean;
24
38
  /**
25
39
  * Computes the set of selected projects based on all parameter values.
26
40
  *
@@ -53,4 +67,5 @@ export declare class SelectionParameterSet {
53
67
  */
54
68
  private _evaluateProjectParameterAsync;
55
69
  }
70
+ export {};
56
71
  //# sourceMappingURL=SelectionParameterSet.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/rush-sdk",
3
- "version": "5.124.3",
3
+ "version": "5.124.4",
4
4
  "description": "An API for interacting with the Rush engine",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,17 +25,17 @@
25
25
  "dependencies": {
26
26
  "@types/node-fetch": "2.6.2",
27
27
  "tapable": "2.2.1",
28
- "@rushstack/node-core-library": "4.2.1",
29
- "@rushstack/terminal": "0.10.3"
28
+ "@rushstack/terminal": "0.10.3",
29
+ "@rushstack/node-core-library": "4.2.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/semver": "7.5.0",
33
33
  "@types/webpack-env": "1.18.0",
34
- "@microsoft/rush-lib": "5.124.3",
35
- "@rushstack/heft": "0.66.6",
34
+ "@microsoft/rush-lib": "5.124.4",
36
35
  "local-node-rig": "1.0.0",
37
- "@rushstack/ts-command-line": "4.19.5",
38
- "@rushstack/stream-collator": "4.1.44"
36
+ "@rushstack/heft": "0.66.6",
37
+ "@rushstack/stream-collator": "4.1.44",
38
+ "@rushstack/ts-command-line": "4.19.5"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "heft build --clean",