Skip to content

Commit 20b46f4

Browse files
Kapil Borledaviwil
authored andcommitted
Separate EditorServices and client build
1 parent 54030f0 commit 20b46f4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

vscode-powershell.build.ps1

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ task GetExtensionVersion -Before Package {
3232
}
3333
}
3434

35-
task ResolveEditorServicesPath -Before Clean, Build {
35+
task ResolveEditorServicesPath -Before Clean, BuildEditorServices {
3636

3737
$script:psesRepoPath = `
3838
if ($EditorServicesRepoPath) {
@@ -74,16 +74,19 @@ task Clean {
7474
Remove-Item .\out -Recurse -Force -ErrorAction Ignore
7575
}
7676

77-
task Build -Before Package {
77+
task Build BuildEditorServices, BuildClient -Before Package
7878

79-
# If the PSES codebase is co-located, build it first
79+
task BuildClient {
80+
Write-Host "`n### Building vscode-powershell" -ForegroundColor Green
81+
exec { & npm run compile }
82+
}
83+
84+
task BuildEditorServices {
85+
# If the PSES codebase is co-located, build it first
8086
if ($script:psesBuildScriptPath) {
8187
Write-Host "`n### Building PowerShellEditorServices`n" -ForegroundColor Green
8288
Invoke-Build Build $script:psesBuildScriptPath
8389
}
84-
85-
Write-Host "`n### Building vscode-powershell" -ForegroundColor Green
86-
exec { & npm run compile }
8790
}
8891

8992
task Package {

0 commit comments

Comments
 (0)