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
Expose way to override isGeneratedFile function via language plugin. #2810
Conversation
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.
it makes sense
Anyone had time to look at this? |
… deletion of files marked as generated.
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.
@alunyov has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…2810) Summary: This PR lets language plugins override `isGeneratedFile`. My use case is emitting ReasonML types, where the generated files need to be called `SomeModule_graphql.re` rather than `SomeModule.graphql.re`, since ReasonML does not accept `.` in the file name other than for the extension. Pull Request resolved: #2810 Reviewed By: kassens Differential Revision: D19834002 Pulled By: alunyov fbshipit-source-id: 34e71eb20425ab5dd699481e988ed4a9662ceab5
This PR lets language plugins override
isGeneratedFile
. My use case is emitting ReasonML types, where the generated files need to be calledSomeModule_graphql.re
rather thanSomeModule.graphql.re
, since ReasonML does not accept.
in the file name other than for the extension.