File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments