Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove react-scripts type reference on eject #5611

Merged
merged 14 commits into from
Oct 30, 2018

Conversation

Timer
Copy link
Contributor

@Timer Timer commented Oct 29, 2018

Fixes #5596 by removing our added file

@Timer
Copy link
Contributor Author

Timer commented Oct 29, 2018

Wtf, no clue why this test is failing. It works locally. This is the last blocker for the 2.1 release.

/cc @brunolemos @ianschmitz

@ianschmitz
Copy link
Contributor

Having trouble running the e2e-install.sh on my machine (Windows life 😞). Wish i could help debug!

@brunolemos
Copy link
Contributor

The react-app.d.ts file is inside root/config but tsconfig.json is only seeing root/src.
If you move the file to src it will work.

@Timer
Copy link
Contributor Author

Timer commented Oct 29, 2018

@brunolemos that's the old behavior, note the file is no longer in config, but lib instead. Also note the file is no longer named react-app.d.ts and is now react-app-env.d.ts.

This PR should be writing the file correctly: https://github.com/facebook/create-react-app/pull/5611/files#diff-64d71298908161d0a835f0b72170c307R256

@Timer Timer merged commit 6364bbf into facebook:master Oct 30, 2018
@Timer Timer deleted the sanitize-app-type-decls branch October 30, 2018 03:16
nate770 pushed a commit to ONTW/create-react-app that referenced this pull request Oct 30, 2018
* Remove react-scripts type reference on eject

* Check for env file

* Check eject for typescript

* Shuffle appTypeDeclarations

* Append internal types on eject

* Ensure lib is published for types

* Adjust comment

* Don't add a bunch of new lines

* File should exist and not be deleted

* Add debug

* Set file explicitly

* Revert "Set file explicitly"

This reverts commit bcd58a3.

* Copy file before destroying ourselves

* Revert "Add debug"

This reverts commit 0068ba8.
mrmckeb pushed a commit to BeameryHQ/bmr-react-scripts that referenced this pull request Oct 31, 2018
* Remove react-scripts type reference on eject

* Check for env file

* Check eject for typescript

* Shuffle appTypeDeclarations

* Append internal types on eject

* Ensure lib is published for types

* Adjust comment

* Don't add a bunch of new lines

* File should exist and not be deleted

* Add debug

* Set file explicitly

* Revert "Set file explicitly"

This reverts commit bcd58a3.

* Copy file before destroying ourselves

* Revert "Add debug"

This reverts commit 0068ba8.
@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.

4 participants