diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js index 5b878e382c3a81ec16e06e5d61f7b4eb034794d5..207eee30393773fd915cd2cba08cc0d501bb0e1f 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' + }); +});