UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

55 lines (41 loc) 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _bluebird() { const data = require("bluebird"); _bluebird = function () { return data; }; return data; } function _consumer() { const data = require("../../../consumer"); _consumer = function () { return data; }; return data; } function _installComponents() { const data = require("../../../consumer/component-ops/install-components"); _installComponents = function () { return data; }; return data; } var _default = /*#__PURE__*/function () { var _installAction = (0, _bluebird().coroutine)(function* (ids, verbose, packageManagerArgs) { const consumer = yield (0, _consumer().loadConsumer)(); consumer.packageManagerArgs = packageManagerArgs; const bitIds = ids.map(id => consumer.getParsedId(id)); const installResults = ids.length ? yield (0, _installComponents().installIds)(consumer, bitIds, verbose) : yield (0, _installComponents().install)(consumer, verbose); yield consumer.onDestroy(); return installResults; }); function installAction(_x, _x2, _x3) { return _installAction.apply(this, arguments); } return installAction; }(); exports.default = _default;