"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var fs_1 = require("fs");
var utils_1 = require("../utils");
exports.default = function (options) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
    var src, dest, editor;
    return tslib_1.__generator(this, function (_a) {
        src = options.get("src");
        dest = options.get("dest");
        editor = options.get("editor");
        if (fs_1.existsSync(src + "/lib/")) {
            editor.copy(src + "/lib/**/*", dest + "/src/javascripts/lib/", {
                process: utils_1.requireStatementProcessorFactory(options)
            });
            return [2 /*return*/, options.set("hasCommonJS", true)];
        }
        return [2 /*return*/];
    });
}); };
