Skip to content

Commit 6b010b0

Browse files
committed
Fix TypeScript file detection
1 parent b5f156e commit 6b010b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/scripts/utils/verifyTypeScriptSetup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function verifyTypeScriptSetup() {
4141
let firstTimeSetup = false;
4242

4343
if (!fs.existsSync(paths.appTsConfig)) {
44-
if (!paths.appIndexJs.match(/\.ts?$/)) {
44+
if (!paths.appIndexJs.match(/\.tsx?$/)) {
4545
return;
4646
}
4747
writeJson(paths.appTsConfig, {});

0 commit comments

Comments
 (0)