-
Notifications
You must be signed in to change notification settings - Fork 311
/
package.json
204 lines (204 loc) · 6.98 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{
"name": "graffle",
"description": "Simple GraphQL Client for JavaScript. Minimal. Extensible. Type Safe. Runs everywhere.",
"version": "0.0.0-dripip",
"packageManager": "pnpm@9.15.1",
"type": "module",
"bin": {
"graffle": "./execute.sh"
},
"exports": {
".": {
"default": "./build/entrypoints/main.js"
},
"./generator": {
"default": "./build/entrypoints/generator.js"
},
"./extensionkit": {
"default": "./build/entrypoints/extensionkit.js"
},
"./extensions/upload": {
"default": "./build/entrypoints/extensions/upload/runtime.js"
},
"./extensions/throws": {
"default": "./build/entrypoints/extensions/throws/runtime.js"
},
"./extensions/opentelemetry": {
"default": "./build/entrypoints/extensions/opentelemetry/runtime.js"
},
"./extensions/introspection": {
"default": "./build/entrypoints/extensions/introspection/runtime.js"
},
"./extensions/schema-errors": {
"default": "./build/entrypoints/extensions/schema-errors/runtime.js"
},
"./extensions/schema-errors/generator": {
"default": "./build/entrypoints/extensions/schema-errors/gentime.js"
},
"./extensions/transport-memory": {
"default": "./build/entrypoints/extensions/transport-memory/runtime.js"
},
"./extensions/transport-http": {
"default": "./build/entrypoints/extensions/transport-http/runtime.js"
},
"./presets/bare": {
"default": "./build/entrypoints/presets/bare.js"
},
"./presets/basic": {
"default": "./build/entrypoints/presets/basic.js"
},
"./presets/minimal": {
"default": "./build/entrypoints/presets/minimal.js"
},
"./client": {
"default": "./build/entrypoints/client.js"
},
"./schema": {
"default": "./build/entrypoints/schema.js"
},
"./generator-helpers/standard-scalar-types": {
"default": "./build/entrypoints/generator-helpers/standardScalarTypes.js"
},
"./utilities-for-generated": {
"default": "./build/entrypoints/utilities-for-generated.js"
}
},
"files": [
"build",
"src",
"execute.sh"
],
"repository": {
"type": "git",
"url": "https://github.com/graffle-js/graffle.git"
},
"keywords": [
"graphql",
"request",
"fetch",
"graphql-client"
],
"author": {
"name": "Jason Kuhrt",
"email": "jasonkuhrt@me.com",
"url": "https://kuhrt.me"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/graffle-js/graffle/issues"
},
"homepage": "https://github.com/graffle-js/graffle",
"scripts": {
"serve:pokemon": "tsx tests/_/services/pokemonManual.ts",
"gen:graffle": "pnpm gen:graffle:tests && pnpm build && cd website && pnpm gen:graffle",
"gen:graffle:tests": "tsx tests/_/schemas/generate.ts && pnpm graffle --project src/extensions/SchemaErrors/tests/fixture",
"examples:gen:graffle": "pnpm build && cd examples && pnpm i && pnpm gen:graffle",
"examples:link-mode": "cd examples && pnpm add ..",
"graffle": "tsx ./src/generator/cli/generate.ts",
"gen:examples": "tsx scripts/generate-examples-derivatives/generate.ts && pnpm format",
"gen:examples:outputs": "tsx scripts/generate-examples-derivatives/generate.ts --outputs",
"dev": "rm -rf dist && tsc --watch",
"format": "pnpm build:docs && dprint fmt",
"lint": "eslint . --fix --ignore-pattern 'website' --ignore-pattern 'build'",
"check": "pnpm check:types && pnpm check:format && pnpm check:lint && pnpm check:publint && pnpm examples:check:types",
"examples:check:types": "cd examples && tsc --noEmit",
"check:types": "tsc --noEmit",
"check:format": "dprint check && pnpm build:docs && git diff --exit-code README.md",
"check:lint": "eslint . --max-warnings 0 --ignore-pattern 'website' --ignore-pattern 'build'",
"check:publint": "publint run --strict",
"prepublishOnly": "pnpm build",
"build:docs": "doctoc README.md --notitle && dprint fmt README.md",
"build:emit": "pnpm clean && pnpm tsc --noCheck --project tsconfig.build.json && chmod +x ./build/generator/cli/generate.js",
"build": "pnpm clean && pnpm tsc --project tsconfig.build.json && chmod +x ./build/generator/cli/generate.js",
"clean": "tsc --build --clean && rm -rf build",
"test:unit": "vitest --exclude tests/examples --exclude tests/e2e",
"test:examples": "vitest --config vitest.examples.config.ts --dir tests/examples",
"test:e2e": "vitest --dir tests/e2e --testTimeout 30000 --run",
"test": "vitest",
"test:web": "vitest --environment jsdom",
"test:types": "vitest --typecheck --dir src --testNamePattern .*.test-d.ts",
"test:coverage": "pnpm test -- --coverage",
"release:stable": "dripip stable",
"release:preview": "dripip preview",
"release:pr": "dripip pr"
},
"dependencies": {
"@0no-co/graphql.web": "^1.0.12",
"@graphql-typed-document-node/core": "^3.2.0",
"@molt/command": "^0.9.0",
"es-toolkit": "^1.30.1",
"is-plain-obj": "^4.1.0"
},
"peerDependencies": {
"@dprint/formatter": "^0.4.0",
"@dprint/typescript": "^0.93.0",
"@opentelemetry/api": "^1.9.0",
"graphql": "14 - 16",
"prettier": "^3.3.3"
},
"peerDependenciesMeta": {
"prettier": {
"optional": true
},
"@opentelemetry/api": {
"optional": true
},
"@dprint/formatter": {
"optional": true
},
"@dprint/typescript": {
"optional": true
}
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.2",
"@dprint/formatter": "^0.4.1",
"@dprint/typescript": "^0.93.3",
"@opentelemetry/api": "^1.9.0",
"@opentelemetry/sdk-trace-base": "^1.30.0",
"@opentelemetry/sdk-trace-node": "^1.30.0",
"@pothos/core": "^4.3.0",
"@pothos/plugin-simple-objects": "^4.1.0",
"@pothos/plugin-zod": "^4.1.0",
"@tsconfig/node20": "^20.1.4",
"@tsconfig/strictest": "^2.0.5",
"@types/body-parser": "^1.19.5",
"@types/express": "^5.0.0",
"@types/node": "^22.10.2",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"async-cleanup": "^1.0.0",
"doctoc": "^2.2.1",
"dprint": "^0.48.0",
"dripip": "^0.10.0",
"eslint": "^9.17.0",
"eslint-config-prisma": "^0.6.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-tsdoc": "^0.4.0",
"eslint-typescript": "^1.1.0",
"execa": "^9.5.2",
"fs-jetpack": "^5.1.0",
"get-port": "^7.1.0",
"globby": "^14.0.2",
"graphql": "^16.10.0",
"graphql-scalars": "^1.24.0",
"graphql-tag": "^2.12.6",
"graphql-upload-minimal": "^1.6.1",
"graphql-yoga": "^5.10.6",
"jsdom": "^25.0.1",
"memfs": "^4.15.1",
"prettier": "^3.4.2",
"publint": "^0.2.12",
"strip-ansi": "^7.1.0",
"tsx": "^4.19.2",
"type-fest": "^4.30.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.1",
"vitepress": "^1.5.0",
"vitest": "^2.1.8",
"zod": "^3.24.1"
}
}