Skip to content

Commit 30f7831

Browse files
MacluddeLudvig Svedberg
authored andcommitted
Add support for .cjs and .cts files in codegen cli (#2438)
Co-authored-by: Ludvig Svedberg <ludvig.svedberg@mikrodust.com>
1 parent 48a2d91 commit 30f7831

File tree

1 file changed

+1
-1
lines changed
  • packages/rtk-query-codegen-openapi/src/bin

1 file changed

+1
-1
lines changed

packages/rtk-query-codegen-openapi/src/bin/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ program.version(meta.version).usage('</path/to/config.js>').parse(process.argv);
4343

4444
const configFile = program.args[0];
4545

46-
if (program.args.length === 0 || !/\.(jsx?|tsx?|jsonc?)?$/.test(configFile)) {
46+
if (program.args.length === 0 || !/\.(c?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) {
4747
program.help();
4848
} else {
4949
if (/\.tsx?$/.test(configFile) && !ts) {

0 commit comments

Comments
 (0)