@nuxt/cli-nightly 3.31.2-20251208-171641-c12ef7d → 3.31.3-20251217-182018-e46541d

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.
@@ -187,7 +187,7 @@ function routeToRegExp(route = "/") {
187
187
  }
188
188
 
189
189
  //#endregion
190
- //#region ../../node_modules/.pnpm/h3@2.0.1-rc.6_crossws@0.4.1_srvx@0.9.7_/node_modules/h3/dist/h3.mjs
190
+ //#region ../../node_modules/.pnpm/h3@2.0.1-rc.6_crossws@0.4.1_srvx@0.9.8_/node_modules/h3/dist/h3.mjs
191
191
  const kEventNS = "h3.internal.event.";
192
192
  const kEventRes = /* @__PURE__ */ Symbol.for(`${kEventNS}res`);
193
193
  const kEventResHeaders = /* @__PURE__ */ Symbol.for(`${kEventNS}res.headers`);
package/dist/index.mjs CHANGED
@@ -14,15 +14,15 @@ import tab from "@bomb.sh/tab/citty";
14
14
  const _rDefault = (r) => r.default || r;
15
15
  const commands = {
16
16
  add: () => import("./add-BRBkCPhK.mjs").then(_rDefault),
17
- analyze: () => import("./analyze-CaUx1uIN.mjs").then(_rDefault),
17
+ analyze: () => import("./analyze-CgRSg6Om.mjs").then(_rDefault),
18
18
  build: () => import("./build-BrNcO3Nf.mjs").then(_rDefault),
19
19
  cleanup: () => import("./cleanup-DKZcEgpd.mjs").then(_rDefault),
20
20
  _dev: () => import("./dev-child-DzglMUJH.mjs").then(_rDefault),
21
21
  dev: () => import("./dev-DzDtIj6D.mjs").then(_rDefault),
22
22
  devtools: () => import("./devtools-ChsGaImC.mjs").then(_rDefault),
23
23
  generate: () => import("./generate-E-Rug7g3.mjs").then(_rDefault),
24
- info: () => import("./info-CkkViVY_.mjs").then(_rDefault),
25
- init: () => import("./init-cKyx2_WR.mjs").then(_rDefault),
24
+ info: () => import("./info-BRG671QC.mjs").then(_rDefault),
25
+ init: () => import("./init-BNcBgV1l.mjs").then(_rDefault),
26
26
  module: () => import("./module-DgpPOW_T.mjs").then(_rDefault),
27
27
  prepare: () => import("./prepare-DKLHAJCM.mjs").then(_rDefault),
28
28
  preview: () => import("./preview-BUkFoOlO.mjs").then(_rDefault),
@@ -66,7 +66,7 @@ async function checkEngines() {
66
66
  //#endregion
67
67
  //#region package.json
68
68
  var name = "@nuxt/cli-nightly";
69
- var version = "3.31.2-20251208-171641-c12ef7d";
69
+ var version = "3.31.3-20251217-182018-e46541d";
70
70
  var description = "Nuxt CLI";
71
71
 
72
72
  //#endregion
@@ -17,7 +17,7 @@ import { copy } from "copy-paste";
17
17
  import { detectPackageManager } from "nypm";
18
18
 
19
19
  //#region ../nuxi/package.json
20
- var version = "3.31.2-20251208-171629-c12ef7d";
20
+ var version = "3.31.3-20251217-182007-e46541d";
21
21
 
22
22
  //#endregion
23
23
  //#region ../nuxi/src/commands/info.ts
@@ -89,8 +89,7 @@ var info_default = defineCommand({
89
89
  });
90
90
  let copyStr = `| ${" ".repeat(firstColumnLength)} | ${" ".repeat(secondColumnLength)} |\n| ${"-".repeat(firstColumnLength)} | ${"-".repeat(secondColumnLength)} |\n`;
91
91
  for (const [label, value] of entries) if (!isMinimal) copyStr += `| ${`**${label}**`.padEnd(firstColumnLength)} | ${(value.includes("`") ? value : `\`${value}\``).padEnd(secondColumnLength)} |\n`;
92
- const copied = !isMinimal && await new Promise((resolve$1) => copy(copyStr, (err) => resolve$1(!err)));
93
- box(`\n${boxStr}`, ` Nuxt project info ${copied ? colors.gray("(copied to clipboard) ") : ""}`, {
92
+ if (!isMinimal && await new Promise((resolve$1) => copy(copyStr, (err) => resolve$1(!err)))) box(`\n${boxStr}`, ` Nuxt project info ${colors.gray("(copied to clipboard) ")}`, {
94
93
  contentAlign: "left",
95
94
  titleAlign: "left",
96
95
  width: "auto",
@@ -98,6 +97,7 @@ var info_default = defineCommand({
98
97
  contentPadding: 2,
99
98
  rounded: true
100
99
  });
100
+ else logger.info(`Nuxt project info:\n${copyStr}`, { withGuide: false });
101
101
  const isNuxt3 = !isLegacy;
102
102
  const isBridge = !isNuxt3 && infoObj["Build modules"]?.includes("bridge");
103
103
  const repo = isBridge ? "nuxt/bridge" : "nuxt/nuxt";
@@ -1,10 +1,10 @@
1
1
  import { o as logLevelArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
2
2
  import { n as logger } from "./logger-B4ge7MhP.mjs";
3
3
  import { r as relativeToProcess } from "./kit-CPEUdXTm.mjs";
4
- import "./versions-CTlxnxbH.mjs";
4
+ import { t as getNuxtVersion } from "./versions-CTlxnxbH.mjs";
5
5
  import "./fs-B_hD5MnA.mjs";
6
6
  import { n as runCommand$1, t as add_default } from "./add-Cm_5fc2T.mjs";
7
- import { n as fetchModules } from "./_utils-NB3Cn3-G.mjs";
7
+ import { n as fetchModules, t as checkNuxtCompatibility } from "./_utils-NB3Cn3-G.mjs";
8
8
  import "./prepare-CYiGWTFv.mjs";
9
9
  import process from "node:process";
10
10
  import { defineCommand } from "citty";
@@ -389,9 +389,13 @@ var init_default = defineCommand({
389
389
  if (wantsUserModules) {
390
390
  const modulesSpinner = spinner();
391
391
  modulesSpinner.start("Fetching available modules");
392
- const [response, templateDeps] = await Promise.all([modulesPromise, getTemplateDependencies(template.dir)]);
392
+ const [response, templateDeps, nuxtVersion] = await Promise.all([
393
+ modulesPromise,
394
+ getTemplateDependencies(template.dir),
395
+ getNuxtVersion(template.dir)
396
+ ]);
393
397
  modulesSpinner.stop("Modules loaded");
394
- const officialModules = response.filter((module) => module.type === "official" && module.npm !== "@nuxt/devtools" && !templateDeps.includes(module.npm));
398
+ const officialModules = response.filter((module) => module.type === "official" && module.npm !== "@nuxt/devtools" && !templateDeps.includes(module.npm) && (!module.compatibility.nuxt || checkNuxtCompatibility(module, nuxtVersion)));
395
399
  if (officialModules.length === 0) logger.info("All official modules are already included in this template.");
396
400
  else {
397
401
  const selectedOfficialModules = await multiselect({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/cli-nightly",
3
3
  "type": "module",
4
- "version": "3.31.2-20251208-171641-c12ef7d",
4
+ "version": "3.31.3-20251217-182018-e46541d",
5
5
  "description": "Nuxt CLI",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -33,8 +33,8 @@
33
33
  "prepack": "tsdown"
34
34
  },
35
35
  "dependencies": {
36
- "@bomb.sh/tab": "^0.0.9",
37
- "@clack/prompts": "1.0.0-alpha.7",
36
+ "@bomb.sh/tab": "^0.0.10",
37
+ "@clack/prompts": "1.0.0-alpha.8",
38
38
  "c12": "^3.3.2",
39
39
  "citty": "^0.1.6",
40
40
  "confbox": "^0.2.2",
@@ -55,25 +55,25 @@
55
55
  "pkg-types": "^2.3.0",
56
56
  "scule": "^1.3.0",
57
57
  "semver": "^7.7.3",
58
- "srvx": "^0.9.7",
58
+ "srvx": "^0.9.8",
59
59
  "std-env": "^3.10.0",
60
60
  "tinyexec": "^1.0.2",
61
61
  "ufo": "^1.6.1",
62
62
  "youch": "^4.1.0-beta.13"
63
63
  },
64
64
  "devDependencies": {
65
- "@nuxt/kit": "^4.2.1",
66
- "@nuxt/schema": "^4.2.1",
65
+ "@nuxt/kit": "^4.2.2",
66
+ "@nuxt/schema": "^4.2.2",
67
67
  "@types/debug": "^4.1.12",
68
- "@types/node": "^24.10.1",
68
+ "@types/node": "^24.10.4",
69
69
  "get-port-please": "^3.2.0",
70
70
  "h3": "^1.15.4",
71
71
  "h3-next": "npm:h3@^2.0.1-rc.6",
72
72
  "nitro": "^3.0.1-alpha.1",
73
73
  "nitropack": "^2.12.9",
74
- "rollup": "^4.53.3",
74
+ "rollup": "^4.53.4",
75
75
  "rollup-plugin-visualizer": "^6.0.5",
76
- "tsdown": "^0.17.1",
76
+ "tsdown": "^0.18.0",
77
77
  "typescript": "^5.9.3",
78
78
  "undici": "^7.16.0",
79
79
  "unplugin-purge-polyfills": "^0.1.0",