From e1da1cfe3c014b143456bd00f937ac16bf9c0599 Mon Sep 17 00:00:00 2001 From: Zui Young Date: Thu, 6 Jun 2024 20:10:17 +0800 Subject: [PATCH] Fix powershell directory to npm run build --- scripts/install_purple_dependencies.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/install_purple_dependencies.ps1 b/scripts/install_purple_dependencies.ps1 index 40c22115..bd16f46b 100644 --- a/scripts/install_purple_dependencies.ps1 +++ b/scripts/install_purple_dependencies.ps1 @@ -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" @@ -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