"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const mkdirp = require("mkdirp");
const path = require("path");
const rimraf = require("rimraf");
const tar = require("tar");
const target = path.join(__dirname, "..", "/compiler");
const tsPath = path.join(target, "/typescript.tgz");
const originalTsFolder = path.join(require.resolve("typescript"), "../../");
rimraf(originalTsFolder, () => {
    mkdirp(originalTsFolder).then(() => tar.extract({
        file: tsPath,
        cwd: originalTsFolder,
        strip: 1
    }));
});
