sf-package-list
Version:
Convert Salesforce package.xml manifests to and from plain-text list format.
16 lines (15 loc) • 560 B
TypeScript
export type ParsedManifestType = {
name: string;
members: string[];
};
export type ParsedManifest = {
types: ParsedManifestType[];
version: string | null;
};
/**
* Parses a package.xml manifest's raw text into its types/members/version.
* Validates only that the document follows the Metadata API manifest structure
* (a single <Package> root containing <types>/<version> elements) -- metadata
* type names are not checked against the Salesforce metadata registry.
*/
export declare function parseManifestXml(xml: string): ParsedManifest;