@vscode/vsce 3.6.1-4 → 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.
- package/out/package.js +5 -3
- 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
|
-
|
|
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
|
-
|
|
1378
|
-
const child = cp.spawn(
|
|
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
|
});
|