@@ -32,7 +32,7 @@ task GetExtensionVersion -Before Package {
3232 }
3333}
3434
35- task ResolveEditorServicesPath - Before Clean , BuildEditorServices {
35+ task ResolveEditorServicesPath - Before CleanEditorServices , BuildEditorServices {
3636
3737 $script :psesRepoPath = `
3838 if ($EditorServicesRepoPath ) {
@@ -64,31 +64,34 @@ task Restore -If { "Restore" -in $BuildTask -or !(Test-Path "./node_modules") }
6464}
6565
6666task Clean {
67+ Write-Host " `n ### Cleaning vscode-powershell`n " - ForegroundColor Green
68+ Remove-Item .\out - Recurse - Force - ErrorAction Ignore
69+ }
6770
71+ task CleanEditorServices {
6872 if ($script :psesBuildScriptPath ) {
6973 Write-Host " `n ### Cleaning PowerShellEditorServices`n " - ForegroundColor Green
7074 Invoke-Build Clean $script :psesBuildScriptPath
7175 }
72-
73- Write-Host " `n ### Cleaning vscode-powershell`n " - ForegroundColor Green
74- Remove-Item .\out - Recurse - Force - ErrorAction Ignore
7576}
7677
77- task Build BuildEditorServices , BuildClient - Before Package
78+ task CleanAll CleanEditorServices , Clean
7879
79- task BuildClient {
80+ task Build {
8081 Write-Host " `n ### Building vscode-powershell" - ForegroundColor Green
8182 exec { & npm run compile }
8283}
8384
8485task BuildEditorServices {
85- # If the PSES codebase is co-located, build it first
86+ # If the PSES codebase is co-located, build it first
8687 if ($script :psesBuildScriptPath ) {
8788 Write-Host " `n ### Building PowerShellEditorServices`n " - ForegroundColor Green
8889 Invoke-Build Build $script :psesBuildScriptPath
8990 }
9091}
9192
93+ task BuildAll BuildEditorServices, Build - Before Package
94+
9295task Package {
9396
9497 if ($script :psesBuildScriptPath ) {
@@ -109,4 +112,4 @@ task UploadArtifacts -If { $env:AppVeyor } {
109112}
110113
111114# The default task is to run the entire CI build
112- task . GetExtensionVersion, Clean , Build , Package, UploadArtifacts
115+ task . GetExtensionVersion, CleanAll , BuildAll , Package, UploadArtifacts
0 commit comments