diff --git a/README.md b/README.md index d3f9868..99432e3 100644 --- a/README.md +++ b/README.md @@ -8,14 +8,6 @@ Functions to enable advanced PSObject analysis and comparison. These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. -### Prerequisites - -Pester is required for running the test suite. - -```powershell -Install-Module Pester -MinimumVersion 5.0.0 -Repository PSGallery -``` - ### Installing This module can be installed from the (nuget.deloitteresources.com) repository. Repository setup instructions can be found on that site. @@ -23,13 +15,7 @@ This module can be installed from the (nuget.deloitteresources.com) repository. Install the latest stable release ```ps -Install-Module -Name PSObjectTools -Repository GTIPackageRepository -``` - -Install the latest development release - -```ps -Install-Module -Name PSObjectTools -Repository GTIPackageRepository -AllowPrerelease +Install-Module -Name PSObjectTools -Repository PSGallery ``` ### Basic Usage @@ -124,4 +110,4 @@ All versioning is handled in the [build script](module.build.ps1). ## Acknowledgments - +Inspired by Phil Factor's work, as seen here: https://www.red-gate.com/simple-talk/blogs/display-object-a-powershell-utility-cmdlet/ diff --git a/build_tools/module.build.ps1 b/build_tools/module.build.ps1 index 3f71d06..c008c32 100644 --- a/build_tools/module.build.ps1 +++ b/build_tools/module.build.ps1 @@ -35,6 +35,7 @@ Enter-Build { $module = Find-Module -Name $Name -Repository PSGallery -ErrorAction SilentlyContinue if ($module) { $module | Save-Module -Path $Path -Force + $module } } catch { $PSCmdlet.ThrowTerminatingError($_) @@ -192,7 +193,7 @@ function GetPublicFunctionInterfaces {$function:GetPublicFunctionInterfaces} $ScriptBlock = { $releasedModule = Import-Module -Name "$Using:ReleasedModulePath\$Using:ModuleName" -PassThru -Force -ErrorAction Stop - $releasedModuleManifestPath = "$Using:ReleasedModulePath\$Using:ModuleName\$Using:ModuleName.psd1" + $releasedModuleManifestPath = "$Using:ReleasedModulePath\$Using:ModuleName\*\$Using:ModuleName.psd1" $prereleaseValue = Get-ManifestValue -Path $releasedModuleManifestPath -PropertyName Prerelease $functionList = $releasedModule.ExportedFunctions.Values