From 886b72a0c381f9184e8a151ea0869a445a986b23 Mon Sep 17 00:00:00 2001 From: James Brundage <@github.com> Date: Thu, 2 May 2024 16:35:22 -0700 Subject: [PATCH] chore: Adding Build Conditions ( Fixes #965 ) To Types --- Types/PSModuleInfo/FindExtensions.ps.ps1 | 1 + Types/PSModuleInfo/get_CommandType.ps.ps1 | 1 + 2 files changed, 2 insertions(+) diff --git a/Types/PSModuleInfo/FindExtensions.ps.ps1 b/Types/PSModuleInfo/FindExtensions.ps.ps1 index 8d82b061c..1f6c25179 100644 --- a/Types/PSModuleInfo/FindExtensions.ps.ps1 +++ b/Types/PSModuleInfo/FindExtensions.ps.ps1 @@ -6,6 +6,7 @@ .EXAMPLE (Get-Module PipeScript).FindExtensions((Get-Module PipeScript | Split-Path)) #> +[ValidatePattern('Extension')] param() $targetModules = @() diff --git a/Types/PSModuleInfo/get_CommandType.ps.ps1 b/Types/PSModuleInfo/get_CommandType.ps.ps1 index 91e19bdcf..36162d595 100644 --- a/Types/PSModuleInfo/get_CommandType.ps.ps1 +++ b/Types/PSModuleInfo/get_CommandType.ps.ps1 @@ -6,6 +6,7 @@ .EXAMPLE (Get-Module PipeScript).CommandType #> +[ValidatePattern('CommandType')] param() if (-not $this.'.CommandTypes') {