@vscode/vsce 2.21.0 → 2.22.0

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.
package/README.md CHANGED
@@ -72,7 +72,7 @@ Or you can also set them in the `package.json`, so that you avoid having to rety
72
72
  // package.json
73
73
  {
74
74
  "vsce": {
75
- "baseImagesUrl": "https://my.custom/base/images/url"
75
+ "baseImagesUrl": "https://my.custom/base/images/url",
76
76
  "dependencies": true,
77
77
  "yarn": false
78
78
  }
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);
@@ -246,7 +246,6 @@ async function versionBump(options) {
246
246
  exports.versionBump = versionBump;
247
247
  exports.Targets = new Set([
248
248
  'win32-x64',
249
- 'win32-ia32',
250
249
  'win32-arm64',
251
250
  'linux-x64',
252
251
  'linux-arm64',
package/out/validation.js CHANGED
@@ -112,7 +112,7 @@ function validateVSCodeTypesCompatibility(engineVersion, typeVersion) {
112
112
  return 0;
113
113
  }
114
114
  });
115
- const error = new Error(`@types/vscode ${typeVersion} greater than engines.vscode ${engineVersion}. Consider upgrade engines.vscode or use an older @types/vscode version`);
115
+ const error = new Error(`@types/vscode ${typeVersion} greater than engines.vscode ${engineVersion}. Either upgrade engines.vscode or use an older @types/vscode version`);
116
116
  if (typeMajor > engineMajor) {
117
117
  throw error;
118
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/vsce",
3
- "version": "2.21.0",
3
+ "version": "2.22.0",
4
4
  "description": "VS Code Extensions Manager",
5
5
  "repository": {
6
6
  "type": "git",