mirror of https://github.com/microsoft/vscode.git
Pick up latest TS for building VS Code (#207096)
This commit is contained in:
parent
5fe9008857
commit
6403b4367b
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.retry = void 0;
|
||||
exports.retry = retry;
|
||||
async function retry(fn) {
|
||||
let lastError;
|
||||
for (let run = 1; run <= 10; run++) {
|
||||
|
@ -24,5 +24,4 @@ async function retry(fn) {
|
|||
console.error(`Too many retries, aborting.`);
|
||||
throw lastError;
|
||||
}
|
||||
exports.retry = retry;
|
||||
//# sourceMappingURL=retry.js.map
|
|
@ -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.main = exports.Temp = void 0;
|
||||
exports.Temp = void 0;
|
||||
exports.main = main;
|
||||
const cp = require("child_process");
|
||||
const fs = require("fs");
|
||||
const crypto = require("crypto");
|
||||
|
@ -164,7 +165,6 @@ function main([esrpCliPath, type, cert, username, password, folderPath, pattern]
|
|||
process.exit(1);
|
||||
}
|
||||
}
|
||||
exports.main = main;
|
||||
if (require.main === module) {
|
||||
main(process.argv.slice(2));
|
||||
process.exit(0);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createAsar = void 0;
|
||||
exports.createAsar = createAsar;
|
||||
const path = require("path");
|
||||
const es = require("event-stream");
|
||||
const pickle = require('chromium-pickle-js');
|
||||
|
@ -115,5 +115,4 @@ function createAsar(folderPath, unpackGlobs, destFilename) {
|
|||
}
|
||||
});
|
||||
}
|
||||
exports.createAsar = createAsar;
|
||||
//# sourceMappingURL=asar.js.map
|
|
@ -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.getBuiltInExtensions = exports.getExtensionStream = void 0;
|
||||
exports.getExtensionStream = getExtensionStream;
|
||||
exports.getBuiltInExtensions = getBuiltInExtensions;
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const os = require("os");
|
||||
|
@ -58,7 +59,6 @@ function getExtensionStream(extension) {
|
|||
}
|
||||
return getExtensionDownloadStream(extension);
|
||||
}
|
||||
exports.getExtensionStream = getExtensionStream;
|
||||
function syncMarketplaceExtension(extension) {
|
||||
const galleryServiceUrl = productjson.extensionsGallery?.serviceUrl;
|
||||
const source = ansiColors.blue(galleryServiceUrl ? '[marketplace]' : '[github]');
|
||||
|
@ -127,7 +127,6 @@ function getBuiltInExtensions() {
|
|||
.on('end', resolve);
|
||||
});
|
||||
}
|
||||
exports.getBuiltInExtensions = getBuiltInExtensions;
|
||||
if (require.main === module) {
|
||||
getBuiltInExtensions().then(() => process.exit(0)).catch(err => {
|
||||
console.error(err);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.bundle = void 0;
|
||||
exports.bundle = bundle;
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const vm = require("vm");
|
||||
|
@ -78,7 +78,6 @@ function bundle(entryPoints, config, callback) {
|
|||
});
|
||||
}, (err) => callback(err, null));
|
||||
}
|
||||
exports.bundle = bundle;
|
||||
function emitEntryPoints(modules, entryPoints) {
|
||||
const modulesMap = {};
|
||||
modules.forEach((m) => {
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.watchApiProposalNamesTask = exports.compileApiProposalNamesTask = exports.watchTask = exports.compileTask = exports.transpileTask = void 0;
|
||||
exports.watchApiProposalNamesTask = exports.compileApiProposalNamesTask = void 0;
|
||||
exports.transpileTask = transpileTask;
|
||||
exports.compileTask = compileTask;
|
||||
exports.watchTask = watchTask;
|
||||
const es = require("event-stream");
|
||||
const fs = require("fs");
|
||||
const gulp = require("gulp");
|
||||
|
@ -96,7 +99,6 @@ function transpileTask(src, out, swc) {
|
|||
task.taskName = `transpile-${path.basename(src)}`;
|
||||
return task;
|
||||
}
|
||||
exports.transpileTask = transpileTask;
|
||||
function compileTask(src, out, build, options = {}) {
|
||||
const task = () => {
|
||||
if (os.totalmem() < 4_000_000_000) {
|
||||
|
@ -137,7 +139,6 @@ function compileTask(src, out, build, options = {}) {
|
|||
task.taskName = `compile-${path.basename(src)}`;
|
||||
return task;
|
||||
}
|
||||
exports.compileTask = compileTask;
|
||||
function watchTask(out, build) {
|
||||
const task = () => {
|
||||
const compile = createCompile('src', build, false, false);
|
||||
|
@ -153,7 +154,6 @@ function watchTask(out, build) {
|
|||
task.taskName = `watch-${path.basename(out)}`;
|
||||
return task;
|
||||
}
|
||||
exports.watchTask = watchTask;
|
||||
const REPO_SRC_FOLDER = path.join(__dirname, '../../src');
|
||||
class MonacoGenerator {
|
||||
_isWatch;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getProductionDependencies = void 0;
|
||||
exports.getProductionDependencies = getProductionDependencies;
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const cp = require("child_process");
|
||||
|
@ -69,7 +69,6 @@ function getProductionDependencies(folderPath) {
|
|||
}
|
||||
return [...new Set(result)];
|
||||
}
|
||||
exports.getProductionDependencies = getProductionDependencies;
|
||||
if (require.main === module) {
|
||||
console.log(JSON.stringify(getProductionDependencies(root), null, ' '));
|
||||
}
|
||||
|
|
|
@ -4,7 +4,14 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.buildExtensionMedia = exports.webpackExtensions = exports.translatePackageJSON = exports.scanBuiltinExtensions = exports.packageMarketplaceExtensionsStream = exports.packageLocalExtensionsStream = exports.fromGithub = exports.fromMarketplace = void 0;
|
||||
exports.fromMarketplace = fromMarketplace;
|
||||
exports.fromGithub = fromGithub;
|
||||
exports.packageLocalExtensionsStream = packageLocalExtensionsStream;
|
||||
exports.packageMarketplaceExtensionsStream = packageMarketplaceExtensionsStream;
|
||||
exports.scanBuiltinExtensions = scanBuiltinExtensions;
|
||||
exports.translatePackageJSON = translatePackageJSON;
|
||||
exports.webpackExtensions = webpackExtensions;
|
||||
exports.buildExtensionMedia = buildExtensionMedia;
|
||||
const es = require("event-stream");
|
||||
const fs = require("fs");
|
||||
const cp = require("child_process");
|
||||
|
@ -213,7 +220,6 @@ function fromMarketplace(serviceUrl, { name: extensionName, version, sha256, met
|
|||
.pipe(json({ __metadata: metadata }))
|
||||
.pipe(packageJsonFilter.restore);
|
||||
}
|
||||
exports.fromMarketplace = fromMarketplace;
|
||||
function fromGithub({ name, version, repo, sha256, metadata }) {
|
||||
const json = require('gulp-json-editor');
|
||||
fancyLog('Downloading extension from GH:', ansiColors.yellow(`${name}@${version}`), '...');
|
||||
|
@ -232,7 +238,6 @@ function fromGithub({ name, version, repo, sha256, metadata }) {
|
|||
.pipe(json({ __metadata: metadata }))
|
||||
.pipe(packageJsonFilter.restore);
|
||||
}
|
||||
exports.fromGithub = fromGithub;
|
||||
const excludedExtensions = [
|
||||
'vscode-api-tests',
|
||||
'vscode-colorize-tests',
|
||||
|
@ -306,7 +311,6 @@ function packageLocalExtensionsStream(forWeb, disableMangle) {
|
|||
return (result
|
||||
.pipe(util2.setExecutableBit(['**/*.sh'])));
|
||||
}
|
||||
exports.packageLocalExtensionsStream = packageLocalExtensionsStream;
|
||||
function packageMarketplaceExtensionsStream(forWeb) {
|
||||
const marketplaceExtensionsDescriptions = [
|
||||
...builtInExtensions.filter(({ name }) => (forWeb ? !marketplaceWebExtensionsExclude.has(name) : true)),
|
||||
|
@ -325,7 +329,6 @@ function packageMarketplaceExtensionsStream(forWeb) {
|
|||
return (marketplaceExtensionsStream
|
||||
.pipe(util2.setExecutableBit(['**/*.sh'])));
|
||||
}
|
||||
exports.packageMarketplaceExtensionsStream = packageMarketplaceExtensionsStream;
|
||||
function scanBuiltinExtensions(extensionsRoot, exclude = []) {
|
||||
const scannedExtensions = [];
|
||||
try {
|
||||
|
@ -361,7 +364,6 @@ function scanBuiltinExtensions(extensionsRoot, exclude = []) {
|
|||
return scannedExtensions;
|
||||
}
|
||||
}
|
||||
exports.scanBuiltinExtensions = scanBuiltinExtensions;
|
||||
function translatePackageJSON(packageJSON, packageNLSPath) {
|
||||
const CharCode_PC = '%'.charCodeAt(0);
|
||||
const packageNls = JSON.parse(fs.readFileSync(packageNLSPath).toString());
|
||||
|
@ -385,7 +387,6 @@ function translatePackageJSON(packageJSON, packageNLSPath) {
|
|||
translate(packageJSON);
|
||||
return packageJSON;
|
||||
}
|
||||
exports.translatePackageJSON = translatePackageJSON;
|
||||
const extensionsPath = path.join(root, 'extensions');
|
||||
// Additional projects to run esbuild on. These typically build code for webviews
|
||||
const esbuildMediaScripts = [
|
||||
|
@ -459,7 +460,6 @@ async function webpackExtensions(taskName, isWatch, webpackConfigLocations) {
|
|||
}
|
||||
});
|
||||
}
|
||||
exports.webpackExtensions = webpackExtensions;
|
||||
async function esbuildExtensions(taskName, isWatch, scripts) {
|
||||
function reporter(stdError, script) {
|
||||
const matches = (stdError || '').match(/\> (.+): error: (.+)?/g);
|
||||
|
@ -500,5 +500,4 @@ async function buildExtensionMedia(isWatch, outputRoot) {
|
|||
outputRoot: outputRoot ? path.join(root, outputRoot, path.dirname(p)) : undefined
|
||||
})));
|
||||
}
|
||||
exports.buildExtensionMedia = buildExtensionMedia;
|
||||
//# sourceMappingURL=extensions.js.map
|
|
@ -4,7 +4,9 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.fetchGithub = exports.fetchUrl = exports.fetchUrls = void 0;
|
||||
exports.fetchUrls = fetchUrls;
|
||||
exports.fetchUrl = fetchUrl;
|
||||
exports.fetchGithub = fetchGithub;
|
||||
const es = require("event-stream");
|
||||
const VinylFile = require("vinyl");
|
||||
const log = require("fancy-log");
|
||||
|
@ -30,7 +32,6 @@ function fetchUrls(urls, options) {
|
|||
});
|
||||
}));
|
||||
}
|
||||
exports.fetchUrls = fetchUrls;
|
||||
async function fetchUrl(url, options, retries = 10, retryDelay = 1000) {
|
||||
const verbose = !!options.verbose ?? (!!process.env['CI'] || !!process.env['BUILD_ARTIFACTSTAGINGDIRECTORY']);
|
||||
try {
|
||||
|
@ -94,7 +95,6 @@ async function fetchUrl(url, options, retries = 10, retryDelay = 1000) {
|
|||
throw e;
|
||||
}
|
||||
}
|
||||
exports.fetchUrl = fetchUrl;
|
||||
const ghApiHeaders = {
|
||||
Accept: 'application/vnd.github.v3+json',
|
||||
'User-Agent': 'VSCode Build',
|
||||
|
@ -135,5 +135,4 @@ function fetchGithub(repo, options) {
|
|||
}
|
||||
}));
|
||||
}
|
||||
exports.fetchGithub = fetchGithub;
|
||||
//# sourceMappingURL=fetch.js.map
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getVersion = void 0;
|
||||
exports.getVersion = getVersion;
|
||||
const git = require("./git");
|
||||
function getVersion(root) {
|
||||
let version = process.env['BUILD_SOURCEVERSION'];
|
||||
|
@ -13,5 +13,4 @@ function getVersion(root) {
|
|||
}
|
||||
return version;
|
||||
}
|
||||
exports.getVersion = getVersion;
|
||||
//# sourceMappingURL=getVersion.js.map
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getVersion = void 0;
|
||||
exports.getVersion = getVersion;
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
@ -51,5 +51,4 @@ function getVersion(repo) {
|
|||
}
|
||||
return refs[ref];
|
||||
}
|
||||
exports.getVersion = getVersion;
|
||||
//# sourceMappingURL=git.js.map
|
|
@ -4,7 +4,14 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.prepareIslFiles = exports.prepareI18nPackFiles = exports.createXlfFilesForIsl = exports.createXlfFilesForExtensions = exports.EXTERNAL_EXTENSIONS = exports.createXlfFilesForCoreBundle = exports.getResource = exports.processNlsFiles = exports.XLF = exports.Line = exports.extraLanguages = exports.defaultLanguages = void 0;
|
||||
exports.EXTERNAL_EXTENSIONS = exports.XLF = exports.Line = exports.extraLanguages = exports.defaultLanguages = void 0;
|
||||
exports.processNlsFiles = processNlsFiles;
|
||||
exports.getResource = getResource;
|
||||
exports.createXlfFilesForCoreBundle = createXlfFilesForCoreBundle;
|
||||
exports.createXlfFilesForExtensions = createXlfFilesForExtensions;
|
||||
exports.createXlfFilesForIsl = createXlfFilesForIsl;
|
||||
exports.prepareI18nPackFiles = prepareI18nPackFiles;
|
||||
exports.prepareIslFiles = prepareIslFiles;
|
||||
const path = require("path");
|
||||
const fs = require("fs");
|
||||
const event_stream_1 = require("event-stream");
|
||||
|
@ -423,7 +430,6 @@ function processNlsFiles(opts) {
|
|||
this.queue(file);
|
||||
});
|
||||
}
|
||||
exports.processNlsFiles = processNlsFiles;
|
||||
const editorProject = 'vscode-editor', workbenchProject = 'vscode-workbench', extensionsProject = 'vscode-extensions', setupProject = 'vscode-setup', serverProject = 'vscode-server';
|
||||
function getResource(sourceFile) {
|
||||
let resource;
|
||||
|
@ -458,7 +464,6 @@ function getResource(sourceFile) {
|
|||
}
|
||||
throw new Error(`Could not identify the XLF bundle for ${sourceFile}`);
|
||||
}
|
||||
exports.getResource = getResource;
|
||||
function createXlfFilesForCoreBundle() {
|
||||
return (0, event_stream_1.through)(function (file) {
|
||||
const basename = path.basename(file.path);
|
||||
|
@ -506,7 +511,6 @@ function createXlfFilesForCoreBundle() {
|
|||
}
|
||||
});
|
||||
}
|
||||
exports.createXlfFilesForCoreBundle = createXlfFilesForCoreBundle;
|
||||
function createL10nBundleForExtension(extensionFolderName, prefixWithBuildFolder) {
|
||||
const prefix = prefixWithBuildFolder ? '.build/' : '';
|
||||
return gulp
|
||||
|
@ -653,7 +657,6 @@ function createXlfFilesForExtensions() {
|
|||
}
|
||||
});
|
||||
}
|
||||
exports.createXlfFilesForExtensions = createXlfFilesForExtensions;
|
||||
function createXlfFilesForIsl() {
|
||||
return (0, event_stream_1.through)(function (file) {
|
||||
let projectName, resourceFile;
|
||||
|
@ -704,7 +707,6 @@ function createXlfFilesForIsl() {
|
|||
this.queue(xlfFile);
|
||||
});
|
||||
}
|
||||
exports.createXlfFilesForIsl = createXlfFilesForIsl;
|
||||
function createI18nFile(name, messages) {
|
||||
const result = Object.create(null);
|
||||
result[''] = [
|
||||
|
@ -793,7 +795,6 @@ function prepareI18nPackFiles(resultingTranslationPaths) {
|
|||
});
|
||||
});
|
||||
}
|
||||
exports.prepareI18nPackFiles = prepareI18nPackFiles;
|
||||
function prepareIslFiles(language, innoSetupConfig) {
|
||||
const parsePromises = [];
|
||||
return (0, event_stream_1.through)(function (xlf) {
|
||||
|
@ -816,7 +817,6 @@ function prepareIslFiles(language, innoSetupConfig) {
|
|||
});
|
||||
});
|
||||
}
|
||||
exports.prepareIslFiles = prepareIslFiles;
|
||||
function createIslFile(name, messages, language, innoSetup) {
|
||||
const content = [];
|
||||
let originalContent;
|
||||
|
|
|
@ -4,7 +4,9 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.execute = exports.run3 = exports.DeclarationResolver = exports.FSProvider = exports.RECIPE_PATH = void 0;
|
||||
exports.DeclarationResolver = exports.FSProvider = exports.RECIPE_PATH = void 0;
|
||||
exports.run3 = run3;
|
||||
exports.execute = execute;
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const fancyLog = require("fancy-log");
|
||||
|
@ -559,7 +561,6 @@ function run3(resolver) {
|
|||
const sourceFileGetter = (moduleId) => resolver.getDeclarationSourceFile(moduleId);
|
||||
return _run(resolver.ts, sourceFileGetter);
|
||||
}
|
||||
exports.run3 = run3;
|
||||
class TypeScriptLanguageServiceHost {
|
||||
_ts;
|
||||
_libs;
|
||||
|
@ -623,5 +624,4 @@ function execute() {
|
|||
}
|
||||
return r;
|
||||
}
|
||||
exports.execute = execute;
|
||||
//# sourceMappingURL=monaco-api.js.map
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.nls = void 0;
|
||||
exports.nls = nls;
|
||||
const lazy = require("lazy.js");
|
||||
const event_stream_1 = require("event-stream");
|
||||
const File = require("vinyl");
|
||||
|
@ -74,7 +74,6 @@ function nls() {
|
|||
}));
|
||||
return (0, event_stream_1.duplex)(input, output);
|
||||
}
|
||||
exports.nls = nls;
|
||||
function isImportNode(ts, node) {
|
||||
return node.kind === ts.SyntaxKind.ImportDeclaration || node.kind === ts.SyntaxKind.ImportEqualsDeclaration;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.minifyTask = exports.optimizeTask = exports.optimizeLoaderTask = exports.loaderConfig = void 0;
|
||||
exports.loaderConfig = loaderConfig;
|
||||
exports.optimizeLoaderTask = optimizeLoaderTask;
|
||||
exports.optimizeTask = optimizeTask;
|
||||
exports.minifyTask = minifyTask;
|
||||
const es = require("event-stream");
|
||||
const gulp = require("gulp");
|
||||
const concat = require("gulp-concat");
|
||||
|
@ -33,7 +36,6 @@ function loaderConfig() {
|
|||
result['vs/css'] = { inlineResources: true };
|
||||
return result;
|
||||
}
|
||||
exports.loaderConfig = loaderConfig;
|
||||
const IS_OUR_COPYRIGHT_REGEXP = /Copyright \(C\) Microsoft Corporation/i;
|
||||
function loaderPlugin(src, base, amdModuleId) {
|
||||
return (gulp
|
||||
|
@ -223,7 +225,6 @@ function optimizeManualTask(options) {
|
|||
function optimizeLoaderTask(src, out, bundleLoader, bundledFileHeader = '', externalLoaderInfo) {
|
||||
return () => loader(src, bundledFileHeader, bundleLoader, externalLoaderInfo).pipe(gulp.dest(out));
|
||||
}
|
||||
exports.optimizeLoaderTask = optimizeLoaderTask;
|
||||
function optimizeTask(opts) {
|
||||
return function () {
|
||||
const optimizers = [optimizeAMDTask(opts.amd)];
|
||||
|
@ -236,7 +237,6 @@ function optimizeTask(opts) {
|
|||
return es.merge(...optimizers).pipe(gulp.dest(opts.out));
|
||||
};
|
||||
}
|
||||
exports.optimizeTask = optimizeTask;
|
||||
function minifyTask(src, sourceMapBaseUrl) {
|
||||
const esbuild = require('esbuild');
|
||||
const sourceMappingURL = sourceMapBaseUrl ? ((f) => `${sourceMapBaseUrl}/${f.relative}.map`) : undefined;
|
||||
|
@ -284,5 +284,4 @@ function minifyTask(src, sourceMapBaseUrl) {
|
|||
}), gulp.dest(src + '-min'), (err) => cb(err));
|
||||
};
|
||||
}
|
||||
exports.minifyTask = minifyTask;
|
||||
//# sourceMappingURL=optimize.js.map
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createReporter = void 0;
|
||||
exports.createReporter = createReporter;
|
||||
const es = require("event-stream");
|
||||
const fancyLog = require("fancy-log");
|
||||
const ansiColors = require("ansi-colors");
|
||||
|
@ -99,5 +99,4 @@ function createReporter(id) {
|
|||
};
|
||||
return result;
|
||||
}
|
||||
exports.createReporter = createReporter;
|
||||
//# sourceMappingURL=reporter.js.map
|
|
@ -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.createESMSourcesAndResources2 = exports.extractEditor = void 0;
|
||||
exports.extractEditor = extractEditor;
|
||||
exports.createESMSourcesAndResources2 = createESMSourcesAndResources2;
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const tss = require("./treeshaking");
|
||||
|
@ -111,7 +112,6 @@ function extractEditor(options) {
|
|||
'vs/nls.mock.ts',
|
||||
].forEach(copyFile);
|
||||
}
|
||||
exports.extractEditor = extractEditor;
|
||||
function createESMSourcesAndResources2(options) {
|
||||
const ts = require('typescript');
|
||||
const SRC_FOLDER = path.join(REPO_ROOT, options.srcFolder);
|
||||
|
@ -251,7 +251,6 @@ function createESMSourcesAndResources2(options) {
|
|||
}
|
||||
}
|
||||
}
|
||||
exports.createESMSourcesAndResources2 = createESMSourcesAndResources2;
|
||||
function transportCSS(module, enqueue, write) {
|
||||
if (!/\.css/.test(module)) {
|
||||
return false;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createStatsStream = void 0;
|
||||
exports.createStatsStream = createStatsStream;
|
||||
const es = require("event-stream");
|
||||
const fancyLog = require("fancy-log");
|
||||
const ansiColors = require("ansi-colors");
|
||||
|
@ -73,5 +73,4 @@ function createStatsStream(group, log) {
|
|||
this.emit('end');
|
||||
});
|
||||
}
|
||||
exports.createStatsStream = createStatsStream;
|
||||
//# sourceMappingURL=stats.js.map
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getVariableNameValidator = void 0;
|
||||
exports.getVariableNameValidator = getVariableNameValidator;
|
||||
const fs_1 = require("fs");
|
||||
const path = require("path");
|
||||
const RE_VAR_PROP = /var\(\s*(--([\w\-\.]+))/g;
|
||||
|
@ -30,5 +30,4 @@ function getVariableNameValidator() {
|
|||
}
|
||||
};
|
||||
}
|
||||
exports.getVariableNameValidator = getVariableNameValidator;
|
||||
//# sourceMappingURL=validateVariableNames.js.map
|
|
@ -4,7 +4,9 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.define = exports.parallel = exports.series = void 0;
|
||||
exports.series = series;
|
||||
exports.parallel = parallel;
|
||||
exports.define = define;
|
||||
const fancyLog = require("fancy-log");
|
||||
const ansiColors = require("ansi-colors");
|
||||
function _isPromise(p) {
|
||||
|
@ -67,7 +69,6 @@ function series(...tasks) {
|
|||
result._tasks = tasks;
|
||||
return result;
|
||||
}
|
||||
exports.series = series;
|
||||
function parallel(...tasks) {
|
||||
const result = async () => {
|
||||
await Promise.all(tasks.map(t => _execute(t)));
|
||||
|
@ -75,7 +76,6 @@ function parallel(...tasks) {
|
|||
result._tasks = tasks;
|
||||
return result;
|
||||
}
|
||||
exports.parallel = parallel;
|
||||
function define(name, task) {
|
||||
if (task._tasks) {
|
||||
// This is a composite task
|
||||
|
@ -94,5 +94,4 @@ function define(name, task) {
|
|||
task.displayName = name;
|
||||
return task;
|
||||
}
|
||||
exports.define = define;
|
||||
//# sourceMappingURL=task.js.map
|
|
@ -4,7 +4,9 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.shake = exports.toStringShakeLevel = exports.ShakeLevel = void 0;
|
||||
exports.ShakeLevel = void 0;
|
||||
exports.toStringShakeLevel = toStringShakeLevel;
|
||||
exports.shake = shake;
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const TYPESCRIPT_LIB_FOLDER = path.dirname(require.resolve('typescript/lib/lib.d.ts'));
|
||||
|
@ -24,7 +26,6 @@ function toStringShakeLevel(shakeLevel) {
|
|||
return 'ClassMembers (2)';
|
||||
}
|
||||
}
|
||||
exports.toStringShakeLevel = toStringShakeLevel;
|
||||
function printDiagnostics(options, diagnostics) {
|
||||
for (const diag of diagnostics) {
|
||||
let result = '';
|
||||
|
@ -61,7 +62,6 @@ function shake(options) {
|
|||
markNodes(ts, languageService, options);
|
||||
return generateResult(ts, languageService, options.shakeLevel);
|
||||
}
|
||||
exports.shake = shake;
|
||||
//#region Discovery, LanguageService & Setup
|
||||
function createTypeScriptLanguageService(ts, options) {
|
||||
// Discover referenced files
|
||||
|
|
|
@ -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.createTypeScriptBuilder = exports.CancellationToken = void 0;
|
||||
exports.CancellationToken = void 0;
|
||||
exports.createTypeScriptBuilder = createTypeScriptBuilder;
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const crypto = require("crypto");
|
||||
|
@ -364,7 +365,6 @@ function createTypeScriptBuilder(config, projectFile, cmd) {
|
|||
languageService: service
|
||||
};
|
||||
}
|
||||
exports.createTypeScriptBuilder = createTypeScriptBuilder;
|
||||
class ScriptSnapshot {
|
||||
_text;
|
||||
_mtime;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.create = void 0;
|
||||
exports.create = create;
|
||||
const Vinyl = require("vinyl");
|
||||
const through = require("through");
|
||||
const builder = require("./builder");
|
||||
|
@ -132,5 +132,4 @@ function create(projectPath, existingOptions, config, onError = _defaultOnError)
|
|||
};
|
||||
return result;
|
||||
}
|
||||
exports.create = create;
|
||||
//# sourceMappingURL=index.js.map
|
|
@ -4,7 +4,29 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.buildWebNodePaths = exports.createExternalLoaderConfig = exports.acquireWebNodePaths = exports.getElectronVersion = exports.streamToPromise = exports.versionStringToNumber = exports.filter = exports.rebase = exports.ensureDir = exports.rreddir = exports.rimraf = exports.rewriteSourceMappingURL = exports.appendOwnPathSourceURL = exports.$if = exports.stripSourceMappingURL = exports.loadSourcemaps = exports.cleanNodeModules = exports.skipDirectories = exports.toFileUri = exports.setExecutableBit = exports.fixWin32DirectoryPermissions = exports.debounce = exports.incremental = void 0;
|
||||
exports.incremental = incremental;
|
||||
exports.debounce = debounce;
|
||||
exports.fixWin32DirectoryPermissions = fixWin32DirectoryPermissions;
|
||||
exports.setExecutableBit = setExecutableBit;
|
||||
exports.toFileUri = toFileUri;
|
||||
exports.skipDirectories = skipDirectories;
|
||||
exports.cleanNodeModules = cleanNodeModules;
|
||||
exports.loadSourcemaps = loadSourcemaps;
|
||||
exports.stripSourceMappingURL = stripSourceMappingURL;
|
||||
exports.$if = $if;
|
||||
exports.appendOwnPathSourceURL = appendOwnPathSourceURL;
|
||||
exports.rewriteSourceMappingURL = rewriteSourceMappingURL;
|
||||
exports.rimraf = rimraf;
|
||||
exports.rreddir = rreddir;
|
||||
exports.ensureDir = ensureDir;
|
||||
exports.rebase = rebase;
|
||||
exports.filter = filter;
|
||||
exports.versionStringToNumber = versionStringToNumber;
|
||||
exports.streamToPromise = streamToPromise;
|
||||
exports.getElectronVersion = getElectronVersion;
|
||||
exports.acquireWebNodePaths = acquireWebNodePaths;
|
||||
exports.createExternalLoaderConfig = createExternalLoaderConfig;
|
||||
exports.buildWebNodePaths = buildWebNodePaths;
|
||||
const es = require("event-stream");
|
||||
const _debounce = require("debounce");
|
||||
const _filter = require("gulp-filter");
|
||||
|
@ -54,7 +76,6 @@ function incremental(streamProvider, initial, supportsCancellation) {
|
|||
});
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.incremental = incremental;
|
||||
function debounce(task, duration = 500) {
|
||||
const input = es.through();
|
||||
const output = es.through();
|
||||
|
@ -83,7 +104,6 @@ function debounce(task, duration = 500) {
|
|||
});
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.debounce = debounce;
|
||||
function fixWin32DirectoryPermissions() {
|
||||
if (!/win32/.test(process.platform)) {
|
||||
return es.through();
|
||||
|
@ -95,7 +115,6 @@ function fixWin32DirectoryPermissions() {
|
|||
return f;
|
||||
});
|
||||
}
|
||||
exports.fixWin32DirectoryPermissions = fixWin32DirectoryPermissions;
|
||||
function setExecutableBit(pattern) {
|
||||
const setBit = es.mapSync(f => {
|
||||
if (!f.stat) {
|
||||
|
@ -115,7 +134,6 @@ function setExecutableBit(pattern) {
|
|||
.pipe(filter.restore);
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.setExecutableBit = setExecutableBit;
|
||||
function toFileUri(filePath) {
|
||||
const match = filePath.match(/^([a-z])\:(.*)$/i);
|
||||
if (match) {
|
||||
|
@ -123,7 +141,6 @@ function toFileUri(filePath) {
|
|||
}
|
||||
return 'file://' + filePath.replace(/\\/g, '/');
|
||||
}
|
||||
exports.toFileUri = toFileUri;
|
||||
function skipDirectories() {
|
||||
return es.mapSync(f => {
|
||||
if (!f.isDirectory()) {
|
||||
|
@ -131,7 +148,6 @@ function skipDirectories() {
|
|||
}
|
||||
});
|
||||
}
|
||||
exports.skipDirectories = skipDirectories;
|
||||
function cleanNodeModules(rulePath) {
|
||||
const rules = fs.readFileSync(rulePath, 'utf8')
|
||||
.split(/\r?\n/g)
|
||||
|
@ -143,7 +159,6 @@ function cleanNodeModules(rulePath) {
|
|||
const output = es.merge(input.pipe(_filter(['**', ...excludes])), input.pipe(_filter(includes)));
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.cleanNodeModules = cleanNodeModules;
|
||||
function loadSourcemaps() {
|
||||
const input = es.through();
|
||||
const output = input
|
||||
|
@ -185,7 +200,6 @@ function loadSourcemaps() {
|
|||
}));
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.loadSourcemaps = loadSourcemaps;
|
||||
function stripSourceMappingURL() {
|
||||
const input = es.through();
|
||||
const output = input
|
||||
|
@ -196,7 +210,6 @@ function stripSourceMappingURL() {
|
|||
}));
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.stripSourceMappingURL = stripSourceMappingURL;
|
||||
/** Splits items in the stream based on the predicate, sending them to onTrue if true, or onFalse otherwise */
|
||||
function $if(test, onTrue, onFalse = es.through()) {
|
||||
if (typeof test === 'boolean') {
|
||||
|
@ -204,7 +217,6 @@ function $if(test, onTrue, onFalse = es.through()) {
|
|||
}
|
||||
return ternaryStream(test, onTrue, onFalse);
|
||||
}
|
||||
exports.$if = $if;
|
||||
/** Operator that appends the js files' original path a sourceURL, so debug locations map */
|
||||
function appendOwnPathSourceURL() {
|
||||
const input = es.through();
|
||||
|
@ -218,7 +230,6 @@ function appendOwnPathSourceURL() {
|
|||
}));
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.appendOwnPathSourceURL = appendOwnPathSourceURL;
|
||||
function rewriteSourceMappingURL(sourceMappingURLBase) {
|
||||
const input = es.through();
|
||||
const output = input
|
||||
|
@ -230,7 +241,6 @@ function rewriteSourceMappingURL(sourceMappingURLBase) {
|
|||
}));
|
||||
return es.duplex(input, output);
|
||||
}
|
||||
exports.rewriteSourceMappingURL = rewriteSourceMappingURL;
|
||||
function rimraf(dir) {
|
||||
const result = () => new Promise((c, e) => {
|
||||
let retries = 0;
|
||||
|
@ -250,7 +260,6 @@ function rimraf(dir) {
|
|||
result.taskName = `clean-${path.basename(dir).toLowerCase()}`;
|
||||
return result;
|
||||
}
|
||||
exports.rimraf = rimraf;
|
||||
function _rreaddir(dirPath, prepend, result) {
|
||||
const entries = fs.readdirSync(dirPath, { withFileTypes: true });
|
||||
for (const entry of entries) {
|
||||
|
@ -267,7 +276,6 @@ function rreddir(dirPath) {
|
|||
_rreaddir(dirPath, '', result);
|
||||
return result;
|
||||
}
|
||||
exports.rreddir = rreddir;
|
||||
function ensureDir(dirPath) {
|
||||
if (fs.existsSync(dirPath)) {
|
||||
return;
|
||||
|
@ -275,14 +283,12 @@ function ensureDir(dirPath) {
|
|||
ensureDir(path.dirname(dirPath));
|
||||
fs.mkdirSync(dirPath);
|
||||
}
|
||||
exports.ensureDir = ensureDir;
|
||||
function rebase(count) {
|
||||
return rename(f => {
|
||||
const parts = f.dirname ? f.dirname.split(/[\/\\]/) : [];
|
||||
f.dirname = parts.slice(count).join(path.sep);
|
||||
});
|
||||
}
|
||||
exports.rebase = rebase;
|
||||
function filter(fn) {
|
||||
const result = es.through(function (data) {
|
||||
if (fn(data)) {
|
||||
|
@ -295,7 +301,6 @@ function filter(fn) {
|
|||
result.restore = es.through();
|
||||
return result;
|
||||
}
|
||||
exports.filter = filter;
|
||||
function versionStringToNumber(versionStr) {
|
||||
const semverRegex = /(\d+)\.(\d+)\.(\d+)/;
|
||||
const match = versionStr.match(semverRegex);
|
||||
|
@ -304,21 +309,18 @@ function versionStringToNumber(versionStr) {
|
|||
}
|
||||
return parseInt(match[1], 10) * 1e4 + parseInt(match[2], 10) * 1e2 + parseInt(match[3], 10);
|
||||
}
|
||||
exports.versionStringToNumber = versionStringToNumber;
|
||||
function streamToPromise(stream) {
|
||||
return new Promise((c, e) => {
|
||||
stream.on('error', err => e(err));
|
||||
stream.on('end', () => c());
|
||||
});
|
||||
}
|
||||
exports.streamToPromise = streamToPromise;
|
||||
function getElectronVersion() {
|
||||
const yarnrc = fs.readFileSync(path.join(root, '.yarnrc'), 'utf8');
|
||||
const electronVersion = /^target "(.*)"$/m.exec(yarnrc)[1];
|
||||
const msBuildId = /^ms_build_id "(.*)"$/m.exec(yarnrc)[1];
|
||||
return { electronVersion, msBuildId };
|
||||
}
|
||||
exports.getElectronVersion = getElectronVersion;
|
||||
function acquireWebNodePaths() {
|
||||
const root = path.join(__dirname, '..', '..');
|
||||
const webPackageJSON = path.join(root, '/remote/web', 'package.json');
|
||||
|
@ -367,7 +369,6 @@ function acquireWebNodePaths() {
|
|||
nodePaths['@microsoft/applicationinsights-core-js'] = 'browser/applicationinsights-core-js.min.js';
|
||||
return nodePaths;
|
||||
}
|
||||
exports.acquireWebNodePaths = acquireWebNodePaths;
|
||||
function createExternalLoaderConfig(webEndpoint, commit, quality) {
|
||||
if (!webEndpoint || !commit || !quality) {
|
||||
return undefined;
|
||||
|
@ -384,7 +385,6 @@ function createExternalLoaderConfig(webEndpoint, commit, quality) {
|
|||
};
|
||||
return externalLoaderConfig;
|
||||
}
|
||||
exports.createExternalLoaderConfig = createExternalLoaderConfig;
|
||||
function buildWebNodePaths(outDir) {
|
||||
const result = () => new Promise((resolve, _) => {
|
||||
const root = path.join(__dirname, '..', '..');
|
||||
|
@ -405,5 +405,4 @@ function buildWebNodePaths(outDir) {
|
|||
result.taskName = 'build-web-node-paths';
|
||||
return result;
|
||||
}
|
||||
exports.buildWebNodePaths = buildWebNodePaths;
|
||||
//# sourceMappingURL=util.js.map
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.generatePackageDeps = void 0;
|
||||
exports.generatePackageDeps = generatePackageDeps;
|
||||
const child_process_1 = require("child_process");
|
||||
const fs_1 = require("fs");
|
||||
const os_1 = require("os");
|
||||
|
@ -17,7 +17,6 @@ function generatePackageDeps(files, arch, chromiumSysroot, vscodeSysroot) {
|
|||
dependencies.push(additionalDepsSet);
|
||||
return dependencies;
|
||||
}
|
||||
exports.generatePackageDeps = generatePackageDeps;
|
||||
// Based on https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/debian/calculate_package_deps.py.
|
||||
function calculatePackageDeps(binaryPath, arch, chromiumSysroot, vscodeSysroot) {
|
||||
try {
|
||||
|
|
|
@ -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
|
|
@ -4,9 +4,8 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isDebianArchString = void 0;
|
||||
exports.isDebianArchString = isDebianArchString;
|
||||
function isDebianArchString(s) {
|
||||
return ['amd64', 'armhf', 'arm64'].includes(s);
|
||||
}
|
||||
exports.isDebianArchString = isDebianArchString;
|
||||
//# sourceMappingURL=types.js.map
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getDependencies = void 0;
|
||||
exports.getDependencies = getDependencies;
|
||||
const child_process_1 = require("child_process");
|
||||
const path = require("path");
|
||||
const install_sysroot_1 = require("./debian/install-sysroot");
|
||||
|
@ -92,7 +92,6 @@ async function getDependencies(packageType, buildDir, applicationName, arch) {
|
|||
}
|
||||
return sortedDependencies;
|
||||
}
|
||||
exports.getDependencies = getDependencies;
|
||||
// Based on https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/rpm/merge_package_deps.py.
|
||||
function mergePackageDeps(inputDeps) {
|
||||
const requires = new Set();
|
||||
|
|
|
@ -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.downloadLibcxxObjects = exports.downloadLibcxxHeaders = void 0;
|
||||
exports.downloadLibcxxHeaders = downloadLibcxxHeaders;
|
||||
exports.downloadLibcxxObjects = downloadLibcxxObjects;
|
||||
// Can be removed once https://github.com/electron/electron-rebuild/pull/703 is available.
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
@ -29,7 +30,6 @@ async function downloadLibcxxHeaders(outDir, electronVersion, lib_name) {
|
|||
d(`unpacking ${lib_name}_headers from ${headers}`);
|
||||
await extract(headers, { dir: outDir });
|
||||
}
|
||||
exports.downloadLibcxxHeaders = downloadLibcxxHeaders;
|
||||
async function downloadLibcxxObjects(outDir, electronVersion, targetArch = 'x64') {
|
||||
if (await fs.existsSync(path.resolve(outDir, 'libc++.a'))) {
|
||||
return;
|
||||
|
@ -47,7 +47,6 @@ async function downloadLibcxxObjects(outDir, electronVersion, targetArch = 'x64'
|
|||
d(`unpacking libcxx-objects from ${objects}`);
|
||||
await extract(objects, { dir: outDir });
|
||||
}
|
||||
exports.downloadLibcxxObjects = downloadLibcxxObjects;
|
||||
async function main() {
|
||||
const libcxxObjectsDirPath = process.env['VSCODE_LIBCXX_OBJECTS_DIR'];
|
||||
const libcxxHeadersDownloadDir = process.env['VSCODE_LIBCXX_HEADERS_DIR'];
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.generatePackageDeps = void 0;
|
||||
exports.generatePackageDeps = generatePackageDeps;
|
||||
const child_process_1 = require("child_process");
|
||||
const fs_1 = require("fs");
|
||||
const dep_lists_1 = require("./dep-lists");
|
||||
|
@ -14,7 +14,6 @@ function generatePackageDeps(files) {
|
|||
dependencies.push(additionalDepsSet);
|
||||
return dependencies;
|
||||
}
|
||||
exports.generatePackageDeps = generatePackageDeps;
|
||||
// Based on https://source.chromium.org/chromium/chromium/src/+/main:chrome/installer/linux/rpm/calculate_package_deps.py.
|
||||
function calculatePackageDeps(binaryPath) {
|
||||
try {
|
||||
|
|
|
@ -4,9 +4,8 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isRpmArchString = void 0;
|
||||
exports.isRpmArchString = isRpmArchString;
|
||||
function isRpmArchString(s) {
|
||||
return ['x86_64', 'armv7hl', 'aarch64'].includes(s);
|
||||
}
|
||||
exports.isRpmArchString = isRpmArchString;
|
||||
//# sourceMappingURL=types.js.map
|
|
@ -4,7 +4,7 @@
|
|||
*--------------------------------------------------------------------------------------------*/
|
||||
'use strict';
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.downloadExplorerAppx = void 0;
|
||||
exports.downloadExplorerAppx = downloadExplorerAppx;
|
||||
const fs = require("fs");
|
||||
const debug = require("debug");
|
||||
const extract = require("extract-zip");
|
||||
|
@ -36,7 +36,6 @@ async function downloadExplorerAppx(outDir, quality = 'stable', targetArch = 'x6
|
|||
d(`unpacking from ${fileName}`);
|
||||
await extract(artifact, { dir: fs.realpathSync(outDir) });
|
||||
}
|
||||
exports.downloadExplorerAppx = downloadExplorerAppx;
|
||||
async function main(outputDir) {
|
||||
const arch = process.env['VSCODE_ARCH'];
|
||||
if (!outputDir) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
import * as ts from 'typescript/lib/tsserverlibrary';
|
||||
import type ts from '../../../../node_modules/typescript/lib/typescript';
|
||||
export = ts.server.protocol;
|
||||
|
||||
|
||||
|
@ -11,7 +11,7 @@ declare enum ServerType {
|
|||
Semantic = 'semantic',
|
||||
}
|
||||
|
||||
declare module 'typescript/lib/tsserverlibrary' {
|
||||
declare module '../../../../node_modules/typescript/lib/typescript' {
|
||||
namespace server.protocol {
|
||||
type TextInsertion = ts.TextInsertion;
|
||||
type ScriptElementKind = ts.ScriptElementKind;
|
||||
|
|
|
@ -209,7 +209,7 @@
|
|||
"ts-loader": "^9.4.2",
|
||||
"ts-node": "^10.9.1",
|
||||
"tsec": "0.2.7",
|
||||
"typescript": "^5.5.0-dev.20240226",
|
||||
"typescript": "^5.5.0-dev.20240307",
|
||||
"typescript-formatter": "7.1.0",
|
||||
"util": "^0.12.4",
|
||||
"vscode-nls-dev": "^3.3.1",
|
||||
|
|
|
@ -9643,10 +9643,10 @@ typescript@^4.7.4:
|
|||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
|
||||
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==
|
||||
|
||||
typescript@^5.5.0-dev.20240226:
|
||||
version "5.5.0-dev.20240226"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-dev.20240226.tgz#b571688666f07e4d7db4c9863f3ee1401e161a7a"
|
||||
integrity sha512-mLY9/pjzSCr7JLkMKHS3KQUKX+LPO9WWjiR+mRcWKcskSdMBZ0j1TPhk/zUyuBklOf3YX4orkvamNiZWZEK0CQ==
|
||||
typescript@^5.5.0-dev.20240307:
|
||||
version "5.5.0-dev.20240307"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-dev.20240307.tgz#dcd10b4a4d5a274f40cdfa91c75ae7a940ade469"
|
||||
integrity sha512-9QgBAVHg1keeajSXIqq1ngFy3yTA0um5YWoLNVSfPtIwqqYoVqRjmh4oJKJL4YM15C2HY8IXL/UEUBIjXm/tjg==
|
||||
|
||||
typical@^4.0.0:
|
||||
version "4.0.0"
|
||||
|
|
Loading…
Reference in New Issue