Skip to content

Commit

Permalink
馃懛 Updates Build Scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
brucificus committed Aug 26, 2023
1 parent 2c39154 commit cb409f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build/funcs/Get-ModuleExports.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function Get-ModuleExports {
"FormatFiles" = @()
}
try {
Set-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Value $true -Scope Global -Option Constant
Set-Variable -Name PWSHRC_FORCE_MODULES_EXPORT_UNSUPPORTED -Value $true -Scope Global -Option ReadOnly
[System.Management.Automation.PSModuleInfo] $moduleInfo = Import-Module -Name $Psm1Path -Force -DisableNameChecking -PassThru
if ($null -eq $moduleInfo) {
throw "Failed to import module from path '$Psm1Path'."
Expand Down
7 changes: 4 additions & 3 deletions build/funcs/New-TemporaryProjectFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,15 @@ function New-TemporaryProjectFile {
<PackageReference Include=`"NuGetizer`" Version=`"${nugetizerVersion}`" /> <!-- Pin to avoid SponsorLink -->
</ItemGroup>
<ItemGroup>
<None Include=`"src${ds}**${ds}*.*`" Pack=`"true`" />
<None Include=`"${LicenseFileName}`" Pack=`"true`" />
<None Include=`"${ReadmeFileName}`" Pack=`"true`" />
<None Include=`"${iconPath}`" Pack=`"true`" PackagePath=`"${iconFileName}`" />
<None Include=`"${moduleManifestFilePath}`" Pack=`"true`" PackagePath=`"${moduleManifestFilePackagePath}`" />
<None Remove=`"lib/**/*.*`" />
<None Remove=`"lib${ds}**${ds}*.*`" />
$($itemGroupElementsForNestedRuntimePSGalleryModules | ForEach-Object { $_.OuterXml })
<None Remove=`"lib/**/README.*`" />
<None Remove=`"lib/**/*.nupkg`" />
<None Remove=`"lib${ds}**${ds}README.*`" />
<None Remove=`"lib${ds}**${ds}*.nupkg`" />
</ItemGroup>
<ItemGroup>
<Content Remove=`"**/*.*`" />
Expand Down

0 comments on commit cb409f2

Please sign in to comment.