mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
esm - remove AMD build scripts, tests and variables
This commit is contained in:
@@ -15,7 +15,6 @@ import { referenceGeneratedDepsByArch as rpmGeneratedDeps } from './rpm/dep-list
|
||||
import { DebianArchString, isDebianArchString } from './debian/types';
|
||||
import { isRpmArchString, RpmArchString } from './rpm/types';
|
||||
import product = require('../../product.json');
|
||||
import { isAMD } from '../lib/amd';
|
||||
|
||||
// A flag that can easily be toggled.
|
||||
// Make sure to compile the build directory after toggling the value.
|
||||
@@ -48,7 +47,7 @@ export async function getDependencies(packageType: 'deb' | 'rpm', buildDir: stri
|
||||
}
|
||||
|
||||
// Get the files for which we want to find dependencies.
|
||||
const canAsar = 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 = spawnSync('find', [nativeModulesPath, '-name', '*.node']);
|
||||
if (findResult.status) {
|
||||
|
||||
Reference in New Issue
Block a user