dotansimha / dotansimha/graphql-code-generator

programmatic usage errorsOnly regression

Open
#8,973 5 comments 11 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

### Which packages are impacted by your issue?

@graphql-codegen/cli

### Describe the bug

`errorsOnly:true` does not suppress status logs

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

### Your Example Website or App

none

### Steps to Reproduce the Bug or Issue

Install version 3 of codegen cli, use

Use programatic usage like

```ts
await generate(
{
schema: `${__dirname}/../../${name}/generated/schema.graphql`,
documents: folders.map(
(folder) => `${pwd}/${folder}/**/*.${name}.graphql`,
),
generates: {
[`${pwd}/generated/${name}.graphql.ts`]: presets[preset],
},
errorsOnly: true,
watch,
},
true,
)
```

### Expected behavior

To not log

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

### Screenshots or Videos

_No response_

### Platform

- OS: [e.g. macOS, Windows, Linux]
- NodeJS: [e.g. 18.5.0]
- `graphql` version: [e.g. 16.3.0]
- `@graphql-codegen/*` version(s): 3.0.0

### Codegen Config File

_No response_

### Additional context

_No response_

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.