Skip to content

Commit

Permalink
Include required modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
peombwa committed Dec 14, 2022
1 parent 947f6fc commit f035305
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions tools/GenerateModules.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ $ModuleToGenerate | ForEach-Object -Parallel {
ExcludeExampleTemplates = $using:ExcludeExampleTemplates
ExcludeNotesSection = $using:ExcludeNotesSection
ArtifactsLocation = $using:ArtifactsLocation
RequiredModules = $using:RequiredGraphModules
}
& $using:GenerateServiceModulePS1 @ServiceModuleParams
}
Expand Down
3 changes: 2 additions & 1 deletion tools/GenerateServiceModule.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Param(
[ValidateSet("v1.0", "beta")]
$ApiVersion = @("v1.0", "beta"),
[Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [string] $ArtifactsLocation,
$RequiredModules = @(),
[switch] $SkipGeneration = $false,
[switch] $Build,
[switch] $Test,
Expand Down Expand Up @@ -81,7 +82,7 @@ $ApiVersion | ForEach-Object {

if ($Build) {
# Build generated module.
& $BuildModulePS1 -ModuleFullName $ModuleFullName -ModuleSrc $ModuleProjectPath -RequiredModules $RequiredGraphModules -EnableSigning:$EnableSigning -ExcludeExampleTemplates:$ExcludeExampleTemplates -ExcludeNotesSection:$ExcludeNotesSection -Version $ModuleMetadata.versions[$CurrentApiVersion].version -Prerelease $ModuleMetadata.versions[$CurrentApiVersion].prerelease -ModuleMetadata $ModuleMetadata.Clone()
& $BuildModulePS1 -ModuleFullName $ModuleFullName -ModuleSrc $ModuleProjectPath -RequiredModules $RequiredModules -EnableSigning:$EnableSigning -ExcludeExampleTemplates:$ExcludeExampleTemplates -ExcludeNotesSection:$ExcludeNotesSection -Version $ModuleMetadata.versions[$CurrentApiVersion].version -Prerelease $ModuleMetadata.versions[$CurrentApiVersion].prerelease -ModuleMetadata $ModuleMetadata.Clone()
& $CleanUpPsm1 -ModuleProjectPath $ModuleProjectPath -FullyQualifiedModuleName $ModuleFullName
if ($LastExitCode -ne 0) {
Write-Host -ForegroundColor Red "Failed to build '$ModuleFullName' module."
Expand Down

0 comments on commit f035305

Please sign in to comment.