@kubb/cli 5.11.6 → 5.12.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.
- package/dist/{Telemetry-Be3hIy6_.cjs → Telemetry-D-IDgRfq.cjs} +2 -2
- package/dist/{Telemetry-Be3hIy6_.cjs.map → Telemetry-D-IDgRfq.cjs.map} +1 -1
- package/dist/{Telemetry-CfJAUDnh.js → Telemetry-wyeU72_v.js} +2 -2
- package/dist/{Telemetry-CfJAUDnh.js.map → Telemetry-wyeU72_v.js.map} +1 -1
- package/dist/{background-BBpH2jmk.js → background-B49o0iOw.js} +2 -2
- package/dist/{background-BBpH2jmk.js.map → background-B49o0iOw.js.map} +1 -1
- package/dist/{background-DS2zOde-.js → background-D0g61wus.js} +1 -1
- package/dist/{background-BW-e9FCX.cjs → background-DY-7vFSm.cjs} +2 -2
- package/dist/{background-BW-e9FCX.cjs.map → background-DY-7vFSm.cjs.map} +1 -1
- package/dist/index.cjs +19 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/{registry-CgQYxUju.js → registry-BS1M25zz.js} +3 -3
- package/dist/{registry-CgQYxUju.js.map → registry-BS1M25zz.js.map} +1 -1
- package/dist/{registry-BlKLO4ft.cjs → registry-DSDoBaVk.cjs} +3 -3
- package/dist/{registry-BlKLO4ft.cjs.map → registry-DSDoBaVk.cjs.map} +1 -1
- package/dist/{reporters-Dl8lrJZG.js → reporters-BXNKLBLf.js} +4 -4
- package/dist/{reporters-Dl8lrJZG.js.map → reporters-BXNKLBLf.js.map} +1 -1
- package/dist/{reporters-TkCgd4dS.cjs → reporters-C4xq0GFT.cjs} +4 -4
- package/dist/{reporters-TkCgd4dS.cjs.map → reporters-C4xq0GFT.cjs.map} +1 -1
- package/dist/{run-CFf0yxyY.cjs → run-4DWl8vSu.cjs} +12 -6
- package/dist/run-4DWl8vSu.cjs.map +1 -0
- package/dist/{run-BJn0RSW2.js → run-Bd_ZfPG1.js} +7 -7
- package/dist/{run-BJn0RSW2.js.map → run-Bd_ZfPG1.js.map} +1 -1
- package/dist/{run-D_dD7xHp.js → run-Byr2y0hI.js} +12 -6
- package/dist/run-Byr2y0hI.js.map +1 -0
- package/dist/{run-BszyZwY3.cjs → run-C9EYgEqG.cjs} +7 -7
- package/dist/{run-BszyZwY3.cjs.map → run-C9EYgEqG.cjs.map} +1 -1
- package/dist/{run-wkN1irUo.js → run-CuRCXhQb.js} +22 -28
- package/dist/run-CuRCXhQb.js.map +1 -0
- package/dist/{run-TrjCNL8e.cjs → run-DNzoHmRZ.cjs} +22 -28
- package/dist/run-DNzoHmRZ.cjs.map +1 -0
- package/dist/{run-DsJJCzQD.js → run-DcX-F_wC.js} +1 -1
- package/dist/{run-BtVKUjdK.cjs → run-bSFXs9i3.cjs} +2 -2
- package/dist/{run-BtVKUjdK.cjs.map → run-bSFXs9i3.cjs.map} +1 -1
- package/dist/{run-KuzAqsjg.js → run-z960932J.js} +2 -2
- package/dist/{run-KuzAqsjg.js.map → run-z960932J.js.map} +1 -1
- package/dist/{snapshot-CdGwHH15.js → snapshot-CLgI_qzL.js} +6 -6
- package/dist/{snapshot-CdGwHH15.js.map → snapshot-CLgI_qzL.js.map} +1 -1
- package/dist/{snapshot-u4L8mh4Y.cjs → snapshot-DzzsJSWr.cjs} +6 -6
- package/dist/{snapshot-u4L8mh4Y.cjs.map → snapshot-DzzsJSWr.cjs.map} +1 -1
- package/dist/{status-dpSvxxtN.cjs → status-B50z7yha.cjs} +3 -3
- package/dist/{status-dpSvxxtN.cjs.map → status-B50z7yha.cjs.map} +1 -1
- package/dist/{status-DHPeR3bq.js → status-DrKO_t5S.js} +3 -3
- package/dist/{status-DHPeR3bq.js.map → status-DrKO_t5S.js.map} +1 -1
- package/dist/studioWorker.js +2 -2
- package/dist/{summary-DkSLti6f.js → summary-Bi_pAA9i.js} +3 -3
- package/dist/{summary-DkSLti6f.js.map → summary-Bi_pAA9i.js.map} +1 -1
- package/dist/{summary-6-rotl2L.cjs → summary-C8QI_30-.cjs} +3 -3
- package/dist/{summary-6-rotl2L.cjs.map → summary-C8QI_30-.cjs.map} +1 -1
- package/dist/{text-CMP4M19Z.js → text-DgzXienb.js} +2 -2
- package/dist/{text-CMP4M19Z.js.map → text-DgzXienb.js.map} +1 -1
- package/dist/{text-CknhKMvM.cjs → text-Sp4fptq1.cjs} +2 -2
- package/dist/{text-CknhKMvM.cjs.map → text-Sp4fptq1.cjs.map} +1 -1
- package/dist/{utils-CnjEJIdZ.js → utils-BDDF8GOv.js} +4 -80
- package/dist/utils-BDDF8GOv.js.map +1 -0
- package/dist/{utils-DpKrXR2t.cjs → utils-Dju97QYB.cjs} +3 -91
- package/dist/utils-Dju97QYB.cjs.map +1 -0
- package/package.json +7 -7
- package/dist/run-CFf0yxyY.cjs.map +0 -1
- package/dist/run-D_dD7xHp.js.map +0 -1
- package/dist/run-TrjCNL8e.cjs.map +0 -1
- package/dist/run-wkN1irUo.js.map +0 -1
- package/dist/utils-CnjEJIdZ.js.map +0 -1
- package/dist/utils-DpKrXR2t.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 {
|
|
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-wyeU72_v.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-BDDF8GOv.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-DgzXienb.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-BS1M25zz.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-Bi_pAA9i.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";
|
|
@@ -136,7 +136,7 @@ const command$13 = defineWithTypes()({
|
|
|
136
136
|
...logLevelArg,
|
|
137
137
|
watch: {
|
|
138
138
|
type: "boolean",
|
|
139
|
-
description: "Watch mode:
|
|
139
|
+
description: "Watch mode: rebuilds when the local input file changes",
|
|
140
140
|
short: "w",
|
|
141
141
|
default: false
|
|
142
142
|
},
|
|
@@ -161,7 +161,7 @@ const command$13 = defineWithTypes()({
|
|
|
161
161
|
async run(ctx) {
|
|
162
162
|
const { values } = ctx;
|
|
163
163
|
const logLevel = resolveLogLevel(values);
|
|
164
|
-
const { run } = await import("./run-
|
|
164
|
+
const { run } = await import("./run-CuRCXhQb.js");
|
|
165
165
|
await run({
|
|
166
166
|
input: values.input,
|
|
167
167
|
configPath: values.config,
|
|
@@ -185,7 +185,7 @@ const command$12 = define({
|
|
|
185
185
|
].join("\n"),
|
|
186
186
|
rendering: { header: null },
|
|
187
187
|
async run() {
|
|
188
|
-
const { run } = await import("./run-
|
|
188
|
+
const { run } = await import("./run-z960932J.js");
|
|
189
189
|
await run();
|
|
190
190
|
}
|
|
191
191
|
});
|
|
@@ -200,7 +200,7 @@ function studioCommand({ action, block, ...definition }) {
|
|
|
200
200
|
...definition,
|
|
201
201
|
toKebab: true,
|
|
202
202
|
async run({ values }) {
|
|
203
|
-
const { runStudio } = await import("./run-
|
|
203
|
+
const { runStudio } = await import("./run-DcX-F_wC.js");
|
|
204
204
|
await runStudio(values, action, { block });
|
|
205
205
|
}
|
|
206
206
|
});
|
|
@@ -230,7 +230,7 @@ const command$11 = studioCommand({
|
|
|
230
230
|
},
|
|
231
231
|
block: true,
|
|
232
232
|
async action(options) {
|
|
233
|
-
const { connect } = await import("./run-
|
|
233
|
+
const { connect } = await import("./run-DcX-F_wC.js");
|
|
234
234
|
await connect(options);
|
|
235
235
|
}
|
|
236
236
|
});
|
|
@@ -242,7 +242,7 @@ const command$10 = studioCommand({
|
|
|
242
242
|
examples: ["kubb studio login", "kubb studio login --url http://localhost:3000"].join("\n"),
|
|
243
243
|
args: command$11.args,
|
|
244
244
|
async action(options) {
|
|
245
|
-
const { login } = await import("./run-
|
|
245
|
+
const { login } = await import("./run-DcX-F_wC.js");
|
|
246
246
|
await login(options);
|
|
247
247
|
}
|
|
248
248
|
});
|
|
@@ -254,7 +254,7 @@ const command$9 = studioCommand({
|
|
|
254
254
|
examples: "kubb studio logout",
|
|
255
255
|
args: {},
|
|
256
256
|
async action() {
|
|
257
|
-
const { stopWorker } = await import("./background-
|
|
257
|
+
const { stopWorker } = await import("./background-D0g61wus.js");
|
|
258
258
|
const { clearCredentials } = await import("./credentials-C8tjAhTo.js");
|
|
259
259
|
await stopWorker();
|
|
260
260
|
await clearCredentials();
|
|
@@ -297,7 +297,7 @@ const command$8 = define({
|
|
|
297
297
|
...logLevelArg
|
|
298
298
|
},
|
|
299
299
|
async run(ctx) {
|
|
300
|
-
const { runner } = await import("./snapshot-
|
|
300
|
+
const { runner } = await import("./snapshot-CLgI_qzL.js");
|
|
301
301
|
await runner(ctx);
|
|
302
302
|
}
|
|
303
303
|
});
|
|
@@ -308,7 +308,7 @@ const command$7 = studioCommand({
|
|
|
308
308
|
description: "Keep this project connected to Kubb Studio in the background.",
|
|
309
309
|
args: command$11.args,
|
|
310
310
|
async action(options) {
|
|
311
|
-
const { startWorker } = await import("./background-
|
|
311
|
+
const { startWorker } = await import("./background-D0g61wus.js");
|
|
312
312
|
await startWorker(options);
|
|
313
313
|
}
|
|
314
314
|
});
|
|
@@ -316,7 +316,7 @@ const stopCommand = define({
|
|
|
316
316
|
name: "stop",
|
|
317
317
|
description: "Stop this project's background connection and keep its pairing.",
|
|
318
318
|
async run() {
|
|
319
|
-
const { stopWorker } = await import("./background-
|
|
319
|
+
const { stopWorker } = await import("./background-D0g61wus.js");
|
|
320
320
|
await stopWorker();
|
|
321
321
|
console.log("Background connection stopped.");
|
|
322
322
|
}
|
|
@@ -329,9 +329,9 @@ const command$6 = studioCommand({
|
|
|
329
329
|
examples: "kubb studio status",
|
|
330
330
|
args: { url: studioConnectionArgs.url },
|
|
331
331
|
async action(options) {
|
|
332
|
-
const { getWorkerLogPath, getWorkerStatus } = await import("./background-
|
|
332
|
+
const { getWorkerLogPath, getWorkerStatus } = await import("./background-D0g61wus.js");
|
|
333
333
|
const { readCredentials } = await import("./credentials-C8tjAhTo.js");
|
|
334
|
-
const { formatStatus } = await import("./status-
|
|
334
|
+
const { formatStatus } = await import("./status-DrKO_t5S.js");
|
|
335
335
|
const [worker, credentials] = await Promise.all([getWorkerStatus(), readCredentials()]);
|
|
336
336
|
console.log([
|
|
337
337
|
"",
|
|
@@ -399,7 +399,7 @@ const command$4 = define({
|
|
|
399
399
|
}
|
|
400
400
|
},
|
|
401
401
|
async run({ values }) {
|
|
402
|
-
const { run } = await import("./run-
|
|
402
|
+
const { run } = await import("./run-Byr2y0hI.js");
|
|
403
403
|
await run({
|
|
404
404
|
input: values.input,
|
|
405
405
|
configPath: values.config
|
|
@@ -1430,7 +1430,7 @@ async function regenerate({ cwd, configPath }) {
|
|
|
1430
1430
|
const spinner = createSpinner();
|
|
1431
1431
|
spinner.start("Generating with the new versions");
|
|
1432
1432
|
try {
|
|
1433
|
-
const [{ getConfigs }, { generate }] = await Promise.all([import("./config-iVdOcpro.js"), import("./run-
|
|
1433
|
+
const [{ getConfigs }, { generate }] = await Promise.all([import("./config-iVdOcpro.js"), import("./run-CuRCXhQb.js")]);
|
|
1434
1434
|
const { configs } = await getConfigs({ configPath });
|
|
1435
1435
|
const dirs = configs.map((config) => path.resolve(config.root ?? cwd, config.output.path));
|
|
1436
1436
|
const before = new Map((await Promise.all(dirs.map(readOutputFiles))).flatMap((files) => [...files]));
|