Skip to content

Commit

Permalink
fix(validate): fix incorrect syntax and version
Browse files Browse the repository at this point in the history
  • Loading branch information
sfopsbot committed Dec 19, 2023
1 parent 5883ab6 commit 4e81088
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 27 deletions.
5 changes: 3 additions & 2 deletions packages/sfp-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@flxblio/sfp",
"description": "Flxbl Toolkit",
"version": "30.0.0",
"version": "30.0.2",
"license": "MIT",
"author": "flxblio",
"release": "January 24",
"bin": {
"sfp": "./bin/run"
"sfp": "./bin/run",
"sfpowerscripts": "./bin/run"
},
"bugs": "https://github.com/flxbl-io/sfp/issues",
"publishConfig": {
Expand Down
46 changes: 21 additions & 25 deletions packages/sfp-cli/src/impl/validate/ValidateImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,31 +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.Unlocked)
{
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,
Expand Down

0 comments on commit 4e81088

Please sign in to comment.