Files
renovate/lib/util/cache/repository/common.ts
2024-11-19 10:16:38 +00:00

14 lines
399 B
TypeScript

import upath from 'upath';
// Increment this whenever there could be incompatibilities between old and new cache structure
export const CACHE_REVISION = 13;
export function getLocalCacheFileName(
platform: string,
repository: string,
): string {
const repoCachePath = 'renovate/repository/';
const fileName = `${repository}.json`;
return upath.join(repoCachePath, platform, fileName);
}