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 (39 loc) 1.16 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; function _bluebird() { const data = require("bluebird"); _bluebird = function () { return data; }; return data; } function path() { const data = _interopRequireWildcard(require("path")); path = function () { return data; }; return data; } function _removeEmptyDir() { const data = _interopRequireDefault(require("./remove-empty-dir")); _removeEmptyDir = function () { return data; }; return data; } var _default = /*#__PURE__*/function () { var _removeContainingDirIfEmpty = (0, _bluebird().coroutine)(function* (componentDir) { const containingDir = path().dirname(componentDir); return (0, _removeEmptyDir().default)(containingDir); }); function removeContainingDirIfEmpty(_x) { return _removeContainingDirIfEmpty.apply(this, arguments); } return removeContainingDirIfEmpty; }(); exports.default = _default;