Skip to content

Commit

Permalink
Update test-example.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisherAmonulloev committed Dec 13, 2024
1 parent 300c01d commit d79871a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test-example.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,23 @@ function Process-JavaScriptProjects {
npm install $packageList --save --save-exact --no-fund
if (-not $?) {
Write-Error "`nERROR: Failed to install DevExtreme packages: $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Write-Output "`nInstalling the rest of the packages $($folder.Name)"
npm install --save --save-exact --no-fund --loglevel=error
if (-not $?) {
Write-Error "`nERROR: Failed to install packages: $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Write-Output "`nBuilding the project with 'npm run build' $($folder.Name)"
npm run build
if (-not $?) {
Write-Error "`nERROR: Failed to build the project: $($folder.Name)"
$global:LASTEXITCODE = 1
$global:errorCode = 1
}

Expand Down Expand Up @@ -100,6 +103,7 @@ function Process-DotNetProjects {
Write-Output "`nBuild succeeded for $($slnFile.FullName)."
} else {
Write-Error "`nBuild failed for $($slnFile.FullName)."
$global:LASTEXITCODE = 1
$global:errorCode = 1
}
}
Expand Down

0 comments on commit d79871a

Please sign in to comment.