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

32 lines (23 loc) 746 B
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = list; function _scope() { const data = require("../../../scope"); _scope = function () { return data; }; return data; } function _componentsList() { const data = _interopRequireDefault(require("../../../consumer/component/components-list")); _componentsList = function () { return data; }; return data; } function list(path, namespacesUsingWildcards, loadScopeFromCache = true) { return (0, _scope().loadScope)(path, loadScopeFromCache).then(scope => _componentsList().default.listLocalScope(scope, namespacesUsingWildcards)); }