@graphql-codegen/cli 2.11.4-alpha-d2a18d212.0 → 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 CHANGED
@@ -239,12 +239,16 @@ async function executeCodegen(input) {
239
239
  ...(typeof outputFileTemplateConfig === 'string'
240
240
  ? { value: outputFileTemplateConfig }
241
241
  : outputFileTemplateConfig),
242
- mappers: {
243
- ...(rootConfig.mappers || {}),
244
- ...(typeof outputFileTemplateConfig === 'string'
245
- ? {}
246
- : outputFileTemplateConfig.mappers || {}),
247
- },
242
+ ...(rootConfig.mergeMappers
243
+ ? {
244
+ mappers: {
245
+ ...(rootConfig.mappers || {}),
246
+ ...(typeof outputFileTemplateConfig === 'string'
247
+ ? {}
248
+ : outputFileTemplateConfig.mappers || {}),
249
+ },
250
+ }
251
+ : {}),
248
252
  emitLegacyCommonJSImports: (0, config_js_1.shouldEmitLegacyCommonJSImports)(config, filename),
249
253
  };
250
254
  const outputs = hasPreset
package/esm/codegen.js CHANGED
@@ -235,12 +235,16 @@ export async function executeCodegen(input) {
235
235
  ...(typeof outputFileTemplateConfig === 'string'
236
236
  ? { value: outputFileTemplateConfig }
237
237
  : outputFileTemplateConfig),
238
- mappers: {
239
- ...(rootConfig.mappers || {}),
240
- ...(typeof outputFileTemplateConfig === 'string'
241
- ? {}
242
- : outputFileTemplateConfig.mappers || {}),
243
- },
238
+ ...(rootConfig.mergeMappers
239
+ ? {
240
+ mappers: {
241
+ ...(rootConfig.mappers || {}),
242
+ ...(typeof outputFileTemplateConfig === 'string'
243
+ ? {}
244
+ : outputFileTemplateConfig.mappers || {}),
245
+ },
246
+ }
247
+ : {}),
244
248
  emitLegacyCommonJSImports: shouldEmitLegacyCommonJSImports(config, filename),
245
249
  };
246
250
  const outputs = hasPreset
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "2.11.4-alpha-d2a18d212.0",
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.1-alpha-d2a18d212.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",