@kubb/cli 3.18.0 → 3.18.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.
@@ -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";
@@ -6649,36 +6648,6 @@ async function generate({ input, config, progressCache, args }) {
6649
6648
  logger.consola?.error(error);
6650
6649
  process$1.exit(1);
6651
6650
  }
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
6651
  if (config.output.format === "prettier") {
6683
6652
  logger?.emit("start", `Formatting with ${config.output.format}`);
6684
6653
  try {
@@ -6759,4 +6728,4 @@ async function generate({ input, config, progressCache, args }) {
6759
6728
 
6760
6729
  //#endregion
6761
6730
  export { generate };
6762
- //# sourceMappingURL=generate-BqEOROw2.js.map
6731
+ //# sourceMappingURL=generate-B5KogiFG.js.map