File tree Expand file tree Collapse file tree 12 files changed +24
-24
lines changed
Expand file tree Collapse file tree 12 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
Original file line number Diff line number Diff line change @@ -325,8 +325,8 @@ jobs:
325325 - name : Selective cleanup (preserve .nx/cache)
326326 shell : powershell
327327 run : |
328- # Stop NX daemon first to release file locks before cleanup
329- npx nx daemon --stop 2>$null
328+ # Stop NX daemon first to release file locks before cleanup (guard for fresh runners without Node)
329+ if (Get-Command npx -ErrorAction SilentlyContinue) { npx nx daemon --stop 2> } $null
330330 # Remove build artifacts but keep NX cache for faster rebuilds
331331 if (Test-Path "dist") { Remove-Item -Recurse -Force "dist" }
332332 if (Test-Path "node_modules") { Remove-Item -Recurse -Force "node_modules" }
You can’t perform that action at this time.
0 commit comments