-
Notifications
You must be signed in to change notification settings - Fork 3
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
The graphql package is only a devDependency #12
Comments
I can see two alternative solutions to this:
|
According to these docs:
|
So the solution I think would be to add |
The
gql-cache
package does not run any code from thegraphql
package, but it does use types from@types/graphql
in order to express what types should be passed into it's functions.So another package developed in typescript, lets call it
foo
wants to usegql-cache
but has no need for thegraphql
package. However thefoo
package will not compile now becuase it will fail on the code that imports types fromgraphql
since@types/graphql
is not installed anywhwere for thefoo
package. You get an error like this:The text was updated successfully, but these errors were encountered: