From d189799aea7815bd19c1289110c8c94b324bef0d Mon Sep 17 00:00:00 2001 From: Sam Kvale Date: Fri, 17 Oct 2025 12:47:08 -0500 Subject: [PATCH] fix: typescript/graphql-apollo allow tsx output files extName includes the `.` --- packages/plugins/typescript/graphql-apollo/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/typescript/graphql-apollo/src/index.ts b/packages/plugins/typescript/graphql-apollo/src/index.ts index b0d5b7f904..97c020401e 100644 --- a/packages/plugins/typescript/graphql-apollo/src/index.ts +++ b/packages/plugins/typescript/graphql-apollo/src/index.ts @@ -46,7 +46,7 @@ export const validate: PluginValidateFn = async ( config: RawClientSideBasePluginConfig, outputFile: string, ) => { - if (extname(outputFile) !== '.ts' && extname(outputFile) !== 'tsx') { + if (extname(outputFile) !== '.ts' && extname(outputFile) !== '.tsx') { throw new Error(`Plugin "typescript-graphql-apollo" requires extension to be ".ts" or ".tsx"!`); } };