Saltearse al contenido

MergeResult

@aurorajs.dev/catalyst-cli


@aurorajs.dev/catalyst-cli / generator/engine/lock-file / MergeResult

Defined in: generator/engine/lock-file.ts:205

Outcome of mergePreservationRegions.

The three name arrays are disjoint and together describe what happened to every region present in either input. Useful for emitting per-region log lines ([REGION UPDATED], [REGION PRESERVED], [REGION DROPPED]).

content: string

Defined in: generator/engine/lock-file.ts:207

The merged file contents, ready to be written to disk.


dropped: string[]

Defined in: generator/engine/lock-file.ts:209

Regions present in existingContent but not in newContent. Their body was lost.


preserved: string[]

Defined in: generator/engine/lock-file.ts:211

Regions kept byte-for-byte from existingContent because the user had modified them.


updated: string[]

Defined in: generator/engine/lock-file.ts:213

Regions whose body was refreshed from newContent because priorHashes indicated no user edits.