improve postinstall

This commit is contained in:
Joao Moreno 2016-04-21 16:01:37 +02:00
parent 44c3957d45
commit 18db994bf7

View file

@ -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'
});
});