Skip to content

Commit

Permalink
Add resolutions to pkg.json in TS example
Browse files Browse the repository at this point in the history
This is a way to guarantee that users install graphql@13.0 instead of 13.2 (which is broken) 

graphql/graphql-js#1248
  • Loading branch information
jaredpalmer committed Apr 8, 2018
1 parent dd5da16 commit 3122a7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
"react-apollo": "../../lib",
"react-dom": "^16.2.0"
},
"resolutions": {
"graphql": "0.13.0",
"@types/react": "16.0.38",
"@types/react-dom": "16.0.4"
},
"devDependencies": {
"@types/graphql": "0.12.7",
"@types/graphql": "0.13.0",
"@types/jest": "22.2.2",
"@types/node": "9.6.2",
"@types/prop-types": "15.5.2",
Expand Down

0 comments on commit 3122a7a

Please sign in to comment.