|
|
@ -3946,10 +3946,10 @@ exports.getCommandOutput = (toolCommand) => __awaiter(void 0, void 0, void 0, fu
|
|
|
|
return stdout.trim();
|
|
|
|
return stdout.trim();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
exports.getPackageManagerInfo = (packageManager) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
|
exports.getPackageManagerInfo = (packageManager) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
|
if (!exports.supportedPackageManagers.packageManager) {
|
|
|
|
if (!exports.supportedPackageManagers[packageManager]) {
|
|
|
|
throw new Error(`It's not possible to use ${packageManager}, please, check correctness of the package manager name spelling.`);
|
|
|
|
throw new Error(`It's not possible to use ${packageManager}, please, check correctness of the package manager name spelling.`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return exports.supportedPackageManagers.packageManager;
|
|
|
|
return exports.supportedPackageManagers[packageManager];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
exports.getCacheDirectoryPath = (packageManagerInfo) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
|
exports.getCacheDirectoryPath = (packageManagerInfo) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
|
const stdout = yield exports.getCommandOutput(packageManagerInfo.getCacheFolderCommand);
|
|
|
|
const stdout = yield exports.getCommandOutput(packageManagerInfo.getCacheFolderCommand);
|
|
|
|