@graphql-codegen/cli 2.9.0-alpha-892ec97e0.0 → 2.9.1

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/cli.js CHANGED
@@ -40,7 +40,6 @@ async function runCli(cmd) {
40
40
  }
41
41
  catch (error) {
42
42
  await (0, hooks_js_1.lifecycleHooks)(context.getConfig().hooks).onError(error.toString());
43
- throw error;
44
43
  }
45
44
  }
46
45
  exports.runCli = runCli;
package/cjs/plugins.js CHANGED
@@ -21,7 +21,7 @@ async function getPluginByName(name, pluginLoader) {
21
21
  return await pluginLoader(moduleName);
22
22
  }
23
23
  catch (err) {
24
- if (err.code !== 'MODULE_NOT_FOUND') {
24
+ if (err.code !== 'MODULE_NOT_FOUND' && err.code !== 'ERR_MODULE_NOT_FOUND') {
25
25
  throw new plugin_helpers_1.DetailedError(`Unable to load template plugin matching ${name}`, `
26
26
  Unable to load template plugin matching '${name}'.
27
27
  Reason:
package/esm/cli.js CHANGED
@@ -14,7 +14,6 @@ export async function runCli(cmd) {
14
14
  }
15
15
  catch (error) {
16
16
  await lifecycleHooks(context.getConfig().hooks).onError(error.toString());
17
- throw error;
18
17
  }
19
18
  }
20
19
  export async function ensureGraphQlPackage() {
package/esm/plugins.js CHANGED
@@ -18,7 +18,7 @@ export async function getPluginByName(name, pluginLoader) {
18
18
  return await pluginLoader(moduleName);
19
19
  }
20
20
  catch (err) {
21
- if (err.code !== 'MODULE_NOT_FOUND') {
21
+ if (err.code !== 'MODULE_NOT_FOUND' && err.code !== 'ERR_MODULE_NOT_FOUND') {
22
22
  throw new DetailedError(`Unable to load template plugin matching ${name}`, `
23
23
  Unable to load template plugin matching '${name}'.
24
24
  Reason:
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "2.9.0-alpha-892ec97e0.0",
3
+ "version": "2.9.1",
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.6.1-alpha-892ec97e0.0",
9
- "@graphql-codegen/plugin-helpers": "^2.6.0-alpha-892ec97e0.0",
8
+ "@graphql-codegen/core": "2.6.0",
9
+ "@graphql-codegen/plugin-helpers": "^2.6.0",
10
10
  "@graphql-tools/apollo-engine-loader": "^7.3.1",
11
11
  "@graphql-tools/code-file-loader": "^7.3.0",
12
12
  "@graphql-tools/git-loader": "^7.2.0",