Skip to content

Commit

Permalink
allow tsx extension in typed-document-node plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Jul 21, 2020
1 parent 987df8c commit 2141811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugins/typescript/typed-document-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const validate: PluginValidateFn<any> = async (
config,
outputFile: string
) => {
if (extname(outputFile) !== '.ts') {
throw new Error(`Plugin "typed-document-node" requires extension to be ".ts"!`);
if (extname(outputFile) !== '.ts' && extname(outputFile) !== '.tsx') {
throw new Error(`Plugin "typed-document-node" requires extension to be ".ts" or ".tsx"!`);
}
};

0 comments on commit 2141811

Please sign in to comment.