Skip to content

Commit

Permalink
fix: delta deploy doesn't uses binary compare for certain meta.xml fi…
Browse files Browse the repository at this point in the history
…les causing it to incorrectly mark objects as changed
  • Loading branch information
Codeneos committed Jun 21, 2024
1 parent 2317efc commit ad3b757
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/salesforce/src/retrieveDeltaStrategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ export class RetrieveDeltaStrategy {
return this.compareStrategies[type.name];
}

if (/\.(cls|trigger)-meta\.xml$/i.test(packagePath)) {
return this.compareStrategies.metaXml;
}

if (type.name === 'FlexiPage' ||
type.name === 'Layout') {
return this.compareStrategies.xmlStrictOrder;
}

if (/\.([a-z]+)-meta\.xml$/i.test(packagePath)) {
return this.compareStrategies.metaXml;
}

if (type.name === 'StaticResource' ||
type.name === 'ContentAsset' ||
type.name === 'Document') {
Expand Down

0 comments on commit ad3b757

Please sign in to comment.