From a3e6f10058ece68260f49d920e6ba28510ec096f Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Wed, 24 Aug 2022 12:47:32 -0400 Subject: [PATCH] fix(types): move types to peer deps --- package.json | 16 +++++++++++++--- yarn.lock | 12 ++++++------ 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 0a47e51..ab3e41d 100644 --- a/package.json +++ b/package.json @@ -62,8 +62,6 @@ "homepage": "https://github.com/relay-tools/found-relay#readme", "dependencies": { "@babel/runtime": "^7.17.9", - "@types/react-relay": "^11.0.1", - "@types/relay-runtime": "^12.0.0", "dequal": "^2.0.2", "is-promise": "^4.0.0", "prop-types": "^15.7.2", @@ -73,7 +71,17 @@ "found": ">=0.5.1", "react": ">=16.9.0", "react-relay": ">=12.0.0", - "relay-runtime": ">=12.0.0" + "relay-runtime": ">=12.0.0", + "@types/react-relay": ">=11.0.1", + "@types/relay-runtime": ">=12.0.0" + }, + "peerDependenciesMeta": { + "@types/react-relay": { + "optional": true + }, + "@types/relay-runtime": { + "optional": true + } }, "devDependencies": { "@4c/babel-preset": "^8.1.1", @@ -85,6 +93,8 @@ "@babel/preset-typescript": "^7.16.7", "@typescript-eslint/eslint-plugin": "^5.18.0", "@typescript-eslint/parser": "^5.18.0", + "@types/react-relay": "^11.0.1", + "@types/relay-runtime": "^12.0.0", "babel-jest": "^26.6.3", "babel-plugin-add-module-exports": "^1.0.4", "babel-plugin-relay": "^10.1.3", diff --git a/yarn.lock b/yarn.lock index 6031d93..03c2d2c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2089,9 +2089,9 @@ "@types/relay-runtime" "*" "@types/react@*": - version "17.0.43" - resolved "https://registry.yarnpkg.com/@types/react/-/react-17.0.43.tgz#4adc142887dd4a2601ce730bc56c3436fdb07a55" - integrity sha512-8Q+LNpdxf057brvPu1lMtC5Vn7J119xrP1aq4qiaefNioQUYANF/CYeK4NsKorSZyUGJ66g0IM+4bbjwx45o2A== + version "18.0.17" + resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.17.tgz#4583d9c322d67efe4b39a935d223edcc7050ccf4" + integrity sha512-38ETy4tL+rn4uQQi7mB81G7V1g0u2ryquNmsVIOKUAEIDK+3CUjZ6rSRpdvS99dNBnkLFL83qfmtLacGOTIhwQ== dependencies: "@types/prop-types" "*" "@types/scheduler" "*" @@ -2106,9 +2106,9 @@ csstype "^3.0.2" "@types/relay-runtime@*": - version "13.0.3" - resolved "https://registry.yarnpkg.com/@types/relay-runtime/-/relay-runtime-13.0.3.tgz#0139a02d24fd527c844af3063e943692fd181854" - integrity sha512-LZr9fiWspAtiFIMDcj/6LarYFqxd3jh3ASXULtWL5Tl5CHoDe48Il2nIAF66XKLLCG3QvDgHR8yLX6ZVWKjkkw== + version "14.1.2" + resolved "https://registry.yarnpkg.com/@types/relay-runtime/-/relay-runtime-14.1.2.tgz#252313e977f5b4d5a71d623fb8147c7815efbc9d" + integrity sha512-HeXlKlkGakGZtnViOk5lRn5ljjYqR+EvbJodt0hmwAp5YrWZ5kdXqzMWvAhlAUpGJtP7NkKwMMAsduy46S7UjA== "@types/relay-runtime@^12.0.0": version "12.0.2"