dotansimha / dotansimha/graphql-code-generator

[cli] The --errorsOnly flag still produces non-error output

Open
#8,477 16 comments 16 reactions 0 assignees View on GitHub
core stage/0-issue-prerequisites
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

### Describe the bug

While running the code generator with --errorsOnly it still produces output such as:

```
✔ Parse Configuration
✔ Generate outputs
```

### Your Example Website or App

- Default minimal reproduction

### Steps to Reproduce the Bug or Issue

1. Open default minimal reproduction repository
2. Run `npm run codgen --errorsOnly`
3. Notice the output.

### Expected behavior

Since there are no errors in the schema or generation, it should not print any output with the `--errorsOnly` flag.

For very large configurations that runs e.g. in CI environments the output can be quite large. It would be nice if we in those cases could only print the errors, if any.

### Screenshots or Videos

_No response_

### Platform

- OS: Linux
- NodeJS: 16.17.1
- `graphql` version: 16.3.0
- `@graphql-codegen/cli` version(s): 2.13.5

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.