UNPKG

sfdx-git-delta

Version:

Generate the sfdx content in source format and destructive change from two git commits

14 lines 683 B
'use strict'; import { MASTER_DETAIL_TAG } from '../constant/metadataConstants.js'; import { readPathFromGit } from '../utils/fsHelper.js'; import DecomposedHandler from './decomposedHandler.js'; export default class CustomFieldHandler extends DecomposedHandler { // QUESTION: Why we need to add parent object for Master Detail field ? https://help.salesforce.com/s/articleView?id=000386883&type=1 async _copyParent() { const data = await readPathFromGit({ path: this.line, oid: this.config.to }, this.config); if (!data.includes(MASTER_DETAIL_TAG)) return; await super._copyParent(); } } //# sourceMappingURL=customFieldHandler.js.map