Skip to content

Commit d454e3a

Browse files
🩹 [Patch]: Swap out Utilities with Hashtable (#109)
## Description This pull request includes changes a dependency in `Build-PSModuleRootModule.ps1` to use `Hashtable` instead of Utilities`. Updates to module dependencies: * [`scripts/helpers/Build/Build-PSModuleRootModule.ps1`](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879L2-R2): Changed the required module from `Utilities` version `0.3.0` to `Hashtable` version `1.1.1`. Improvements to export process: * [`scripts/helpers/Build/Build-PSModuleRootModule.ps1`](diffhunk://#diff-1d337ff39f37506a54fda1c5d0487f1b2c2ef318f216a4d9a56c3e7248b69879L225-R225): Replaced the `Convert-HashtableToString` function with the `Format-Hashtable` function to format hashtable exports. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 8819705 commit d454e3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/helpers/Build/Build-PSModuleRootModule.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Requires -Modules @{ ModuleName = 'GitHub'; ModuleVersion = '0.13.2' }
2-
#Requires -Modules @{ ModuleName = 'Utilities'; ModuleVersion = '0.3.0' }
2+
#Requires -Modules @{ ModuleName = 'Hashtable'; ModuleVersion = '1.1.1' }
33

44
function Build-PSModuleRootModule {
55
<#
@@ -222,7 +222,7 @@ Write-Debug "[`$scriptName] - $relativePath - Done"
222222
#region - Export-ModuleMember
223223
Add-Content -Path $rootModuleFile -Force -Value $classExports
224224

225-
$exportsString = Convert-HashtableToString -Hashtable $exports
225+
$exportsString = $exports | Format-Hashtable
226226

227227
Write-Host ($exportsString | Out-String)
228228

0 commit comments

Comments
 (0)