@graphql-codegen/cli 2.11.3 → 2.11.4-alpha-c88238a3e.0
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/cjs/codegen.js +10 -0
- package/esm/codegen.js +10 -0
- package/package.json +2 -2
package/cjs/codegen.js
CHANGED
|
@@ -239,6 +239,16 @@ async function executeCodegen(input) {
|
|
|
239
239
|
...(typeof outputFileTemplateConfig === 'string'
|
|
240
240
|
? { value: outputFileTemplateConfig }
|
|
241
241
|
: outputFileTemplateConfig),
|
|
242
|
+
...(rootConfig.mergeMappers
|
|
243
|
+
? {
|
|
244
|
+
mappers: {
|
|
245
|
+
...(rootConfig.mappers || {}),
|
|
246
|
+
...(typeof outputFileTemplateConfig === 'string'
|
|
247
|
+
? {}
|
|
248
|
+
: outputFileTemplateConfig.mappers || {}),
|
|
249
|
+
},
|
|
250
|
+
}
|
|
251
|
+
: {}),
|
|
242
252
|
emitLegacyCommonJSImports: (0, config_js_1.shouldEmitLegacyCommonJSImports)(config, filename),
|
|
243
253
|
};
|
|
244
254
|
const outputs = hasPreset
|
package/esm/codegen.js
CHANGED
|
@@ -235,6 +235,16 @@ export async function executeCodegen(input) {
|
|
|
235
235
|
...(typeof outputFileTemplateConfig === 'string'
|
|
236
236
|
? { value: outputFileTemplateConfig }
|
|
237
237
|
: outputFileTemplateConfig),
|
|
238
|
+
...(rootConfig.mergeMappers
|
|
239
|
+
? {
|
|
240
|
+
mappers: {
|
|
241
|
+
...(rootConfig.mappers || {}),
|
|
242
|
+
...(typeof outputFileTemplateConfig === 'string'
|
|
243
|
+
? {}
|
|
244
|
+
: outputFileTemplateConfig.mappers || {}),
|
|
245
|
+
},
|
|
246
|
+
}
|
|
247
|
+
: {}),
|
|
238
248
|
emitLegacyCommonJSImports: shouldEmitLegacyCommonJSImports(config, filename),
|
|
239
249
|
};
|
|
240
250
|
const outputs = hasPreset
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.4-alpha-c88238a3e.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"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"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@graphql-codegen/core": "2.6.0",
|
|
8
|
+
"@graphql-codegen/core": "2.6.1-alpha-c88238a3e.0",
|
|
9
9
|
"@graphql-codegen/plugin-helpers": "^2.6.1",
|
|
10
10
|
"@graphql-tools/apollo-engine-loader": "^7.3.6",
|
|
11
11
|
"@graphql-tools/code-file-loader": "^7.3.1",
|