Skip to content

Commit 7f3f350

Browse files
Revert "🩹 [Patch]: Remove dependency on Utilities (#111)" (#112)
## Description This reverts commit d778e56. ## 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 d778e56 commit 7f3f350

14 files changed

+14
-741
lines changed

scripts/helpers/Build-PSModule.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#>
99
[CmdletBinding()]
1010
#Requires -Modules @{ ModuleName = 'GitHub'; ModuleVersion = '0.13.2' }
11+
#Requires -Modules @{ ModuleName = 'Utilities'; ModuleVersion = '0.3.0' }
1112
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
1213
'PSReviewUnusedParameter', '', Scope = 'Function',
1314
Justification = 'LogGroup - Scoping affects the variables line of sight.'

scripts/helpers/Build/Add-ModuleManifestData.ps1

Lines changed: 0 additions & 164 deletions
This file was deleted.

scripts/helpers/Build/Add-PSModulePath.ps1

Lines changed: 0 additions & 29 deletions
This file was deleted.

scripts/helpers/Build/Build-PSModuleManifest.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#>
1313
[CmdletBinding()]
1414
#Requires -Modules @{ ModuleName = 'GitHub'; ModuleVersion = '0.13.2' }
15+
#Requires -Modules @{ ModuleName = 'Utilities'; ModuleVersion = '0.3.0' }
1516
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
1617
'PSAvoidLongLines', '', Scope = 'Function',
1718
Justification = 'Easier to read the multi ternery operators in a single line.'
@@ -59,10 +60,10 @@
5960
$manifest.ModuleVersion = '999.0.0'
6061
Write-Host "[ModuleVersion] - [$($manifest.ModuleVersion)]"
6162

62-
$manifest.Author = $manifest.Keys -contains 'Author' ? -not [string]::IsNullOrEmpty($manifest.Author) ? $manifest.Author : $env:GITHUB_REPOSITORY_OWNER : $env:GITHUB_REPOSITORY_OWNER
63+
$manifest.Author = $manifest.Keys -contains 'Author' ? ($manifest.Author | IsNotNullOrEmpty) ? $manifest.Author : $env:GITHUB_REPOSITORY_OWNER : $env:GITHUB_REPOSITORY_OWNER
6364
Write-Host "[Author] - [$($manifest.Author)]"
6465

65-
$manifest.CompanyName = $manifest.Keys -contains 'CompanyName' ? -not [string]::IsNullOrEmpty($manifest.CompanyName) ? $manifest.CompanyName : $env:GITHUB_REPOSITORY_OWNER : $env:GITHUB_REPOSITORY_OWNER
66+
$manifest.CompanyName = $manifest.Keys -contains 'CompanyName' ? ($manifest.CompanyName | IsNotNullOrEmpty) ? $manifest.CompanyName : $env:GITHUB_REPOSITORY_OWNER : $env:GITHUB_REPOSITORY_OWNER
6667
Write-Host "[CompanyName] - [$($manifest.CompanyName)]"
6768

6869
$year = Get-Date -Format 'yyyy'
@@ -72,7 +73,7 @@
7273
Write-Host "[Copyright] - [$($manifest.Copyright)]"
7374

7475
$repoDescription = gh repo view --json description | ConvertFrom-Json | Select-Object -ExpandProperty description
75-
$manifest.Description = $manifest.Keys -contains 'Description' ? -not [string]::IsNullOrEmpty($manifest.Description) ? $manifest.Description : $repoDescription : $repoDescription
76+
$manifest.Description = $manifest.Keys -contains 'Description' ? ($manifest.Description | IsNotNullOrEmpty) ? $manifest.Description : $repoDescription : $repoDescription
7677
Write-Host "[Description] - [$($manifest.Description)]"
7778

7879
$manifest.PowerShellHostName = $manifest.Keys -contains 'PowerShellHostName' ? -not [string]::IsNullOrEmpty($manifest.PowerShellHostName) ? $manifest.PowerShellHostName : $null : $null

scripts/helpers/Build/Export-PowerShellDataFile.ps1

Lines changed: 0 additions & 30 deletions
This file was deleted.

scripts/helpers/Build/Format-ModuleManifest.ps1

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)