Skip to content

@pumpkin-plugins/static-hermes-runtime API / hermes/build / isHermesBuildCacheCurrent

Function: isHermesBuildCacheCurrent() ​

isHermesBuildCacheCurrent(fingerprint, statePath, artifacts, filesystem?): boolean

Defined in: hermes/build.ts:269

Test an acquired cache fingerprint and all required non-empty output artifacts.

Parameters ​

fingerprint ​

string

Expected fingerprint for the current build inputs.

statePath ​

string

Build-state JSON file containing the cached fingerprint.

artifacts ​

readonly string[]

Required compiler and archive output paths.

filesystem? ​

HermesFileSystem = hermesFileSystem

Filesystem implementation used to inspect the state and artifacts.

Returns ​

boolean

true only when the cache record matches and every artifact exists with non-zero size.

pumpkin-plugins documentation