"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var path_1 = require("path");
exports.default = function (options) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
    var dest, editor, yarnrcTpl, destFile, offlineCachePath;
    return tslib_1.__generator(this, function (_a) {
        dest = options.get("dest");
        editor = options.get("editor");
        yarnrcTpl = "./src/templates/yarnrc.ejs";
        destFile = dest + "/.yarnrc";
        offlineCachePath = path_1.resolve(__dirname, "../../") + "/npm-packages-offline-cache";
        editor.copyTpl(yarnrcTpl, destFile, { offlineCachePath: offlineCachePath });
        return [2 /*return*/];
    });
}); };
