@nuxt/cli-nightly 3.31.3-20251217-100503-2260a93 → 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.
package/dist/index.mjs
CHANGED
|
@@ -21,8 +21,8 @@ const commands = {
|
|
|
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-
|
|
25
|
-
init: () => import("./init-
|
|
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.3-20251217-
|
|
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.3-20251217-
|
|
20
|
+
var version = "3.31.3-20251217-182007-e46541d";
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region ../nuxi/src/commands/info.ts
|
|
@@ -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([
|
|
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({
|