@nuxt/cli-nightly 3.31.0-20251104-171725-fd1747f → 3.31.0-20251106-122236-3eaca44

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.
@@ -1,5 +1,5 @@
1
1
  import "../logger-Dk0gkCkX.mjs";
2
- import { t as initialize } from "../dev-BYEMtZLe.mjs";
2
+ import { t as initialize } from "../dev-Bf9P_WmH.mjs";
3
3
  import "../kit-f7zsnm10.mjs";
4
4
  import "../banner-CWBLwDiB.mjs";
5
5
  import "../fs--ofMleGo.mjs";
@@ -433,7 +433,8 @@ var NuxtDevServer = class extends EventEmitter {
433
433
  const nuxtConfig = this.#currentNuxt.options;
434
434
  const overrides = this.options.listenOverrides || {};
435
435
  const port = overrides.port ?? nuxtConfig.devServer?.port;
436
- const hostname = overrides.hostname ?? overrides.host ?? nuxtConfig.devServer?.host;
436
+ const rawHost = overrides.hostname ?? overrides.host;
437
+ const hostname = (rawHost === true ? "" : rawHost) ?? nuxtConfig.devServer?.host;
437
438
  const isPublic = provider === "codesandbox" || (overrides.public ?? (isPublicHostname(hostname) ? true : void 0));
438
439
  const httpsFromConfig = typeof nuxtConfig.devServer?.https !== "boolean" && nuxtConfig.devServer?.https ? nuxtConfig.devServer.https : {};
439
440
  const httpsOptions = !!(overrides.https ?? nuxtConfig.devServer?.https) && {
@@ -1,5 +1,5 @@
1
1
  import "./logger-Dk0gkCkX.mjs";
2
- import { t as initialize } from "./dev-BYEMtZLe.mjs";
2
+ import { t as initialize } from "./dev-Bf9P_WmH.mjs";
3
3
  import "./kit-f7zsnm10.mjs";
4
4
  import "./banner-CWBLwDiB.mjs";
5
5
  import "./fs--ofMleGo.mjs";
@@ -1,6 +1,6 @@
1
1
  import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-C3vB2YLc.mjs";
2
2
  import { t as logger } from "./logger-Dk0gkCkX.mjs";
3
- import { t as initialize } from "./dev-BYEMtZLe.mjs";
3
+ import { t as initialize } from "./dev-Bf9P_WmH.mjs";
4
4
  import "./kit-f7zsnm10.mjs";
5
5
  import "./banner-CWBLwDiB.mjs";
6
6
  import "./fs--ofMleGo.mjs";
@@ -25,7 +25,7 @@ var dev_child_default = defineCommand({
25
25
  async run(ctx) {
26
26
  if (!process.send && !isTest) console.warn("`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.");
27
27
  const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
28
- const { initialize } = await import("./dev-CD5a8ssT.mjs");
28
+ const { initialize } = await import("./dev-CNjdVPgl.mjs");
29
29
  await initialize({
30
30
  cwd,
31
31
  args: ctx.args
package/dist/index.mjs CHANGED
@@ -15,11 +15,11 @@ const commands = {
15
15
  analyze: () => import("./analyze-Ji0eD4TL.mjs").then(_rDefault),
16
16
  build: () => import("./build-BEXmJONc.mjs").then(_rDefault),
17
17
  cleanup: () => import("./cleanup-X4v95Xqm.mjs").then(_rDefault),
18
- _dev: () => import("./dev-child-Dcs4VQnN.mjs").then(_rDefault),
19
- dev: () => import("./dev-nr2jb3A5.mjs").then(_rDefault),
18
+ _dev: () => import("./dev-child-GqhyRU2G.mjs").then(_rDefault),
19
+ dev: () => import("./dev-aS1afvp8.mjs").then(_rDefault),
20
20
  devtools: () => import("./devtools-BLGzUSNU.mjs").then(_rDefault),
21
21
  generate: () => import("./generate-DZJF1Xf_.mjs").then(_rDefault),
22
- info: () => import("./info-CMV1qV_q.mjs").then(_rDefault),
22
+ info: () => import("./info-C4iZcIx8.mjs").then(_rDefault),
23
23
  init: () => import("./init-DX0yoR1B.mjs").then(_rDefault),
24
24
  module: () => import("./module-t-MDBA3Y.mjs").then(_rDefault),
25
25
  prepare: () => import("./prepare-ZByeo9vQ.mjs").then(_rDefault),
@@ -27,7 +27,7 @@ const commands = {
27
27
  start: () => import("./preview-CgpLKg-X.mjs").then(_rDefault),
28
28
  test: () => import("./test-CBt1emEB.mjs").then(_rDefault),
29
29
  typecheck: () => import("./typecheck-egvrxpjV.mjs").then(_rDefault),
30
- upgrade: () => import("./upgrade-DGXExT1z.mjs").then(_rDefault)
30
+ upgrade: () => import("./upgrade-CblzcPw0.mjs").then(_rDefault)
31
31
  };
32
32
 
33
33
  //#endregion
@@ -64,7 +64,7 @@ async function checkEngines() {
64
64
  //#endregion
65
65
  //#region package.json
66
66
  var name = "@nuxt/cli-nightly";
67
- var version = "3.31.0-20251104-171725-fd1747f";
67
+ var version = "3.31.0-20251106-122236-3eaca44";
68
68
  var description = "Nuxt CLI";
69
69
 
70
70
  //#endregion
@@ -13,7 +13,7 @@ import { detectPackageManager } from "nypm";
13
13
  import { readPackageJSON } from "pkg-types";
14
14
 
15
15
  //#region ../nuxi/package.json
16
- var version = "3.31.0-20251104-171713-fd1747f";
16
+ var version = "3.31.0-20251106-122224-3eaca44";
17
17
 
18
18
  //#endregion
19
19
  //#region ../nuxi/src/commands/info.ts
@@ -61,13 +61,13 @@ var info_default = defineCommand({
61
61
  NodeVersion: process.version,
62
62
  NuxtVersion: nuxtVersion,
63
63
  CLIVersion: version,
64
- NitroVersion: await getDepVersion("nitropack"),
64
+ NitroVersion: await getDepVersion("nitropack") || await getDepVersion("nitro"),
65
65
  PackageManager: packageManager ?? "unknown",
66
66
  Builder: typeof builder === "string" ? builder : "custom",
67
67
  UserConfig: Object.keys(nuxtConfig).map((key) => `\`${key}\``).join(", "),
68
- RuntimeModules: await listModules(nuxtConfig.modules),
69
- BuildModules: await listModules(nuxtConfig.buildModules || [])
68
+ Modules: await listModules(nuxtConfig.modules)
70
69
  };
70
+ if (isLegacy) infoObj.BuildModules = await listModules(nuxtConfig.buildModules || []);
71
71
  logger.log("Working directory:", cwd);
72
72
  let maxLength = 0;
73
73
  const entries = Object.entries(infoObj).map(([key, val]) => {
@@ -11,7 +11,7 @@ import { existsSync } from "node:fs";
11
11
  import { resolve } from "pathe";
12
12
  import { colors } from "consola/utils";
13
13
  import { addDependency, dedupeDependencies, detectPackageManager } from "nypm";
14
- import { readPackageJSON } from "pkg-types";
14
+ import { findWorkspaceDir, readPackageJSON } from "pkg-types";
15
15
  import { cancel, isCancel, select } from "@clack/prompts";
16
16
 
17
17
  //#region ../nuxi/src/commands/upgrade.ts
@@ -103,7 +103,7 @@ var upgrade_default = defineCommand({
103
103
  },
104
104
  async run(ctx) {
105
105
  const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
106
- const packageManager = await detectPackageManager(cwd);
106
+ const [packageManager, workspaceDir = cwd] = await Promise.all([detectPackageManager(cwd), findWorkspaceDir(cwd, { try: true })]);
107
107
  if (!packageManager) {
108
108
  logger.error(`Unable to determine the package manager used by this project.\n\nNo lock files found in \`${cwd}\`, and no \`packageManager\` field specified in \`package.json\`.\n\nPlease either add the \`packageManager\` field to \`package.json\` or execute the installation command for your package manager. For example, you can use \`pnpm i\`, \`npm i\`, \`bun i\`, or \`yarn i\`, and then try again.`);
109
109
  process.exit(1);
@@ -123,7 +123,7 @@ var upgrade_default = defineCommand({
123
123
  "@nuxt/rspack-builder"
124
124
  ].filter((p) => pkg.dependencies?.[p] || pkg.devDependencies?.[p]) : []], ctx.args.channel);
125
125
  const toRemove = ["node_modules"];
126
- const lockFile = normaliseLockFile(cwd, lockFileCandidates);
126
+ const lockFile = normaliseLockFile(workspaceDir, lockFileCandidates);
127
127
  if (lockFile) toRemove.push(lockFile);
128
128
  const forceRemovals = toRemove.map((p) => colors.cyan(p)).join(" and ");
129
129
  let method = ctx.args.force ? "force" : ctx.args.dedupe ? "dedupe" : void 0;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/cli-nightly",
3
3
  "type": "module",
4
- "version": "3.31.0-20251104-171725-fd1747f",
4
+ "version": "3.31.0-20251106-122236-3eaca44",
5
5
  "description": "Nuxt CLI",
6
6
  "license": "MIT",
7
7
  "repository": {