@kubb/cli 5.12.2 → 5.12.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.
- package/README.md +1 -0
- package/dist/{Telemetry-C7v3wFNp.cjs → Telemetry-CDO1ICOK.cjs} +2 -2
- package/dist/{Telemetry-C7v3wFNp.cjs.map → Telemetry-CDO1ICOK.cjs.map} +1 -1
- package/dist/{Telemetry-BhoWyCRu.js → Telemetry-xhC8-Vyn.js} +2 -2
- package/dist/{Telemetry-BhoWyCRu.js.map → Telemetry-xhC8-Vyn.js.map} +1 -1
- package/dist/{background-BLkaGx4A.js → background-COPnOEZ1.js} +1 -1
- package/dist/{background-BCDVfX30.cjs → background-D2LpT9f4.cjs} +2 -2
- package/dist/{background-BCDVfX30.cjs.map → background-D2LpT9f4.cjs.map} +1 -1
- package/dist/{background-CUF-snCU.js → background-uBrxdVDR.js} +2 -2
- package/dist/{background-CUF-snCU.js.map → background-uBrxdVDR.js.map} +1 -1
- package/dist/credentials-CZK6zPLv.js.map +1 -1
- package/dist/credentials-DDaKqtJn.cjs.map +1 -1
- package/dist/index.cjs +24 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -18
- package/dist/index.js.map +1 -1
- package/dist/{registry-Cl-wgD7H.cjs → registry-BKyP8vWm.cjs} +3 -3
- package/dist/{registry-Cl-wgD7H.cjs.map → registry-BKyP8vWm.cjs.map} +1 -1
- package/dist/{registry-BUPuJlgX.js → registry-CBcmeWFe.js} +3 -3
- package/dist/{registry-BUPuJlgX.js.map → registry-CBcmeWFe.js.map} +1 -1
- package/dist/{reporters-DzAzRAlM.js → reporters-Dd8dW6po.js} +4 -4
- package/dist/{reporters-DzAzRAlM.js.map → reporters-Dd8dW6po.js.map} +1 -1
- package/dist/{reporters-DkBWh4sD.cjs → reporters-uyy4d-rb.cjs} +4 -4
- package/dist/{reporters-DkBWh4sD.cjs.map → reporters-uyy4d-rb.cjs.map} +1 -1
- package/dist/{run-CK19O5v2.cjs → run-BiNNfH9p.cjs} +6 -6
- package/dist/{run-CK19O5v2.cjs.map → run-BiNNfH9p.cjs.map} +1 -1
- package/dist/{run-BWT7PtHZ.js → run-C-Qj8rGT.js} +4 -4
- package/dist/{run-BWT7PtHZ.js.map → run-C-Qj8rGT.js.map} +1 -1
- package/dist/{run-BcTgwks6.js → run-C-iy2alt.js} +13 -7
- package/dist/run-C-iy2alt.js.map +1 -0
- package/dist/{run-DqFL5SMR.cjs → run-CaIWyYX7.cjs} +2 -2
- package/dist/{run-DqFL5SMR.cjs.map → run-CaIWyYX7.cjs.map} +1 -1
- package/dist/{run-BJXDoxOJ.js → run-CivlWrUP.js} +6 -6
- package/dist/{run-BJXDoxOJ.js.map → run-CivlWrUP.js.map} +1 -1
- package/dist/{run-CioQPR0t.js → run-D2tp1iy3.js} +2 -2
- package/dist/{run-CioQPR0t.js.map → run-D2tp1iy3.js.map} +1 -1
- package/dist/{run-DklXr_kO.js → run-D8CyGEhZ.js} +1 -1
- package/dist/{run-9uoP-2Xh.cjs → run-DLL5vVCe.cjs} +4 -4
- package/dist/{run-9uoP-2Xh.cjs.map → run-DLL5vVCe.cjs.map} +1 -1
- package/dist/{run-T82Jef8b.cjs → run-Deh1VHMP.cjs} +13 -7
- package/dist/run-Deh1VHMP.cjs.map +1 -0
- package/dist/{snapshot-D5HiDktY.cjs → snapshot-BDlMKdLT.cjs} +6 -6
- package/dist/{snapshot-D5HiDktY.cjs.map → snapshot-BDlMKdLT.cjs.map} +1 -1
- package/dist/{snapshot-DLPs2buj.js → snapshot-hkBgN59R.js} +6 -6
- package/dist/{snapshot-DLPs2buj.js.map → snapshot-hkBgN59R.js.map} +1 -1
- package/dist/{status-DlLYGONt.js → status-C8vkwg_L.js} +3 -3
- package/dist/{status-DlLYGONt.js.map → status-C8vkwg_L.js.map} +1 -1
- package/dist/{status-BFMmzCfD.cjs → status-CLv6fxZ_.cjs} +3 -3
- package/dist/{status-BFMmzCfD.cjs.map → status-CLv6fxZ_.cjs.map} +1 -1
- package/dist/studioWorker.js +2 -2
- package/dist/{summary-DvLq6uim.js → summary-BASjQtTi.js} +3 -3
- package/dist/{summary-DvLq6uim.js.map → summary-BASjQtTi.js.map} +1 -1
- package/dist/{summary-BwbfP0Qj.cjs → summary-D18R-dbI.cjs} +3 -3
- package/dist/{summary-BwbfP0Qj.cjs.map → summary-D18R-dbI.cjs.map} +1 -1
- package/dist/{text-DfFJj91M.cjs → text-B9kNqOjo.cjs} +2 -2
- package/dist/{text-DfFJj91M.cjs.map → text-B9kNqOjo.cjs.map} +1 -1
- package/dist/{text-DG7CyUe7.js → text-CLsQw856.js} +2 -2
- package/dist/{text-DG7CyUe7.js.map → text-CLsQw856.js.map} +1 -1
- package/dist/{utils-Cb4fBZiX.cjs → utils-B1jRXHoA.cjs} +3 -3
- package/dist/{utils-Cb4fBZiX.cjs.map → utils-B1jRXHoA.cjs.map} +1 -1
- package/dist/{utils-BeOShrJ6.js → utils-Bon2anw0.js} +3 -3
- package/dist/{utils-BeOShrJ6.js.map → utils-Bon2anw0.js.map} +1 -1
- package/package.json +7 -7
- package/dist/run-BcTgwks6.js.map +0 -1
- package/dist/run-T82Jef8b.cjs.map +0 -1
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-
|
|
4
|
-
import { _ as write, a as readOutputFiles, c as createSpinner, g as read, l as withSpinner, m as exists, n as diffFiles } from "./utils-
|
|
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-
|
|
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-
|
|
3
|
+
import { a as getElapsedMs, i as formatMs, r as version, t as isDisabled } from "./Telemetry-xhC8-Vyn.js";
|
|
4
|
+
import { _ as write, a as readOutputFiles, c as createSpinner, g as read, l as withSpinner, m as exists, n as diffFiles } from "./utils-Bon2anw0.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-CLsQw856.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-CBcmeWFe.js";
|
|
7
7
|
import { a as initDefaults, i as KUBB_PACKAGE_NAME, n as findConfigFile, r as KUBB_CONFIG_FILENAME, t as getConfigs } from "./config-Bh00Hwpw.js";
|
|
8
|
-
import { t as logCommandSummary } from "./summary-
|
|
8
|
+
import { t as logCommandSummary } from "./summary-BASjQtTi.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";
|
|
@@ -86,6 +86,12 @@ const studioPermissionArgs = {
|
|
|
86
86
|
default: false,
|
|
87
87
|
toKebab: true
|
|
88
88
|
},
|
|
89
|
+
allowSaveInput: {
|
|
90
|
+
type: "boolean",
|
|
91
|
+
description: "Let Studio save the spec it sends as the input in kubb.config.ts; needs --allow-config-edit too. Asked for once per project when omitted",
|
|
92
|
+
default: false,
|
|
93
|
+
toKebab: true
|
|
94
|
+
},
|
|
89
95
|
allowExec: {
|
|
90
96
|
type: "boolean",
|
|
91
97
|
description: "Run the formatter, the linter, and output.postGenerate after a generation",
|
|
@@ -173,7 +179,7 @@ const command$13 = defineWithTypes()({
|
|
|
173
179
|
async run(ctx) {
|
|
174
180
|
const { values } = ctx;
|
|
175
181
|
const logLevel = resolveLogLevel(values);
|
|
176
|
-
const { run } = await import("./run-
|
|
182
|
+
const { run } = await import("./run-CivlWrUP.js");
|
|
177
183
|
await run({
|
|
178
184
|
input: values.input,
|
|
179
185
|
configPath: values.config,
|
|
@@ -197,7 +203,7 @@ const command$12 = define({
|
|
|
197
203
|
].join("\n"),
|
|
198
204
|
rendering: { header: null },
|
|
199
205
|
async run() {
|
|
200
|
-
const { run } = await import("./run-
|
|
206
|
+
const { run } = await import("./run-D2tp1iy3.js");
|
|
201
207
|
await run();
|
|
202
208
|
}
|
|
203
209
|
});
|
|
@@ -212,7 +218,7 @@ function studioCommand({ action, block, ...definition }) {
|
|
|
212
218
|
...definition,
|
|
213
219
|
toKebab: true,
|
|
214
220
|
async run({ values }) {
|
|
215
|
-
const { runStudio } = await import("./run-
|
|
221
|
+
const { runStudio } = await import("./run-D8CyGEhZ.js");
|
|
216
222
|
await runStudio(values, action, { block });
|
|
217
223
|
}
|
|
218
224
|
});
|
|
@@ -242,7 +248,7 @@ const command$11 = studioCommand({
|
|
|
242
248
|
},
|
|
243
249
|
block: true,
|
|
244
250
|
async action(options) {
|
|
245
|
-
const { connect } = await import("./run-
|
|
251
|
+
const { connect } = await import("./run-D8CyGEhZ.js");
|
|
246
252
|
await connect(options);
|
|
247
253
|
}
|
|
248
254
|
});
|
|
@@ -254,7 +260,7 @@ const command$10 = studioCommand({
|
|
|
254
260
|
examples: ["kubb studio login", "kubb studio login --url http://localhost:3000"].join("\n"),
|
|
255
261
|
args: command$11.args,
|
|
256
262
|
async action(options) {
|
|
257
|
-
const { login } = await import("./run-
|
|
263
|
+
const { login } = await import("./run-D8CyGEhZ.js");
|
|
258
264
|
await login(options);
|
|
259
265
|
}
|
|
260
266
|
});
|
|
@@ -266,7 +272,7 @@ const command$9 = studioCommand({
|
|
|
266
272
|
examples: "kubb studio logout",
|
|
267
273
|
args: {},
|
|
268
274
|
async action() {
|
|
269
|
-
const { stopWorker } = await import("./background-
|
|
275
|
+
const { stopWorker } = await import("./background-COPnOEZ1.js");
|
|
270
276
|
const { clearCredentials } = await import("./credentials-C8tjAhTo.js");
|
|
271
277
|
await stopWorker();
|
|
272
278
|
await clearCredentials();
|
|
@@ -309,7 +315,7 @@ const command$8 = define({
|
|
|
309
315
|
...logLevelArg
|
|
310
316
|
},
|
|
311
317
|
async run(ctx) {
|
|
312
|
-
const { runner } = await import("./snapshot-
|
|
318
|
+
const { runner } = await import("./snapshot-hkBgN59R.js");
|
|
313
319
|
await runner(ctx);
|
|
314
320
|
}
|
|
315
321
|
});
|
|
@@ -320,7 +326,7 @@ const command$7 = studioCommand({
|
|
|
320
326
|
description: "Keep this project connected to Kubb Studio in the background.",
|
|
321
327
|
args: command$11.args,
|
|
322
328
|
async action(options) {
|
|
323
|
-
const { startWorker } = await import("./background-
|
|
329
|
+
const { startWorker } = await import("./background-COPnOEZ1.js");
|
|
324
330
|
await startWorker(options);
|
|
325
331
|
}
|
|
326
332
|
});
|
|
@@ -328,7 +334,7 @@ const stopCommand = define({
|
|
|
328
334
|
name: "stop",
|
|
329
335
|
description: "Stop this project's background connection and keep its pairing.",
|
|
330
336
|
async run() {
|
|
331
|
-
const { stopWorker } = await import("./background-
|
|
337
|
+
const { stopWorker } = await import("./background-COPnOEZ1.js");
|
|
332
338
|
await stopWorker();
|
|
333
339
|
console.log("Background connection stopped.");
|
|
334
340
|
}
|
|
@@ -341,9 +347,9 @@ const command$6 = studioCommand({
|
|
|
341
347
|
examples: "kubb studio status",
|
|
342
348
|
args: { url: studioConnectionArgs.url },
|
|
343
349
|
async action(options) {
|
|
344
|
-
const { getWorkerLogPath, getWorkerStatus } = await import("./background-
|
|
350
|
+
const { getWorkerLogPath, getWorkerStatus } = await import("./background-COPnOEZ1.js");
|
|
345
351
|
const { readCredentials } = await import("./credentials-C8tjAhTo.js");
|
|
346
|
-
const { formatStatus } = await import("./status-
|
|
352
|
+
const { formatStatus } = await import("./status-C8vkwg_L.js");
|
|
347
353
|
const [worker, credentials] = await Promise.all([getWorkerStatus(), readCredentials()]);
|
|
348
354
|
console.log([
|
|
349
355
|
"",
|
|
@@ -411,7 +417,7 @@ const command$4 = define({
|
|
|
411
417
|
}
|
|
412
418
|
},
|
|
413
419
|
async run({ values }) {
|
|
414
|
-
const { run } = await import("./run-
|
|
420
|
+
const { run } = await import("./run-C-Qj8rGT.js");
|
|
415
421
|
await run({
|
|
416
422
|
input: values.input,
|
|
417
423
|
configPath: values.config
|
|
@@ -1443,7 +1449,7 @@ async function regenerate({ cwd, configPath }) {
|
|
|
1443
1449
|
const spinner = createSpinner();
|
|
1444
1450
|
spinner.start("Generating with the new versions");
|
|
1445
1451
|
try {
|
|
1446
|
-
const [{ getConfigs }, { generate }] = await Promise.all([import("./config-iVdOcpro.js"), import("./run-
|
|
1452
|
+
const [{ getConfigs }, { generate }] = await Promise.all([import("./config-iVdOcpro.js"), import("./run-CivlWrUP.js")]);
|
|
1447
1453
|
const { configs } = await getConfigs({ configPath });
|
|
1448
1454
|
const dirs = configs.map((config) => path.resolve(config.root ?? cwd, config.output.path));
|
|
1449
1455
|
const before = new Map((await Promise.all(dirs.map(readOutputFiles))).flatMap((files) => [...files]));
|