diff --git a/package.json b/package.json index 228eb9c451..edb46a0725 100644 --- a/package.json +++ b/package.json @@ -508,8 +508,8 @@ "description": "Specifies the visibility of the Command Explorer in the PowerShell Side Bar." }, "powershell.sideBar.CommandExplorerExcludeFilter": { - "type":"array", - "default":[], + "type": "array", + "default": [], "description": "Specify array of Modules to exclude from Command Explorer listing." }, "powershell.powerShellExePath": { diff --git a/vscode-powershell.build.ps1 b/vscode-powershell.build.ps1 index 47c3ecab66..6c4635e0f1 100644 --- a/vscode-powershell.build.ps1 +++ b/vscode-powershell.build.ps1 @@ -60,9 +60,9 @@ task ResolveEditorServicesPath -Before CleanEditorServices, BuildEditorServices, } } -task Restore RestoreNodeModules -Before Build +task Restore RestoreNodeModules -Before Build -If { -not (Test-Path "$PSScriptRoot/node_modules") } -task RestoreNodeModules -If { -not (Test-Path "$PSScriptRoot/node_modules") } { +task RestoreNodeModules { Write-Host "`n### Restoring vscode-powershell dependencies`n" -ForegroundColor Green @@ -76,6 +76,7 @@ task Clean { Write-Host "`n### Cleaning vscode-powershell`n" -ForegroundColor Green Remove-Item .\modules\* -Exclude "README.md" -Recurse -Force -ErrorAction Ignore Remove-Item .\out -Recurse -Force -ErrorAction Ignore + exec { & npm prune } } task CleanEditorServices {