This commit is contained in:
2022-09-30 05:39:11 +00:00
parent 41ee9463ae
commit 4687fa49bc
11418 changed files with 1312504 additions and 0 deletions

View File

@ -0,0 +1,18 @@
import { Arch } from "builder-util";
import { Hash } from "crypto";
export interface BuildCacheInfo {
executableDigest: string;
}
export declare class BuildCacheManager {
private readonly executableFile;
static VERSION: string;
readonly cacheDir: string;
readonly cacheInfoFile: string;
readonly cacheFile: string;
cacheInfo: BuildCacheInfo | null;
private newDigest;
constructor(outDir: string, executableFile: string, arch: Arch);
copyIfValid(digest: string): Promise<boolean>;
save(): Promise<void>;
}
export declare function digest(hash: Hash, files: Array<string>): Promise<string>;