From 9315afa3927099192653bc1f0f8e032689143b86 Mon Sep 17 00:00:00 2001 From: Azlam <43767972+azlam-abdulsalam@users.noreply.github.com> Date: Wed, 11 Oct 2023 22:27:25 +0000 Subject: [PATCH] fix(artifactfetch): search for artifacts with scope Packages when fetched from npm repository would contain scope in the name --- packages/core/src/artifacts/ArtifactFetcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/artifacts/ArtifactFetcher.ts b/packages/core/src/artifacts/ArtifactFetcher.ts index 38cfc911f..e56641278 100644 --- a/packages/core/src/artifacts/ArtifactFetcher.ts +++ b/packages/core/src/artifacts/ArtifactFetcher.ts @@ -135,7 +135,7 @@ export default class ArtifactFetcher { public static findArtifacts(artifactDirectory: string, sfdx_package?: string): string[] { let pattern: string; if (sfdx_package) { - pattern = `**/${sfdx_package}_sfpowerscripts_artifact*.@(zip|tgz)`; + pattern = `**/*${sfdx_package}_sfpowerscripts_artifact*.@(zip|tgz)`; } else { pattern = `**/*sfpowerscripts_artifact*.@(zip|tgz)`; }