@nuxt/cli-nightly 3.30.0-20251030-210831-e0ea531 → 3.30.0-20251031-122706-6d1fedf

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.
@@ -2,7 +2,7 @@ import "./_shared-C3vB2YLc.mjs";
2
2
  import "./logger-Dk0gkCkX.mjs";
3
3
  import "./kit-f7zsnm10.mjs";
4
4
  import "./fs--ofMleGo.mjs";
5
- import { t as add_default } from "./add-DAUI-5jB.mjs";
5
+ import { t as add_default } from "./add-kZRi0oTW.mjs";
6
6
  import "./versions-CSy_3o_-.mjs";
7
7
  import "./prepare-DjR-jyiQ.mjs";
8
8
  import "./_utils-DTrPahho.mjs";
@@ -8,12 +8,13 @@ import process from "node:process";
8
8
  import { defineCommand, runCommand } from "citty";
9
9
  import { fileURLToPath } from "node:url";
10
10
  import * as fs from "node:fs";
11
+ import { existsSync } from "node:fs";
11
12
  import { joinURL } from "ufo";
12
13
  import { resolve as resolve$1 } from "pathe";
13
14
  import { colors } from "consola/utils";
14
15
  import { satisfies } from "semver";
15
16
  import { homedir } from "node:os";
16
- import { addDependency } from "nypm";
17
+ import { addDependency, detectPackageManager } from "nypm";
17
18
  import { readPackageJSON } from "pkg-types";
18
19
  import { $fetch } from "ofetch";
19
20
  import { updateConfig } from "c12/update";
@@ -127,10 +128,13 @@ async function addModules(modules, { skipInstall, skipConfig, cwd, dev }, projec
127
128
  const dependency = notInstalledModules.length > 1 ? "dependencies" : "dependency";
128
129
  const a = notInstalledModules.length > 1 ? "" : " a";
129
130
  logger.info(`Installing \`${notInstalledModulesList}\` as${a}${isDev ? " development" : ""} ${dependency}`);
131
+ const packageManager = await detectPackageManager(cwd);
130
132
  if (await addDependency(notInstalledModules.map((module) => module.pkg), {
131
133
  cwd,
132
134
  dev: isDev,
133
- installPeerDependencies: true
135
+ installPeerDependencies: true,
136
+ packageManager,
137
+ workspace: packageManager?.name === "pnpm" && existsSync(resolve$1(cwd, "pnpm-workspace.yaml"))
134
138
  }).then(() => true).catch((error) => {
135
139
  logger.error(error);
136
140
  const failedModulesList = notInstalledModules.map((module) => colors.cyan(module.pkg)).join("`, `");
package/dist/index.mjs CHANGED
@@ -18,15 +18,15 @@ const commands = {
18
18
  dev: () => import("./dev-nr2jb3A5.mjs").then(_rDefault),
19
19
  devtools: () => import("./devtools-BLGzUSNU.mjs").then(_rDefault),
20
20
  generate: () => import("./generate-DZJF1Xf_.mjs").then(_rDefault),
21
- info: () => import("./info-9A9-0MOb.mjs").then(_rDefault),
22
- init: () => import("./init-DxB4kjq8.mjs").then(_rDefault),
23
- module: () => import("./module-gIxjhGid.mjs").then(_rDefault),
21
+ info: () => import("./info-B_7WJho3.mjs").then(_rDefault),
22
+ init: () => import("./init-BQkH4r8t.mjs").then(_rDefault),
23
+ module: () => import("./module-DLtKXRxA.mjs").then(_rDefault),
24
24
  prepare: () => import("./prepare-ZByeo9vQ.mjs").then(_rDefault),
25
25
  preview: () => import("./preview-CgpLKg-X.mjs").then(_rDefault),
26
26
  start: () => import("./preview-CgpLKg-X.mjs").then(_rDefault),
27
27
  test: () => import("./test-CBt1emEB.mjs").then(_rDefault),
28
28
  typecheck: () => import("./typecheck-egvrxpjV.mjs").then(_rDefault),
29
- upgrade: () => import("./upgrade-Bsj6DJXO.mjs").then(_rDefault)
29
+ upgrade: () => import("./upgrade-knZur6qb.mjs").then(_rDefault)
30
30
  };
31
31
 
32
32
  //#endregion
@@ -63,7 +63,7 @@ async function checkEngines() {
63
63
  //#endregion
64
64
  //#region package.json
65
65
  var name = "@nuxt/cli-nightly";
66
- var version = "3.30.0-20251030-210831-e0ea531";
66
+ var version = "3.30.0-20251031-122706-6d1fedf";
67
67
  var description = "Nuxt CLI";
68
68
 
69
69
  //#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.30.0-20251030-210822-e0ea531";
16
+ var version = "3.30.0-20251031-122659-6d1fedf";
17
17
 
18
18
  //#endregion
19
19
  //#region ../nuxi/src/commands/info.ts
@@ -2,7 +2,7 @@ import { o as logLevelArgs, t as cwdArgs } from "./_shared-C3vB2YLc.mjs";
2
2
  import { t as logger } from "./logger-Dk0gkCkX.mjs";
3
3
  import "./kit-f7zsnm10.mjs";
4
4
  import "./fs--ofMleGo.mjs";
5
- import { n as runCommand$1, t as add_default } from "./add-DAUI-5jB.mjs";
5
+ import { n as runCommand$1, t as add_default } from "./add-kZRi0oTW.mjs";
6
6
  import "./versions-CSy_3o_-.mjs";
7
7
  import "./prepare-DjR-jyiQ.mjs";
8
8
  import "./_utils-DTrPahho.mjs";
@@ -8,7 +8,7 @@ var module_default = defineCommand({
8
8
  },
9
9
  args: {},
10
10
  subCommands: {
11
- add: () => import("./add-UF9L_ur5.mjs").then((r) => r.default || r),
11
+ add: () => import("./add-CBEUvaze.mjs").then((r) => r.default || r),
12
12
  search: () => import("./search-D_JLXbhF.mjs").then((r) => r.default || r)
13
13
  }
14
14
  });
@@ -141,7 +141,8 @@ var upgrade_default = defineCommand({
141
141
  await addDependency(npmPackages, {
142
142
  cwd,
143
143
  packageManager,
144
- dev: nuxtDependencyType === "devDependencies"
144
+ dev: nuxtDependencyType === "devDependencies",
145
+ workspace: packageManager?.name === "pnpm" && existsSync(resolve(cwd, "pnpm-workspace.yaml"))
145
146
  });
146
147
  if (method === "force") {
147
148
  logger.info(`Recreating ${forceRemovals}. If you encounter any issues, revert the changes and try with \`--no-force\``);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/cli-nightly",
3
3
  "type": "module",
4
- "version": "3.30.0-20251030-210831-e0ea531",
4
+ "version": "3.30.0-20251031-122706-6d1fedf",
5
5
  "description": "Nuxt CLI",
6
6
  "license": "MIT",
7
7
  "repository": {