Skip to content

scanLocalFieldSetInclusions

scanLocalFieldSetInclusions(sourceDirs): FieldSetInclusionLocalScanResult

Defined in: packages/simply-aep-core/src/at4dxFieldSetInclusionLocalScan.ts:106

Scan local Salesforce DX source directories for AT4DX SelectorConfig_FieldSetInclusion__mdt records, parsing each CustomMetadata component’s <values> pairs directly — the same approach at4dxLocalScan.ts/at4dxDomainProcessLocalScan.ts use.

Unlike an org (see at4dxFieldSetInclusionOrgScan.ts), local source gives no signal for “this Custom Metadata Type doesn’t exist” independent of “zero records exist for it” — a missing customMetadata folder and an empty one look identical to ComponentSet.fromSource. Callers treat an empty result as “AT4DX isn’t configured here.”

string[]

The source directories to scan.

FieldSetInclusionLocalScanResult

The discovered records, plus the malformed/ambiguous diagnostics validateFieldSetInclusions consumes.