Skip to main content

Function: buildCleanupMap()

buildCleanupMap(schema): ReadonlyMap<string, readonly PreHashCleanup[]>

Defined in: packages/core/src/application/use-cases/_shared/compute-artifact-hash.ts:34

Builds a map of artifact type ID to pre-hash cleanup rules from a schema.

Only artifact types that declare at least one cleanup rule are included.

Parameters

schema

Schema

The resolved schema

Returns

ReadonlyMap<string, readonly PreHashCleanup[]>

Map of artifact type ID to cleanup rules