Skip to content

readPackageManifestMembers

readPackageManifestMembers(xmlContent, typeName): string[]

Defined in: packages/simply-core/src/metadata/packageManifest.ts:45

Read the <members> of a <types> block matching typeName out of a package.xml/ destructiveChanges.xml-shaped document.

Both files share the same <Package><types><name/><members/></types></Package> shape, and fast-xml-parser collapses a single <types> or <members> element to a bare object/string rather than a one-element array — normalized here the same way customMetadataXml.ts’s extractValues normalizes the analogous <values> shape for CustomMetadata XML.

string

The manifest file’s raw XML text.

string

The <name> to look up (e.g. 'Flow', 'PermissionSet').

string[]

The matching type’s members, or [] if typeName isn’t present in the file at all — matching how a destructive-changes-driven caller treats “nothing of this type” as a no-op, not an error.