@graphql-codegen/cli 2.13.2 → 2.13.3-alpha-20221003103500-c2764d266
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 +2 -2
- package/esm/config.js +2 -2
- package/package.json +2 -2
package/cjs/config.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.shouldEmitLegacyCommonJSImports = exports.ensureContext = exports.CodegenContext = exports.updateContextWithCliFlags = exports.createContext = exports.parseArgv = exports.buildOptions = exports.loadContext = exports.loadCodegenConfig = exports.generateSearchPlaces = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const cosmiconfig_1 = require("cosmiconfig");
|
|
6
|
-
const
|
|
6
|
+
const cosmiconfig_typescript_swc_loader_1 = require("cosmiconfig-typescript-swc-loader");
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const plugin_helpers_1 = require("@graphql-codegen/plugin-helpers");
|
|
9
9
|
const string_env_interpolation_1 = require("string-env-interpolation");
|
|
@@ -47,7 +47,7 @@ function customLoader(ext) {
|
|
|
47
47
|
return cosmiconfig_1.defaultLoaders['.js'](filepath, content);
|
|
48
48
|
}
|
|
49
49
|
if (ext === 'ts') {
|
|
50
|
-
return (0,
|
|
50
|
+
return (0, cosmiconfig_typescript_swc_loader_1.TypeScriptSWCLoader)()(filepath, content);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
return loader;
|
package/esm/config.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cosmiconfig, defaultLoaders } from 'cosmiconfig';
|
|
2
|
-
import {
|
|
2
|
+
import { TypeScriptSWCLoader } from 'cosmiconfig-typescript-swc-loader';
|
|
3
3
|
import { resolve } from 'path';
|
|
4
4
|
import { DetailedError, createProfiler, createNoopProfiler, getCachedDocumentNodeFromSchema, } from '@graphql-codegen/plugin-helpers';
|
|
5
5
|
import { env } from 'string-env-interpolation';
|
|
@@ -42,7 +42,7 @@ function customLoader(ext) {
|
|
|
42
42
|
return defaultLoaders['.js'](filepath, content);
|
|
43
43
|
}
|
|
44
44
|
if (ext === 'ts') {
|
|
45
|
-
return
|
|
45
|
+
return TypeScriptSWCLoader()(filepath, content);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
return loader;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.3-alpha-20221003103500-c2764d266",
|
|
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
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"chalk": "^4.1.0",
|
|
26
26
|
"chokidar": "^3.5.2",
|
|
27
27
|
"cosmiconfig": "^7.0.0",
|
|
28
|
-
"cosmiconfig-typescript-loader": "
|
|
28
|
+
"cosmiconfig-typescript-swc-loader": "0.0.2-alpha-20221003102140-9ea5d17",
|
|
29
29
|
"debounce": "^1.2.0",
|
|
30
30
|
"detect-indent": "^6.0.0",
|
|
31
31
|
"graphql-config": "^4.3.5",
|