Skip to content

Commit c5efba3

Browse files
jnoordsijeddeee888
andauthored
Mark graphql-sock peer dependency as optional in typescript/operations plugin (#10330)
* Mark graphql-sock peer dependency as optional in typescript/operations plugin * Make graphql-sock optional peerDep * Add changeset --------- Co-authored-by: Eddy Nguyen <[email protected]> Co-authored-by: Eddy Nguyen <[email protected]>
1 parent 10ab58d commit c5efba3

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

.changeset/gentle-cooks-add.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@graphql-codegen/typescript-operations': patch
3+
'@graphql-codegen/typescript-resolvers': patch
4+
'@graphql-codegen/client-preset': patch
5+
---
6+
7+
Make graphql-sock optional peerDep

packages/plugins/typescript/operations/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
2424
"graphql-sock": "^1.0.0"
2525
},
26+
"peerDependenciesMeta": {
27+
"graphql-sock": {
28+
"optional": true
29+
}
30+
},
2631
"devDependencies": {
2732
"graphql-sock": "1.0.0"
2833
},

packages/plugins/typescript/resolvers/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
2525
"graphql-sock": "^1.0.0"
2626
},
27+
"peerDependenciesMeta": {
28+
"graphql-sock": {
29+
"optional": true
30+
}
31+
},
2732
"devDependencies": {
2833
"graphql-subscriptions": "3.0.0",
2934
"graphql-sock": "1.0.0"

packages/presets/client/package.json

+5
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
"graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
3737
"graphql-sock": "^1.0.0"
3838
},
39+
"peerDependenciesMeta": {
40+
"graphql-sock": {
41+
"optional": true
42+
}
43+
},
3944
"main": "dist/cjs/index.js",
4045
"module": "dist/esm/index.js",
4146
"exports": {

0 commit comments

Comments
 (0)