Skip to content

Commit e374cdc

Browse files
committed
Add verbose
1 parent 973f0ad commit e374cdc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/public/PublishMTLocal.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ function Publish-MTLocal {
1212
$ModuleDirectoryPath = Get-LocalModulePath
1313
}
1414

15+
Write-Verbose "Using $ModuleDirectoryPath as path"
16+
1517
$ProjectInfo = Get-MTProjectInfo
1618

1719
# Ensure module is locally built and ready
@@ -22,9 +24,12 @@ function Publish-MTLocal {
2224
# Cleanup old files
2325
$OldModule = Join-Path -Path $ModuleDirectoryPath -ChildPath $ProjectInfo.ProjectName
2426
if (Test-Path -Path $OldModule) {
27+
Write-Verbose 'Removing old module files'
2528
Remove-Item -Recurse $OldModule -Force
2629
}
2730

2831
# Copy New Files
32+
Write-Verbose 'Copying new Files'
2933
Copy-Item -Path $ProjectInfo.OutputModuleDir -Destination $ModuleDirectoryPath -Recurse -ErrorAction Stop
34+
Write-Verbose 'Module copy to local path complete, Refresh session or import module manually'
3035
}

0 commit comments

Comments
 (0)