提交 18db994b 编写于 作者: J Joao Moreno

improve postinstall

上级 44c3957d
......@@ -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 + '/');
});
\ No newline at end of file
extensions.forEach(extension => {
cp.spawnSync('npm', ['install'], {
cwd: `extensions/${ extension }`,
stdio: 'inherit'
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册