Skip to content

Commit 526dc99

Browse files
committed
Fix selecting package.xml for repos with multiple ones
1 parent f819841 commit 526dc99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/BuildPhpExtension/private/Get-ExtensionConfig.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ Function Get-ExtensionConfig {
199199
}
200200

201201
# TODO: This should be implemented using composer.json once implemented
202-
$packageXml = Get-ChildItem (Get-Location).Path -Recurse -Filter "package.xml" -ErrorAction SilentlyContinue
202+
$packageXml = Get-ChildItem (Get-Location).Path -Recurse -Filter "package.xml" -ErrorAction SilentlyContinue | Select-Object -First 1
203203
if($null -ne $packageXml) {
204204
$xml = [xml](Get-Content $packageXml.FullName)
205205
$config.docs = $xml.SelectNodes("//*[@role='doc']") | ForEach-Object {

0 commit comments

Comments
 (0)