Skip to content

Expose exit code semantics from YAML definitions#8

Merged
andrew merged 1 commit intomainfrom
expose-exit-code-semantics
Feb 27, 2026
Merged

Expose exit code semantics from YAML definitions#8
andrew merged 1 commit intomainfrom
expose-exit-code-semantics

Conversation

@andrew
Copy link
Contributor

@andrew andrew commented Feb 26, 2026

Add ExitCodeMeaning and IsFatalExitCode methods to Translator so callers can distinguish non-zero exit codes that produce valid output (like npm ls exiting 1 on peer dep issues) from actual failures.

Change npm resolve exit code 1 from "error" to "partial" since npm ls still outputs valid JSON in that case.

Add ExitCodeMeaning and IsFatalExitCode methods to Translator so callers
can distinguish non-zero exit codes that produce valid output (like npm ls
exiting 1 on peer dep issues) from actual failures.

Change npm resolve exit code 1 from "error" to "partial" since npm ls
still outputs valid JSON in that case.
@andrew andrew merged commit 2e6ea6d into main Feb 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant