mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
postinstall: remove hardcoded extension list
This commit is contained in:
@@ -22,29 +22,15 @@ function yarnInstall(location, opts) {
|
||||
|
||||
yarnInstall('extensions'); // node modules shared by all extensions
|
||||
|
||||
const extensions = [
|
||||
'vscode-api-tests',
|
||||
'vscode-colorize-tests',
|
||||
'json',
|
||||
'configuration-editing',
|
||||
'extension-editing',
|
||||
'markdown',
|
||||
'markdown-basics',
|
||||
'typescript',
|
||||
'typescript-basics',
|
||||
'php',
|
||||
'javascript',
|
||||
'css',
|
||||
'html',
|
||||
'git',
|
||||
'gulp',
|
||||
'grunt',
|
||||
'jake',
|
||||
'merge-conflict',
|
||||
'emmet',
|
||||
'npm',
|
||||
'jake'
|
||||
];
|
||||
const allExtensionFolders = fs.readdirSync('extensions');
|
||||
const extensions = allExtensionFolders.filter(e => {
|
||||
try {
|
||||
let packageJSON = JSON.parse(fs.readFileSync(path.join('extensions', e, 'package.json')).toString());
|
||||
return packageJSON && (packageJSON.dependencies || packageJSON.devDependencies);
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
extensions.forEach(extension => yarnInstall(`extensions/${extension}`));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user