We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d649250 + b73c040 commit 37328caCopy full SHA for 37328ca
packages/rtk-query-codegen-openapi/src/bin/cli.ts
@@ -35,10 +35,10 @@ program.version(meta.version).usage('</path/to/config.js>').parse(process.argv);
35
36
const configFile = program.args[0];
37
38
-if (program.args.length === 0 || !/\.(c?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) {
+if (program.args.length === 0 || !/\.([mc]?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) {
39
program.help();
40
} else {
41
- if (/\.tsx?$/.test(configFile) && !ts) {
+ if (/\.[mc]?tsx?$/.test(configFile) && !ts) {
42
console.error('Encountered a TypeScript configfile, but neither esbuild-runner nor ts-node are installed.');
43
process.exit(1);
44
}
0 commit comments