@vscode/vsce 2.21.0 → 2.21.1

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 -5
  2. package/package.json +1 -1
package/out/package.js CHANGED
@@ -229,15 +229,15 @@ async function versionBump(options) {
229
229
  return Promise.reject(`Invalid version ${options.version}`);
230
230
  }
231
231
  }
232
- let command = `npm version ${options.version}`; // CodeQL [SM03609] options.version is checked above.
232
+ // call `npm version` to do our dirty work
233
+ const args = ['version', options.version];
233
234
  if (options.commitMessage) {
234
- command = `${command} -m "${options.commitMessage}"`;
235
+ args.push('-m', options.commitMessage);
235
236
  }
236
237
  if (!(options.gitTagVersion ?? true)) {
237
- command = `${command} --no-git-tag-version`;
238
+ args.push('--no-git-tag-version');
238
239
  }
239
- // call `npm version` to do our dirty work
240
- const { stdout, stderr } = await (0, util_1.promisify)(cp.exec)(command, { cwd });
240
+ const { stdout, stderr } = await (0, util_1.promisify)(cp.execFile)(process.platform === 'win32' ? 'npm.cmd' : 'npm', args, { cwd });
241
241
  if (!process.env['VSCE_TESTS']) {
242
242
  process.stdout.write(stdout);
243
243
  process.stderr.write(stderr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "2.21.0",
3
+ "version": "2.21.1",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",