@graphql-codegen/graphql-modules-preset 4.0.17-alpha-20250423130227-6a2bca73723363ab3224f90fce18a1eaf74d39ed → 4.0.17-alpha-20250429124901-2466e143f84e091e3f636b52356779ebf90af982
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 +3 -1
- package/esm/index.js +3 -1
- package/package.json +3 -3
package/cjs/index.js
CHANGED
|
@@ -61,7 +61,9 @@ exports.preset = {
|
|
|
61
61
|
schemaAst: options.schemaAst,
|
|
62
62
|
documentTransforms: options.documentTransforms,
|
|
63
63
|
};
|
|
64
|
-
const baseTypesFilename = baseTypesPath.replace(/\.(js|ts|d.ts)$/,
|
|
64
|
+
const baseTypesFilename = baseTypesPath.replace(/\.(js|ts|d.ts)$/,
|
|
65
|
+
// we need extension if ESM modules are used
|
|
66
|
+
options.config.emitLegacyCommonJSImports ? '' : '.js');
|
|
65
67
|
const baseTypesDir = (0, utils_js_1.stripFilename)(baseOutput.filename);
|
|
66
68
|
// One file per each module
|
|
67
69
|
const outputs = modules.map(moduleName => {
|
package/esm/index.js
CHANGED
|
@@ -58,7 +58,9 @@ export const preset = {
|
|
|
58
58
|
schemaAst: options.schemaAst,
|
|
59
59
|
documentTransforms: options.documentTransforms,
|
|
60
60
|
};
|
|
61
|
-
const baseTypesFilename = baseTypesPath.replace(/\.(js|ts|d.ts)$/,
|
|
61
|
+
const baseTypesFilename = baseTypesPath.replace(/\.(js|ts|d.ts)$/,
|
|
62
|
+
// we need extension if ESM modules are used
|
|
63
|
+
options.config.emitLegacyCommonJSImports ? '' : '.js');
|
|
62
64
|
const baseTypesDir = stripFilename(baseOutput.filename);
|
|
63
65
|
// One file per each module
|
|
64
66
|
const outputs = modules.map(moduleName => {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/graphql-modules-preset",
|
|
3
|
-
"version": "4.0.17-alpha-
|
|
3
|
+
"version": "4.0.17-alpha-20250429124901-2466e143f84e091e3f636b52356779ebf90af982",
|
|
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"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "
|
|
10
|
-
"@graphql-codegen/visitor-plugin-common": "
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^5.1.0",
|
|
10
|
+
"@graphql-codegen/visitor-plugin-common": "5.8.0",
|
|
11
11
|
"@graphql-tools/utils": "^10.0.0",
|
|
12
12
|
"parse-filepath": "^1.0.2",
|
|
13
13
|
"change-case-all": "1.0.15",
|