@constructive-io/graphql-codegen 2.23.1 → 2.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/commands/generate.js +1 -0
- package/cli/index.js +1 -0
- package/esm/cli/commands/generate.js +1 -0
- package/esm/cli/index.js +1 -0
- package/esm/types/config.js +1 -1
- package/package.json +3 -3
- package/types/config.js +1 -1
package/cli/commands/generate.js
CHANGED
|
@@ -195,6 +195,7 @@ async function loadConfig(options) {
|
|
|
195
195
|
hooks: baseConfig.hooks,
|
|
196
196
|
postgraphile: baseConfig.postgraphile,
|
|
197
197
|
codegen: baseConfig.codegen,
|
|
198
|
+
reactQuery: baseConfig.reactQuery,
|
|
198
199
|
};
|
|
199
200
|
// Validate at least one source is provided
|
|
200
201
|
if (!mergedConfig.endpoint && !mergedConfig.schema) {
|
package/cli/index.js
CHANGED
|
@@ -158,6 +158,7 @@ async function loadConfig(options) {
|
|
|
158
158
|
hooks: baseConfig.hooks,
|
|
159
159
|
postgraphile: baseConfig.postgraphile,
|
|
160
160
|
codegen: baseConfig.codegen,
|
|
161
|
+
reactQuery: baseConfig.reactQuery,
|
|
161
162
|
};
|
|
162
163
|
// Validate at least one source is provided
|
|
163
164
|
if (!mergedConfig.endpoint && !mergedConfig.schema) {
|
package/esm/cli/index.js
CHANGED
package/esm/types/config.js
CHANGED
|
@@ -43,7 +43,7 @@ export const DEFAULT_CONFIG = {
|
|
|
43
43
|
},
|
|
44
44
|
orm: null, // ORM generation disabled by default
|
|
45
45
|
reactQuery: {
|
|
46
|
-
enabled:
|
|
46
|
+
enabled: true, // React Query hooks enabled by default for generate command
|
|
47
47
|
},
|
|
48
48
|
watch: DEFAULT_WATCH_CONFIG,
|
|
49
49
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@constructive-io/graphql-codegen",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.3",
|
|
4
4
|
"description": "CLI-based GraphQL SDK generator for PostGraphile endpoints with React Query hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"commander": "^12.1.0",
|
|
54
54
|
"gql-ast": "^2.4.6",
|
|
55
55
|
"graphql": "15.10.1",
|
|
56
|
-
"inflekt": "^0.
|
|
56
|
+
"inflekt": "^0.2.0",
|
|
57
57
|
"jiti": "^2.6.1",
|
|
58
58
|
"prettier": "^3.7.4",
|
|
59
59
|
"ts-morph": "^27.0.2"
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"tsx": "^4.21.0",
|
|
82
82
|
"typescript": "^5.9.3"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "cb4af2cf6c23dad24cd951c232d3e2006b81aa3d"
|
|
85
85
|
}
|
package/types/config.js
CHANGED
|
@@ -48,7 +48,7 @@ exports.DEFAULT_CONFIG = {
|
|
|
48
48
|
},
|
|
49
49
|
orm: null, // ORM generation disabled by default
|
|
50
50
|
reactQuery: {
|
|
51
|
-
enabled:
|
|
51
|
+
enabled: true, // React Query hooks enabled by default for generate command
|
|
52
52
|
},
|
|
53
53
|
watch: exports.DEFAULT_WATCH_CONFIG,
|
|
54
54
|
};
|