Skip to content

Commit

Permalink
Add noSilentErrors option to the config type (#9523)
Browse files Browse the repository at this point in the history
* update CodegenConfig type (add  property)

* update config.schema.json by building website

run `yarn build` in website

* add a changeset
  • Loading branch information
tnyo43 committed Jul 9, 2023
1 parent a737ede commit bb1e0e9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/large-wombats-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-codegen/plugin-helpers': patch
---

add noSilentErrors option to the config type
4 changes: 4 additions & 0 deletions packages/utils/plugins-helpers/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@ export namespace Types {
* For more details: https://graphql-code-generator.com/docs/config-reference/lifecycle-hooks
*/
hooks?: Partial<LifecycleHooksDefinition>;
/**
* @description Alows to raise errors if any matched files are not valid GraphQL. Default: false.
*/
noSilentErrors?: boolean;
}

export type ComplexPluginOutput = { content: string; prepend?: string[]; append?: string[] };
Expand Down
4 changes: 4 additions & 0 deletions website/public/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@
"hooks": {
"$ref": "#/definitions/Partial",
"description": "Specifies scripts to run when events are happening in the codegen core.\nHooks defined on that level will effect all output files.\n\nFor more details: https://graphql-code-generator.com/docs/config-reference/lifecycle-hooks"
},
"noSilentErrors": {
"description": "Alows to raise errors if any matched files are not valid GraphQL. Default: false.",
"type": "boolean"
}
}
},
Expand Down

0 comments on commit bb1e0e9

Please sign in to comment.