mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
improve postinstall
This commit is contained in:
parent
44c3957d45
commit
18db994bf7
|
@ -3,10 +3,20 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
var cp = require('child_process');
|
||||
const cp = require('child_process');
|
||||
|
||||
var extensions = ['vscode-api-tests', 'vscode-colorize-tests', 'json', 'typescript', 'php', 'javascript'];
|
||||
const extensions = [
|
||||
'vscode-api-tests',
|
||||
'vscode-colorize-tests',
|
||||
'json',
|
||||
'typescript',
|
||||
'php',
|
||||
'javascript'
|
||||
];
|
||||
|
||||
extensions.forEach(function (extension) {
|
||||
cp.execSync('npm --prefix extensions/' + extension + '/ install extensions/' + extension + '/');
|
||||
});
|
||||
extensions.forEach(extension => {
|
||||
cp.spawnSync('npm', ['install'], {
|
||||
cwd: `extensions/${ extension }`,
|
||||
stdio: 'inherit'
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue