programmatic usage errorsOnly regression
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
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]
graphqlversion: [e.g. 16.3.0]@graphql-codegen/*version(s): 3.0.0
Codegen Config File
No response
Additional context
No response
Hi @n1ru4l, not related to Parse Server, but in my company project i noticed the regression
Any workarounds?
Not sure if this is related, but also with @graphql-codegen/[email protected] I'm not able to suppress regular logs in dev mode.
I'm using this as a workaround:
"dev": "concurrently \"next dev\" \"yarn codegen --watch\" --hide 1",
That silences errors as well, no?
Reported in this issue previously https://github.com/dotansimha/graphql-code-generator/issues/8477