Pick up latest TS for building VS Code (#207096)

This commit is contained in:
Matt Bierner
2024-03-07 12:59:59 -08:00
committed by GitHub
parent 5fe9008857
commit 6403b4367b
35 changed files with 95 additions and 121 deletions

View File

@@ -4,7 +4,8 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getChromiumSysroot = exports.getVSCodeSysroot = void 0;
exports.getVSCodeSysroot = getVSCodeSysroot;
exports.getChromiumSysroot = getChromiumSysroot;
const child_process_1 = require("child_process");
const os_1 = require("os");
const fs = require("fs");
@@ -156,7 +157,6 @@ async function getVSCodeSysroot(arch) {
fs.writeFileSync(stamp, expectedName);
return result;
}
exports.getVSCodeSysroot = getVSCodeSysroot;
async function getChromiumSysroot(arch) {
const sysrootJSONUrl = `https://raw.githubusercontent.com/electron/electron/v${getElectronVersion().electronVersion}/script/sysroots.json`;
const sysrootDictLocation = `${(0, os_1.tmpdir)()}/sysroots.json`;
@@ -214,5 +214,4 @@ async function getChromiumSysroot(arch) {
fs.writeFileSync(stamp, url);
return sysroot;
}
exports.getChromiumSysroot = getChromiumSysroot;
//# sourceMappingURL=install-sysroot.js.map