File tree Expand file tree Collapse file tree 2 files changed +18
-20
lines changed Expand file tree Collapse file tree 2 files changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -110,25 +110,6 @@ function Get-TargetModules
110
110
}
111
111
}
112
112
113
- function Add-PSM1Dependency
114
- {
115
- [CmdletBinding ()]
116
- param (
117
- [string ] $Path )
118
-
119
- PROCESS
120
- {
121
- $file = Get-Item - Path $Path
122
- $manifestFile = $file.Name
123
- $psm1file = $manifestFile -replace " .psd1" , " .psm1"
124
- if ($isNetCore -eq " false" ) {
125
- Update-ModuleManifest - Path $Path - RootModule $psm1file
126
- }
127
- }
128
-
129
- }
130
-
131
-
132
113
function Remove-ModuleDependencies
133
114
{
134
115
[CmdletBinding ()]
@@ -216,7 +197,6 @@ function Change-RMModule
216
197
Write-Output " Expanding $zipPath "
217
198
Expand-Archive $zipPath - DestinationPath $dirPath
218
199
Write-Output " Adding PSM1 dependency to $unzippedManifest "
219
- Add-PSM1Dependency - Path $unzippedManifest
220
200
Write-Output " Removing module manifest dependencies for $unzippedManifest "
221
201
Remove-ModuleDependencies - Path $unzippedManifest
222
202
Remove-Item - Path $zipPath - Force
Original file line number Diff line number Diff line change @@ -76,6 +76,24 @@ function Create-ModulePsm1
76
76
Write-Host " Writing psm1 manifest to $templateOutputPath "
77
77
$template | Out-File - FilePath $templateOutputPath - Force
78
78
$file = Get-Item - Path $templateOutputPath
79
+
80
+ Add-PSM1Dependency - Path $manifestPath
81
+ }
82
+ }
83
+
84
+ function Add-PSM1Dependency
85
+ {
86
+ [CmdletBinding ()]
87
+ param (
88
+ [string ] $Path )
89
+
90
+ PROCESS
91
+ {
92
+ $file = Get-Item - Path $Path
93
+ $manifestFile = $file.Name
94
+ $psm1file = $manifestFile -replace " .psd1" , " .psm1"
95
+ Write-Host " here" + $Path
96
+ Update-ModuleManifest - Path $Path - RootModule $psm1file
79
97
}
80
98
}
81
99
You can’t perform that action at this time.
0 commit comments