@graphql-codegen/cli 2.11.4-alpha-e79b5a85a.0 → 2.11.4-alpha-d2a18d212.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 +6 -0
- package/esm/codegen.js +6 -0
- package/package.json +2 -2
package/cjs/codegen.js
CHANGED
|
@@ -239,6 +239,12 @@ 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
248
|
emitLegacyCommonJSImports: (0, config_js_1.shouldEmitLegacyCommonJSImports)(config, filename),
|
|
243
249
|
};
|
|
244
250
|
const outputs = hasPreset
|
package/esm/codegen.js
CHANGED
|
@@ -235,6 +235,12 @@ 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
244
|
emitLegacyCommonJSImports: shouldEmitLegacyCommonJSImports(config, filename),
|
|
239
245
|
};
|
|
240
246
|
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-
|
|
3
|
+
"version": "2.11.4-alpha-d2a18d212.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-
|
|
8
|
+
"@graphql-codegen/core": "2.6.1-alpha-d2a18d212.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",
|