Merge pull request #23 from loanDepot/tdrake/LDX-1015

LDX-1015 ImportDevModule should force import so it can be rerun in th…
This commit is contained in:
Kevin Marquette
2018-11-12 13:39:23 -08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
task ImportDevModule {
ImportModule -Path "$Source\$ModuleName.psd1"
ImportModule -Path "$Source\$ModuleName.psd1" -Force
}

View File

@@ -1,3 +1,6 @@
task UpdateSource {
Copy-Item -Path $ManifestPath -Destination "$Source\$ModuleName.psd1"
$content = Get-Content -Path "$Source\$ModuleName.psd1" -Raw -Encoding UTF8
$content.Trim() | Set-Content -Path "$Source\$ModuleName.psd1" -Encoding UTF8
}