Skip to content

Commit

Permalink
fix: expand the matching range of regex
Browse files Browse the repository at this point in the history
Co-authored-by: Asuka Minato <i@asukaminato.eu.org>
Co-authored-by: OverflowCat <overflowcat@gmail.com>
  • Loading branch information
3 people authored Jun 6, 2024
1 parent 32b0155 commit 2e6dcf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rtk-query-codegen-openapi/src/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const configFile = program.args[0];
if (program.args.length === 0 || !/\.(c?(jsx?|tsx?)|jsonc?)?$/.test(configFile)) {
program.help();
} else {
if (/\.tsx?$/.test(configFile) && !ts) {
if (/\.[mc]?tsx?$/.test(configFile) && !ts) {
console.error('Encountered a TypeScript configfile, but neither esbuild-runner nor ts-node are installed.');
process.exit(1);
}
Expand Down

0 comments on commit 2e6dcf0

Please sign in to comment.