@graphql-codegen/cli 2.9.0 → 2.9.2-alpha-3adb19f71.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/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/codegen.js CHANGED
@@ -318,6 +318,7 @@ async function executeCodegen(input) {
318
318
  newErr.stack = `${newErr.stack}\n\n${executedContext.errors.map(subErr => subErr.stack).join('\n\n')}`;
319
319
  throw newErr;
320
320
  }
321
+ (0, debugging_js_1.printLogs)();
321
322
  return result;
322
323
  }
323
324
  exports.executeCodegen = executeCodegen;
package/cjs/hooks.js CHANGED
@@ -53,6 +53,7 @@ function execShellCommand(cmd) {
53
53
  reject(error);
54
54
  }
55
55
  else {
56
+ (0, debugging_js_1.debugLog)(stdout || stderr);
56
57
  resolve(stdout || stderr);
57
58
  }
58
59
  });
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/codegen.js CHANGED
@@ -4,7 +4,7 @@ import { AggregateError } from '@graphql-tools/utils';
4
4
  import { GraphQLError } from 'graphql';
5
5
  import { getPluginByName } from './plugins.js';
6
6
  import { getPresetByName } from './presets.js';
7
- import { debugLog } from './utils/debugging.js';
7
+ import { debugLog, printLogs } from './utils/debugging.js';
8
8
  import { ensureContext, shouldEmitLegacyCommonJSImports } from './config.js';
9
9
  import fs from 'fs';
10
10
  import path from 'path';
@@ -314,5 +314,6 @@ export async function executeCodegen(input) {
314
314
  newErr.stack = `${newErr.stack}\n\n${executedContext.errors.map(subErr => subErr.stack).join('\n\n')}`;
315
315
  throw newErr;
316
316
  }
317
+ printLogs();
317
318
  return result;
318
319
  }
package/esm/hooks.js CHANGED
@@ -50,6 +50,7 @@ function execShellCommand(cmd) {
50
50
  reject(error);
51
51
  }
52
52
  else {
53
+ debugLog(stdout || stderr);
53
54
  resolve(stdout || stderr);
54
55
  }
55
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/cli",
3
- "version": "2.9.0",
3
+ "version": "2.9.2-alpha-3adb19f71.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
  },