mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +08:00
Merged PR 6442: Moved the cleanup logic to Restore-PSModuleToBuild
Moved the cleanup logic to Restore-PSModuleToBuild # Conflicts: # build.psm1
This commit is contained in:
parent
cab8f26386
commit
ea0b4de90a
@ -478,9 +478,6 @@ Fix steps:
|
||||
if ($CI) {
|
||||
Restore-PSPester -Destination (Join-Path $publishPath "Modules")
|
||||
}
|
||||
|
||||
# Remove .nupkg.metadata files
|
||||
Get-ChildItem $publishPath -Filter '.nupkg.metadata' -Recurse | ForEach-Object { Remove-Item $_.FullName -ErrorAction SilentlyContinue -Force }
|
||||
}
|
||||
|
||||
function Restore-PSPackage
|
||||
@ -556,6 +553,9 @@ function Restore-PSModuleToBuild
|
||||
Write-Log "Restore PowerShell modules to $publishPath"
|
||||
$modulesDir = Join-Path -Path $publishPath -ChildPath "Modules"
|
||||
Copy-PSGalleryModules -Destination $modulesDir -CsProjPath "$PSScriptRoot\src\Modules\PSGalleryModules.csproj"
|
||||
|
||||
# Remove .nupkg.metadata files
|
||||
Get-ChildItem $PublishPath -Filter '.nupkg.metadata' -Recurse | ForEach-Object { Remove-Item $_.FullName -ErrorAction SilentlyContinue -Force }
|
||||
}
|
||||
|
||||
function Restore-PSPester
|
||||
|
Loading…
Reference in New Issue
Block a user