@@ -40,11 +40,12 @@ module Solutions =
4040 let windows = " Interstellar.Windows.sln"
4141 let macos = " Interstellar.MacOS.sln"
4242
43+ let artifactsPath = " artifacts"
44+
4345module Templates =
4446 let path = " templates"
4547
4648 let nuspecPaths = !! ( Path.Combine ( path, " *.nuspec" ))
47- let outputPath = Path.Combine ( path, " bin" )
4849 let allProjects =
4950 !! ( Path.Combine ( path, " **/*.fsproj" ))
5051 let winProjects =
@@ -133,7 +134,7 @@ let getNupkgPath version projPath =
133134 Path.Combine ([| projDir; " bin" ; " Release" ;
134135 sprintf " %s%s .nupkg" ( Path.GetFileNameWithoutExtension projPath) vstr|])
135136
136- let getNupkgArtifactPath proj = Path.Combine ( " artifacts " , sprintf " %s .nupkg" ( Path.GetFileNameWithoutExtension proj))
137+ let getNupkgArtifactPath proj = Path.Combine ( artifactsPath , sprintf " %s .nupkg" ( Path.GetFileNameWithoutExtension proj))
137138
138139Target.create " Clean" ( fun _ ->
139140 Trace.log " --- Cleaning --- "
@@ -149,7 +150,7 @@ Target.create "Clean" (fun _ ->
149150 Shell.deleteDir " .fsdocs"
150151 Shell.deleteDir " output"
151152 Shell.deleteDir " temp"
152- Shell.deleteDir Templates.outputPath
153+ Shell.deleteDir artifactsPath
153154)
154155
155156Target.create " Restore" ( fun _ ->
@@ -228,13 +229,13 @@ Target.create "BuildTemplateProjects" (fun _ ->
228229
229230Target.create " PackTemplates" ( fun _ ->
230231 Trace.log " --- Packing template packages --- "
231- Shell.mkdir Templates.outputPath
232+ Shell.mkdir artifactsPath
232233 for nuspecPath in Templates.nuspecPaths do
233234 NuGet.NuGetPack
234235 ( fun opt -> {
235236 opt with
236237 WorkingDir = Path.GetDirectoryName nuspecPath
237- OutputPath = Templates.outputPath
238+ OutputPath = artifactsPath
238239 Version = sprintf " %s .%d " currentVersionInfo.versionName currentTemplateMinorVersion
239240 })
240241 nuspecPath
0 commit comments