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

fix: make watch work in all platform #991

Merged
merged 1 commit into from
Feb 20, 2020

Conversation

molant
Copy link
Contributor

@molant molant commented Feb 19, 2020

Summary:

Use chokidar to track file system changes as soon it will throw an
error if the platform does not support { recursive: true }.

Fix also an error where the built file was not being deleted when the
source was removed.


Fix #989
Ref: nodejs/node#29947

Test Plan:

N/A

@molant
Copy link
Contributor Author

molant commented Feb 19, 2020

You can see it in action with WSL2 in the following YouTube video:

image

@molant
Copy link
Contributor Author

molant commented Feb 19, 2020

unlinking is not yet working properly on Windows. Will update the PR shortly

Use `chokidar` to track file system changes as soon it will throw an
error if the platform does not support `{ recursive: true }`.

Fix also an error where the built file was not being deleted when the
source was removed.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Fix react-native-community#989
Ref: nodejs/node#29947
@molant
Copy link
Contributor Author

molant commented Feb 19, 2020

This is working properly now on Linux and Windows and I hope on mac as well 😊

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works on macOS, thank you so much!

@thymikee thymikee merged commit de88029 into react-native-community:master Feb 20, 2020
@molant molant deleted the fix/watch branch February 20, 2020 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

yarn watch doesn't get changes from all files on Linux and Windows
2 participants