"use strict";

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

require("core-js/modules/es.promise");

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

_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 _pluginSequence = _interopRequireDefault(require("@start/plugin-sequence"));

var _pluginFind = _interopRequireDefault(require("@start/plugin-find"));

var _pluginRemove = _interopRequireDefault(require("@start/plugin-remove"));

var _plugin = _interopRequireDefault(require("@start/plugin"));

var _default = () => (0, _plugin.default)('REMOVE LOCK FILE', ({
  reporter
}) =>
/*#__PURE__*/
(0, _asyncToGenerator2.default)(function* () {
  try {
    return (0, _pluginSequence.default)((0, _pluginFind.default)('./yarn.lock'), _pluginRemove.default)(reporter)();
  } catch (e) {
    return _promise.default.reject(e);
  }
}));

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