Skip to content

Commit

Permalink
fix(diff): diff package not correctly copying static resources
Browse files Browse the repository at this point in the history
Mixed Content types can be a folder or a file, so this should be handled when the equivalent content
is copied from git
  • Loading branch information
azlam-abdulsalam committed Sep 14, 2023
1 parent 48d662f commit 2280229
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/core/src/package/diff/PackageComponentDiff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ export default class PackageComponentDiff {
await this.gitDiffUtils.copyFile(sourceComponent.content, outputFolder, this.logger);
} else if (sourceComponent.type.strategies?.adapter == AdapterId.MixedContent) {
await this.gitDiffUtils.copyFile(sourceComponent.xml, outputFolder, this.logger);
await this.gitDiffUtils.copyFolder(sourceComponent.content, outputFolder, this.logger);
if(path.extname(sourceComponent.content))
await this.gitDiffUtils.copyFile(sourceComponent.content, outputFolder, this.logger);
else
await this.gitDiffUtils.copyFolder(sourceComponent.content, outputFolder, this.logger);
} else if (sourceComponent.type.strategies?.adapter == AdapterId.Decomposed) {
await this.gitDiffUtils.copyFile(sourceComponent.xml, outputFolder, this.logger);
} else if (sourceComponent.type.strategies?.adapter == AdapterId.Bundle) {
Expand Down

0 comments on commit 2280229

Please sign in to comment.