@graphql-codegen/cli 2.6.2-alpha-714e0efe9.0 → 2.6.2

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 CHANGED
@@ -376,7 +376,12 @@ async function getPluginByName(name, pluginLoader) {
376
376
  }
377
377
 
378
378
  async function getPresetByName(name, loader) {
379
- const possibleNames = [`@graphql-codegen/${name}`, `@graphql-codegen/${name}-preset`, name];
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 = [`@graphql-codegen/${name}`, `@graphql-codegen/${name}-preset`, name];
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 = [`@graphql-codegen/${name}`, `@graphql-codegen/${name}-preset`, name];
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.2-alpha-714e0efe9.0",
3
+ "version": "2.6.2",
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.2-alpha-714e0efe9.0",
9
- "@graphql-codegen/plugin-helpers": "2.4.2-alpha-714e0efe9.0",
8
+ "@graphql-codegen/core": "2.5.1",
9
+ "@graphql-codegen/plugin-helpers": "^2.4.1",
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",