@kubb/cli 3.18.0 → 3.18.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.
@@ -5,7 +5,6 @@ import process$1, { execArgv, execPath, hrtime, platform } from "node:process";
5
5
  import { safeBuild, setup } from "@kubb/core";
6
6
  import { LogMapper, createLogger, randomCliColour } from "@kubb/core/logger";
7
7
  import pc from "picocolors";
8
- import { unlink, write } from "@kubb/core/fs";
9
8
  import { Presets, SingleBar } from "cli-progress";
10
9
  import { fileURLToPath } from "node:url";
11
10
  import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
@@ -637,6 +636,7 @@ const fallbackSymbols = {
637
636
  };
638
637
  const shouldUseMain = isUnicodeSupported();
639
638
  const figures = shouldUseMain ? mainSymbols : fallbackSymbols;
639
+ var figures_default = figures;
640
640
  const replacements = Object.entries(specialMainSymbols);
641
641
 
642
642
  //#endregion
@@ -718,8 +718,8 @@ const defaultVerboseFunction = ({ type, message, timestamp, piped, commandId, re
718
718
  const serializeTimestamp = (timestamp) => `${padField(timestamp.getHours(), 2)}:${padField(timestamp.getMinutes(), 2)}:${padField(timestamp.getSeconds(), 2)}.${padField(timestamp.getMilliseconds(), 3)}`;
719
719
  const padField = (field, padding) => String(field).padStart(padding, "0");
720
720
  const getFinalIcon = ({ failed, reject }) => {
721
- if (!failed) return figures.tick;
722
- return reject ? figures.cross : figures.warning;
721
+ if (!failed) return figures_default.tick;
722
+ return reject ? figures_default.cross : figures_default.warning;
723
723
  };
724
724
  const ICONS = {
725
725
  command: ({ piped }) => piped ? "|" : "$",
@@ -6649,36 +6649,6 @@ async function generate({ input, config, progressCache, args }) {
6649
6649
  logger.consola?.error(error);
6650
6650
  process$1.exit(1);
6651
6651
  }
6652
- if (userConfig.output.format === void 0) {
6653
- const config$1 = {
6654
- tabWidth: 2,
6655
- printWidth: 160,
6656
- singleQuote: true,
6657
- semi: false,
6658
- bracketSameLine: false,
6659
- endOfLine: "auto",
6660
- plugins: ["prettier/plugins/typescript"]
6661
- };
6662
- try {
6663
- logger?.emit("start", "Applying default Formatting");
6664
- const configPath = path.resolve(definedConfig.root, ".prettierrc.temp.json");
6665
- await write(configPath, JSON.stringify(config$1));
6666
- await execa("npx", [
6667
- "--yes",
6668
- "prettier",
6669
- "--ignore-unknown",
6670
- "--config",
6671
- configPath,
6672
- "--write",
6673
- path.resolve(definedConfig.root, definedConfig.output.path)
6674
- ]);
6675
- await unlink(configPath);
6676
- } catch (e) {
6677
- logger.consola?.warn("Prettier not found");
6678
- logger.consola?.error(e);
6679
- }
6680
- logger?.emit("success", "Applied default Formatting");
6681
- }
6682
6652
  if (config.output.format === "prettier") {
6683
6653
  logger?.emit("start", `Formatting with ${config.output.format}`);
6684
6654
  try {
@@ -6759,4 +6729,4 @@ async function generate({ input, config, progressCache, args }) {
6759
6729
 
6760
6730
  //#endregion
6761
6731
  export { generate };
6762
- //# sourceMappingURL=generate-BqEOROw2.js.map
6732
+ //# sourceMappingURL=generate-DvSF6lmv.js.map