Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
Merge c003079 into a32b6f0
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam authored Jul 13, 2021
2 parents a32b6f0 + c003079 commit d14421b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions packages/sfpowerscripts-cli/src/impl/prepare/PreparePool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,22 @@ export default class PreparePool implements PreparePoolInterface {


private async getPackageArtifacts() {
let packages = ProjectConfig.getSFDXPackageManifest(null)[


//Filter Packages to be ignore from prepare to be fetched
let packages =ProjectConfig.getSFDXPackageManifest(null)[
"packageDirectories"
];
].filter((pkg)=>{
if (
pkg.ignoreOnStage?.find( (stage) => {
stage = stage.toLowerCase();
return stage === "prepare";
})
)
return false;
else
return true;
});


let artifactFetcher:FetchAnArtifact;
Expand All @@ -77,7 +90,7 @@ export default class PreparePool implements PreparePoolInterface {
).getArtifactFetcher();


packages.forEach((pkg) => {
packages.forEach((pkg) => {
artifactFetcher.fetchArtifact(
pkg.package,
"artifacts",
Expand Down

0 comments on commit d14421b

Please sign in to comment.