Skip to content

Commit df94870

Browse files
lawvsasukaminato0721OverflowCat
committed
fix: expand the matching range of regex
Co-authored-by: Asuka Minato <i@asukaminato.eu.org> Co-authored-by: OverflowCat <overflowcat@gmail.com>
1 parent 7d53e3b commit df94870

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
@@ -38,7 +38,7 @@ const configFile = program.args[0];
3838
if (program.args.length === 0 || !/\.(c?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) {
3939
program.help();
4040
} else {
41-
if (/\.tsx?$/.test(configFile) && !ts) {
41+
if (/\.[mc]?tsx?$/.test(configFile) && !ts) {
4242
console.error('Encountered a TypeScript configfile, but neither esbuild-runner nor ts-node are installed.');
4343
process.exit(1);
4444
}

0 commit comments

Comments
 (0)