@vscode/vsce 3.6.1-3 → 3.6.1-5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/out/package.js +5 -3
  2. package/package.json +1 -1
package/out/package.js CHANGED
@@ -1372,10 +1372,12 @@ async function prepublish(cwd, manifest, useYarn) {
1372
1372
  if (useYarn === undefined) {
1373
1373
  useYarn = await (0, npm_1.detectYarn)(cwd);
1374
1374
  }
1375
- console.log(`Executing prepublish script '${useYarn ? 'yarn' : 'npm'} run vscode:prepublish'...`);
1375
+ const tool = useYarn ? 'yarn' : 'npm';
1376
+ const prepublish = `${tool} run vscode:prepublish`;
1377
+ console.log(`Executing prepublish script '${prepublish}'...`);
1376
1378
  await new Promise((c, e) => {
1377
- const tool = useYarn ? 'yarn' : 'npm';
1378
- const child = cp.spawn(tool, ['run', 'vscode:prepublish'], { cwd, shell: true, stdio: 'inherit' });
1379
+ // Use string command to avoid Node.js DEP0190 warning (args + shell: true is deprecated).
1380
+ const child = cp.spawn(prepublish, { cwd, shell: true, stdio: 'inherit' });
1379
1381
  child.on('exit', code => (code === 0 ? c() : e(`${tool} failed with exit code ${code}`)));
1380
1382
  child.on('error', e);
1381
1383
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "3.6.1-3",
3
+ "version": "3.6.1-5",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",