politty 0.4.2 → 0.4.3

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.
@@ -723,7 +723,7 @@ async function executeSingleExample(example, rootCommand, commandPath) {
723
723
  collector.start();
724
724
  let success = true;
725
725
  try {
726
- const { runCommand } = await Promise.resolve().then(() => require("../runner-CpyB8JiY.cjs")).then((n) => n.runner_exports);
726
+ const { runCommand } = await Promise.resolve().then(() => require("../runner-C4fSHJMe.cjs")).then((n) => n.runner_exports);
727
727
  const result = await runCommand(rootCommand, argv);
728
728
  success = result.success;
729
729
  if (!result.success && result.error) console.error(result.error.message);
@@ -720,7 +720,7 @@ async function executeSingleExample(example, rootCommand, commandPath) {
720
720
  collector.start();
721
721
  let success = true;
722
722
  try {
723
- const { runCommand } = await import("../runner-B6W9A8P0.js").then((n) => n.r);
723
+ const { runCommand } = await import("../runner-D6k4BgB4.js").then((n) => n.r);
724
724
  const result = await runCommand(rootCommand, argv);
725
725
  success = result.success;
726
726
  if (!result.success && result.error) console.error(result.error.message);
package/dist/index.cjs CHANGED
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_lazy = require('./lazy-BEDnSR0m.cjs');
3
3
  const require_zsh = require('./zsh-CASZWn0o.cjs');
4
4
  const require_completion_index = require('./completion/index.cjs');
5
- const require_runner = require('./runner-CpyB8JiY.cjs');
5
+ const require_runner = require('./runner-C4fSHJMe.cjs');
6
6
 
7
7
  exports.DuplicateAliasError = require_runner.DuplicateAliasError;
8
8
  exports.DuplicateFieldError = require_runner.DuplicateFieldError;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as symbols, S as styles, _ as renderInline, a as parseArgv, b as logger, c as validateDuplicateAliases, d as validateReservedAliases, f as DuplicateAliasError, g as generateHelp, h as ReservedAliasError, i as formatValidationErrors, l as validateDuplicateFields, m as PositionalConfigError, n as runMain, o as formatCommandValidationErrors, p as DuplicateFieldError, s as validateCommand, t as runCommand, u as validatePositionalConfig, v as renderMarkdown, x as setColorEnabled, y as isColorEnabled } from "./runner-B6W9A8P0.js";
1
+ import { C as symbols, S as styles, _ as renderInline, a as parseArgv, b as logger, c as validateDuplicateAliases, d as validateReservedAliases, f as DuplicateAliasError, g as generateHelp, h as ReservedAliasError, i as formatValidationErrors, l as validateDuplicateFields, m as PositionalConfigError, n as runMain, o as formatCommandValidationErrors, p as DuplicateFieldError, s as validateCommand, t as runCommand, u as validatePositionalConfig, v as renderMarkdown, x as setColorEnabled, y as isColorEnabled } from "./runner-D6k4BgB4.js";
2
2
  import { c as arg, i as extractFields, n as lazy, o as getUnknownKeysMode, s as toKebabCase, t as isLazyCommand } from "./lazy-BrEg8SgI.js";
3
3
  import { p as defineCommand } from "./zsh-hjvdI8uZ.js";
4
4
  import { generateCompletion, withCompletionCommand } from "./completion/index.js";
@@ -1553,6 +1553,7 @@ async function runMain(command, options = {}) {
1553
1553
  rootVersion: options.version
1554
1554
  }
1555
1555
  });
1556
+ if (process.stdout.writableLength > 0) await new Promise((resolve) => process.stdout.once("drain", resolve));
1556
1557
  process.exit(result.exitCode);
1557
1558
  }
1558
1559
  /**
@@ -1834,4 +1835,4 @@ Object.defineProperty(exports, 'validateReservedAliases', {
1834
1835
  return validateReservedAliases;
1835
1836
  }
1836
1837
  });
1837
- //# sourceMappingURL=runner-CpyB8JiY.cjs.map
1838
+ //# sourceMappingURL=runner-C4fSHJMe.cjs.map