Skip to content

yarn rw g types exit code #3514

@cjreimer

Description

@cjreimer

yarn rw g types is very helpful and indicates errors, such as below.

Generating...

Not all operations have an unique name: UpdateMilestoneMutation
Not all operations have an unique name: UpdateMilestoneMutation

Error: Could not generate GraphQL type definitions (web)

The type generation is also called automatically via various other redwood operations. If not paying attention to the console, it's easy to miss errors.

Would it be possible to produce a failure exit code if there are errors? That we could run this command as part of CI checks to ensure that errors do not get overlooked.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions