UNPKG

@rushstack/lockfile-explorer

Version:

Rush Lockfile Explorer: The UI for solving version conflicts quickly in a large monorepo

28 lines 1.29 kB
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import { Colorize } from '@rushstack/terminal'; import { CommandLineParser } from '@rushstack/ts-command-line'; import { InitAction } from './actions/InitAction'; import { CheckAction } from './actions/CheckAction'; import { LFX_VERSION } from '../../utils/constants'; const LINT_TOOL_FILENAME = 'lockfile-lint'; export class LintCommandLineParser extends CommandLineParser { constructor(terminal) { super({ toolFilename: LINT_TOOL_FILENAME, toolDescription: 'Lockfile Lint applies configured policies to find and report dependency issues in your PNPM workspace.' }); this.globalTerminal = terminal; this._populateActions(); } async onExecuteAsync() { this.globalTerminal.writeLine(Colorize.bold(`\nRush Lockfile Lint ${LFX_VERSION}`) + Colorize.cyan(' - https://lfx.rushstack.io/\n')); await super.onExecuteAsync(); } _populateActions() { const terminal = this.globalTerminal; this.addAction(new InitAction(terminal)); this.addAction(new CheckAction(terminal)); } } //# sourceMappingURL=LintCommandLineParser.js.map