mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-16 16:51:11 +00:00
feat: support cache type bun
Signed-off-by: Jan van den Berg <koozz@linux.com>
This commit is contained in:
parent
c2ac33f2c6
commit
79cae9176d
7 changed files with 842 additions and 810 deletions
9
dist/cache-save/index.js
vendored
9
dist/cache-save/index.js
vendored
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue