Skip to content

Commit 4f011a6

Browse files
committed
Address comments
1 parent 389e868 commit 4f011a6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/rush-lib/src/api/RushConfiguration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export abstract class PackageManagerOptionsConfigurationBase implements IPackage
265265
export class NpmOptionsConfiguration extends PackageManagerOptionsConfigurationBase {
266266
/** @internal */
267267
public constructor(json: INpmOptionsJson) {
268-
super(json.environmentVariables);
268+
super(json);
269269
}
270270
}
271271

@@ -327,7 +327,7 @@ export class PnpmOptionsConfiguration extends PackageManagerOptionsConfiguration
327327

328328
/** @internal */
329329
public constructor(json: IPnpmOptionsJson, commonTempFolder: string) {
330-
super(json.environmentVariables);
330+
super(json);
331331
this.pnpmStore = json.pnpmStore || 'local';
332332
if (EnvironmentConfiguration.pnpmStorePathOverride) {
333333
this.pnpmStorePath = EnvironmentConfiguration.pnpmStorePathOverride;
@@ -362,7 +362,7 @@ export class YarnOptionsConfiguration extends PackageManagerOptionsConfiguration
362362

363363
/** @internal */
364364
public constructor(json: IYarnOptionsJson) {
365-
super(json.environmentVariables);
365+
super(json);
366366
this.ignoreEngines = !!json.ignoreEngines;
367367
}
368368
}

common/reviews/api/rush-lib.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,9 @@ export abstract class PackageManager {
268268
export type PackageManagerName = 'pnpm' | 'npm' | 'yarn';
269269

270270
// @public
271-
export class PackageManagerOptionsConfigurationBase implements IPackageManagerOptionsJsonBase {
271+
export abstract class PackageManagerOptionsConfigurationBase implements IPackageManagerOptionsJsonBase {
272272
// @internal
273-
protected constructor(environmentVariables?: IConfigurationEnvironment);
273+
protected constructor(json: IPackageManagerOptionsJsonBase);
274274
readonly environmentVariables?: IConfigurationEnvironment;
275275
}
276276

0 commit comments

Comments
 (0)