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:
parent
700a3247b2
commit
6f1a33f2d4
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue