mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
Cleanup distro dependencies installation (#76893)
* depend directly on vsda * add vsda to remote * remove vsda cleanup rules * update distro * upgrade vsda * update distro * update vsda * remove vsda * add vsda rules * distro * distro
This commit is contained in:
@@ -311,19 +311,6 @@ function packageTask(platform, arch, sourceFolderName, destinationFolderName, op
|
||||
|
||||
const dependenciesSrc = _.flatten(productionDependencies.map(d => path.relative(root, d.path)).map(d => [`${d}/**`, `!${d}/**/{test,tests}/**`]));
|
||||
|
||||
// Collect distro dependencies, if any
|
||||
if (quality) {
|
||||
const qualityPackagePath = path.join(root, 'quality', quality, 'package.json');
|
||||
|
||||
if (fs.existsSync(qualityPackagePath)) {
|
||||
const pkg = JSON.parse(fs.readFileSync(qualityPackagePath, 'utf8'));
|
||||
|
||||
// @ts-ignore JSON checking: dependencies is optional
|
||||
const distroDependencies = _.flatten(Object.keys(pkg.dependencies || {}).map(d => [`node_modules/${d}/**`, `!node_modules/${d}/**/{test,tests}/**`]));
|
||||
dependenciesSrc.push(...distroDependencies);
|
||||
}
|
||||
}
|
||||
|
||||
const deps = gulp.src(dependenciesSrc, { base: '.', dot: true })
|
||||
.pipe(filter(['**', '!**/package-lock.json']))
|
||||
.pipe(util.cleanNodeModules(path.join(__dirname, '.nativeignore')))
|
||||
|
||||
Reference in New Issue
Block a user