-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Rust compiler: purging non-Relay files from __generated__ folders #3438
Comments
For most code we use a fixed output directory, but in the places we use the relative directory I don't think we had anything other then Relay in them. I think it'd be reasonable to match on Not sure I feel good about adding yet another output directory version as our options are already kindof hard to all test and it'd also add more confusion to the config as it would also need that configuration in the Babel plugin, I think. |
But assuming the existing JS compiler only removes the Relay files, we should fix this. |
moved this comment to the correct issue #3437 (comment) |
(edit by @kassens) moved this comment to the correct issue #3437 (comment) |
See: facebook/relay#3438 adeira-source-id: 47ebdf10ddc94dec2bab68accaf44c477e264f39
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is not stale. In fact, I believe there is a PR in progress fixing this issue: #3700 |
See: facebook/relay#3438 adeira-source-id: 47ebdf10ddc94dec2bab68accaf44c477e264f39
Hi, I have a feature request (or proposal/discussion) for the new Rust compiler. I noticed that the new compiler always deletes the whole content of
__generated__
folder. It's even explained here:relay/compiler/crates/relay-compiler/src/config.rs
Lines 667 to 672 in 63c4e99
I see the
__generated__
folder to be a nice convention together with__tests__
,__fixtures__
and so on. Nothing screams from it "Relay" (but rather "it's generated content"). So I used this pattern for some other use-cases where I generate some kind of non-Relay content into__generated__
. This obviously brings some troubles now since Relay Rust compiler purges these files (even though it has nothing to do with Relay and there are no Relay artifacts).What is the recommended strategy here? Or perhaps, would you please reconsider this behavior? Some other solutions could be:
*.graphql.js
(or new*.relay.js
) files under__generated__/…
__generated__/relay/…
__generated__/something-different/…
Have you encountered this situation inside Facebook? How did you solve it?
Thanks! 😎
The text was updated successfully, but these errors were encountered: