Skip to content

Commit 924f8bf

Browse files
Refactor main.ps1 to use Resolve-Path for output folder paths, improving path resolution consistency
1 parent 7ab55c4 commit 924f8bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/main.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Write-Host "Module name: [$moduleName]"
2525
$moduleSourceFolderPath = Resolve-Path -Path 'src' | Select-Object -ExpandProperty Path
2626
Write-Host "Module source path: [$moduleSourceFolderPath]"
2727

28-
$modulesOutputFolderPath = New-Item -Path 'outputs/module' -Force
28+
$modulesOutputFolderPath = Resolve-Path -Path 'outputs/module' | Select-Object -ExpandProperty Path
2929
Write-Host "Module output path: [$modulesOutputFolderPath]"
30-
$docsOutputFolderPath = New-Item -Path 'outputs/docs' -Force
30+
$docsOutputFolderPath = Resolve-Path -Path 'outputs/docs' | Select-Object -ExpandProperty Path
3131
Write-Host "Docs output path: [$docsOutputFolderPath]"
3232

3333
$params = @{

0 commit comments

Comments
 (0)