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

22 lines (17 loc) 442 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = refreshScope; function _scope() { const data = require("../../../scope"); _scope = function () { return data; }; return data; } function refreshScope(path) { return (0, _scope().loadScope)(path).then(scope => { return scope.objects.list().then(objects => Promise.all(objects.map(o => scope.objects._writeOne(o)))); }); }