From 1ad5bc77ebd6f0e54ad9f5981c5a287f34ee613e Mon Sep 17 00:00:00 2001 From: Andrew <56427313+AndrewEhlo@users.noreply.github.com> Date: Tue, 10 Jun 2025 15:59:40 +0500 Subject: [PATCH] Update common-packages-list.ps1 Update a script to add a dependentmodule to the list if it is not listed in the 'commerce' module list --- docker-env/scripts/common-packages-list.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-env/scripts/common-packages-list.ps1 b/docker-env/scripts/common-packages-list.ps1 index 23ecd3bf..416db88c 100644 --- a/docker-env/scripts/common-packages-list.ps1 +++ b/docker-env/scripts/common-packages-list.ps1 @@ -253,6 +253,10 @@ foreach ($key in $dependencyList.Keys) { if ($packages["$key"] -match "\w._(.*).zip") { CompareVersions -currentVersion $Matches[1] -requiredVersion $dependencyList["$key"] -moduleId $key } + elseif ($packages["$key"] -match "") { + Write-Warning "The module $key was not found in the commerceModules list. Adding it to the packages list." + $packages["$key"] = "$($key)_$($dependencyList["$key"]).zip" + } else { Write-Warning "Unable to parse version from packages list. Tried $packages[$key] -match '\w._(.*).zip'" } @@ -390,4 +394,4 @@ vc-build install --package-manifest-path ./new-packages.json ` --root ./publish ` --skip-dependency-solving -Get-ChildItem * -Include *packages.json -Recurse | Remove-Item -Verbose \ No newline at end of file +Get-ChildItem * -Include *packages.json -Recurse | Remove-Item -Verbose