UNPKG

sf-decomposer

Version:

Break down large Salesforce metadata files into smaller, more manageable files for version control and then recreate deployment-compatible files.

13 lines 459 B
'use strict'; import { readFile } from 'node:fs/promises'; export async function getUniqueIdElements(metaSuffix) { const fileContent = await readFile(new URL('./uniqueIdElements.json', import.meta.url), 'utf-8'); const jsonData = JSON.parse(fileContent); if (metaSuffix in jsonData) { return jsonData[metaSuffix].uniqueIdElements.join(','); } else { return undefined; } } //# sourceMappingURL=getUniqueIdElements.js.map