diff --git a/packages/rtk-query-codegen-openapi/src/bin/cli.ts b/packages/rtk-query-codegen-openapi/src/bin/cli.ts index d3650416d..a43bce583 100644 --- a/packages/rtk-query-codegen-openapi/src/bin/cli.ts +++ b/packages/rtk-query-codegen-openapi/src/bin/cli.ts @@ -38,7 +38,7 @@ const configFile = program.args[0]; if (program.args.length === 0 || !/\.(c?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) { program.help(); } else { - if (/\.[mc]?tsx?$/.test(configFile) && !ts) { + if (/\.c?tsx?$/.test(configFile) && !ts) { console.error('Encountered a TypeScript configfile, but neither esbuild-runner nor ts-node are installed.'); process.exit(1); }