From 18db994bf72d7759ed6fae71d1a32e1bc1a8f6f5 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Thu, 21 Apr 2016 16:01:37 +0200 Subject: [PATCH] improve postinstall --- build/npm/postinstall.js | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js index 5b878e382c3..207eee30393 100644 --- a/build/npm/postinstall.js +++ b/build/npm/postinstall.js @@ -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' + }); +}); -- GitLab