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

var _bootstrap = _interopRequireDefault(require("./plugins/bootstrap"));

var _buildInfo = _interopRequireDefault(require("./plugins/buildInfo"));

var _linkApps = _interopRequireDefault(require("./plugins/linkApps"));

//import removeLockFile from './plugins/removeLockFile'
//import yarnInstall from './plugins/yarnInstall'
var _default = ({
  force,
  link = true,
  freeze = false
}) => (0, _pluginSequence.default)((0, _buildInfo.default)(['node', 'yarn', 'lerna'], {
  force
}), // remove old lock file
//removeLockFile(),
// do bootstrap + link for lerna
(0, _bootstrap.default)(link, freeze), // iterate the apps folder and do linklocal
(0, _linkApps.default)(link) // TODO : What to do about tools? pass as an arg maybe?
// yarnInstall('', './tools/eslint-config-cosmic'), // or should tools be on workspaces
// yarnInstall('', './tools/meniga-cli'),
);

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