From 3122a7ad97e0da992db6ffaf707c581ce0b9f106 Mon Sep 17 00:00:00 2001 From: Jared Palmer Date: Sun, 8 Apr 2018 17:52:31 -0400 Subject: [PATCH] Add resolutions to pkg.json in TS example This is a way to guarantee that users install graphql@13.0 instead of 13.2 (which is broken) https://github.com/graphql/graphql-js/issues/1248 --- examples/typescript/package.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/typescript/package.json b/examples/typescript/package.json index d0f049bfef..cc062f68ab 100644 --- a/examples/typescript/package.json +++ b/examples/typescript/package.json @@ -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",