提交 d5156891 编写于 作者: J Joao Moreno

fix npm call in postinstall

上级 d9d6f262
......@@ -4,6 +4,7 @@
*--------------------------------------------------------------------------------------------*/
const cp = require('child_process');
const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
const extensions = [
'vscode-api-tests',
......@@ -15,7 +16,7 @@ const extensions = [
];
extensions.forEach(extension => {
cp.spawnSync('npm', ['install'], {
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.
先完成此消息的编辑!
想要评论请 注册