mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-23 12:48:00 +08:00
Fix TypeScript file detection
This commit is contained in:
@@ -41,7 +41,7 @@ function verifyTypeScriptSetup() {
|
||||
let firstTimeSetup = false;
|
||||
|
||||
if (!fs.existsSync(paths.appTsConfig)) {
|
||||
if (!paths.appIndexJs.match(/\.ts?$/)) {
|
||||
if (!paths.appIndexJs.match(/\.tsx?$/)) {
|
||||
return;
|
||||
}
|
||||
writeJson(paths.appTsConfig, {});
|
||||
|
||||
Reference in New Issue
Block a user