From 300c01d0ca53e4cc464c118134a90ecfdfa0c421 Mon Sep 17 00:00:00 2001 From: AlisherAmonulloev Date: Fri, 13 Dec 2024 10:03:01 +0200 Subject: [PATCH] Update test-example.ps1 --- test-example.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test-example.ps1 b/test-example.ps1 index dbf0078..c247a1e 100644 --- a/test-example.ps1 +++ b/test-example.ps1 @@ -55,7 +55,11 @@ function Process-JavaScriptProjects { Write-Output "`nInstalling DevExtreme packages" npm install $packageList --save --save-exact --no-fund - + if (-not $?) { + Write-Error "`nERROR: Failed to install DevExtreme packages: $($folder.Name)" + $global:errorCode = 1 + } + Write-Output "`nInstalling the rest of the packages $($folder.Name)" npm install --save --save-exact --no-fund --loglevel=error if (-not $?) {