@graphql-codegen/cli 2.6.1 → 2.6.3-alpha-4a7e799f2.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/bin.js +6 -1
- package/index.js +6 -1
- package/index.mjs +6 -1
- package/package.json +4 -4
package/bin.js
CHANGED
|
@@ -376,7 +376,12 @@ async function getPluginByName(name, pluginLoader) {
|
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
async function getPresetByName(name, loader) {
|
|
379
|
-
const possibleNames = [
|
|
379
|
+
const possibleNames = [
|
|
380
|
+
`@graphql-codegen/${name}`,
|
|
381
|
+
`@graphql-codegen/${name}-preset`,
|
|
382
|
+
name,
|
|
383
|
+
path.resolve(process.cwd(), name),
|
|
384
|
+
];
|
|
380
385
|
for (const moduleName of possibleNames) {
|
|
381
386
|
try {
|
|
382
387
|
const loaded = await loader(moduleName);
|
package/index.js
CHANGED
|
@@ -294,7 +294,12 @@ async function getPluginByName(name, pluginLoader) {
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
async function getPresetByName(name, loader) {
|
|
297
|
-
const possibleNames = [
|
|
297
|
+
const possibleNames = [
|
|
298
|
+
`@graphql-codegen/${name}`,
|
|
299
|
+
`@graphql-codegen/${name}-preset`,
|
|
300
|
+
name,
|
|
301
|
+
path.resolve(process.cwd(), name),
|
|
302
|
+
];
|
|
298
303
|
for (const moduleName of possibleNames) {
|
|
299
304
|
try {
|
|
300
305
|
const loaded = await loader(moduleName);
|
package/index.mjs
CHANGED
|
@@ -267,7 +267,12 @@ async function getPluginByName(name, pluginLoader) {
|
|
|
267
267
|
}
|
|
268
268
|
|
|
269
269
|
async function getPresetByName(name, loader) {
|
|
270
|
-
const possibleNames = [
|
|
270
|
+
const possibleNames = [
|
|
271
|
+
`@graphql-codegen/${name}`,
|
|
272
|
+
`@graphql-codegen/${name}-preset`,
|
|
273
|
+
name,
|
|
274
|
+
resolve(process.cwd(), name),
|
|
275
|
+
];
|
|
271
276
|
for (const moduleName of possibleNames) {
|
|
272
277
|
try {
|
|
273
278
|
const loaded = await loader(moduleName);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/cli",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3-alpha-4a7e799f2.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.5.
|
|
9
|
-
"@graphql-codegen/plugin-helpers": "
|
|
8
|
+
"@graphql-codegen/core": "2.5.2-alpha-4a7e799f2.0",
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "2.4.2-alpha-4a7e799f2.0",
|
|
10
10
|
"@graphql-tools/apollo-engine-loader": "^7.0.5",
|
|
11
11
|
"@graphql-tools/code-file-loader": "^7.0.6",
|
|
12
12
|
"@graphql-tools/git-loader": "^7.0.5",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"listr": "^0.14.3",
|
|
37
37
|
"listr-update-renderer": "^0.5.0",
|
|
38
38
|
"log-symbols": "^4.0.0",
|
|
39
|
-
"minimatch": "^
|
|
39
|
+
"minimatch": "^5.0.0",
|
|
40
40
|
"mkdirp": "^1.0.4",
|
|
41
41
|
"string-env-interpolation": "^1.0.1",
|
|
42
42
|
"ts-log": "^2.2.3",
|