Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -2250,6 +2250,9 @@ function Copy-PSGalleryModules
# Remove the build revision from the src (nuget drops it).
$srcVer = if ($version -match "(\d+.\d+.\d+).0") {
$matches[1]
} elseif ($version -match "^\d+.\d+$") {
# Two digit versions are stored as three digit versions
"$version.0"
} else {
$version
}
Expand All @@ -2262,7 +2265,7 @@ function Copy-PSGalleryModules
New-Item -Path $dest -ItemType Directory -Force -ErrorAction Stop > $null
# Exclude files/folders that are not needed. The fullclr folder is coming from the PackageManagement module
$dontCopy = '*.nupkg', '*.nupkg.metadata', '*.nupkg.sha512', '*.nuspec', 'System.Runtime.InteropServices.RuntimeInformation.dll', 'fullclr'
Copy-Item -Exclude $dontCopy -Recurse $src/* $dest
Copy-Item -Exclude $dontCopy -Recurse $src/* $dest -ErrorAction Stop
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Modules/PSGalleryModules.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<ItemGroup>
<PackageReference Include="PowerShellGet" Version="2.1.3" />
<PackageReference Include="PackageManagement" Version="1.3.2" />
<PackageReference Include="PackageManagement" Version="1.4" />
<PackageReference Include="Microsoft.PowerShell.Archive" Version="1.2.3.0" />
<PackageReference Include="PSReadLine" Version="2.0.0-beta4" />
<PackageReference Include="ThreadJob" Version="1.1.2" />
Expand Down