@nuxt/cli-nightly 4.0.3-2611062342-db93607 → 4.0.3-2611082103-93d0ca0

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 (38) hide show
  1. package/dist/{_shared-cpqtufHb.mjs → _shared-D0JeiEDo.mjs} +1 -1
  2. package/dist/{_utils-Ctrospch.mjs → _utils-FR9xlAff.mjs} +1 -1
  3. package/dist/{add-DsgqCdT9.mjs → add-4OEx5z71.mjs} +4 -4
  4. package/dist/{add-DPbPekYy.mjs → add-DiwX2phb.mjs} +1 -1
  5. package/dist/{add-template-TsXTYVv2.mjs → add-template-CEUULlCH.mjs} +1 -1
  6. package/dist/{analyze-D_Ps6ycQ.mjs → analyze--XAvZzd0.mjs} +1 -1
  7. package/dist/boot.mjs +1 -1
  8. package/dist/{build-DFj72Fjs.mjs → build-BQ03uGUS.mjs} +1 -1
  9. package/dist/{cleanup-Cj1dTMkQ.mjs → cleanup-BNImsi3x.mjs} +1 -1
  10. package/dist/{completions-0t_FX6vL.mjs → completions-Df0s8TT9.mjs} +1 -1
  11. package/dist/{config-XBonBu2o.mjs → config-DN6gtC23.mjs} +1 -1
  12. package/dist/{controller-QNccqNu-.mjs → controller-oq9KT5-Q.mjs} +1 -1
  13. package/dist/{curl-CeT3jRy3.mjs → curl-BemWQHeH.mjs} +1 -1
  14. package/dist/dev/index.mjs +33 -4
  15. package/dist/{dev-child-DEZk2sNL.mjs → dev-child-BbH9k0Fn.mjs} +1 -1
  16. package/dist/{dev-D8s9JsBF.mjs → dev-sbCVAq8Q.mjs} +2 -2
  17. package/dist/{devtools-Dg_zHBfj.mjs → devtools-BGdDN-8I.mjs} +1 -1
  18. package/dist/{docs-BAFyS3Jx.mjs → docs-BRUSvVL2.mjs} +1 -1
  19. package/dist/{engines-DOoFQ_zI.mjs → engines-vtjifV_6.mjs} +1 -1
  20. package/dist/{generate-DUfPiEAD.mjs → generate-BbfXmTX2.mjs} +2 -2
  21. package/dist/index.mjs +24 -24
  22. package/dist/{info-G6W8IW7v.mjs → info-eRah9qwl.mjs} +1 -1
  23. package/dist/{init-CURbQzTC.mjs → init-Dmkd2hsG.mjs} +1 -1
  24. package/dist/{list-BjcODnqW.mjs → list-j4K8Jlm1.mjs} +1 -1
  25. package/dist/module-CTrUdFxq.mjs +15 -0
  26. package/dist/{prepare-COznNGy8.mjs → prepare-QTGCvKMD.mjs} +1 -1
  27. package/dist/{preview-CfeX1I4n.mjs → preview-Cgdbe2KK.mjs} +1 -1
  28. package/dist/{remove-CHqlvnn6.mjs → remove-9HcHMk-o.mjs} +4 -4
  29. package/dist/{run-3qxg37ym.mjs → run-B_eVmvYJ.mjs} +1 -1
  30. package/dist/{search-DjvbxetC.mjs → search-rObjd4CG.mjs} +2 -2
  31. package/dist/{start-DSsefoBh.mjs → start-ef7NNd8G.mjs} +2 -2
  32. package/dist/{task-CTCBlL0h.mjs → task-BnwiJjKp.mjs} +3 -3
  33. package/dist/{test-DnNK0gw5.mjs → test-qZ8IAKWI.mjs} +1 -1
  34. package/dist/{tui-SFZ0rY8q.mjs → tui-Dom54rH-.mjs} +2 -2
  35. package/dist/{typecheck-WW935zMu.mjs → typecheck-BvrqVHhE.mjs} +1 -1
  36. package/dist/{upgrade-CMwUAwyK.mjs → upgrade-6vk7mAsK.mjs} +1 -1
  37. package/package.json +2 -2
  38. package/dist/module-D5zY6rb1.mjs +0 -15
@@ -530,7 +530,7 @@ function _getBuiltinFlags(long, short, userNames, userAliases) {
530
530
  }
531
531
  // package.json
532
532
  var name = "@nuxt/cli-nightly";
533
- var version = "4.0.3-2611062342-db93607";
533
+ var version = "4.0.3-2611082103-93d0ca0";
534
534
  var description = "Nuxt CLI";
535
535
  var engines = { "node": "^22.21.0 || ^24.11.0 || >=26.0.0" };
536
536
  // src/commands/_shared.ts
@@ -1,7 +1,7 @@
1
1
  import { t as fetchJson } from "./fetch-C_KK6VWh.mjs";
2
2
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
3
3
  import { r as relativeToProcess } from "./paths-Bqh39JXx.mjs";
4
- import { s as logLevelArgs, t as cwdArgs } from "./_shared-cpqtufHb.mjs";
4
+ import { s as logLevelArgs, t as cwdArgs } from "./_shared-D0JeiEDo.mjs";
5
5
  import { styleText } from "node:util";
6
6
  import { confirm, isCancel } from "@clack/prompts";
7
7
  import { satisfies } from "verkit";
@@ -1,5 +1,5 @@
1
- import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-cpqtufHb.mjs";
2
- import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-XBonBu2o.mjs";
1
+ import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-D0JeiEDo.mjs";
2
+ import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-DN6gtC23.mjs";
3
3
  import { t as fetchJson } from "./fetch-C_KK6VWh.mjs";
4
4
  import { a as runInstall, o as takeUnreportedIgnoredBuilds, r as isVerboseInstall, t as createInstallLog } from "./install-B88XgWmK.mjs";
5
5
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
@@ -7,8 +7,8 @@ import { i as logNetworkError } from "./path-env-BBmNm9TI.mjs";
7
7
  import { a as isPackageManagerName, n as detectPackageManager, o as packageManagerNames, t as defaultPackageManager } from "./package-managers-sbHBcaEH.mjs";
8
8
  import { t as createSpinner } from "./spinner-SVJFJnZ-.mjs";
9
9
  import { n as getNuxtVersion } from "./versions-x2DVfZ_A.mjs";
10
- import { t as prepare_default } from "./prepare-COznNGy8.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-Ctrospch.mjs";
10
+ import { t as prepare_default } from "./prepare-QTGCvKMD.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-FR9xlAff.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 { defineAddCommand } from "./add-DsgqCdT9.mjs";
1
+ import { defineAddCommand } from "./add-4OEx5z71.mjs";
2
2
  // src/commands/add.ts
3
3
  var add_default = defineAddCommand({ layers: true });
4
4
  export { add_default as default };
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { t as loadKit } from "./kit-K_bQ8qH2.mjs";
3
3
  import { c as intro, d as outro, u as logger } from "./startup-clock-CoL2HpKZ.mjs";
4
4
  import { r as relativeToProcess } from "./paths-Bqh39JXx.mjs";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { i as resolveNuxtAllowedHosts, t as isAllowedHost } from "./host-check-mQ87XUGg.mjs";
3
3
  import { n as resolveDotenvFileNames } from "./args-CAT9qhaw.mjs";
4
4
  import { t as overrideEnv } from "./env-CKhG_r1-.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-jl_XQvPi.mjs");
24
- const { setupDevUI } = await import("./controller-QNccqNu-.mjs");
24
+ const { setupDevUI } = await import("./controller-oq9KT5-Q.mjs");
25
25
  await setupDevUI(devShortcutContext().context, {
26
26
  ...options,
27
27
  start
@@ -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-cpqtufHb.mjs";
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-D0JeiEDo.mjs";
2
2
  import { n as resolveDotenvFileNames } from "./args-CAT9qhaw.mjs";
3
3
  import { r as showBanner } from "./banner-DE4pYQMt.mjs";
4
4
  import { t as PhaseTimeline } from "./progress-snapshot-BEIE-Ir2.mjs";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, l as rootDirArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { t as loadKit } from "./kit-K_bQ8qH2.mjs";
3
3
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
4
4
  import { t as cleanupNuxtDirs } from "./nuxt-CCz5fL-K.mjs";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand } from "./_shared-D0JeiEDo.mjs";
2
2
  import i from "node:assert";
3
3
  // ../../node_modules/.pnpm/@bomb.sh+tab@0.0.22_cac@7.1.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-cpqtufHb.mjs";
1
+ import { _ as runCommand, a as globalCwdArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { S as ActionableError, s as debug } from "./startup-clock-CoL2HpKZ.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-SFZ0rY8q.mjs");
40
+ const { setupDevUI } = await import("./tui-Dom54rH-.mjs");
41
41
  return setupDevUI(context, options);
42
42
  }
43
43
  export { NOOP_CONTROLLER, beginDevUI, setupDevUI, teardownDevUI };
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, l as rootDirArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { i as noDevServerMessage, t as findDevServer } from "./dev-server-CvP0xF2K.mjs";
3
3
  import { t as highlight } from "./highlight-BO2Og4MK.mjs";
4
4
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
@@ -648,9 +648,10 @@ async function handleErrorChannelRequest(req, res, options = {}) {
648
648
  */
649
649
  async function createCliReport(error, options = {}) {
650
650
  const [{ createReport, fsLoader }, { nuxtPreset }] = await Promise.all([import("my-bad"), import("my-bad/presets")]);
651
+ const cwd = options.cwd || process.cwd();
651
652
  return createReport(error, {
652
- cwd: options.cwd || process.cwd(),
653
- loaders: [fsLoader()],
653
+ cwd,
654
+ loaders: [fsLoader({ roots: [...new Set([cwd, options.workspaceDir].filter((root) => typeof root === "string"))] })],
654
655
  presets: [nuxtPreset()],
655
656
  context: options.req ? { req: options.req } : void 0
656
657
  });
@@ -700,7 +701,16 @@ function isDevErrorMessage(message) {
700
701
  const type = candidate?.type;
701
702
  if (type === "nuxt:dev:error:log") return isLogEntry(message.entry);
702
703
  if (type === "nuxt:dev:error:progress") return isBuildProgress(message.progress);
703
- return type === "nuxt:dev:error:report" || type === "nuxt:dev:error:clear" || type === "nuxt:dev:error:warning";
704
+ if (type === "nuxt:dev:error:problems") {
705
+ const { source, reports } = message;
706
+ return typeof source === "string" && Array.isArray(reports);
707
+ }
708
+ if (type === "nuxt:dev:error:problems:clear") {
709
+ const { source } = message;
710
+ return source === void 0 || typeof source === "string";
711
+ }
712
+ if (type === "nuxt:dev:error:devtools") return typeof message.registered === "boolean";
713
+ return type === "nuxt:dev:error:report" || type === "nuxt:dev:error:clear" || type === "nuxt:dev:error:warning" || type === "nuxt:dev:error:warning:clear";
704
714
  }
705
715
  const LOG_LEVELS = /* @__PURE__ */ new Set([
706
716
  "trace",
@@ -795,9 +805,21 @@ function openErrorBridge(handlers = {}, options = {}) {
795
805
  source: message.progress.source ?? APP_PROGRESS_SOURCE
796
806
  });
797
807
  break;
808
+ case "nuxt:dev:error:problems":
809
+ instance.setProblems(message.source, message.reports, message.meta);
810
+ break;
811
+ case "nuxt:dev:error:problems:clear":
812
+ instance.clearProblems(message.source);
813
+ break;
814
+ case "nuxt:dev:error:devtools":
815
+ instance.setDevTools(message.registered);
816
+ break;
798
817
  case "nuxt:dev:error:warning":
799
818
  instance.warn(message.report);
800
819
  break;
820
+ case "nuxt:dev:error:warning:clear":
821
+ instance.clearWarning(message.id);
822
+ break;
801
823
  case "nuxt:dev:error:clear":
802
824
  instance.clearError(message.id);
803
825
  handlers.onClear?.(message.id);
@@ -2413,7 +2435,10 @@ var NuxtDevServer = class extends EventEmitter {
2413
2435
  async #publishError(error) {
2414
2436
  let report;
2415
2437
  try {
2416
- report = await createCliReport(error, { cwd: this.#rootDir() });
2438
+ report = await createCliReport(error, {
2439
+ cwd: this.#rootDir(),
2440
+ workspaceDir: this.#currentNuxt?.options.workspaceDir
2441
+ });
2417
2442
  } catch (reportError) {
2418
2443
  debug("Could not build a report for the error:", reportError);
2419
2444
  return;
@@ -2467,6 +2492,10 @@ var NuxtDevServer = class extends EventEmitter {
2467
2492
  this.#websocketConnections.clear();
2468
2493
  }
2469
2494
  async #load(reload, reason) {
2495
+ withErrorChannel((channel) => {
2496
+ channel.setDevTools(false);
2497
+ channel.clearProblems();
2498
+ });
2470
2499
  this.#loadingMessage = reload ? formatRestartReason(reason, {
2471
2500
  rootDir: this.#cwd,
2472
2501
  link: false
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { i as resolveRootDir } from "./paths-Bqh39JXx.mjs";
3
3
  import process from "node:process";
4
4
  // src/commands/dev-child.ts
@@ -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-cpqtufHb.mjs";
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-D0JeiEDo.mjs";
2
2
  import { c as openInspector, l as resolveInspectOptions, n as formatRestartReason, s as closeInspector } from "./reason-Q0bhpcTn.mjs";
3
3
  import { a as isReusePortSupported, c as parsePort } from "./listen-DrW8BU_4.mjs";
4
4
  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-CoL2HpKZ.mjs";
@@ -11,7 +11,7 @@ import { t as tryResolveNuxt } from "./resolve-nuxt-l3Qmn2zH.mjs";
11
11
  import { t as createSpinner } from "./spinner-SVJFJnZ-.mjs";
12
12
  import { devShortcutContext } from "./shortcut-context-jl_XQvPi.mjs";
13
13
  import { n as takeOverServer, t as formatTakeoverRefusal } from "./takeover-B7Z8Cmdd.mjs";
14
- import { beginDevUI, setupDevUI, teardownDevUI } from "./controller-QNccqNu-.mjs";
14
+ import { beginDevUI, setupDevUI, teardownDevUI } from "./controller-oq9KT5-Q.mjs";
15
15
  import { t as replaceCwdArg } from "./args-CAT9qhaw.mjs";
16
16
  import { a as resolveLockDir } from "./dev-server-CvP0xF2K.mjs";
17
17
  import process from "node:process";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, l as rootDirArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { S as ActionableError } from "./startup-clock-CoL2HpKZ.mjs";
3
3
  import { i as resolveRootDir } from "./paths-Bqh39JXx.mjs";
4
4
  import { x } from "tinyexec";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, t as cwdArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, t as cwdArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { s as openBrowser } from "./listen-DrW8BU_4.mjs";
3
3
  import { a as releaseStdin, c as withDirectStdout } from "./console-dy2Otf4M.mjs";
4
4
  import { h as isInteractive, u as logger } from "./startup-clock-CoL2HpKZ.mjs";
@@ -1,4 +1,4 @@
1
- import { f as engines } from "./_shared-cpqtufHb.mjs";
1
+ import { f as engines } from "./_shared-D0JeiEDo.mjs";
2
2
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
3
3
  import process from "node:process";
4
4
  import { styleText } from "node:util";
@@ -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-cpqtufHb.mjs";
2
- import build_default from "./build-DFj72Fjs.mjs";
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-D0JeiEDo.mjs";
2
+ import build_default from "./build-BQ03uGUS.mjs";
3
3
  // 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-cpqtufHb.mjs";
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-D0JeiEDo.mjs";
2
2
  import { s as debug, u as logger, w as asActionableError } from "./startup-clock-CoL2HpKZ.mjs";
3
3
  import { n as warnOnHang } from "./hang-C3J9GbuP.mjs";
4
4
  import { s as setupGlobalConsole } from "./console-dy2Otf4M.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-DPbPekYy.mjs").then(_rDefault),
54
- "add-template": () => import("./add-template-TsXTYVv2.mjs").then(_rDefault),
55
- "analyze": () => import("./analyze-D_Ps6ycQ.mjs").then(_rDefault),
56
- "build": () => import("./build-DFj72Fjs.mjs").then(_rDefault),
57
- "cleanup": () => import("./cleanup-Cj1dTMkQ.mjs").then(_rDefault),
58
- "curl": () => import("./curl-CeT3jRy3.mjs").then(_rDefault),
59
- "_dev": () => import("./dev-child-DEZk2sNL.mjs").then(_rDefault),
60
- "dev": () => import("./dev-D8s9JsBF.mjs").then(_rDefault),
61
- "devtools": () => import("./devtools-Dg_zHBfj.mjs").then(_rDefault),
62
- "docs": () => import("./docs-BAFyS3Jx.mjs").then(_rDefault),
63
- "generate": () => import("./generate-DUfPiEAD.mjs").then(_rDefault),
64
- "info": () => import("./info-G6W8IW7v.mjs").then(_rDefault),
65
- "init": () => import("./init-CURbQzTC.mjs").then(_rDefault),
66
- "module": () => import("./module-D5zY6rb1.mjs").then(_rDefault),
67
- "prepare": () => import("./prepare-COznNGy8.mjs").then((n) => n.n).then(_rDefault),
68
- "preview": () => import("./preview-CfeX1I4n.mjs").then(_rDefault),
69
- "start": () => import("./start-DSsefoBh.mjs").then(_rDefault),
70
- "task": () => import("./task-CTCBlL0h.mjs").then(_rDefault),
71
- "test": () => import("./test-DnNK0gw5.mjs").then(_rDefault),
72
- "typecheck": () => import("./typecheck-WW935zMu.mjs").then(_rDefault),
73
- "upgrade": () => import("./upgrade-CMwUAwyK.mjs").then(_rDefault)
53
+ "add": () => import("./add-DiwX2phb.mjs").then(_rDefault),
54
+ "add-template": () => import("./add-template-CEUULlCH.mjs").then(_rDefault),
55
+ "analyze": () => import("./analyze--XAvZzd0.mjs").then(_rDefault),
56
+ "build": () => import("./build-BQ03uGUS.mjs").then(_rDefault),
57
+ "cleanup": () => import("./cleanup-BNImsi3x.mjs").then(_rDefault),
58
+ "curl": () => import("./curl-BemWQHeH.mjs").then(_rDefault),
59
+ "_dev": () => import("./dev-child-BbH9k0Fn.mjs").then(_rDefault),
60
+ "dev": () => import("./dev-sbCVAq8Q.mjs").then(_rDefault),
61
+ "devtools": () => import("./devtools-BGdDN-8I.mjs").then(_rDefault),
62
+ "docs": () => import("./docs-BRUSvVL2.mjs").then(_rDefault),
63
+ "generate": () => import("./generate-BbfXmTX2.mjs").then(_rDefault),
64
+ "info": () => import("./info-eRah9qwl.mjs").then(_rDefault),
65
+ "init": () => import("./init-Dmkd2hsG.mjs").then(_rDefault),
66
+ "module": () => import("./module-CTrUdFxq.mjs").then(_rDefault),
67
+ "prepare": () => import("./prepare-QTGCvKMD.mjs").then((n) => n.n).then(_rDefault),
68
+ "preview": () => import("./preview-Cgdbe2KK.mjs").then(_rDefault),
69
+ "start": () => import("./start-ef7NNd8G.mjs").then(_rDefault),
70
+ "task": () => import("./task-BnwiJjKp.mjs").then(_rDefault),
71
+ "test": () => import("./test-qZ8IAKWI.mjs").then(_rDefault),
72
+ "typecheck": () => import("./typecheck-BvrqVHhE.mjs").then(_rDefault),
73
+ "upgrade": () => import("./upgrade-6vk7mAsK.mjs").then(_rDefault)
74
74
  });
75
75
  // src/run.ts
76
76
  globalThis.__nuxt_cli__ = globalThis.__nuxt_cli__ || {
@@ -93,7 +93,7 @@ function setCurrentCommand(command) {
93
93
  }
94
94
  async function runMain() {
95
95
  if (process.argv[2] === "complete") {
96
- const { initCompletions } = await import("./completions-0t_FX6vL.mjs");
96
+ const { initCompletions } = await import("./completions-Df0s8TT9.mjs");
97
97
  await initCompletions(main);
98
98
  }
99
99
  await runMain$1(main, { showUsage });
@@ -288,7 +288,7 @@ const _main = defineCommand({
288
288
  setCurrentCommand(command);
289
289
  setupGlobalConsole({ dev: command === "dev" });
290
290
  if (command && command !== "_dev" && provider !== "stackblitz") {
291
- await import("./engines-DOoFQ_zI.mjs").then(({ checkEngines }) => checkEngines()).catch((err) => logger.error(String(err)));
291
+ await import("./engines-vtjifV_6.mjs").then(({ checkEngines }) => checkEngines()).catch((err) => logger.error(String(err)));
292
292
  import("./paths-Bqh39JXx.mjs").then((n) => n.t).then(({ resolveProjectDir }) => scheduleUpdateNudge(resolveProjectDir(ctx.args), command)).catch((err) => debug("Failed to check for updates:", err));
293
293
  }
294
294
  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-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs, m as version } from "./_shared-D0JeiEDo.mjs";
2
2
  import { i as resolveNitroVersion, t as getBuilder } from "./banner-DE4pYQMt.mjs";
3
3
  import { i as printJson } from "./console-dy2Otf4M.mjs";
4
4
  import { r as formatInfoBox } from "./formatting-BUSJWff4.mjs";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand } from "./_shared-D0JeiEDo.mjs";
2
2
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
3
3
  import process from "node:process";
4
4
  import { styleText } from "node:util";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, l as rootDirArgs, o as jsonArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs, o as jsonArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { i as printJson } from "./console-dy2Otf4M.mjs";
3
3
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
4
4
  import { i as resolveRootDir } from "./paths-Bqh39JXx.mjs";
@@ -0,0 +1,15 @@
1
+ import { h as defineCommand } from "./_shared-D0JeiEDo.mjs";
2
+ // src/commands/module/index.ts
3
+ var module_default = defineCommand({
4
+ meta: {
5
+ name: "module",
6
+ description: "Manage Nuxt modules"
7
+ },
8
+ args: {},
9
+ subCommands: {
10
+ add: () => import("./add-4OEx5z71.mjs").then((r) => r.default || r),
11
+ remove: () => import("./remove-9HcHMk-o.mjs").then((r) => r.default || r),
12
+ search: () => import("./search-rObjd4CG.mjs").then((r) => r.default || r)
13
+ }
14
+ });
15
+ export { module_default as default };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-D3KUYPsf.mjs";
2
- import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-cpqtufHb.mjs";
2
+ import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-D0JeiEDo.mjs";
3
3
  import { n as resolveDotenvFileNames } from "./args-CAT9qhaw.mjs";
4
4
  import { t as clearBuildDir } from "./fs-BerxlAZq.mjs";
5
5
  import { t as loadKit } from "./kit-K_bQ8qH2.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-cpqtufHb.mjs";
1
+ import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { c as parsePort, d as resolvePort } from "./listen-DrW8BU_4.mjs";
3
3
  import { n as takeOverServer, t as formatTakeoverRefusal } from "./takeover-B7Z8Cmdd.mjs";
4
4
  import { n as resolveDotenvFileNames } from "./args-CAT9qhaw.mjs";
@@ -1,13 +1,13 @@
1
- import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-cpqtufHb.mjs";
2
- import { a as CONFIG_KEYS, i as removeNuxtConfigEntries, o as runCommandDef, r as readNuxtConfig } from "./config-XBonBu2o.mjs";
1
+ import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-D0JeiEDo.mjs";
2
+ import { a as CONFIG_KEYS, i as removeNuxtConfigEntries, o as runCommandDef, r as readNuxtConfig } from "./config-DN6gtC23.mjs";
3
3
  import { a as runInstall, t as createInstallLog } from "./install-B88XgWmK.mjs";
4
4
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
5
5
  import { i as logNetworkError } from "./path-env-BBmNm9TI.mjs";
6
6
  import { t as readDependencyPackageJson } from "./package-json-DQZk9pws.mjs";
7
7
  import { n as detectPackageManager, t as defaultPackageManager } from "./package-managers-sbHBcaEH.mjs";
8
8
  import { r as relativeToProcess } from "./paths-Bqh39JXx.mjs";
9
- import { t as prepare_default } from "./prepare-COznNGy8.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-Ctrospch.mjs";
9
+ import { t as prepare_default } from "./prepare-QTGCvKMD.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-FR9xlAff.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-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
3
3
  import { i as resolveRootDir } from "./paths-Bqh39JXx.mjs";
4
4
  import { a as reportTaskError, c as runTask, l as taskArgs, o as reportUnknownTask, r as format, s as resolveTaskServer } from "./_utils-CtRwF-4u.mjs";
@@ -1,10 +1,10 @@
1
- import { h as defineCommand, o as jsonArgs, t as cwdArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, o as jsonArgs, t as cwdArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { i as printJson } from "./console-dy2Otf4M.mjs";
3
3
  import { r as formatInfoBox } from "./formatting-BUSJWff4.mjs";
4
4
  import { u as logger } from "./startup-clock-CoL2HpKZ.mjs";
5
5
  import { i as logNetworkError } from "./path-env-BBmNm9TI.mjs";
6
6
  import { n as getNuxtVersion, t as DEFAULT_NUXT_VERSION } from "./versions-x2DVfZ_A.mjs";
7
- import { a as fetchModules, r as checkNuxtCompatibility, t as MODULES_API_URL } from "./_utils-Ctrospch.mjs";
7
+ import { a as fetchModules, r as checkNuxtCompatibility, t as MODULES_API_URL } from "./_utils-FR9xlAff.mjs";
8
8
  import process from "node:process";
9
9
  import { styleText } from "node:util";
10
10
  import { box } from "@clack/prompts";
@@ -1,5 +1,5 @@
1
- import { h as defineCommand } from "./_shared-cpqtufHb.mjs";
2
- import command from "./preview-CfeX1I4n.mjs";
1
+ import { h as defineCommand } from "./_shared-D0JeiEDo.mjs";
2
+ import command from "./preview-Cgdbe2KK.mjs";
3
3
  // src/commands/start.ts
4
4
  var start_default = defineCommand({
5
5
  ...command,
@@ -1,4 +1,4 @@
1
- import { h as defineCommand } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand } from "./_shared-D0JeiEDo.mjs";
2
2
  // 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-BjcODnqW.mjs").then((r) => r.default || r),
11
- run: () => import("./run-3qxg37ym.mjs").then((r) => r.default || r)
10
+ list: () => import("./list-j4K8Jlm1.mjs").then((r) => r.default || r),
11
+ run: () => import("./run-B_eVmvYJ.mjs").then((r) => r.default || r)
12
12
  }
13
13
  });
14
14
  export { task_default as default };
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, l as rootDirArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { S as ActionableError } from "./startup-clock-CoL2HpKZ.mjs";
3
3
  import { i as resolveRootDir } from "./paths-Bqh39JXx.mjs";
4
4
  import process from "node:process";
@@ -7,7 +7,7 @@ import { i as paint, n as MUTED } from "./terminal-theme-ClkB-QvF.mjs";
7
7
  import { f as writeClipboard, s as openBrowser } from "./listen-DrW8BU_4.mjs";
8
8
  import { setupShortcuts } from "./shortcuts-vYQnYBlM.mjs";
9
9
  import { i as isShutdownAdopted } from "./shutdown-DSlOoxkK.mjs";
10
- import { NOOP_CONTROLLER } from "./controller-QNccqNu-.mjs";
10
+ import { NOOP_CONTROLLER } from "./controller-oq9KT5-Q.mjs";
11
11
  import { beginDevUI, n as isBoxedNotice, r as normaliseMessage, t as whenStdinReleased } from "./session-DmV0nLNw.mjs";
12
12
  import { c as describeListenURLs, l as paintStatus, o as URL_LABELS, s as URL_STYLES } from "./first-frame-D5Ary_iP.mjs";
13
13
  import { relative } from "node:path";
@@ -800,7 +800,7 @@ async function readProjectReport(cwd) {
800
800
  cwd,
801
801
  timeout: 3e4
802
802
  });
803
- const { formatJsonAsMarkdownTable } = await import("./info-G6W8IW7v.mjs");
803
+ const { formatJsonAsMarkdownTable } = await import("./info-eRah9qwl.mjs");
804
804
  return formatJsonAsMarkdownTable(JSON.parse(stdout));
805
805
  }
806
806
  // src/dev/tui/request-overlay.ts
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { n as formatDuration } from "./formatting-BUSJWff4.mjs";
3
3
  import { s as debug, u as logger } from "./startup-clock-CoL2HpKZ.mjs";
4
4
  import { i as resolveRootDir } from "./paths-Bqh39JXx.mjs";
@@ -1,4 +1,4 @@
1
- import { h as defineCommand, l as rootDirArgs, s as logLevelArgs } from "./_shared-cpqtufHb.mjs";
1
+ import { h as defineCommand, l as rootDirArgs, s as logLevelArgs } from "./_shared-D0JeiEDo.mjs";
2
2
  import { a as runInstall, i as runDedupe, o as takeUnreportedIgnoredBuilds, t as createInstallLog } from "./install-B88XgWmK.mjs";
3
3
  import { t as loadKit } from "./kit-K_bQ8qH2.mjs";
4
4
  import { c as intro$1, d as outro$1, u as logger } from "./startup-clock-CoL2HpKZ.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/cli-nightly",
3
3
  "type": "module",
4
- "version": "4.0.3-2611062342-db93607",
4
+ "version": "4.0.3-2611082103-93d0ca0",
5
5
  "description": "Nuxt CLI",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -74,7 +74,7 @@
74
74
  "exsolve": "^1.2.0",
75
75
  "fuzzysort": "^4.0.2",
76
76
  "get-port-please": "^3.2.0",
77
- "my-bad": "^0.2.12",
77
+ "my-bad": "^1.0.1",
78
78
  "obug": "^3.0.0",
79
79
  "package-manager-detector": "^1.9.0",
80
80
  "pathe": "^2.0.3",
@@ -1,15 +0,0 @@
1
- import { h as defineCommand } from "./_shared-cpqtufHb.mjs";
2
- // src/commands/module/index.ts
3
- var module_default = defineCommand({
4
- meta: {
5
- name: "module",
6
- description: "Manage Nuxt modules"
7
- },
8
- args: {},
9
- subCommands: {
10
- add: () => import("./add-DsgqCdT9.mjs").then((r) => r.default || r),
11
- remove: () => import("./remove-CHqlvnn6.mjs").then((r) => r.default || r),
12
- search: () => import("./search-DjvbxetC.mjs").then((r) => r.default || r)
13
- }
14
- });
15
- export { module_default as default };