@graphql-codegen/cli 6.0.0-alpha-20250813125320-63ac348b428178b17ad9fae069ce727ffddb8744 → 6.0.0-alpha-20250814123644-9b9c4e7a2ceb01175dafd069cd26047ce20eb406
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/config.js +3 -3
- package/esm/config.js +3 -3
- package/package.json +7 -7
package/cjs/config.js
CHANGED
|
@@ -17,7 +17,7 @@ const module_1 = require("module");
|
|
|
17
17
|
const path_1 = require("path");
|
|
18
18
|
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
19
19
|
const cosmiconfig_1 = require("cosmiconfig");
|
|
20
|
-
const jiti_1 =
|
|
20
|
+
const jiti_1 = require("jiti");
|
|
21
21
|
const graphql_1 = require("graphql");
|
|
22
22
|
const string_env_interpolation_1 = require("string-env-interpolation");
|
|
23
23
|
const yaml_1 = tslib_1.__importDefault(require("yaml"));
|
|
@@ -55,8 +55,8 @@ function customLoader(ext) {
|
|
|
55
55
|
return cosmiconfig_1.defaultLoaders['.js'](filepath, content);
|
|
56
56
|
}
|
|
57
57
|
if (ext === 'ts') {
|
|
58
|
-
const jitiLoader = (0, jiti_1.
|
|
59
|
-
return jitiLoader(filepath);
|
|
58
|
+
const jitiLoader = (0, jiti_1.createJiti)('');
|
|
59
|
+
return jitiLoader.import(filepath, { default: true });
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
package/esm/config.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createRequire } from 'module';
|
|
|
4
4
|
import { resolve } from 'path';
|
|
5
5
|
import { createNoopProfiler, createProfiler, getCachedDocumentNodeFromSchema, } from '@graphql-codegen/plugin-helpers';
|
|
6
6
|
import { cosmiconfig, defaultLoaders } from 'cosmiconfig';
|
|
7
|
-
import
|
|
7
|
+
import { createJiti } from 'jiti';
|
|
8
8
|
import { print } from 'graphql';
|
|
9
9
|
import { env } from 'string-env-interpolation';
|
|
10
10
|
import yaml from 'yaml';
|
|
@@ -42,8 +42,8 @@ function customLoader(ext) {
|
|
|
42
42
|
return defaultLoaders['.js'](filepath, content);
|
|
43
43
|
}
|
|
44
44
|
if (ext === 'ts') {
|
|
45
|
-
const jitiLoader =
|
|
46
|
-
return jitiLoader(filepath);
|
|
45
|
+
const jitiLoader = createJiti('');
|
|
46
|
+
return jitiLoader.import(filepath, { default: true });
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "6.0.0-alpha-
|
|
3
|
+
"version": "6.0.0-alpha-20250814123644-9b9c4e7a2ceb01175dafd069cd26047ce20eb406",
|
|
4
4
|
"peerDependenciesMeta": {
|
|
5
5
|
"@parcel/watcher": {
|
|
6
6
|
"optional": true
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"@babel/generator": "^7.18.13",
|
|
15
15
|
"@babel/template": "^7.18.10",
|
|
16
16
|
"@babel/types": "^7.18.13",
|
|
17
|
-
"@graphql-codegen/client-preset": "5.0.0-alpha-
|
|
18
|
-
"@graphql-codegen/core": "5.0.0-alpha-
|
|
19
|
-
"@graphql-codegen/plugin-helpers": "6.0.0-alpha-
|
|
17
|
+
"@graphql-codegen/client-preset": "5.0.0-alpha-20250814123644-9b9c4e7a2ceb01175dafd069cd26047ce20eb406",
|
|
18
|
+
"@graphql-codegen/core": "5.0.0-alpha-20250814123644-9b9c4e7a2ceb01175dafd069cd26047ce20eb406",
|
|
19
|
+
"@graphql-codegen/plugin-helpers": "6.0.0-alpha-20250814123644-9b9c4e7a2ceb01175dafd069cd26047ce20eb406",
|
|
20
20
|
"@graphql-tools/apollo-engine-loader": "^8.0.0",
|
|
21
21
|
"@graphql-tools/code-file-loader": "^8.0.0",
|
|
22
22
|
"@graphql-tools/git-loader": "^8.0.0",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@graphql-tools/utils": "^10.0.0",
|
|
29
29
|
"@whatwg-node/fetch": "^0.10.0",
|
|
30
30
|
"chalk": "^4.1.0",
|
|
31
|
-
"cosmiconfig": "^
|
|
32
|
-
"debounce": "^
|
|
31
|
+
"cosmiconfig": "^9.0.0",
|
|
32
|
+
"debounce": "^2.0.0",
|
|
33
33
|
"detect-indent": "^6.0.0",
|
|
34
34
|
"graphql-config": "^5.1.1",
|
|
35
35
|
"inquirer": "^8.0.0",
|
|
36
36
|
"is-glob": "^4.0.1",
|
|
37
|
-
"jiti": "^
|
|
37
|
+
"jiti": "^2.3.0",
|
|
38
38
|
"json-to-pretty-yaml": "^1.2.2",
|
|
39
39
|
"listr2": "^4.0.5",
|
|
40
40
|
"log-symbols": "^4.0.0",
|