mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 16:18:58 +01:00
esm - remove AMD build scripts, tests and variables
This commit is contained in:
@@ -15,7 +15,6 @@ const dep_lists_2 = require("./rpm/dep-lists");
|
||||
const types_1 = require("./debian/types");
|
||||
const types_2 = require("./rpm/types");
|
||||
const product = require("../../product.json");
|
||||
const amd_1 = require("../lib/amd");
|
||||
// A flag that can easily be toggled.
|
||||
// Make sure to compile the build directory after toggling the value.
|
||||
// If false, we warn about new dependencies if they show up
|
||||
@@ -44,7 +43,7 @@ async function getDependencies(packageType, buildDir, applicationName, arch) {
|
||||
throw new Error('Invalid RPM arch string ' + arch);
|
||||
}
|
||||
// Get the files for which we want to find dependencies.
|
||||
const canAsar = (0, amd_1.isAMD)(); // TODO@esm ASAR disabled in ESM
|
||||
const canAsar = false; // TODO@esm ASAR disabled in ESM
|
||||
const nativeModulesPath = path.join(buildDir, 'resources', 'app', canAsar ? 'node_modules.asar.unpacked' : 'node_modules');
|
||||
const findResult = (0, child_process_1.spawnSync)('find', [nativeModulesPath, '-name', '*.node']);
|
||||
if (findResult.status) {
|
||||
|
||||
Reference in New Issue
Block a user