diff --git a/packages/sfpowerscripts-cli/package.json b/packages/sfpowerscripts-cli/package.json index 426418c15..7e304958a 100644 --- a/packages/sfpowerscripts-cli/package.json +++ b/packages/sfpowerscripts-cli/package.json @@ -1,7 +1,7 @@ { "name": "@dxatscale/sfpowerscripts", "description": "DX@Scale Toolkit", - "version": "25.6.0", + "version": "25.6.1", "license": "MIT", "author": "dxatscale", "release": "January 24", diff --git a/packages/sfpowerscripts-cli/src/impl/validate/ValidateImpl.ts b/packages/sfpowerscripts-cli/src/impl/validate/ValidateImpl.ts index c01d52f7f..6258da96f 100644 --- a/packages/sfpowerscripts-cli/src/impl/validate/ValidateImpl.ts +++ b/packages/sfpowerscripts-cli/src/impl/validate/ValidateImpl.ts @@ -477,30 +477,27 @@ export default class ValidateImpl implements PostDeployHook, PreDeployHook { function computePackageOverrides(props: ValidateProps): { [key: string]: PackageType } { - let overridedPackages: { [key: string]: PackageType } = {}; - const allPackages = ProjectConfig.getAllPackages(null); - const projectConfig = ProjectConfig.getSFDXProjectConfig(null); - for (const pkg of allPackages) { - - if (ProjectConfig.getPackageType(projectConfig, pkg) !== PackageType.Data) { - if ( - props.validationMode === - ValidationMode.FASTFEEDBACK_LIMITED_BY_RELEASE_CONFIG || - props.validationMode === - ValidationMode.FAST_FEEDBACK - ) { - overridedPackages[pkg] = PackageType.Diff - } - else { - if (!props.disableSourcePackageOverride) { - if (ProjectConfig.getPackageType(projectConfig, pkg) != PackageType.Data || ProjectConfig.getPackageType(projectConfig, pkg) != PackageType.Diff) - overridedPackages[pkg] = PackageType.Source - } - } - } - } - return overridedPackages; - } + let overridedPackages: { [key: string]: PackageType } = {}; + const allPackages = ProjectConfig.getAllPackages(null); + const projectConfig = ProjectConfig.getSFDXProjectConfig(null); + for (const pkg of allPackages) { + if (ProjectConfig.getPackageType(projectConfig, pkg) !== PackageType.Data) { + if ( + props.validationMode === ValidationMode.FASTFEEDBACK_LIMITED_BY_RELEASE_CONFIG || + props.validationMode === ValidationMode.FAST_FEEDBACK + ) { + overridedPackages[pkg] = PackageType.Diff; + } else { + if (!props.disableSourcePackageOverride) { + if (ProjectConfig.getPackageType(projectConfig, pkg) == PackageType.Unlocked) { + overridedPackages[pkg] = PackageType.Source; + } + } + } + } + } + return overridedPackages; + } function fetchPackagesAsPerReleaseConfig( logger: Logger,