|
|
@ -46207,8 +46207,11 @@ exports.supportedPackageManagers = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
exports.getCommandOutput = (toolCommand) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
|
exports.getCommandOutput = (toolCommand) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
|
const { stdout, stderr, exitCode } = yield exec.getExecOutput(toolCommand);
|
|
|
|
let { stdout, stderr, exitCode } = yield exec.getExecOutput(toolCommand, undefined, { ignoreReturnCode: true });
|
|
|
|
if (stderr) {
|
|
|
|
if (exitCode) {
|
|
|
|
|
|
|
|
stderr = !stderr.trim()
|
|
|
|
|
|
|
|
? `The '${toolCommand}' command failed with exit code: ${exitCode}`
|
|
|
|
|
|
|
|
: stderr;
|
|
|
|
throw new Error(stderr);
|
|
|
|
throw new Error(stderr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return stdout.trim();
|
|
|
|
return stdout.trim();
|
|
|
|