feat: support cache type bun

Signed-off-by: Jan van den Berg <koozz@linux.com>
This commit is contained in:
Jan van den Berg 2024-05-07 09:55:22 +02:00
parent c2ac33f2c6
commit 79cae9176d
No known key found for this signature in database
7 changed files with 842 additions and 810 deletions

View file

@ -83594,6 +83594,11 @@ exports.supportedPackageManagers = {
}
return stdOut;
})
},
bun: {
name: 'bun',
lockFilePatterns: ['bun.lockb'],
getCacheFolderPath: () => (0, exports.getCommandOutputNotEmpty)('bun pm cache', 'Could not get bun cache folder path')
}
};
const getCommandOutput = (toolCommand, cwd) => __awaiter(void 0, void 0, void 0, function* () {
@ -83625,6 +83630,9 @@ const getPackageManagerInfo = (packageManager) => __awaiter(void 0, void 0, void
else if (packageManager === 'yarn') {
return exports.supportedPackageManagers.yarn;
}
else if (packageManager === 'bun') {
return exports.supportedPackageManagers.bun;
}
else {
return null;
}
@ -83792,6 +83800,7 @@ var LockType;
LockType["Npm"] = "npm";
LockType["Pnpm"] = "pnpm";
LockType["Yarn"] = "yarn";
LockType["Bun"] = "bun";
})(LockType || (exports.LockType = LockType = {}));
var State;
(function (State) {