Skip to content

Commit

Permalink
chore: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
chengcyber committed Jun 8, 2022
1 parent e5bb702 commit 76cd035
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions apps/rush/src/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@ import * as semver from 'semver';

import {
ConsoleTerminalProvider,
Terminal,
Text,
PackageJsonLookup,
ITerminal
ITerminalProvider
} from '@rushstack/node-core-library';
import { EnvironmentVariableNames } from '@microsoft/rush-lib';
import * as rushLib from '@microsoft/rush-lib';
Expand Down Expand Up @@ -89,9 +88,9 @@ if (rushVersionToLoad && semver.lt(rushVersionToLoad, '5.0.0-dev.18')) {
// Rush is "managed" if its version and configuration are dictated by a repo's rush.json
const isManaged: boolean = !!configuration;

const terminal: ITerminal = new Terminal(new ConsoleTerminalProvider());
const terminalProvider: ITerminalProvider = new ConsoleTerminalProvider();

const launchOptions: rushLib.ILaunchOptions = { isManaged, alreadyReportedNodeTooNewError, terminal };
const launchOptions: rushLib.ILaunchOptions = { isManaged, alreadyReportedNodeTooNewError, terminalProvider };

// If we're inside a repo folder, and it's requesting a different version, then use the RushVersionManager to
// install it
Expand Down
1 change: 1 addition & 0 deletions common/reviews/api/rush-lib.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ export interface ILaunchOptions {
// @internal
builtInPluginConfigurations?: _IBuiltInPluginConfiguration[];
isManaged: boolean;
terminalProvider?: ITerminalProvider;
}

// @beta (undocumented)
Expand Down
3 changes: 1 addition & 2 deletions libraries/rush-lib/src/cli/RushPnpmCommandLine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { RushConfiguration } from '../api/RushConfiguration';
import { NodeJsCompatibility } from '../logic/NodeJsCompatibility';
import { SpawnSyncReturns } from 'child_process';
import { ILaunchOptions } from '../api/Rush';
import { InstallHelpers } from '../logic/installManager/InstallHelpers';

export interface ILaunchRushPnpmInternalOptions extends ILaunchOptions {}

Expand Down Expand Up @@ -71,7 +70,7 @@ export class RushPnpmCommandLine {
process.exitCode = 1;

const { terminalProvider } = options;
const terminal = new Terminal(terminalProvider || new ConsoleTerminalProvider());
const terminal: ITerminal = new Terminal(terminalProvider || new ConsoleTerminalProvider());

try {
// Are we in a Rush repo?
Expand Down

0 comments on commit 76cd035

Please sign in to comment.