-
Notifications
You must be signed in to change notification settings - Fork 254
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
Fix node-fetch runtime build-time regression #2116
Conversation
#1970 seems to have caused a regression based on `@types/node-fetch` not being in the gateway's runtime dependencies
✅ Deploy Preview for apollo-federation-docs canceled.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
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.
Thanks for the PR, just one question 🙂
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'd clarify in the title that this is only a build-time regression (i.e. non-TS users should be unaffected). The types package is needed in dependencies
since dev dependencies aren't installed into node_modules
but the types must be present for the gateway package to build due to the node-fetch
import in the .d.ts
file.
edit: compilation is part of the install lifecycle so probably also affecting non-TS users but still not at runtime 😄
#1970 seems to have caused a regression based on
@types/node-fetch
not being in the gateway's runtime dependenciesFixes #2113