UNPKG

@rushstack/heft

Version:

Build all your JavaScript projects the same way: A way that works.

25 lines 1.18 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.AliasAction = void 0; const ts_command_line_1 = require("@rushstack/ts-command-line"); class AliasAction extends ts_command_line_1.AliasCommandLineAction { constructor(options) { super(options); this._toolFilename = options.toolFilename; this._terminal = options.terminal; } async onExecuteAsync() { const toolFilename = this._toolFilename; const actionName = this.actionName; const targetAction = this.targetAction; const defaultParameters = this.defaultParameters; const defaultParametersString = defaultParameters.join(' '); this._terminal.writeLine(`The "${toolFilename} ${actionName}" alias was expanded to "${toolFilename} ${targetAction.actionName}` + `${defaultParametersString ? ` ${defaultParametersString}` : ''}".`); await super.onExecuteAsync(); } } exports.AliasAction = AliasAction; //# sourceMappingURL=AliasAction.js.map