Skip to content

Commit

Permalink
Add missing paths for tsconfig.json and jsconfig.json (#200)
Browse files Browse the repository at this point in the history
CRA detects TS inside project and wants to create `tsconfig.json`, but crashes because `appTsConfig` is missing. `jsconfig.json` was also missing.
  • Loading branch information
mlajtos authored Feb 15, 2020
1 parent 428f3fa commit fa4cd2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-scripts/config/paths.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ module.exports = {
appIndexJs: resolveApp('src/index.js'),
appPackageJson: resolveApp('package.json'),
appSrc: resolveApp('src'),
appTsConfig: resolveApp('tsconfig.json'),
appJsConfig: resolveApp('jsconfig.json'),
componentsDir: resolveApp('src/components'),
componentsJs: resolveApp('src/components/index.js'),
componentsStaticJS: resolveApp('src/components/static.js'),
Expand Down Expand Up @@ -117,6 +119,8 @@ module.exports = {
appIndexJs: resolveApp('src/index.js'),
appPackageJson: resolveApp('package.json'),
appSrc: resolveApp('src'),
appTsConfig: resolveApp('tsconfig.json'),
appJsConfig: resolveApp('jsconfig.json'),
componentsDir: resolveApp('src/components'),
componentsJs: resolveApp('src/components/index.js'),
componentsStaticJs: resolveApp('src/components/static.js'),
Expand Down

0 comments on commit fa4cd2e

Please sign in to comment.