@rushstack/rush-sdk 5.117.2 → 5.117.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.
package/dist/rush-lib.d.ts
CHANGED
|
@@ -4497,12 +4497,19 @@ export declare class Subspace {
|
|
|
4497
4497
|
private readonly _splitWorkspaceCompatibility;
|
|
4498
4498
|
private _commonVersionsConfiguration;
|
|
4499
4499
|
private _detail;
|
|
4500
|
+
private _cachedPnpmOptions;
|
|
4501
|
+
private _cachedPnpmOptionsInitialized;
|
|
4500
4502
|
constructor(options: ISubspaceOptions);
|
|
4501
4503
|
/**
|
|
4502
4504
|
* Returns the list of projects belonging to this subspace.
|
|
4503
4505
|
* @beta
|
|
4504
4506
|
*/
|
|
4505
4507
|
getProjects(): RushConfigurationProject[];
|
|
4508
|
+
/**
|
|
4509
|
+
* Returns the parsed contents of the pnpm-config.json config file.
|
|
4510
|
+
* @beta
|
|
4511
|
+
*/
|
|
4512
|
+
getPnpmOptions(): PnpmOptionsConfiguration | undefined;
|
|
4506
4513
|
private _ensureDetail;
|
|
4507
4514
|
/**
|
|
4508
4515
|
* Returns the full path of the folder containing this subspace's configuration files such as `pnpm-lock.yaml`.
|
package/dist/tsdoc-metadata.json
CHANGED
package/lib/api/Subspace.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { RushConfiguration } from './RushConfiguration';
|
|
|
2
2
|
import type { RushConfigurationProject } from './RushConfigurationProject';
|
|
3
3
|
import { CommonVersionsConfiguration } from './CommonVersionsConfiguration';
|
|
4
4
|
import { RepoStateFile } from '../logic/RepoStateFile';
|
|
5
|
+
import { PnpmOptionsConfiguration } from '../logic/pnpm/PnpmOptionsConfiguration';
|
|
5
6
|
/**
|
|
6
7
|
* @internal
|
|
7
8
|
*/
|
|
@@ -22,12 +23,19 @@ export declare class Subspace {
|
|
|
22
23
|
private readonly _splitWorkspaceCompatibility;
|
|
23
24
|
private _commonVersionsConfiguration;
|
|
24
25
|
private _detail;
|
|
26
|
+
private _cachedPnpmOptions;
|
|
27
|
+
private _cachedPnpmOptionsInitialized;
|
|
25
28
|
constructor(options: ISubspaceOptions);
|
|
26
29
|
/**
|
|
27
30
|
* Returns the list of projects belonging to this subspace.
|
|
28
31
|
* @beta
|
|
29
32
|
*/
|
|
30
33
|
getProjects(): RushConfigurationProject[];
|
|
34
|
+
/**
|
|
35
|
+
* Returns the parsed contents of the pnpm-config.json config file.
|
|
36
|
+
* @beta
|
|
37
|
+
*/
|
|
38
|
+
getPnpmOptions(): PnpmOptionsConfiguration | undefined;
|
|
31
39
|
private _ensureDetail;
|
|
32
40
|
/**
|
|
33
41
|
* Returns the full path of the folder containing this subspace's configuration files such as `pnpm-lock.yaml`.
|
|
@@ -18,7 +18,7 @@ export declare class RushPnpmCommandLineParser {
|
|
|
18
18
|
static initializeAsync(options: IRushPnpmCommandLineParserOptions): Promise<RushPnpmCommandLineParser>;
|
|
19
19
|
executeAsync(): Promise<void>;
|
|
20
20
|
private _validatePnpmUsageAsync;
|
|
21
|
-
private
|
|
21
|
+
private _executeAsync;
|
|
22
22
|
private _postExecuteAsync;
|
|
23
23
|
private _doRushUpdateAsync;
|
|
24
24
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CommandLineFlagParameter, CommandLineIntegerParameter, CommandLineStringParameter } from '@rushstack/ts-command-line';
|
|
1
|
+
import type { CommandLineFlagParameter, CommandLineIntegerParameter, CommandLineStringParameter, 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';
|
|
@@ -14,7 +14,7 @@ export declare abstract class BaseInstallAction extends BaseRushAction {
|
|
|
14
14
|
protected readonly _noLinkParameter: CommandLineFlagParameter;
|
|
15
15
|
protected readonly _networkConcurrencyParameter: CommandLineIntegerParameter;
|
|
16
16
|
protected readonly _debugPackageManagerParameter: CommandLineFlagParameter;
|
|
17
|
-
protected readonly _maxInstallAttempts:
|
|
17
|
+
protected readonly _maxInstallAttempts: IRequiredCommandLineIntegerParameter;
|
|
18
18
|
protected readonly _ignoreHooksParameter: CommandLineFlagParameter;
|
|
19
19
|
protected readonly _offlineParameter: CommandLineFlagParameter;
|
|
20
20
|
protected readonly _subspaceParameter: CommandLineStringParameter;
|
|
@@ -126,7 +126,7 @@ export declare class Utilities {
|
|
|
126
126
|
*
|
|
127
127
|
* It's basically the same as executeCommand() except that it returns a Promise.
|
|
128
128
|
*/
|
|
129
|
-
static executeCommandAndInspectOutputAsync(options: IExecuteCommandOptions, onStdoutStreamChunk?: (
|
|
129
|
+
static executeCommandAndInspectOutputAsync(options: IExecuteCommandOptions, onStdoutStreamChunk?: (chunk: string) => string | void, onExit?: (code: number, signal: string) => void): Promise<void>;
|
|
130
130
|
/**
|
|
131
131
|
* Executes the command with the specified command-line parameters, and waits for it to complete.
|
|
132
132
|
* The current directory will be set to the specified workingDirectory.
|
|
@@ -142,7 +142,7 @@ export declare class Utilities {
|
|
|
142
142
|
*
|
|
143
143
|
* Note: This is similar to {@link executeCommandWithRetry} except that it returns a Promise and provides a callback to process the output.
|
|
144
144
|
*/
|
|
145
|
-
static executeCommandAndProcessOutputWithRetryAsync(options: IExecuteCommandOptions, maxAttempts: number, onStdoutStreamChunk?: (
|
|
145
|
+
static executeCommandAndProcessOutputWithRetryAsync(options: IExecuteCommandOptions, maxAttempts: number, onStdoutStreamChunk?: (chunk: string) => string | void, retryCallback?: () => void): Promise<void>;
|
|
146
146
|
/**
|
|
147
147
|
* Executes the command using cmd if running on windows, or using sh if running on a non-windows OS.
|
|
148
148
|
* @param command - the command to run on shell
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rushstack/rush-sdk",
|
|
3
|
-
"version": "5.117.
|
|
3
|
+
"version": "5.117.4",
|
|
4
4
|
"description": "An API for interacting with the Rush engine",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/semver": "7.5.0",
|
|
33
33
|
"@types/webpack-env": "1.18.0",
|
|
34
|
-
"@microsoft/rush-lib": "5.117.2",
|
|
35
|
-
"@rushstack/heft": "0.65.8",
|
|
36
34
|
"local-node-rig": "1.0.0",
|
|
37
|
-
"@rushstack/stream-collator": "4.1.
|
|
38
|
-
"@
|
|
35
|
+
"@rushstack/stream-collator": "4.1.38",
|
|
36
|
+
"@microsoft/rush-lib": "5.117.4",
|
|
37
|
+
"@rushstack/heft": "0.66.0",
|
|
38
|
+
"@rushstack/ts-command-line": "4.19.1"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "heft build --clean",
|