@nuxt/cli-nightly 3.31.0-20251105-141736-5278c9e → 3.31.0-20251106-122644-ce9694f
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
|
@@ -19,7 +19,7 @@ const commands = {
|
|
|
19
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-
|
|
22
|
+
info: () => import("./info-CCwBjlAr.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-
|
|
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-
|
|
67
|
+
var version = "3.31.0-20251106-122644-ce9694f";
|
|
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-
|
|
16
|
+
var version = "3.31.0-20251106-122632-ce9694f";
|
|
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
|
-
|
|
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]) => {
|
|
@@ -79,7 +79,7 @@ var info_default = defineCommand({
|
|
|
79
79
|
for (const [label, value] of entries) infoStr += `- ${`${label}: `.padEnd(maxLength + 2)}${value.includes("`") ? value : `\`${value}\``}\n`;
|
|
80
80
|
const copied = !isMinimal && await new Promise((resolve$1) => copy(infoStr, (err) => resolve$1(!err)));
|
|
81
81
|
const isNuxt3 = !isLegacy;
|
|
82
|
-
const isBridge = !isNuxt3 && infoObj.BuildModules
|
|
82
|
+
const isBridge = !isNuxt3 && infoObj.BuildModules?.includes("bridge");
|
|
83
83
|
const repo = isBridge ? "nuxt/bridge" : "nuxt/nuxt";
|
|
84
84
|
const log = [
|
|
85
85
|
(isNuxt3 || isBridge) && `👉 Report an issue: https://github.com/${repo}/issues/new?template=bug-report.yml`,
|
|
@@ -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(
|
|
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;
|