@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
17 lines • 646 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformLegacyJobCache = void 0;
const utils_1 = require("../../utils");
function transformLegacyJobCache(jobCache) {
return (0, utils_1.ensureArray)(jobCache).map((cache) => {
var _a, _b;
return ({
pathMode: "absolute",
...cache,
key: (_a = cache.key) !== null && _a !== void 0 ? _a : "default",
paths: (_b = cache.paths) !== null && _b !== void 0 ? _b : [],
});
});
}
exports.transformLegacyJobCache = transformLegacyJobCache;
//# sourceMappingURL=transformLegacyJobCache.js.map