Skip to content

Automatically setup TypeScript when detected - #5549

Merged
Timer merged 5 commits into
react:masterfrom
Timer:resolve-only-in-ts-mode
Oct 24, 2018
Merged

Automatically setup TypeScript when detected#5549
Timer merged 5 commits into
react:masterfrom
Timer:resolve-only-in-ts-mode

Conversation

@Timer

@Timer Timer commented Oct 24, 2018

Copy link
Copy Markdown
Contributor

This causes weird behavior that allows the user to think types are being checked when they're really not.

@Timer Timer added this to the 2.1 milestone Oct 24, 2018
@Timer Timer mentioned this pull request Oct 24, 2018
3 tasks
@gaearon

gaearon commented Oct 24, 2018

Copy link
Copy Markdown
Contributor

👋 I'm that user

@gaearon

gaearon commented Oct 24, 2018

Copy link
Copy Markdown
Contributor

Can we also show some error?

@Timer

Timer commented Oct 24, 2018

Copy link
Copy Markdown
Contributor Author

How about this?

@Timer

Timer commented Oct 24, 2018

Copy link
Copy Markdown
Contributor Author

Actually, that's goofy. We can do better.

@Timer

Timer commented Oct 24, 2018

Copy link
Copy Markdown
Contributor Author

How about this?

Second run only shows this:

@Timer Timer changed the title Don't resolve TS files if it's not detected in the project Automatically setup TypeScript when detected Oct 24, 2018
@Timer
Timer merged commit 5ead915 into react:master Oct 24, 2018
zmitry pushed a commit to zmitry/create-react-app that referenced this pull request Oct 29, 2018
* Don't resolve TS files if it's not detected in the project

* Automatically create tsconfig.json file for user

* Remove always false check

* Add missing file

* Don't filter paths too early
nate770 pushed a commit to ONTW/create-react-app that referenced this pull request Oct 30, 2018
* Don't resolve TS files if it's not detected in the project

* Automatically create tsconfig.json file for user

* Remove always false check

* Add missing file

* Don't filter paths too early
@lock lock Bot locked and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants