fix: removed extra corepack commands

This commit is contained in:
Jacob Parish 2025-03-25 10:02:05 -05:00
parent 4c2fa5a76f
commit 108e90108c
6 changed files with 2 additions and 50 deletions

6
dist/setup/index.js vendored
View file

@ -98019,13 +98019,7 @@ exports.unique = unique;
function enableCorepack(input) {
return __awaiter(this, void 0, void 0, function* () {
if (input.length && input !== 'false') {
const corepackArgs = ['enable'];
if (input !== 'true') {
const packageManagers = input.split(' ');
corepackArgs.push(...packageManagers);
}
yield (0, cache_utils_1.getCommandOutput)('npm i -g corepack');
yield (0, cache_utils_1.getCommandOutput)(`corepack ${corepackArgs.join(' ')}`);
}
});
}