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

Ignore node_modules while compiling queries #1686

Closed
wants to merge 2 commits into from

Conversation

MSNexploder
Copy link
Contributor

This prevents nonintuitive errors like 'createRefetchContainer' expects a second argument of fragment definitions. when using the project root (including node_modules) as source directory.

(fixes #1635)

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

If you are contributing on behalf of someone else (eg your employer): the individual CLA is not sufficient - use https://developers.facebook.com/opensource/cla?type=company instead. Contact [email protected] if you have any questions.

@MSNexploder
Copy link
Contributor Author

CLA signed 👍

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot
Copy link
Contributor

@leebyron has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@leebyron
Copy link
Contributor

Thanks!

facebook-github-bot pushed a commit that referenced this pull request Jul 13, 2017
Summary:
It would be nice to be a little more flexible with the search paths for `relay-compiler`. As of #1686 `relay-compiler` ignores node_modules. We have several Relay apps that share common components through node_modules and need a way to tell the compiler which ones to search. This change will let us add several more specific search paths and override the setting to ignore node_modules.

I was careful to do this in a way that is not a breaking change.
Closes #1921

Reviewed By: JenniferWang

Differential Revision: D5410197

Pulled By: kassens

fbshipit-source-id: e4fd90cb57be985458342ee9b35972982d5c462b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[modern] relay-compiler: createRefetchContainer expects a second argument of fragment definitions.
3 participants