computeCacheHash
Compute a hash of every input that decides the generated pages: the generator’s own modules, the settings and the entry source files. An unchanged hash lets a run skip the generation.
Import:
import { computeCacheHash } from '@mnaoumov/typescript-dev-toolkit/docs-site/api-doc-source-processing';Signature:
function computeCacheHash(entryFiles: string[], generatorDirectory: string): stringParameters:
| Parameter | Type | Description |
|---|---|---|
entryFiles |
string[] | The entry source files. |
generatorDirectory |
string | The folder holding the generator’s modules. |
Returns: string — The hash, as hex.