@graphql-codegen/graphql-modules-preset 4.0.17-alpha-20250502122133-b3c7334795895f446a517732fcf1cb6f1e35f769 → 4.0.17-alpha-20250502124228-a790f24be54a91b9e392b41809c58eea4188d36f

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/index.js CHANGED
@@ -61,10 +61,9 @@ exports.preset = {
61
61
  schemaAst: options.schemaAst,
62
62
  documentTransforms: options.documentTransforms,
63
63
  };
64
- const shouldEmitLegacyCommonJSImports = options.config.emitLegacyCommonJSImports === undefined ? true : !!options.config.emitLegacyCommonJSImports;
65
64
  const baseTypesFilename = baseTypesPath.replace(/\.(js|ts|d.ts)$/,
66
65
  // we need extension if ESM modules are used
67
- shouldEmitLegacyCommonJSImports ? '' : '.js');
66
+ options.config.emitLegacyCommonJSImports ? '' : '.js');
68
67
  const baseTypesDir = (0, utils_js_1.stripFilename)(baseOutput.filename);
69
68
  // One file per each module
70
69
  const outputs = modules.map(moduleName => {
package/esm/index.js CHANGED
@@ -58,10 +58,9 @@ export const preset = {
58
58
  schemaAst: options.schemaAst,
59
59
  documentTransforms: options.documentTransforms,
60
60
  };
61
- const shouldEmitLegacyCommonJSImports = options.config.emitLegacyCommonJSImports === undefined ? true : !!options.config.emitLegacyCommonJSImports;
62
61
  const baseTypesFilename = baseTypesPath.replace(/\.(js|ts|d.ts)$/,
63
62
  // we need extension if ESM modules are used
64
- shouldEmitLegacyCommonJSImports ? '' : '.js');
63
+ options.config.emitLegacyCommonJSImports ? '' : '.js');
65
64
  const baseTypesDir = stripFilename(baseOutput.filename);
66
65
  // One file per each module
67
66
  const outputs = modules.map(moduleName => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/graphql-modules-preset",
3
- "version": "4.0.17-alpha-20250502122133-b3c7334795895f446a517732fcf1cb6f1e35f769",
3
+ "version": "4.0.17-alpha-20250502124228-a790f24be54a91b9e392b41809c58eea4188d36f",
4
4
  "description": "GraphQL Code Generator preset for modularized schema",
5
5
  "peerDependencies": {
6
6
  "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"