From cb409f287ac54acf8441ef7191cdaed0d6655e13 Mon Sep 17 00:00:00 2001 From: Bruce Markham <219281+brucificus@users.noreply.github.com> Date: Sat, 26 Aug 2023 09:43:40 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Updates=20Build=20Scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/funcs/Get-ModuleExports.ps1 | 2 +- build/funcs/New-TemporaryProjectFile.ps1 | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build/funcs/Get-ModuleExports.ps1 b/build/funcs/Get-ModuleExports.ps1 index 858824e..dcbd064 100644 --- a/build/funcs/Get-ModuleExports.ps1 +++ b/build/funcs/Get-ModuleExports.ps1 @@ -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'." diff --git a/build/funcs/New-TemporaryProjectFile.ps1 b/build/funcs/New-TemporaryProjectFile.ps1 index fe8114b..bc25fb0 100644 --- a/build/funcs/New-TemporaryProjectFile.ps1 +++ b/build/funcs/New-TemporaryProjectFile.ps1 @@ -149,14 +149,15 @@ function New-TemporaryProjectFile { + - + $($itemGroupElementsForNestedRuntimePSGalleryModules | ForEach-Object { $_.OuterXml }) - - + +