"use strict";

var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");

var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");

_Object$defineProperty(exports, "__esModule", {
  value: true
});

exports.default = void 0;

var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));

var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));

var _fs = _interopRequireDefault(require("fs"));

var _default = /*#__PURE__*/(0, _asyncToGenerator2.default)(function* () {
  return new _promise.default((resolve, reject) => {
    try {
      _fs.default.exists('./lerna.json', /*#__PURE__*/function () {
        var _ref2 = (0, _asyncToGenerator2.default)(function* (exists) {
          resolve(exists);
        });

        return function (_x) {
          return _ref2.apply(this, arguments);
        };
      }());
    } catch (e) {
      reject();
    }
  });
});

exports.default = _default;
module.exports = exports.default;