Skip to content

LockFile

@aurorajs.dev/catalyst-cli


@aurorajs.dev/catalyst-cli / generator/domain/model / LockFile

Defined in: generator/domain/model.ts:340

Entry persisted in cliter/<bc>/.locks/<scope>/<module>.lock.json.

Records the integrity hash of a generated file so subsequent regenerations can tell whether the user edited it. The optional regions map enables per-preservation-region hashing — see the lock-file.ts utilities.

integrity: string

Defined in: generator/domain/model.ts:342

SHA-1 hash of the skeleton (body of preservation regions excluded), prefixed with sha1:.


path: string

Defined in: generator/domain/model.ts:344

Relative path of the file, using POSIX separators.


optional regions?: Record<string, string>

Defined in: generator/domain/model.ts:351

Map of preservation region name → SHA-1 of the normalized body the template produced on the previous generation. Absence means the entry predates preservation-regions support; the merge falls back to preserving all region bodies to stay safe.