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
43 lines (31 loc) • 867 B
JavaScript
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _bluebird() {
const data = require("bluebird");
_bluebird = function () {
return data;
};
return data;
}
function _readDirIgnoreDsStore() {
const data = _interopRequireDefault(require("./read-dir-ignore-ds-store"));
_readDirIgnoreDsStore = function () {
return data;
};
return data;
}
var _default = /*#__PURE__*/function () {
var _isDirEmpty = (0, _bluebird().coroutine)(function* (dirPath) {
const files = yield (0, _readDirIgnoreDsStore().default)(dirPath);
return !files.length;
});
function isDirEmpty(_x) {
return _isDirEmpty.apply(this, arguments);
}
return isDirEmpty;
}();
exports.default = _default;
;