Skip to content

Commit e0a502b

Browse files
Reorder module manifest validation in main.ps1 for improved execution flow
1 parent b613f45 commit e0a502b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/main.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ switch ($settings) {
1919
'Module' {
2020
$modulePath = Resolve-Path -Path "outputs/module/$moduleName" | Select-Object -ExpandProperty Path
2121
$manifestFilePath = Join-Path -Path $modulePath "$moduleName.psd1"
22-
Test-ModuleManifest -Path $manifestFilePath -Verbose
2322
Write-Verbose " - Manifest file path: [$manifestFilePath]" -Verbose
2423
Resolve-PSModuleDependency -ManifestFilePath $manifestFilePath
24+
Test-ModuleManifest -Path $manifestFilePath -Verbose
2525
$PSModulePath = $env:PSModulePath -split [System.IO.Path]::PathSeparator | Select-Object -First 1
2626
$codePath = New-Item -Path "$PSModulePath/$moduleName/999.0.0" -ItemType Directory -Force
2727
Copy-Item -Path $modulePath -Destination $codePath -Recurse -Force

0 commit comments

Comments
 (0)