Skip to content

Nitrogen exits successfully when no specs are generated #1555

Description

@OskarEichler

Description

Nitrogen logs fatal errors but still reports a successful process status in two cases:

  • no *.nitro.ts files are found, because process.exit() defaults to status 0;
  • a spec-suffixed file contains no HybridObject or HybridView declaration, because only an error is logged.

This lets CI and build scripts treat an empty generation run as successful.

Expected behavior

Both cases should produce a nonzero exit status.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions