"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

function _react() {
  const data = _interopRequireDefault(require("react"));

  _react = function _react() {
    return data;
  };

  return data;
}

function _sylvanas() {
  const data = _interopRequireDefault(require("sylvanas"));

  _sylvanas = function _sylvanas() {
    return data;
  };

  return data;
}

function _glob() {
  const data = _interopRequireDefault(require("glob"));

  _glob = function _glob() {
    return data;
  };

  return data;
}

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function globList(patternList, options) {
  let fileList = [];
  patternList.forEach(pattern => {
    fileList = [...fileList, ..._glob().default.sync(pattern, options)];
  });
  return fileList;
}

var _default = cwd => {
  const tsFiles = globList(['**/*.tsx', '**/*.ts'], {
    cwd,
    ignore: ['**/*.d.ts']
  });
  return (0, _sylvanas().default)(tsFiles, {
    cwd,
    action: 'overwrite'
  });
};

exports.default = _default;