@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.
- package/out/package.js +5 -5
- 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
|
-
|
|
232
|
+
// call `npm version` to do our dirty work
|
|
233
|
+
const args = ['version', options.version];
|
|
233
234
|
if (options.commitMessage) {
|
|
234
|
-
|
|
235
|
+
args.push('-m', options.commitMessage);
|
|
235
236
|
}
|
|
236
237
|
if (!(options.gitTagVersion ?? true)) {
|
|
237
|
-
|
|
238
|
+
args.push('--no-git-tag-version');
|
|
238
239
|
}
|
|
239
|
-
|
|
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);
|