UNPKG

@rushstack/lockfile-explorer

Version:

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

32 lines 1.54 kB
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. Object.defineProperty(exports, "__esModule", { value: true }); exports.LintCommandLineParser = void 0; const terminal_1 = require("@rushstack/terminal"); const ts_command_line_1 = require("@rushstack/ts-command-line"); const InitAction_1 = require("./actions/InitAction"); const CheckAction_1 = require("./actions/CheckAction"); const constants_1 = require("../../utils/constants"); const LINT_TOOL_FILENAME = 'lockfile-lint'; class LintCommandLineParser extends ts_command_line_1.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(terminal_1.Colorize.bold(`\nRush Lockfile Lint ${constants_1.LFX_VERSION}`) + terminal_1.Colorize.cyan(' - https://lfx.rushstack.io/\n')); await super.onExecuteAsync(); } _populateActions() { const terminal = this.globalTerminal; this.addAction(new InitAction_1.InitAction(terminal)); this.addAction(new CheckAction_1.CheckAction(terminal)); } } exports.LintCommandLineParser = LintCommandLineParser; //# sourceMappingURL=LintCommandLineParser.js.map