-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Make yarn
and yarn jest react-native-codegen
works on Windows with git
#34854
Conversation
Base commit: 87acdfb |
Base commit: 108c876 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a bit concerned if this works also on unix-based system. But probably yes, given that it is a node
module.
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Yeah, rimraf is cross-platform |
From @robhogan
Also, we have a linting error:
|
I remember they look like generated C++ files from the unit test, I don't know why these files are not checked in or something. The
Fixed. |
This looks like something that only happens in Windows... Could you try again, by removing that Also, if we need that, a better approach would be to update the |
@cipolleschi Hi, looks like this commit added the |
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…h git (#34854) Summary: A few fixings to make `yarn jest react-native-doegen` works on Windows: - ~~Add a `.gitignore` file to tell git not to track generated/temporary files.~~ - There is no `rm` on Windows, change it to `rimraf`. I have been using it in the last 3 months and it works perfectly on Windows, otherwise I could not even build the code in my laptop. ## Changelog [General] [Changed] - Make `yarn` and `yarn jest react-native-codegen` works on Windows with git X-link: facebook/react-native#34854 Reviewed By: cortinico Differential Revision: D40059524 Pulled By: cortinico fbshipit-source-id: e3cde2506c7d18c2b580099257637b90f4cb328c
This pull request was successfully merged by @ZihanChen-MSFT in c4f9556. When will my fix make it into a release? | Upcoming Releases |
…h git (facebook#34854) Summary: A few fixings to make `yarn jest react-native-doegen` works on Windows: - ~~Add a `.gitignore` file to tell git not to track generated/temporary files.~~ - There is no `rm` on Windows, change it to `rimraf`. I have been using it in the last 3 months and it works perfectly on Windows, otherwise I could not even build the code in my laptop. ## Changelog [General] [Changed] - Make `yarn` and `yarn jest react-native-codegen` works on Windows with git Pull Request resolved: facebook#34854 Test Plan: `yarn jest react-native-codegen` passed Reviewed By: cortinico Differential Revision: D40059524 Pulled By: cortinico fbshipit-source-id: e3cde2506c7d18c2b580099257637b90f4cb328c
Summary
A few fixings to make
yarn jest react-native-doegen
works on Windows:Add a.gitignore
file to tell git not to track generated/temporary files.rm
on Windows, change it torimraf
.I have been using it in the last 3 months and it works perfectly on Windows, otherwise I could not even build the code in my laptop.
Changelog
[General] [Changed] - Make
yarn
andyarn jest react-native-codegen
works on Windows with gitTest Plan
yarn jest react-native-codegen
passed