@kubb/cli 5.13.1 → 5.14.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.
Files changed (60) hide show
  1. package/dist/{Telemetry-0Sr_THx9.cjs → Telemetry-CZmpqKZm.cjs} +2 -2
  2. package/dist/{Telemetry-0Sr_THx9.cjs.map → Telemetry-CZmpqKZm.cjs.map} +1 -1
  3. package/dist/{Telemetry-B4hk3xGv.js → Telemetry-DdoOJOS1.js} +2 -2
  4. package/dist/{Telemetry-B4hk3xGv.js.map → Telemetry-DdoOJOS1.js.map} +1 -1
  5. package/dist/{background-6xlebN_Y.cjs → background-BrIJU43S.cjs} +2 -2
  6. package/dist/{background-6xlebN_Y.cjs.map → background-BrIJU43S.cjs.map} +1 -1
  7. package/dist/{background-B7oEWLZs.js → background-Bu07csqw.js} +1 -1
  8. package/dist/{background-DY4LTodc.js → background-D-ujLRoU.js} +2 -2
  9. package/dist/{background-DY4LTodc.js.map → background-D-ujLRoU.js.map} +1 -1
  10. package/dist/index.cjs +22 -19
  11. package/dist/index.cjs.map +1 -1
  12. package/dist/index.js +22 -19
  13. package/dist/index.js.map +1 -1
  14. package/dist/{registry-9AEIs-Cm.cjs → registry-DhrOLJFK.cjs} +3 -3
  15. package/dist/{registry-9AEIs-Cm.cjs.map → registry-DhrOLJFK.cjs.map} +1 -1
  16. package/dist/{registry-DLasg7du.js → registry-DwppRxUh.js} +3 -3
  17. package/dist/{registry-DLasg7du.js.map → registry-DwppRxUh.js.map} +1 -1
  18. package/dist/{reporters-xwOZPZ42.cjs → reporters-B1Di1RhB.cjs} +4 -4
  19. package/dist/{reporters-xwOZPZ42.cjs.map → reporters-B1Di1RhB.cjs.map} +1 -1
  20. package/dist/{reporters-BfeB9jOt.js → reporters-CWaaFAP-.js} +4 -4
  21. package/dist/{reporters-BfeB9jOt.js.map → reporters-CWaaFAP-.js.map} +1 -1
  22. package/dist/{run-C2syKtAg.cjs → run-7bCAra2a.cjs} +6 -6
  23. package/dist/{run-C2syKtAg.cjs.map → run-7bCAra2a.cjs.map} +1 -1
  24. package/dist/{run-kRFuEqeA.js → run-A2hHeAoZ.js} +7 -7
  25. package/dist/{run-kRFuEqeA.js.map → run-A2hHeAoZ.js.map} +1 -1
  26. package/dist/{run--OOU4YSR.js → run-BIa0e0jZ.js} +4 -4
  27. package/dist/{run--OOU4YSR.js.map → run-BIa0e0jZ.js.map} +1 -1
  28. package/dist/{run-C9Q5R-p9.js → run-CJQrSCAD.js} +1 -1
  29. package/dist/{run-DoUk-2Xb.js → run-CQC0pL1s.js} +2 -2
  30. package/dist/{run-DoUk-2Xb.js.map → run-CQC0pL1s.js.map} +1 -1
  31. package/dist/{run-Bgr0F6xv.cjs → run-CQELKG3I.cjs} +4 -4
  32. package/dist/{run-Bgr0F6xv.cjs.map → run-CQELKG3I.cjs.map} +1 -1
  33. package/dist/{run-w92b045L.cjs → run-ChCjDopB.cjs} +7 -7
  34. package/dist/{run-w92b045L.cjs.map → run-ChCjDopB.cjs.map} +1 -1
  35. package/dist/{run-BTzmKup3.cjs → run-CiFYHgVY.cjs} +2 -2
  36. package/dist/{run-BTzmKup3.cjs.map → run-CiFYHgVY.cjs.map} +1 -1
  37. package/dist/{run-BDmTZPT7.js → run-DH7hJn3s.js} +6 -6
  38. package/dist/{run-BDmTZPT7.js.map → run-DH7hJn3s.js.map} +1 -1
  39. package/dist/{snapshot-O36QFuVw.js → snapshot-BxMMyWLK.js} +6 -6
  40. package/dist/{snapshot-O36QFuVw.js.map → snapshot-BxMMyWLK.js.map} +1 -1
  41. package/dist/{snapshot-B4eWToMC.cjs → snapshot-Cr6KSlPW.cjs} +6 -6
  42. package/dist/{snapshot-B4eWToMC.cjs.map → snapshot-Cr6KSlPW.cjs.map} +1 -1
  43. package/dist/{status-C5_IHiDc.js → status-BdjS4SMJ.js} +3 -3
  44. package/dist/{status-C5_IHiDc.js.map → status-BdjS4SMJ.js.map} +1 -1
  45. package/dist/{status-CteZmcug.cjs → status-BkXcEOmp.cjs} +3 -3
  46. package/dist/{status-CteZmcug.cjs.map → status-BkXcEOmp.cjs.map} +1 -1
  47. package/dist/studioWorker.js +2 -2
  48. package/dist/{summary-BuKuPfE_.cjs → summary-BdvaJ0_J.cjs} +3 -3
  49. package/dist/{summary-BuKuPfE_.cjs.map → summary-BdvaJ0_J.cjs.map} +1 -1
  50. package/dist/{summary-B1aj8T_V.js → summary-DKqx3K4w.js} +3 -3
  51. package/dist/{summary-B1aj8T_V.js.map → summary-DKqx3K4w.js.map} +1 -1
  52. package/dist/{text-CaZG0KF2.js → text-BK8L4Xtr.js} +2 -2
  53. package/dist/{text-CaZG0KF2.js.map → text-BK8L4Xtr.js.map} +1 -1
  54. package/dist/{text-DVPYqR74.cjs → text-CtdDig0T.cjs} +2 -2
  55. package/dist/{text-DVPYqR74.cjs.map → text-CtdDig0T.cjs.map} +1 -1
  56. package/dist/{utils--q06lp55.js → utils-3TiGzYuZ.js} +3 -3
  57. package/dist/{utils--q06lp55.js.map → utils-3TiGzYuZ.js.map} +1 -1
  58. package/dist/{utils-Ckbz012p.cjs → utils-SIv7oWeS.cjs} +3 -3
  59. package/dist/{utils-Ckbz012p.cjs.map → utils-SIv7oWeS.cjs.map} +1 -1
  60. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { t as __name } from "./rolldown-runtime-CRm0XQPb.js";
2
2
  import { t as getErrorMessage } from "./errors-DmC83ALX.js";
3
- import { a as getElapsedMs, i as formatMs, r as version, t as isDisabled } from "./Telemetry-B4hk3xGv.js";
4
- import { _ as write, a as readOutputFiles, c as createSpinner, g as read, l as withSpinner, m as exists, n as diffFiles, v as writeRaw } from "./utils--q06lp55.js";
5
- import { _ as isRichOutput, a as logOutro, c as logBlock, d as logStep, f as logWarn, i as logIntro, l as logError, r as isInteractiveRun, t as pluralize } from "./text-CaZG0KF2.js";
6
- import { a as installSpec, c as toRegistryId, f as wantsMascot, i as incompatibility, l as toShortId, n as closestIds, o as isOutdated, r as fetchRegistryIndex, s as registryUrl, t as bumpOf, u as getBanner } from "./registry-DLasg7du.js";
3
+ import { a as getElapsedMs, i as formatMs, r as version, t as isDisabled } from "./Telemetry-DdoOJOS1.js";
4
+ import { _ as write, a as readOutputFiles, c as createSpinner, g as read, l as withSpinner, m as exists, n as diffFiles, v as writeRaw } from "./utils-3TiGzYuZ.js";
5
+ import { _ as isRichOutput, a as logOutro, c as logBlock, d as logStep, f as logWarn, i as logIntro, l as logError, r as isInteractiveRun, t as pluralize } from "./text-BK8L4Xtr.js";
6
+ import { a as installSpec, c as toRegistryId, f as wantsMascot, i as incompatibility, l as toShortId, n as closestIds, o as isOutdated, r as fetchRegistryIndex, s as registryUrl, t as bumpOf, u as getBanner } from "./registry-DwppRxUh.js";
7
7
  import { a as KUBB_PACKAGE_NAME, i as KUBB_CONFIG_FILENAME, n as findConfigFile, o as initDefaults, r as BUNDLED_PACKAGES, t as getConfigs } from "./config-CNqgDSu3.js";
8
- import { t as logCommandSummary } from "./summary-B1aj8T_V.js";
8
+ import { t as logCommandSummary } from "./summary-DKqx3K4w.js";
9
9
  import { styleText } from "node:util";
10
10
  import dryrun, { pluginId as dryRunId } from "@gunshi/plugin-dryrun";
11
11
  import { cli, define, defineWithTypes } from "gunshi";
@@ -224,7 +224,7 @@ const command$14 = defineWithTypes()({
224
224
  async run(ctx) {
225
225
  const { values } = ctx;
226
226
  const logLevel = resolveLogLevel(values);
227
- const { run } = await import("./run-BDmTZPT7.js");
227
+ const { run } = await import("./run-DH7hJn3s.js");
228
228
  await run({
229
229
  input: values.input,
230
230
  configPath: values.config,
@@ -248,7 +248,7 @@ const command$13 = define({
248
248
  ].join("\n"),
249
249
  rendering: { header: null },
250
250
  async run() {
251
- const { run } = await import("./run-DoUk-2Xb.js");
251
+ const { run } = await import("./run-CQC0pL1s.js");
252
252
  await run();
253
253
  }
254
254
  });
@@ -263,7 +263,7 @@ function studioCommand({ action, block, ...definition }) {
263
263
  ...definition,
264
264
  toKebab: true,
265
265
  async run({ values }) {
266
- const { runStudio } = await import("./run-C9Q5R-p9.js");
266
+ const { runStudio } = await import("./run-CJQrSCAD.js");
267
267
  await runStudio(values, action, { block });
268
268
  }
269
269
  });
@@ -293,7 +293,7 @@ const command$12 = studioCommand({
293
293
  },
294
294
  block: true,
295
295
  async action(options) {
296
- const { connect } = await import("./run-C9Q5R-p9.js");
296
+ const { connect } = await import("./run-CJQrSCAD.js");
297
297
  await connect(options);
298
298
  }
299
299
  });
@@ -305,7 +305,7 @@ const command$11 = studioCommand({
305
305
  examples: ["kubb studio login", "kubb studio login --url http://localhost:3000"].join("\n"),
306
306
  args: command$12.args,
307
307
  async action(options) {
308
- const { login } = await import("./run-C9Q5R-p9.js");
308
+ const { login } = await import("./run-CJQrSCAD.js");
309
309
  await login(options);
310
310
  }
311
311
  });
@@ -317,7 +317,7 @@ const command$10 = studioCommand({
317
317
  examples: "kubb studio logout",
318
318
  args: {},
319
319
  async action() {
320
- const { stopWorker } = await import("./background-B7oEWLZs.js");
320
+ const { stopWorker } = await import("./background-Bu07csqw.js");
321
321
  const { clearCredentials } = await import("./credentials-C8tjAhTo.js");
322
322
  await stopWorker();
323
323
  await clearCredentials();
@@ -360,7 +360,7 @@ const command$9 = define({
360
360
  ...logLevelArg
361
361
  },
362
362
  async run(ctx) {
363
- const { runner } = await import("./snapshot-O36QFuVw.js");
363
+ const { runner } = await import("./snapshot-BxMMyWLK.js");
364
364
  await runner(ctx);
365
365
  }
366
366
  });
@@ -371,7 +371,7 @@ const command$8 = studioCommand({
371
371
  description: "Keep this project connected to Kubb Studio in the background.",
372
372
  args: command$12.args,
373
373
  async action(options) {
374
- const { startWorker } = await import("./background-B7oEWLZs.js");
374
+ const { startWorker } = await import("./background-Bu07csqw.js");
375
375
  await startWorker(options);
376
376
  }
377
377
  });
@@ -379,7 +379,7 @@ const stopCommand = define({
379
379
  name: "stop",
380
380
  description: "Stop this project's background connection and keep its pairing.",
381
381
  async run() {
382
- const { stopWorker } = await import("./background-B7oEWLZs.js");
382
+ const { stopWorker } = await import("./background-Bu07csqw.js");
383
383
  await stopWorker();
384
384
  console.log("Background connection stopped.");
385
385
  }
@@ -392,9 +392,9 @@ const command$7 = studioCommand({
392
392
  examples: "kubb studio status",
393
393
  args: { url: studioConnectionArgs.url },
394
394
  async action(options) {
395
- const { getWorkerLogPath, getWorkerStatus } = await import("./background-B7oEWLZs.js");
395
+ const { getWorkerLogPath, getWorkerStatus } = await import("./background-Bu07csqw.js");
396
396
  const { readCredentials } = await import("./credentials-C8tjAhTo.js");
397
- const { formatStatus } = await import("./status-C5_IHiDc.js");
397
+ const { formatStatus } = await import("./status-BdjS4SMJ.js");
398
398
  const [worker, credentials] = await Promise.all([getWorkerStatus(), readCredentials()]);
399
399
  console.log([
400
400
  "",
@@ -462,7 +462,7 @@ const command$5 = define({
462
462
  }
463
463
  },
464
464
  async run({ values }) {
465
- const { run } = await import("./run--OOU4YSR.js");
465
+ const { run } = await import("./run-BIa0e0jZ.js");
466
466
  await run({
467
467
  input: values.input,
468
468
  configPath: values.config
@@ -2622,7 +2622,7 @@ async function regenerate({ cwd, configPath }) {
2622
2622
  const spinner = createSpinner();
2623
2623
  spinner.start("Generating with the new versions");
2624
2624
  try {
2625
- const [{ getConfigs }, { generate }] = await Promise.all([import("./config-DWDpFSn1.js"), import("./run-BDmTZPT7.js")]);
2625
+ const [{ getConfigs }, { generate }] = await Promise.all([import("./config-DWDpFSn1.js"), import("./run-DH7hJn3s.js")]);
2626
2626
  const { configs } = await getConfigs({ configPath });
2627
2627
  const dirs = configs.map((config) => path.resolve(config.root ?? cwd, config.output.path));
2628
2628
  const before = new Map((await Promise.all(dirs.map(readOutputFiles))).flatMap((files) => [...files]));
@@ -2687,7 +2687,10 @@ async function run$1({ ids, dryRun, yes }) {
2687
2687
  }));
2688
2688
  const proposals = outdated.filter((entry) => {
2689
2689
  const problem = incompatibility(entry.manifest);
2690
- if (problem) logWarn(`Skipped ${entry.id}: ${problem}`);
2690
+ if (problem) {
2691
+ logWarn(`Skipped ${entry.id}: ${problem}`);
2692
+ if (wanted.has(entry.id)) process$1.exitCode = 1;
2693
+ }
2691
2694
  return !problem;
2692
2695
  });
2693
2696
  if (!proposals.length) {