mirror of
https://github.com/Microsoft/vscode
synced 2024-07-17 02:57:19 +00:00
fix npm call in postinstall
This commit is contained in:
parent
d9d6f262be
commit
d51568910d
|
@ -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'
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue