-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpackage.json
More file actions
126 lines (126 loc) · 3.98 KB
/
package.json
File metadata and controls
126 lines (126 loc) · 3.98 KB
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
{
"name": "@constructive-io/graphql-codegen",
"version": "4.30.9",
"description": "GraphQL SDK generator for Constructive databases with React Query hooks",
"keywords": [
"graphql",
"postgraphile",
"codegen",
"react-query",
"tanstack-query",
"typescript",
"graphile",
"constructive"
],
"author": "Constructive <developers@constructive.io>",
"license": "MIT",
"homepage": "https://github.com/constructive-io/constructive",
"repository": {
"type": "git",
"url": "https://github.com/constructive-io/constructive"
},
"bugs": {
"url": "https://github.com/constructive-io/constructive/issues"
},
"publishConfig": {
"access": "public",
"directory": "dist"
},
"main": "index.js",
"module": "index.mjs",
"types": "index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./index.js",
"types": "./index.d.ts"
},
"./orm": {
"import": "./esm/core/codegen/orm/index.js",
"require": "./core/codegen/orm/index.js",
"types": "./core/codegen/orm/index.d.ts"
},
"./cli": {
"import": "./esm/core/codegen/cli/index.js",
"require": "./core/codegen/cli/index.js",
"types": "./core/codegen/cli/index.d.ts"
}
},
"typesVersions": {
"*": {
"orm": ["core/codegen/orm/index.d.ts"],
"cli": ["core/codegen/cli/index.d.ts"]
}
},
"bin": {
"graphql-codegen": "cli/index.js"
},
"scripts": {
"clean": "makage clean",
"prepack": "npm run build",
"copy:templates": "mkdir -p dist/core/codegen/templates && cp src/core/codegen/templates/*.ts dist/core/codegen/templates/",
"build": "makage build && npm run copy:templates",
"build:dev": "makage build --dev && npm run copy:templates",
"dev": "ts-node ./src/index.ts",
"lint": "eslint . --fix",
"fmt": "oxfmt --write .",
"fmt:check": "oxfmt --check .",
"test": "jest",
"test:watch": "jest --watch",
"example:codegen:sdk": "tsx src/cli/index.ts --config examples/multi-target.config.ts --react-query",
"example:codegen:orm": "tsx src/cli/index.ts --config examples/multi-target.config.ts --orm",
"example:codegen:sdk:schema": "node dist/cli/index.js --schema-file examples/example.schema.graphql --output examples/output/generated-sdk-schema --react-query",
"example:codegen:orm:schema": "node dist/cli/index.js --schema-file examples/example.schema.graphql --output examples/output/generated-orm-schema --orm",
"example:sdk": "tsx examples/react-hooks-sdk-test.tsx",
"example:orm": "tsx examples/orm-sdk-test.ts",
"example:sdk:typecheck": "tsc --noEmit --jsx react --esModuleInterop --skipLibCheck --moduleResolution node examples/react-hooks-sdk-test.tsx"
},
"dependencies": {
"@0no-co/graphql.web": "^1.1.2",
"@babel/generator": "^7.29.1",
"@babel/types": "^7.29.0",
"@constructive-io/graphql-query": "workspace:^",
"@constructive-io/graphql-types": "workspace:^",
"@inquirerer/utils": "^3.3.5",
"@pgpmjs/core": "workspace:^",
"ajv": "^8.18.0",
"deepmerge": "^4.3.1",
"find-and-require-package-json": "^0.9.1",
"gql-ast": "workspace:^",
"graphile-schema": "workspace:^",
"graphql": "16.13.0",
"inflekt": "^0.7.1",
"inquirerer": "^4.7.0",
"jiti": "^2.6.1",
"oxfmt": "^0.42.0",
"pg-cache": "workspace:^",
"pg-env": "workspace:^",
"pgsql-client": "workspace:^",
"pgsql-seed": "workspace:^",
"undici": "^7.24.6"
},
"peerDependencies": {
"@tanstack/react-query": "^5.0.0",
"react": "^18.0.0 || ^19.0.0"
},
"peerDependenciesMeta": {
"@tanstack/react-query": {
"optional": true
},
"react": {
"optional": true
}
},
"devDependencies": {
"@tanstack/react-query": "^5.90.21",
"@types/babel__generator": "^7.27.0",
"@types/jest": "^30.0.0",
"@types/node": "^22.19.11",
"@types/react": "^19.2.14",
"jest": "^30.3.0",
"react": "^19.2.4",
"ts-jest": "^29.2.5",
"tsx": "^4.21.0",
"typescript": "^5.9.3"
}
}