Skip to content

Build can report terminal “Build failed” while exiting successfully #272

Description

@joshamaju

Summary

stack54 build can emit a terminal Build failed diagnostic while returning exit code 0. This makes it possible for CI or deployment tooling to accept a failed or partial build.

Impact

Consumers cannot rely on the process exit status alone to detect a failed production build.

Expected behavior

If the build reports its terminal Build failed diagnostic, the process should exit non-zero (or expose a documented machine-readable failure signal).

Reproduction / evidence

A downstream project currently wraps stack54 build, captures stdout/stderr, and treats a terminal case-insensitive Build failed message as authoritative because the exit code may still be 0. See: https://github.com/joshamaju/relay/blob/master/scripts/build.mjs

Stack54 version: 0.15.0
Vite: 7.3.6
Node: 25.x

Please let me know if a minimal fixture or raw build log would help.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions