Skip to content

Commit

Permalink
fix(validate): fix add additional package validations on override
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Aug 30, 2023
1 parent 1aae484 commit 8026d97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sfpowerscripts-cli/src/impl/validate/ValidateImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export default class ValidateImpl implements PostDeployHook, PreDeployHook {
const { generatedPackages, failedPackages } = await buildImpl.exec();

if (failedPackages.length > 0)
throw new Error(`Failed to create source1 packages ${failedPackages}`);
throw new Error(`Failed to create packages ${failedPackages}`);

if (generatedPackages.length === 0) {
throw new Error(
Expand Down Expand Up @@ -478,7 +478,7 @@ export default class ValidateImpl implements PostDeployHook, PreDeployHook {
}
else {
if (!props.disableSourcePackageOverride) {
if (ProjectConfig.getPackageType(projectConfig, pkg) != PackageType.Diff)
if (ProjectConfig.getPackageType(projectConfig, pkg) != PackageType.Data || ProjectConfig.getPackageType(projectConfig, pkg) != PackageType.Diff)
overridedPackages[pkg] = PackageType.Source
}
}
Expand Down

0 comments on commit 8026d97

Please sign in to comment.