@kubb/cli 5.12.1 → 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 +3 -0
- package/dist/{Telemetry-D-IDgRfq.cjs → Telemetry-CDO1ICOK.cjs} +2 -2
- package/dist/{Telemetry-D-IDgRfq.cjs.map → Telemetry-CDO1ICOK.cjs.map} +1 -1
- package/dist/{Telemetry-wyeU72_v.js → Telemetry-xhC8-Vyn.js} +2 -2
- package/dist/{Telemetry-wyeU72_v.js.map → Telemetry-xhC8-Vyn.js.map} +1 -1
- package/dist/{background-D0g61wus.js → background-COPnOEZ1.js} +1 -1
- package/dist/{background-DY-7vFSm.cjs → background-D2LpT9f4.cjs} +2 -2
- package/dist/{background-DY-7vFSm.cjs.map → background-D2LpT9f4.cjs.map} +1 -1
- package/dist/{background-B49o0iOw.js → background-uBrxdVDR.js} +2 -2
- package/dist/{background-B49o0iOw.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 +38 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -19
- package/dist/index.js.map +1 -1
- package/dist/{registry-DSDoBaVk.cjs → registry-BKyP8vWm.cjs} +3 -3
- package/dist/{registry-DSDoBaVk.cjs.map → registry-BKyP8vWm.cjs.map} +1 -1
- package/dist/{registry-BS1M25zz.js → registry-CBcmeWFe.js} +3 -3
- package/dist/{registry-BS1M25zz.js.map → registry-CBcmeWFe.js.map} +1 -1
- package/dist/{reporters-BXNKLBLf.js → reporters-Dd8dW6po.js} +4 -4
- package/dist/{reporters-BXNKLBLf.js.map → reporters-Dd8dW6po.js.map} +1 -1
- package/dist/{reporters-C4xq0GFT.cjs → reporters-uyy4d-rb.cjs} +4 -4
- package/dist/{reporters-C4xq0GFT.cjs.map → reporters-uyy4d-rb.cjs.map} +1 -1
- package/dist/{run-DNzoHmRZ.cjs → run-BiNNfH9p.cjs} +6 -6
- package/dist/{run-DNzoHmRZ.cjs.map → run-BiNNfH9p.cjs.map} +1 -1
- package/dist/{run-Byr2y0hI.js → run-C-Qj8rGT.js} +4 -4
- package/dist/{run-Byr2y0hI.js.map → run-C-Qj8rGT.js.map} +1 -1
- package/dist/{run-Bd_ZfPG1.js → run-C-iy2alt.js} +25 -7
- package/dist/run-C-iy2alt.js.map +1 -0
- package/dist/{run-bSFXs9i3.cjs → run-CaIWyYX7.cjs} +2 -2
- package/dist/{run-bSFXs9i3.cjs.map → run-CaIWyYX7.cjs.map} +1 -1
- package/dist/{run-CuRCXhQb.js → run-CivlWrUP.js} +6 -6
- package/dist/{run-CuRCXhQb.js.map → run-CivlWrUP.js.map} +1 -1
- package/dist/{run-z960932J.js → run-D2tp1iy3.js} +2 -2
- package/dist/{run-z960932J.js.map → run-D2tp1iy3.js.map} +1 -1
- package/dist/{run-DcX-F_wC.js → run-D8CyGEhZ.js} +1 -1
- package/dist/{run-4DWl8vSu.cjs → run-DLL5vVCe.cjs} +4 -4
- package/dist/{run-4DWl8vSu.cjs.map → run-DLL5vVCe.cjs.map} +1 -1
- package/dist/{run-C9EYgEqG.cjs → run-Deh1VHMP.cjs} +25 -7
- package/dist/run-Deh1VHMP.cjs.map +1 -0
- package/dist/{snapshot-DzzsJSWr.cjs → snapshot-BDlMKdLT.cjs} +6 -6
- package/dist/{snapshot-DzzsJSWr.cjs.map → snapshot-BDlMKdLT.cjs.map} +1 -1
- package/dist/{snapshot-CLgI_qzL.js → snapshot-hkBgN59R.js} +6 -6
- package/dist/{snapshot-CLgI_qzL.js.map → snapshot-hkBgN59R.js.map} +1 -1
- package/dist/{status-DrKO_t5S.js → status-C8vkwg_L.js} +3 -3
- package/dist/{status-DrKO_t5S.js.map → status-C8vkwg_L.js.map} +1 -1
- package/dist/{status-B50z7yha.cjs → status-CLv6fxZ_.cjs} +3 -3
- package/dist/{status-B50z7yha.cjs.map → status-CLv6fxZ_.cjs.map} +1 -1
- package/dist/studioWorker.js +2 -2
- package/dist/{summary-Bi_pAA9i.js → summary-BASjQtTi.js} +3 -3
- package/dist/{summary-Bi_pAA9i.js.map → summary-BASjQtTi.js.map} +1 -1
- package/dist/{summary-C8QI_30-.cjs → summary-D18R-dbI.cjs} +3 -3
- package/dist/{summary-C8QI_30-.cjs.map → summary-D18R-dbI.cjs.map} +1 -1
- package/dist/{text-Sp4fptq1.cjs → text-B9kNqOjo.cjs} +2 -2
- package/dist/{text-Sp4fptq1.cjs.map → text-B9kNqOjo.cjs.map} +1 -1
- package/dist/{text-DgzXienb.js → text-CLsQw856.js} +2 -2
- package/dist/{text-DgzXienb.js.map → text-CLsQw856.js.map} +1 -1
- package/dist/{utils-Dju97QYB.cjs → utils-B1jRXHoA.cjs} +3 -3
- package/dist/{utils-Dju97QYB.cjs.map → utils-B1jRXHoA.cjs.map} +1 -1
- package/dist/{utils-BDDF8GOv.js → utils-Bon2anw0.js} +3 -3
- package/dist/{utils-BDDF8GOv.js.map → utils-Bon2anw0.js.map} +1 -1
- package/package.json +7 -7
- package/dist/run-Bd_ZfPG1.js.map +0 -1
- package/dist/run-C9EYgEqG.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";
|
|
@@ -74,6 +74,24 @@ const studioPermissionArgs = {
|
|
|
74
74
|
default: false,
|
|
75
75
|
toKebab: true
|
|
76
76
|
},
|
|
77
|
+
allowInstall: {
|
|
78
|
+
type: "boolean",
|
|
79
|
+
description: "Let Studio install extensions from the registry with kubb add; needs --allow-config-edit too. Asked for once per project when omitted",
|
|
80
|
+
default: false,
|
|
81
|
+
toKebab: true
|
|
82
|
+
},
|
|
83
|
+
allowUpdate: {
|
|
84
|
+
type: "boolean",
|
|
85
|
+
description: "Let Studio update installed extensions with kubb update. Asked for once per project when omitted",
|
|
86
|
+
default: false,
|
|
87
|
+
toKebab: true
|
|
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
|
+
},
|
|
77
95
|
allowExec: {
|
|
78
96
|
type: "boolean",
|
|
79
97
|
description: "Run the formatter, the linter, and output.postGenerate after a generation",
|
|
@@ -161,7 +179,7 @@ const command$13 = defineWithTypes()({
|
|
|
161
179
|
async run(ctx) {
|
|
162
180
|
const { values } = ctx;
|
|
163
181
|
const logLevel = resolveLogLevel(values);
|
|
164
|
-
const { run } = await import("./run-
|
|
182
|
+
const { run } = await import("./run-CivlWrUP.js");
|
|
165
183
|
await run({
|
|
166
184
|
input: values.input,
|
|
167
185
|
configPath: values.config,
|
|
@@ -185,7 +203,7 @@ const command$12 = define({
|
|
|
185
203
|
].join("\n"),
|
|
186
204
|
rendering: { header: null },
|
|
187
205
|
async run() {
|
|
188
|
-
const { run } = await import("./run-
|
|
206
|
+
const { run } = await import("./run-D2tp1iy3.js");
|
|
189
207
|
await run();
|
|
190
208
|
}
|
|
191
209
|
});
|
|
@@ -200,7 +218,7 @@ function studioCommand({ action, block, ...definition }) {
|
|
|
200
218
|
...definition,
|
|
201
219
|
toKebab: true,
|
|
202
220
|
async run({ values }) {
|
|
203
|
-
const { runStudio } = await import("./run-
|
|
221
|
+
const { runStudio } = await import("./run-D8CyGEhZ.js");
|
|
204
222
|
await runStudio(values, action, { block });
|
|
205
223
|
}
|
|
206
224
|
});
|
|
@@ -230,7 +248,7 @@ const command$11 = studioCommand({
|
|
|
230
248
|
},
|
|
231
249
|
block: true,
|
|
232
250
|
async action(options) {
|
|
233
|
-
const { connect } = await import("./run-
|
|
251
|
+
const { connect } = await import("./run-D8CyGEhZ.js");
|
|
234
252
|
await connect(options);
|
|
235
253
|
}
|
|
236
254
|
});
|
|
@@ -242,7 +260,7 @@ const command$10 = studioCommand({
|
|
|
242
260
|
examples: ["kubb studio login", "kubb studio login --url http://localhost:3000"].join("\n"),
|
|
243
261
|
args: command$11.args,
|
|
244
262
|
async action(options) {
|
|
245
|
-
const { login } = await import("./run-
|
|
263
|
+
const { login } = await import("./run-D8CyGEhZ.js");
|
|
246
264
|
await login(options);
|
|
247
265
|
}
|
|
248
266
|
});
|
|
@@ -254,7 +272,7 @@ const command$9 = studioCommand({
|
|
|
254
272
|
examples: "kubb studio logout",
|
|
255
273
|
args: {},
|
|
256
274
|
async action() {
|
|
257
|
-
const { stopWorker } = await import("./background-
|
|
275
|
+
const { stopWorker } = await import("./background-COPnOEZ1.js");
|
|
258
276
|
const { clearCredentials } = await import("./credentials-C8tjAhTo.js");
|
|
259
277
|
await stopWorker();
|
|
260
278
|
await clearCredentials();
|
|
@@ -297,7 +315,7 @@ const command$8 = define({
|
|
|
297
315
|
...logLevelArg
|
|
298
316
|
},
|
|
299
317
|
async run(ctx) {
|
|
300
|
-
const { runner } = await import("./snapshot-
|
|
318
|
+
const { runner } = await import("./snapshot-hkBgN59R.js");
|
|
301
319
|
await runner(ctx);
|
|
302
320
|
}
|
|
303
321
|
});
|
|
@@ -308,7 +326,7 @@ const command$7 = studioCommand({
|
|
|
308
326
|
description: "Keep this project connected to Kubb Studio in the background.",
|
|
309
327
|
args: command$11.args,
|
|
310
328
|
async action(options) {
|
|
311
|
-
const { startWorker } = await import("./background-
|
|
329
|
+
const { startWorker } = await import("./background-COPnOEZ1.js");
|
|
312
330
|
await startWorker(options);
|
|
313
331
|
}
|
|
314
332
|
});
|
|
@@ -316,7 +334,7 @@ const stopCommand = define({
|
|
|
316
334
|
name: "stop",
|
|
317
335
|
description: "Stop this project's background connection and keep its pairing.",
|
|
318
336
|
async run() {
|
|
319
|
-
const { stopWorker } = await import("./background-
|
|
337
|
+
const { stopWorker } = await import("./background-COPnOEZ1.js");
|
|
320
338
|
await stopWorker();
|
|
321
339
|
console.log("Background connection stopped.");
|
|
322
340
|
}
|
|
@@ -329,9 +347,9 @@ const command$6 = studioCommand({
|
|
|
329
347
|
examples: "kubb studio status",
|
|
330
348
|
args: { url: studioConnectionArgs.url },
|
|
331
349
|
async action(options) {
|
|
332
|
-
const { getWorkerLogPath, getWorkerStatus } = await import("./background-
|
|
350
|
+
const { getWorkerLogPath, getWorkerStatus } = await import("./background-COPnOEZ1.js");
|
|
333
351
|
const { readCredentials } = await import("./credentials-C8tjAhTo.js");
|
|
334
|
-
const { formatStatus } = await import("./status-
|
|
352
|
+
const { formatStatus } = await import("./status-C8vkwg_L.js");
|
|
335
353
|
const [worker, credentials] = await Promise.all([getWorkerStatus(), readCredentials()]);
|
|
336
354
|
console.log([
|
|
337
355
|
"",
|
|
@@ -399,7 +417,7 @@ const command$4 = define({
|
|
|
399
417
|
}
|
|
400
418
|
},
|
|
401
419
|
async run({ values }) {
|
|
402
|
-
const { run } = await import("./run-
|
|
420
|
+
const { run } = await import("./run-C-Qj8rGT.js");
|
|
403
421
|
await run({
|
|
404
422
|
input: values.input,
|
|
405
423
|
configPath: values.config
|
|
@@ -940,6 +958,7 @@ async function run$4({ id: input, configPath, yes, install }) {
|
|
|
940
958
|
unconfigured.push(target);
|
|
941
959
|
}
|
|
942
960
|
const manual = unconfigured.length > 0;
|
|
961
|
+
if (manual && manifest.kind === "plugin") process$1.exitCode = 1;
|
|
943
962
|
if (manual) logBlock([
|
|
944
963
|
"Add the import to your Kubb config and merge the property into its defineConfig call:",
|
|
945
964
|
"",
|
|
@@ -1430,7 +1449,7 @@ async function regenerate({ cwd, configPath }) {
|
|
|
1430
1449
|
const spinner = createSpinner();
|
|
1431
1450
|
spinner.start("Generating with the new versions");
|
|
1432
1451
|
try {
|
|
1433
|
-
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")]);
|
|
1434
1453
|
const { configs } = await getConfigs({ configPath });
|
|
1435
1454
|
const dirs = configs.map((config) => path.resolve(config.root ?? cwd, config.output.path));
|
|
1436
1455
|
const before = new Map((await Promise.all(dirs.map(readOutputFiles))).flatMap((files) => [...files]));
|
|
@@ -1533,7 +1552,7 @@ async function run$1({ ids, dryRun, yes }) {
|
|
|
1533
1552
|
summary("Updates available", "planned", [`Dry run: nothing was installed. Run kubb update to install ${proposals.length === 1 ? "it" : "them"}.`]);
|
|
1534
1553
|
return;
|
|
1535
1554
|
}
|
|
1536
|
-
const defaults = proposals.filter((entry) => !isMajor(entry));
|
|
1555
|
+
const defaults = proposals.filter((entry) => wanted.has(entry.id) || !isMajor(entry));
|
|
1537
1556
|
const chosen = yes ? defaults.map((entry) => entry.id) : await clack.multiselect({
|
|
1538
1557
|
message: "Select the updates to install",
|
|
1539
1558
|
options: proposals.map((entry) => ({
|