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 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-08 01:51:10 +02:00
commit 6f1a33f2d4

View file

@ -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
}