Make yarn and yarn jest react-native-codegen works on Windows with git#34854
Make yarn and yarn jest react-native-codegen works on Windows with git#34854ZihanChen-MSFT wants to merge 5 commits into
yarn and yarn jest react-native-codegen works on Windows with git#34854Conversation
Base commit: 87acdfb |
Base commit: 108c876 |
cipolleschi
left a comment
There was a problem hiding this comment.
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 |
Summary
A few fixings to make
yarn jest react-native-doegenworks on Windows:Add a.gitignorefile to tell git not to track generated/temporary files.rmon 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
yarnandyarn jest react-native-codegenworks on Windows with gitTest Plan
yarn jest react-native-codegenpassed