Skip to content

Commit

Permalink
Refactor graphql-codegen configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
taro-28 committed May 20, 2024
1 parent 015c09e commit 29382e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/knip/src/plugins/graphql-codegen/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ const isEnabled: IsPluginEnabled = ({ dependencies }) => hasDependency(dependenc
const packageJsonPath = ['codegen', 'graphql'];

const config = [
'package.json',
// graphql-codegen config files
'codegen.{json,yml,yaml,js,ts,mjs,cts}',
'.codegenrc.{json,yml,yaml,js,ts}',
'codegen.config.js',
'package.json',
// graphql-config config files
// https://the-guild.dev/graphql/config/docs/user/usage#config-search-places
'.graphqlrc',
'.graphqlrc.{json,yml,yaml,toml,js,ts}',
Expand Down

0 comments on commit 29382e0

Please sign in to comment.