From 17646bf7e9d2195662e9418d724f2f8bd6b64ee2 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 28 Jan 2025 08:59:07 +0100 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20copyright?= =?UTF-8?q?=20information=20to=20module=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/srcWithManifest/manifest.psd1 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/srcWithManifest/manifest.psd1 b/tests/srcWithManifest/manifest.psd1 index 466eca8..8f38049 100644 --- a/tests/srcWithManifest/manifest.psd1 +++ b/tests/srcWithManifest/manifest.psd1 @@ -1,4 +1,5 @@ @{ ModuleVersion = '0.0.0' RootModule = 'PSModuleTest.psm1' + CopyRight = 'Test' } From 10c31cebc2ed652a2ec18770ccf55024e5a4f088 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 28 Jan 2025 09:04:58 +0100 Subject: [PATCH 2/4] Fix casing --- tests/srcWithManifest/manifest.psd1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/srcWithManifest/manifest.psd1 b/tests/srcWithManifest/manifest.psd1 index 8f38049..57d1f3c 100644 --- a/tests/srcWithManifest/manifest.psd1 +++ b/tests/srcWithManifest/manifest.psd1 @@ -1,5 +1,5 @@ @{ ModuleVersion = '0.0.0' RootModule = 'PSModuleTest.psm1' - CopyRight = 'Test' + Copyright = 'Test' } From 248ec20dd5ffe5884f13f160793e17feeaa425c9 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 28 Jan 2025 09:10:22 +0100 Subject: [PATCH 3/4] Fix Copyright casing --- scripts/helpers/Build/Build-PSModuleManifest.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/helpers/Build/Build-PSModuleManifest.ps1 b/scripts/helpers/Build/Build-PSModuleManifest.ps1 index 2e45eb1..6f3d847 100644 --- a/scripts/helpers/Build/Build-PSModuleManifest.ps1 +++ b/scripts/helpers/Build/Build-PSModuleManifest.ps1 @@ -63,10 +63,10 @@ function Build-PSModuleManifest { Write-Verbose "[CompanyName] - [$($manifest.CompanyName)]" $year = Get-Date -Format 'yyyy' - $copyRightOwner = $manifest.CompanyName -eq $manifest.Author ? $manifest.Author : "$($manifest.Author) | $($manifest.CompanyName)" - $copyRight = "(c) $year $copyRightOwner. All rights reserved." - $manifest.CopyRight = $manifest.Keys -contains 'CopyRight' ? -not [string]::IsNullOrEmpty($manifest.CopyRight) ? $manifest.CopyRight : $copyRight : $copyRight - Write-Verbose "[CopyRight] - [$($manifest.CopyRight)]" + $copyrightOwner = $manifest.CompanyName -eq $manifest.Author ? $manifest.Author : "$($manifest.Author) | $($manifest.CompanyName)" + $copyright = "(c) $year $copyrightOwner. All rights reserved." + $manifest.Copyright = $manifest.Keys -contains 'Copyright' ? -not [string]::IsNullOrEmpty($manifest.Copyright) ? $manifest.Copyright : $copyright : $copyright + Write-Verbose "[Copyright] - [$($manifest.Copyright)]" $repoDescription = gh repo view --json description | ConvertFrom-Json | Select-Object -ExpandProperty description $manifest.Description = $manifest.Keys -contains 'Description' ? ($manifest.Description | IsNotNullOrEmpty) ? $manifest.Description : $repoDescription : $repoDescription From 8e4652479074cf195b6809cf4fe96fe3164ed0d7 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Tue, 28 Jan 2025 09:11:11 +0100 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A9=B9=20[Patch]:=20Add=20description?= =?UTF-8?q?=20to=20module=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/srcWithManifest/manifest.psd1 | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/srcWithManifest/manifest.psd1 b/tests/srcWithManifest/manifest.psd1 index 57d1f3c..9466cb8 100644 --- a/tests/srcWithManifest/manifest.psd1 +++ b/tests/srcWithManifest/manifest.psd1 @@ -2,4 +2,5 @@ ModuleVersion = '0.0.0' RootModule = 'PSModuleTest.psm1' Copyright = 'Test' + Description = 'This is a test module.' }