From 6f1a33f2d4f23695ec4779afb3f2eb45c9653c1f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Thu, 8 Oct 2026 01:51:10 +0200 Subject: [PATCH] Quartz launcher: judge the build by node's exit code Windows PowerShell 5.1 turns a native command's stderr into error records, so with ErrorActionPreference Stop the punycode deprecation warning from a dependency aborted every build. The node call now runs under Continue and the launcher exits with node's own exit code. Co-Authored-By: Claude Opus 5.5 --- scripts/quartz/quartz.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/quartz/quartz.ps1 b/scripts/quartz/quartz.ps1 index 6ac7991..cd3a2e3 100644 --- a/scripts/quartz/quartz.ps1 +++ b/scripts/quartz/quartz.ps1 @@ -51,4 +51,11 @@ $scriptArgs = @( "--outputDir", "quartz-site/public" ) +# Node writes deprecation warnings (punycode, from a dependency) to stderr. +# Windows PowerShell 5.1 turns native stderr into error records, which +# "Stop" makes fatal, so the build's exit code is the only verdict here. +$ErrorActionPreference = "Continue" & $node @scriptArgs +if ($LASTEXITCODE -ne 0) { + exit $LASTEXITCODE +}