@nuxt/cli-nightly 4.0.0-2610061206-eec52f0 → 4.0.0-2610061237-8a7195c
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/{_shared-CtlMxpnS.mjs → _shared-qEx2UXEE.mjs} +1 -1
- package/dist/{_utils-DZy6pBHR.mjs → _utils-BIWKh5bb.mjs} +1 -1
- package/dist/{add-DcOAWHPi.mjs → add-BJ1KMjiT.mjs} +4 -4
- package/dist/{add-khY6cPWM.mjs → add-FtvP8Q1V.mjs} +1 -1
- package/dist/{add-template-B_EF8xdy.mjs → add-template-D9o_ovC8.mjs} +1 -1
- package/dist/{analyze-BtWxwRok.mjs → analyze-CeEO7evy.mjs} +1 -1
- package/dist/boot.mjs +1 -1
- package/dist/broadcast-mciEtrFQ.mjs +16 -0
- package/dist/{build-CvvqmcZK.mjs → build-1hVj3ZPY.mjs} +1 -1
- package/dist/{cleanup-K4VcTg7v.mjs → cleanup-CCe5Ut2g.mjs} +1 -1
- package/dist/{completions-DDOLIYax.mjs → completions-iEhYJV8H.mjs} +1 -1
- package/dist/{config-CTCrp_Io.mjs → config-BNJi5XKe.mjs} +1 -1
- package/dist/{controller-Bx2n3A43.mjs → controller-CrmV8bLO.mjs} +1 -1
- package/dist/{curl-BtFLA2L-.mjs → curl-ByRBmhb8.mjs} +1 -1
- package/dist/dev/index.mjs +7 -10
- package/dist/{dev-B9BHtiTg.mjs → dev-D43VdmD8.mjs} +2 -2
- package/dist/{dev-child-D2C9p7i2.mjs → dev-child-Dpq8Z8KO.mjs} +1 -1
- package/dist/{devtools-BNn7DFsb.mjs → devtools-uYjTjG07.mjs} +1 -1
- package/dist/{docs-CJIEllS9.mjs → docs-CtCgLmpE.mjs} +1 -1
- package/dist/{engines-CSRAxneF.mjs → engines-CfG7n4NY.mjs} +1 -1
- package/dist/{generate-DekqtfFK.mjs → generate-DlYFjFga.mjs} +2 -2
- package/dist/index.mjs +24 -24
- package/dist/{info-CZUzizc0.mjs → info-DrSrBDsb.mjs} +1 -1
- package/dist/{init-fiqKMqln.mjs → init-z-eXqs_c.mjs} +1 -1
- package/dist/{list-BtHfmCmz.mjs → list-8vmejR93.mjs} +1 -1
- package/dist/{log-channel-DHzCUYh3.mjs → log-channel-DEjp4g0E.mjs} +3 -7
- package/dist/{module-DA_IDYlX.mjs → module-Ch24R1pF.mjs} +4 -4
- package/dist/{prepare-DNjPQ9kh.mjs → prepare-sv_U-hcW.mjs} +1 -1
- package/dist/{preview-CxVuIG1M.mjs → preview-CJMUjSZI.mjs} +1 -1
- package/dist/{remove-xc5xCDqA.mjs → remove-81J-q7tX.mjs} +4 -4
- package/dist/{run-BXN1P5Cb.mjs → run-lkk6GC9S.mjs} +1 -1
- package/dist/{search-CR_W2n04.mjs → search-0nDuYTrE.mjs} +2 -2
- package/dist/{span-channel-TOwhfvle.mjs → span-channel-CmmfG3vs.mjs} +3 -7
- package/dist/{start-B8T2j9lY.mjs → start-Ck-gTkWE.mjs} +2 -2
- package/dist/{task-u4hGJGiu.mjs → task-DFBTCU40.mjs} +3 -3
- package/dist/{test-LHzXy8nO.mjs → test-Cu9qD7Mp.mjs} +1 -1
- package/dist/{tui-Dm4jJoQZ.mjs → tui-CN3lyheK.mjs} +2 -2
- package/dist/{typecheck-BJc8sRXd.mjs → typecheck-BFcIl_w3.mjs} +1 -1
- package/dist/{upgrade-DCHJUlsL.mjs → upgrade-B6w9Gk1C.mjs} +1 -1
- package/package.json +1 -1
|
@@ -532,7 +532,7 @@ function _getBuiltinFlags(long, short, userNames, userAliases) {
|
|
|
532
532
|
//#endregion
|
|
533
533
|
//#region package.json
|
|
534
534
|
var name = "@nuxt/cli-nightly";
|
|
535
|
-
var version = "4.0.0-
|
|
535
|
+
var version = "4.0.0-2610061237-8a7195c";
|
|
536
536
|
var description = "Nuxt CLI";
|
|
537
537
|
var engines = { "node": "^22.21.0 || ^24.11.0 || >=26.0.0" };
|
|
538
538
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as logLevelArgs, t as cwdArgs } from "./_shared-
|
|
1
|
+
import { s as logLevelArgs, t as cwdArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { r as relativeToProcess } from "./paths-DlXZaaIg.mjs";
|
|
4
4
|
import { t as fetchJson } from "./fetch-g4bhLuz9.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as logNetworkError } from "./path-env-D9Xd_BAN.mjs";
|
|
4
|
-
import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-
|
|
4
|
+
import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-BNJi5XKe.mjs";
|
|
5
5
|
import { t as fetchJson } from "./fetch-g4bhLuz9.mjs";
|
|
6
6
|
import { a as isPackageManagerName, n as detectPackageManager, o as packageManagerNames, t as defaultPackageManager } from "./package-managers-B9HZ9pY9.mjs";
|
|
7
7
|
import { a as runInstall, o as takeUnreportedIgnoredBuilds, r as isVerboseInstall, t as createInstallLog } from "./install-DSVDREZm.mjs";
|
|
8
8
|
import { t as createSpinner } from "./spinner-bKV6MChz.mjs";
|
|
9
9
|
import { n as getNuxtVersion } from "./versions-BA3DmZ0X.mjs";
|
|
10
|
-
import { t as prepare_default } from "./prepare-
|
|
11
|
-
import { a as fetchModules, c as parseModuleSpec, i as ensureNuxtDependency, l as resolveModuleEntry, n as basePackageName, o as forwardCommandArgs, r as checkNuxtCompatibility, s as getProjectDependencies, t as MODULES_API_URL } from "./_utils-
|
|
10
|
+
import { t as prepare_default } from "./prepare-sv_U-hcW.mjs";
|
|
11
|
+
import { a as fetchModules, c as parseModuleSpec, i as ensureNuxtDependency, l as resolveModuleEntry, n as basePackageName, o as forwardCommandArgs, r as checkNuxtCompatibility, s as getProjectDependencies, t as MODULES_API_URL } from "./_utils-BIWKh5bb.mjs";
|
|
12
12
|
import process from "node:process";
|
|
13
13
|
import { styleText } from "node:util";
|
|
14
14
|
import { hasTTY } from "std-env";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { c as intro, d as outro, u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { t as templateNames } from "./names-BemXlTaX.mjs";
|
|
4
4
|
import { t as loadKit } from "./kit-CbhDo9Zs.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { S as ActionableError, c as intro$1, d as outro$1, u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { n as resolveDotenvFileNames } from "./args-DGaOocsH.mjs";
|
|
4
4
|
import { t as overrideEnv } from "./env-BkMPEX1D.mjs";
|
package/dist/boot.mjs
CHANGED
|
@@ -21,7 +21,7 @@ async function bootDevUI() {
|
|
|
21
21
|
if (!start) return;
|
|
22
22
|
try {
|
|
23
23
|
const { devShortcutContext } = await import("./shortcut-context-B1rQszYJ.mjs");
|
|
24
|
-
const { setupDevUI } = await import("./controller-
|
|
24
|
+
const { setupDevUI } = await import("./controller-CrmV8bLO.mjs");
|
|
25
25
|
await setupDevUI(devShortcutContext().context, {
|
|
26
26
|
...options,
|
|
27
27
|
start
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { s as debug } from "./startup-clock-DXZlxuSA.mjs";
|
|
2
|
+
import { BroadcastChannel } from "node:worker_threads";
|
|
3
|
+
//#region src/dev/broadcast.ts
|
|
4
|
+
/** Listen on the channel called `name`, or return nothing where the runtime cannot open one. */
|
|
5
|
+
function openBroadcast(name, onMessage) {
|
|
6
|
+
try {
|
|
7
|
+
const channel = new BroadcastChannel(name);
|
|
8
|
+
channel.unref();
|
|
9
|
+
channel.onmessage = (event) => onMessage(event.data);
|
|
10
|
+
return channel;
|
|
11
|
+
} catch (error) {
|
|
12
|
+
debug(`Could not open the \`${name}\` channel:`, error);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { openBroadcast as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs, u as targetArgs } from "./_shared-
|
|
1
|
+
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs, u as targetArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { S as ActionableError, c as intro, d as outro, u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { n as resolveDotenvFileNames } from "./args-DGaOocsH.mjs";
|
|
4
4
|
import { t as overrideEnv } from "./env-BkMPEX1D.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { t as loadKit } from "./kit-CbhDo9Zs.mjs";
|
|
4
4
|
import { t as cleanupNuxtDirs } from "./nuxt-CCjsh7BJ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand } from "./_shared-
|
|
1
|
+
import { h as defineCommand } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import i from "node:assert";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@bomb.sh+tab@0.0.22_cac@7.0.0_citty@0.2.2_patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac_/node_modules/@bomb.sh/tab/dist/index.mjs
|
|
4
4
|
const a = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as runCommand, a as globalCwdArgs } from "./_shared-
|
|
1
|
+
import { _ as runCommand, a as globalCwdArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { S as ActionableError, s as debug } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
import { resolveModulePath } from "exsolve";
|
|
@@ -37,7 +37,7 @@ async function setupDevUI(context, options = {}) {
|
|
|
37
37
|
setupShortcuts(context);
|
|
38
38
|
return NOOP_CONTROLLER;
|
|
39
39
|
}
|
|
40
|
-
const { setupDevUI } = await import("./tui-
|
|
40
|
+
const { setupDevUI } = await import("./tui-CN3lyheK.mjs");
|
|
41
41
|
return setupDevUI(context, options);
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as logNetworkError } from "./path-env-D9Xd_BAN.mjs";
|
|
4
4
|
import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
|
package/dist/dev/index.mjs
CHANGED
|
@@ -5,6 +5,7 @@ import { n as resolveDotenvFileNames } from "../args-DGaOocsH.mjs";
|
|
|
5
5
|
import { t as overrideEnv } from "../env-BkMPEX1D.mjs";
|
|
6
6
|
import { i as stopCpuProfile, r as startCpuProfile, t as createPhaseReporter } from "../phase-reporter-xcVDefHV.mjs";
|
|
7
7
|
import { a as withConfigKeys, c as openInspector, i as mergeRestartReasons, n as formatRestartReason, r as formatSkippedReload, t as formatChangedKeys } from "../reason-BzYs8eZ4.mjs";
|
|
8
|
+
import { t as openBroadcast } from "../broadcast-mciEtrFQ.mjs";
|
|
8
9
|
import { n as isLoopbackAddress, t as isAllowedHost } from "../host-check-DW342-PP.mjs";
|
|
9
10
|
import { n as READY_MESSAGE, t as PhaseTimeline } from "../progress-snapshot-BsUn_089.mjs";
|
|
10
11
|
import { n as currentRequest, r as runWithRequest, t as attachRequest } from "../serving-state-Cts7VBoa.mjs";
|
|
@@ -24,7 +25,6 @@ import { resolveModulePath } from "exsolve";
|
|
|
24
25
|
import { dirname, isAbsolute, join, relative, resolve } from "pathe";
|
|
25
26
|
import { closeSync, existsSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, statSync, watch, writeFileSync } from "node:fs";
|
|
26
27
|
import defu from "defu";
|
|
27
|
-
import { BroadcastChannel } from "node:worker_threads";
|
|
28
28
|
import { hash } from "node:crypto";
|
|
29
29
|
import EventEmitter from "node:events";
|
|
30
30
|
import { mkdir } from "node:fs/promises";
|
|
@@ -773,11 +773,7 @@ function formatReportForTerminal(report) {
|
|
|
773
773
|
* until the returned function is called.
|
|
774
774
|
*/
|
|
775
775
|
function openErrorBridge(handlers = {}, options = {}) {
|
|
776
|
-
const broadcast =
|
|
777
|
-
broadcast.unref();
|
|
778
|
-
broadcast.postMessage(SYNC_MESSAGE);
|
|
779
|
-
broadcast.onmessage = (event) => {
|
|
780
|
-
const message = event.data;
|
|
776
|
+
const broadcast = openBroadcast(ERROR_BROADCAST_CHANNEL, (message) => {
|
|
781
777
|
if (!isDevErrorMessage(message)) return;
|
|
782
778
|
useErrorChannel(options).then((instance) => {
|
|
783
779
|
switch (message.type) {
|
|
@@ -805,8 +801,9 @@ function openErrorBridge(handlers = {}, options = {}) {
|
|
|
805
801
|
handlers.onClear?.(message.id);
|
|
806
802
|
}
|
|
807
803
|
}).catch((error) => debug("Could not handle a forwarded error report:", error));
|
|
808
|
-
};
|
|
809
|
-
|
|
804
|
+
});
|
|
805
|
+
broadcast?.postMessage(SYNC_MESSAGE);
|
|
806
|
+
return () => broadcast?.close();
|
|
810
807
|
}
|
|
811
808
|
async function closeErrorChannel() {
|
|
812
809
|
const instance = channel;
|
|
@@ -2726,7 +2723,7 @@ async function initialize(devContext, ctx = {}) {
|
|
|
2726
2723
|
let closeLogChannel;
|
|
2727
2724
|
let closeSpanChannel;
|
|
2728
2725
|
if (captureUIEvents) {
|
|
2729
|
-
const { openDevLogChannel } = await import("../log-channel-
|
|
2726
|
+
const { openDevLogChannel } = await import("../log-channel-DEjp4g0E.mjs");
|
|
2730
2727
|
closeLogChannel = openDevLogChannel((log) => {
|
|
2731
2728
|
if (ipc.enabled) {
|
|
2732
2729
|
ipc.send({
|
|
@@ -2737,7 +2734,7 @@ async function initialize(devContext, ctx = {}) {
|
|
|
2737
2734
|
}
|
|
2738
2735
|
logs.emit(log);
|
|
2739
2736
|
});
|
|
2740
|
-
const { openDevSpanChannel } = await import("../span-channel-
|
|
2737
|
+
const { openDevSpanChannel } = await import("../span-channel-CmmfG3vs.mjs");
|
|
2741
2738
|
let spanBatch = [];
|
|
2742
2739
|
let spanTimer;
|
|
2743
2740
|
const pushSpan = (span) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-
|
|
1
|
+
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { S as ActionableError, h as isInteractive, i as withUserAttention, s as debug, t as startupElapsedMs, u as logger, x as writeDirectTo } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { t as tryResolveNuxt } from "./resolve-nuxt-VKCDOC-A.mjs";
|
|
4
4
|
import { c as withDirectStdout, o as restoreRawMode } from "./console-BGAn3qi7.mjs";
|
|
@@ -13,7 +13,7 @@ import { i as resolveLockDir } from "./dev-server-C7zAaNG-.mjs";
|
|
|
13
13
|
import { n as FORCE_KILL_TIMEOUT_MS, r as handleShutdownSignals } from "./shutdown-B2vPNN_o.mjs";
|
|
14
14
|
import { devShortcutContext } from "./shortcut-context-B1rQszYJ.mjs";
|
|
15
15
|
import { n as takeOverServer, t as formatTakeoverRefusal } from "./takeover-BpOzgNbc.mjs";
|
|
16
|
-
import { beginDevUI, setupDevUI, teardownDevUI } from "./controller-
|
|
16
|
+
import { beginDevUI, setupDevUI, teardownDevUI } from "./controller-CrmV8bLO.mjs";
|
|
17
17
|
import process from "node:process";
|
|
18
18
|
import { styleText } from "node:util";
|
|
19
19
|
import { isBun, isTest } from "std-env";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
|
|
3
3
|
import process from "node:process";
|
|
4
4
|
//#region src/commands/dev-child.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { S as ActionableError } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
|
|
4
4
|
import { x } from "tinyexec";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, t as cwdArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, t as cwdArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { h as isInteractive, u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { a as releaseStdin, c as withDirectStdout } from "./console-BGAn3qi7.mjs";
|
|
4
4
|
import { o as openBrowser } from "./listen-DYMufS15.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs, u as targetArgs } from "./_shared-
|
|
2
|
-
import build_default from "./build-
|
|
1
|
+
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs, u as targetArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
|
+
import build_default from "./build-1hVj3ZPY.mjs";
|
|
3
3
|
//#region src/commands/generate.ts
|
|
4
4
|
var generate_default = defineCommand({
|
|
5
5
|
meta: {
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as runCommand$1, a as globalCwdArgs, d as description, g as renderUsage, h as defineCommand, m as version, p as name, t as cwdArgs, v as runMain$1 } from "./_shared-
|
|
1
|
+
import { _ as runCommand$1, a as globalCwdArgs, d as description, g as renderUsage, h as defineCommand, m as version, p as name, t as cwdArgs, v as runMain$1 } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { s as debug, u as logger, w as asActionableError } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { n as warnOnHang } from "./hang-DvJGbBHh.mjs";
|
|
4
4
|
import { s as setupGlobalConsole } from "./console-BGAn3qi7.mjs";
|
|
@@ -50,27 +50,27 @@ function withRemedy(command) {
|
|
|
50
50
|
}
|
|
51
51
|
const _rDefault = (r) => withRemedy(r.default || r);
|
|
52
52
|
const commands = Object.assign(Object.create(null), {
|
|
53
|
-
"add": () => import("./add-
|
|
54
|
-
"add-template": () => import("./add-template-
|
|
55
|
-
"analyze": () => import("./analyze-
|
|
56
|
-
"build": () => import("./build-
|
|
57
|
-
"cleanup": () => import("./cleanup-
|
|
58
|
-
"curl": () => import("./curl-
|
|
59
|
-
"_dev": () => import("./dev-child-
|
|
60
|
-
"dev": () => import("./dev-
|
|
61
|
-
"devtools": () => import("./devtools-
|
|
62
|
-
"docs": () => import("./docs-
|
|
63
|
-
"generate": () => import("./generate-
|
|
64
|
-
"info": () => import("./info-
|
|
65
|
-
"init": () => import("./init-
|
|
66
|
-
"module": () => import("./module-
|
|
67
|
-
"prepare": () => import("./prepare-
|
|
68
|
-
"preview": () => import("./preview-
|
|
69
|
-
"start": () => import("./start-
|
|
70
|
-
"task": () => import("./task-
|
|
71
|
-
"test": () => import("./test-
|
|
72
|
-
"typecheck": () => import("./typecheck-
|
|
73
|
-
"upgrade": () => import("./upgrade-
|
|
53
|
+
"add": () => import("./add-FtvP8Q1V.mjs").then(_rDefault),
|
|
54
|
+
"add-template": () => import("./add-template-D9o_ovC8.mjs").then(_rDefault),
|
|
55
|
+
"analyze": () => import("./analyze-CeEO7evy.mjs").then(_rDefault),
|
|
56
|
+
"build": () => import("./build-1hVj3ZPY.mjs").then(_rDefault),
|
|
57
|
+
"cleanup": () => import("./cleanup-CCe5Ut2g.mjs").then(_rDefault),
|
|
58
|
+
"curl": () => import("./curl-ByRBmhb8.mjs").then(_rDefault),
|
|
59
|
+
"_dev": () => import("./dev-child-Dpq8Z8KO.mjs").then(_rDefault),
|
|
60
|
+
"dev": () => import("./dev-D43VdmD8.mjs").then(_rDefault),
|
|
61
|
+
"devtools": () => import("./devtools-uYjTjG07.mjs").then(_rDefault),
|
|
62
|
+
"docs": () => import("./docs-CtCgLmpE.mjs").then(_rDefault),
|
|
63
|
+
"generate": () => import("./generate-DlYFjFga.mjs").then(_rDefault),
|
|
64
|
+
"info": () => import("./info-DrSrBDsb.mjs").then(_rDefault),
|
|
65
|
+
"init": () => import("./init-z-eXqs_c.mjs").then(_rDefault),
|
|
66
|
+
"module": () => import("./module-Ch24R1pF.mjs").then(_rDefault),
|
|
67
|
+
"prepare": () => import("./prepare-sv_U-hcW.mjs").then((n) => n.n).then(_rDefault),
|
|
68
|
+
"preview": () => import("./preview-CJMUjSZI.mjs").then(_rDefault),
|
|
69
|
+
"start": () => import("./start-Ck-gTkWE.mjs").then(_rDefault),
|
|
70
|
+
"task": () => import("./task-DFBTCU40.mjs").then(_rDefault),
|
|
71
|
+
"test": () => import("./test-Cu9qD7Mp.mjs").then(_rDefault),
|
|
72
|
+
"typecheck": () => import("./typecheck-BFcIl_w3.mjs").then(_rDefault),
|
|
73
|
+
"upgrade": () => import("./upgrade-B6w9Gk1C.mjs").then(_rDefault)
|
|
74
74
|
});
|
|
75
75
|
//#endregion
|
|
76
76
|
//#region src/run.ts
|
|
@@ -94,7 +94,7 @@ function setCurrentCommand(command) {
|
|
|
94
94
|
}
|
|
95
95
|
async function runMain() {
|
|
96
96
|
if (process.argv[2] === "complete") {
|
|
97
|
-
const { initCompletions } = await import("./completions-
|
|
97
|
+
const { initCompletions } = await import("./completions-iEhYJV8H.mjs");
|
|
98
98
|
await initCompletions(main);
|
|
99
99
|
}
|
|
100
100
|
await runMain$1(main, { showUsage });
|
|
@@ -293,7 +293,7 @@ const _main = defineCommand({
|
|
|
293
293
|
setCurrentCommand(command);
|
|
294
294
|
setupGlobalConsole({ dev: command === "dev" });
|
|
295
295
|
if (command && command !== "_dev" && provider !== "stackblitz") {
|
|
296
|
-
await import("./engines-
|
|
296
|
+
await import("./engines-CfG7n4NY.mjs").then(({ checkEngines }) => checkEngines()).catch((err) => logger.error(String(err)));
|
|
297
297
|
import("./paths-DlXZaaIg.mjs").then((n) => n.t).then(({ resolveProjectDir }) => scheduleUpdateNudge(resolveProjectDir(ctx.args), command)).catch((err) => debug("Failed to check for updates:", err));
|
|
298
298
|
}
|
|
299
299
|
if (command === "add" && ctx.rawArgs[1] && templateNames.includes(ctx.rawArgs[1])) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs, m as version } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs, m as version } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { t as tryResolveNuxt } from "./resolve-nuxt-VKCDOC-A.mjs";
|
|
4
4
|
import { i as printJson } from "./console-BGAn3qi7.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs, o as jsonArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs, o as jsonArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as printJson } from "./console-BGAn3qi7.mjs";
|
|
4
4
|
import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as openBroadcast } from "./broadcast-mciEtrFQ.mjs";
|
|
2
2
|
//#region src/dev/log-channel.ts
|
|
3
3
|
/**
|
|
4
4
|
* Where `runtime/dev-request-context.mjs` sends the app's logs.
|
|
@@ -11,12 +11,8 @@ import { BroadcastChannel } from "node:worker_threads";
|
|
|
11
11
|
const DEV_LOG_CHANNEL = "nuxt:dev:log";
|
|
12
12
|
/** Receive the app's logs until the returned function is called. */
|
|
13
13
|
function openDevLogChannel(sink) {
|
|
14
|
-
const channel =
|
|
15
|
-
channel
|
|
16
|
-
channel.onmessage = (event) => {
|
|
17
|
-
sink(event.data);
|
|
18
|
-
};
|
|
19
|
-
return () => channel.close();
|
|
14
|
+
const channel = openBroadcast(DEV_LOG_CHANNEL, sink);
|
|
15
|
+
return () => channel?.close();
|
|
20
16
|
}
|
|
21
17
|
//#endregion
|
|
22
18
|
export { openDevLogChannel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand } from "./_shared-
|
|
1
|
+
import { h as defineCommand } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
//#region src/commands/module/index.ts
|
|
3
3
|
var module_default = defineCommand({
|
|
4
4
|
meta: {
|
|
@@ -7,9 +7,9 @@ var module_default = defineCommand({
|
|
|
7
7
|
},
|
|
8
8
|
args: {},
|
|
9
9
|
subCommands: {
|
|
10
|
-
add: () => import("./add-
|
|
11
|
-
remove: () => import("./remove-
|
|
12
|
-
search: () => import("./search-
|
|
10
|
+
add: () => import("./add-BJ1KMjiT.mjs").then((r) => r.default || r),
|
|
11
|
+
remove: () => import("./remove-81J-q7tX.mjs").then((r) => r.default || r),
|
|
12
|
+
search: () => import("./search-0nDuYTrE.mjs").then((r) => r.default || r)
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.mjs";
|
|
2
|
-
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-
|
|
2
|
+
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-qEx2UXEE.mjs";
|
|
3
3
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
4
4
|
import { n as resolveDotenvFileNames } from "./args-DGaOocsH.mjs";
|
|
5
5
|
import { t as clearBuildDir } from "./fs-CSqg02ri.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { S as ActionableError, d as outro$1, u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { r as withPrependedPath } from "./path-env-D9Xd_BAN.mjs";
|
|
4
4
|
import { n as resolveDotenvFileNames } from "./args-DGaOocsH.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as logNetworkError } from "./path-env-D9Xd_BAN.mjs";
|
|
4
4
|
import { r as relativeToProcess } from "./paths-DlXZaaIg.mjs";
|
|
5
|
-
import { a as CONFIG_KEYS, i as removeNuxtConfigEntries, o as runCommandDef, r as readNuxtConfig } from "./config-
|
|
5
|
+
import { a as CONFIG_KEYS, i as removeNuxtConfigEntries, o as runCommandDef, r as readNuxtConfig } from "./config-BNJi5XKe.mjs";
|
|
6
6
|
import { n as detectPackageManager, t as defaultPackageManager } from "./package-managers-B9HZ9pY9.mjs";
|
|
7
7
|
import { a as runInstall, t as createInstallLog } from "./install-DSVDREZm.mjs";
|
|
8
8
|
import { t as readDependencyPackageJson } from "./package-json-DACIqDr_.mjs";
|
|
9
|
-
import { t as prepare_default } from "./prepare-
|
|
10
|
-
import { a as fetchModules, i as ensureNuxtDependency, n as basePackageName, o as forwardCommandArgs, s as getProjectDependencies, t as MODULES_API_URL } from "./_utils-
|
|
9
|
+
import { t as prepare_default } from "./prepare-sv_U-hcW.mjs";
|
|
10
|
+
import { a as fetchModules, i as ensureNuxtDependency, n as basePackageName, o as forwardCommandArgs, s as getProjectDependencies, t as MODULES_API_URL } from "./_utils-BIWKh5bb.mjs";
|
|
11
11
|
import process from "node:process";
|
|
12
12
|
import { styleText } from "node:util";
|
|
13
13
|
import { cancel, confirm, isCancel, multiselect } from "@clack/prompts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
|
|
4
4
|
import { a as reportTaskError, c as runTask, l as taskArgs, o as reportUnknownTask, r as format, s as resolveTaskServer } from "./_utils-Cojb-kuS.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { h as defineCommand, o as jsonArgs, t as cwdArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, o as jsonArgs, t as cwdArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as printJson } from "./console-BGAn3qi7.mjs";
|
|
4
4
|
import { i as logNetworkError } from "./path-env-D9Xd_BAN.mjs";
|
|
5
5
|
import { r as formatInfoBox } from "./formatting-Co5DEjad.mjs";
|
|
6
6
|
import { n as getNuxtVersion, t as DEFAULT_NUXT_VERSION } from "./versions-BA3DmZ0X.mjs";
|
|
7
|
-
import { a as fetchModules, r as checkNuxtCompatibility, t as MODULES_API_URL } from "./_utils-
|
|
7
|
+
import { a as fetchModules, r as checkNuxtCompatibility, t as MODULES_API_URL } from "./_utils-BIWKh5bb.mjs";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { styleText } from "node:util";
|
|
10
10
|
import { box } from "@clack/prompts";
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as openBroadcast } from "./broadcast-mciEtrFQ.mjs";
|
|
2
2
|
//#region src/dev/span-channel.ts
|
|
3
3
|
/** Where `runtime/dev-request-context.mjs` sends the spans it times. */
|
|
4
4
|
const DEV_SPAN_CHANNEL = "nuxt:dev:span";
|
|
5
5
|
/** Receive the app's spans until the returned function is called. */
|
|
6
6
|
function openDevSpanChannel(sink) {
|
|
7
|
-
const channel =
|
|
8
|
-
channel
|
|
9
|
-
channel.onmessage = (event) => {
|
|
10
|
-
sink(event.data);
|
|
11
|
-
};
|
|
12
|
-
return () => channel.close();
|
|
7
|
+
const channel = openBroadcast(DEV_SPAN_CHANNEL, sink);
|
|
8
|
+
return () => channel?.close();
|
|
13
9
|
}
|
|
14
10
|
//#endregion
|
|
15
11
|
export { openDevSpanChannel };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { h as defineCommand } from "./_shared-
|
|
2
|
-
import command from "./preview-
|
|
1
|
+
import { h as defineCommand } from "./_shared-qEx2UXEE.mjs";
|
|
2
|
+
import command from "./preview-CJMUjSZI.mjs";
|
|
3
3
|
//#region src/commands/start.ts
|
|
4
4
|
var start_default = defineCommand({
|
|
5
5
|
...command,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand } from "./_shared-
|
|
1
|
+
import { h as defineCommand } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
//#region src/commands/task/index.ts
|
|
3
3
|
var task_default = defineCommand({
|
|
4
4
|
meta: {
|
|
@@ -7,8 +7,8 @@ var task_default = defineCommand({
|
|
|
7
7
|
},
|
|
8
8
|
args: {},
|
|
9
9
|
subCommands: {
|
|
10
|
-
list: () => import("./list-
|
|
11
|
-
run: () => import("./run-
|
|
10
|
+
list: () => import("./list-8vmejR93.mjs").then((r) => r.default || r),
|
|
11
|
+
run: () => import("./run-lkk6GC9S.mjs").then((r) => r.default || r)
|
|
12
12
|
}
|
|
13
13
|
});
|
|
14
14
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { S as ActionableError } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
|
|
4
4
|
import process from "node:process";
|
|
@@ -5,7 +5,7 @@ import { a as terminalLink, i as stripAnsi, n as formatDuration, o as truncate,
|
|
|
5
5
|
import { n as resolveStackVersions } from "./banner-lMLtjrKS.mjs";
|
|
6
6
|
import { d as writeClipboard, o as openBrowser } from "./listen-DYMufS15.mjs";
|
|
7
7
|
import { i as isShutdownAdopted } from "./shutdown-B2vPNN_o.mjs";
|
|
8
|
-
import { NOOP_CONTROLLER } from "./controller-
|
|
8
|
+
import { NOOP_CONTROLLER } from "./controller-CrmV8bLO.mjs";
|
|
9
9
|
import { setupShortcuts } from "./shortcuts-D6V1tSW2.mjs";
|
|
10
10
|
import { c as describeListenURLs, l as paintStatus, o as URL_LABELS, s as URL_STYLES } from "./first-frame-BfGM-BAA.mjs";
|
|
11
11
|
import { t as releaseNotesUrl } from "./release-notes-BQieF1F4.mjs";
|
|
@@ -802,7 +802,7 @@ async function readProjectReport(cwd) {
|
|
|
802
802
|
cwd,
|
|
803
803
|
timeout: 3e4
|
|
804
804
|
});
|
|
805
|
-
const { formatJsonAsMarkdownTable } = await import("./info-
|
|
805
|
+
const { formatJsonAsMarkdownTable } = await import("./info-DrSrBDsb.mjs");
|
|
806
806
|
return formatJsonAsMarkdownTable(JSON.parse(stdout));
|
|
807
807
|
}
|
|
808
808
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { n as withNodePath } from "./resolve-nuxt-VKCDOC-A.mjs";
|
|
4
4
|
import { n as resolveDotenvFileNames } from "./args-DGaOocsH.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as defineCommand, l as rootDirArgs, s as logLevelArgs } from "./_shared-
|
|
1
|
+
import { h as defineCommand, l as rootDirArgs, s as logLevelArgs } from "./_shared-qEx2UXEE.mjs";
|
|
2
2
|
import { c as intro$1, d as outro$1, u as logger } from "./startup-clock-DXZlxuSA.mjs";
|
|
3
3
|
import { t as loadKit } from "./kit-CbhDo9Zs.mjs";
|
|
4
4
|
import { r as nuxtVersionToGitIdentifier, t as cleanupNuxtDirs } from "./nuxt-CCjsh7BJ.mjs";
|