Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions packages/graphql-codegen-cli/src/graphql-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ function isGraphQLConfig(config: GraphQLConfig): config is GraphQLConfig {
return false;
}

try {
return config.getDefault().hasExtension('codegen');
} catch {}

try {
for (const projectName in config.projects) {
if (Object.prototype.hasOwnProperty.call(config.projects, projectName)) {
Expand All @@ -71,5 +67,9 @@ function isGraphQLConfig(config: GraphQLConfig): config is GraphQLConfig {
}
} catch {}

try {
return config.getDefault().hasExtension('codegen');
} catch {}

return false;
}