Skip to content

Commit bad5090

Browse files
authored
fixes (#1245)
1 parent 8a368b4 commit bad5090

4 files changed

Lines changed: 85 additions & 78 deletions

File tree

.changeset/big-ghosts-buy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-config': patch
3+
---
4+
5+
fix `peerDependenciesMeta` was not included in `package.json`

config-schema.json

Lines changed: 65 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,20 @@
1212
}
1313
],
1414
"definitions": {
15+
"DocumentPointer": {
16+
"anyOf": [
17+
{
18+
"items": {
19+
"type": "string"
20+
},
21+
"type": "array"
22+
},
23+
{
24+
"type": "string"
25+
}
26+
],
27+
"title": "DocumentPointer"
28+
},
1529
"IExtensions": {
1630
"additionalProperties": {},
1731
"description": "Configuration of each used extension",
@@ -22,82 +36,23 @@
2236
"description": "GraphQL Project",
2337
"properties": {
2438
"documents": {
25-
"anyOf": [
26-
{
27-
"items": {
28-
"type": "string"
29-
},
30-
"type": "array"
31-
},
32-
{
33-
"type": "string"
34-
}
35-
],
39+
"$ref": "#/definitions/DocumentPointer",
3640
"title": "documents"
3741
},
3842
"exclude": {
39-
"anyOf": [
40-
{
41-
"items": {
42-
"type": "string"
43-
},
44-
"type": "array"
45-
},
46-
{
47-
"type": "string"
48-
}
49-
],
43+
"$ref": "#/definitions/WithList<string>",
5044
"title": "exclude"
5145
},
5246
"extensions": {
5347
"$ref": "#/definitions/IExtensions",
5448
"title": "extensions"
5549
},
5650
"include": {
57-
"anyOf": [
58-
{
59-
"items": {
60-
"type": "string"
61-
},
62-
"type": "array"
63-
},
64-
{
65-
"type": "string"
66-
}
67-
],
51+
"$ref": "#/definitions/WithList<string>",
6852
"title": "include"
6953
},
7054
"schema": {
71-
"anyOf": [
72-
{
73-
"items": {
74-
"type": "string"
75-
},
76-
"type": "array"
77-
},
78-
{
79-
"items": {
80-
"additionalProperties": {
81-
"properties": {
82-
"headers": {
83-
"additionalProperties": {
84-
"type": "string"
85-
},
86-
"title": "headers",
87-
"type": "object"
88-
}
89-
},
90-
"required": ["headers"],
91-
"type": "object"
92-
},
93-
"type": "object"
94-
},
95-
"type": "array"
96-
},
97-
{
98-
"type": "string"
99-
}
100-
],
55+
"$ref": "#/definitions/SchemaPointer",
10156
"title": "schema"
10257
}
10358
},
@@ -156,6 +111,53 @@
156111
"required": ["projects"],
157112
"title": "IGraphQLProjects",
158113
"type": "object"
114+
},
115+
"SchemaPointer": {
116+
"anyOf": [
117+
{
118+
"items": {
119+
"type": "string"
120+
},
121+
"type": "array"
122+
},
123+
{
124+
"items": {
125+
"additionalProperties": {
126+
"properties": {
127+
"headers": {
128+
"additionalProperties": {
129+
"type": "string"
130+
},
131+
"title": "headers",
132+
"type": "object"
133+
}
134+
},
135+
"required": ["headers"],
136+
"type": "object"
137+
},
138+
"type": "object"
139+
},
140+
"type": "array"
141+
},
142+
{
143+
"type": "string"
144+
}
145+
],
146+
"title": "SchemaPointer"
147+
},
148+
"WithList<string>": {
149+
"anyOf": [
150+
{
151+
"items": {
152+
"type": "string"
153+
},
154+
"type": "array"
155+
},
156+
{
157+
"type": "string"
158+
}
159+
],
160+
"title": "WithList<string>"
159161
}
160162
},
161163
"description": "Structure of GraphQL Config"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"@types/node": "18.11.18",
7979
"@typescript-eslint/eslint-plugin": "5.50.0",
8080
"@typescript-eslint/parser": "5.50.0",
81-
"bob-the-bundler": "5.0.0",
81+
"bob-the-bundler": "5.0.1",
8282
"cosmiconfig-toml-loader": "1.0.0",
8383
"cosmiconfig-typescript-loader": "4.3.0",
8484
"del": "6.1.1",

yarn.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,10 +1024,10 @@ binary-extensions@^2.0.0:
10241024
resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d"
10251025
integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==
10261026

1027-
1028-
version "5.0.0"
1029-
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-5.0.0.tgz#2eee7ce0c7a84a70562fab3a97d5275b5f65c026"
1030-
integrity sha512-4PQslU5EdID0Lwf4dZTJ9PWsA7k+ogvvd/1wK/GTZAqSaxaXGc544Aia15vMzSQsh82J+Ff7iETTYa3gDcPv2Q==
1027+
1028+
version "5.0.1"
1029+
resolved "https://registry.yarnpkg.com/bob-the-bundler/-/bob-the-bundler-5.0.1.tgz#4c41534737ed04de822a09e5c2cf959967bf7d68"
1030+
integrity sha512-oFl2AuEaEQgCVk+nDf2wqSyCzgzE4e4bRZb0/kRynRH+wRGT7725K/99bp2PTJof6nM2GJRD7PfMPHgfuE1bIQ==
10311031
dependencies:
10321032
"@vercel/ncc" "^0.36.0"
10331033
consola "^2.15.3"
@@ -1037,9 +1037,9 @@ [email protected]:
10371037
globby "^13.1.3"
10381038
js-yaml "^4.1.0"
10391039
lodash.get "^4.4.2"
1040-
mkdirp "^1.0.4"
1040+
mkdirp "^2.0.0"
10411041
p-limit "^4.0.0"
1042-
resolve.exports "^1.1.0"
1042+
resolve.exports "^2.0.0"
10431043
tslib "^2.0.0"
10441044
tsup "^6.5.0"
10451045
yargs "^17.6.2"
@@ -2816,10 +2816,10 @@ mixme@^0.5.1:
28162816
resolved "https://registry.yarnpkg.com/mixme/-/mixme-0.5.4.tgz#8cb3bd0cd32a513c161bf1ca99d143f0bcf2eff3"
28172817
integrity sha512-3KYa4m4Vlqx98GPdOHghxSdNtTvcP8E0kkaJ5Dlh+h2DRzF7zpuVVcA8B0QpKd11YJeP9QQ7ASkKzOeu195Wzw==
28182818

2819-
mkdirp@^1.0.4:
2820-
version "1.0.4"
2821-
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e"
2822-
integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==
2819+
mkdirp@^2.0.0:
2820+
version "2.1.3"
2821+
resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-2.1.3.tgz#b083ff37be046fd3d6552468c1f0ff44c1545d1f"
2822+
integrity sha512-sjAkg21peAG9HS+Dkx7hlG9Ztx7HLeKnvB3NQRcu/mltCVmvkF0pisbiTSfDVYTT86XEfZrTUosLdZLStquZUw==
28232823

28242824
mlly@^1.0.0, mlly@^1.1.0:
28252825
version "1.1.0"
@@ -3304,10 +3304,10 @@ resolve-from@^4.0.0:
33043304
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6"
33053305
integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==
33063306

3307-
resolve.exports@^1.1.0:
3308-
version "1.1.0"
3309-
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9"
3310-
integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==
3307+
resolve.exports@^2.0.0:
3308+
version "2.0.0"
3309+
resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-2.0.0.tgz#c1a0028c2d166ec2fbf7d0644584927e76e7400e"
3310+
integrity sha512-6K/gDlqgQscOlg9fSRpWstA8sYe8rbELsSTNpx+3kTrsVCzvSl0zIvRErM7fdl9ERWDsKnrLnwB+Ne89918XOg==
33113311

33123312
resolve@^1.10.0, resolve@^1.22.1:
33133313
version "1.22.1"

0 commit comments

Comments
 (0)