Fix TypeScript file detection

This commit is contained in:
Joe Haddad
2018-10-22 08:36:41 -04:00
parent b5f156efec
commit 6b010b09a9

View File

@@ -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, {});