Skip to content

Commit

Permalink
Fix powershell directory to npm run build
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim authored Jun 6, 2024
1 parent 361aca3 commit e1da1cf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/install_purple_dependencies.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if (Test-Path -Path .\jdk -PathType Container) {
# Install Node dependencies
if (Test-Path purple-a11y) {
Write-Output "Installing node dependencies"
& ".\a11y_shell_ps.ps1" "cd purple-a11y;npm ci --force"
& ".\a11y_shell_ps.ps1" "cd purple-a11y;npm ci --force;cd .."

# Omit installing Playwright browsers as it is not reuqired
# Write-Output "Install Playwright browsers"
Expand All @@ -73,9 +73,10 @@ if (Test-Path purple-a11y) {
try {
Write-Output "Building Typescript"
& ".\a11y_shell_ps.ps1" "cd purple-a11y;npm run build"
} catch {
Write-Output "Build with some errors but continuing"
}
} catch {
Write-Output "Build with some errors but continuing. $_.Exception.Message"
}

if (Test-Path purple-a11y\.git) {
Write-Output "Unhide .git folder"
attrib -s -h purple-a11y\.git
Expand Down

0 comments on commit e1da1cf

Please sign in to comment.