@nuxt/cli-nightly 3.30.1-20251104-170129-78f27f8 → 3.31.0-20251104-171725-fd1747f

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.d.mts CHANGED
@@ -4,7 +4,7 @@ import { CommandDef } from "citty";
4
4
  declare const main: CommandDef<any>;
5
5
  //#endregion
6
6
  //#region src/run.d.ts
7
- declare const runMain: () => Promise<void>;
7
+ declare function runMain(): Promise<void>;
8
8
  declare function runCommand(name: string, argv?: string[], data?: {
9
9
  overrides?: Record<string, any>;
10
10
  }): Promise<{
package/dist/index.mjs CHANGED
@@ -6,6 +6,7 @@ import { defineCommand, runCommand as runCommand$1, runMain as runMain$1 } from
6
6
  import { provider } from "std-env";
7
7
  import { consola } from "consola";
8
8
  import { fileURLToPath } from "node:url";
9
+ import tab from "@bomb.sh/tab/citty";
9
10
 
10
11
  //#region ../nuxi/src/commands/index.ts
11
12
  const _rDefault = (r) => r.default || r;
@@ -18,7 +19,7 @@ const commands = {
18
19
  dev: () => import("./dev-nr2jb3A5.mjs").then(_rDefault),
19
20
  devtools: () => import("./devtools-BLGzUSNU.mjs").then(_rDefault),
20
21
  generate: () => import("./generate-DZJF1Xf_.mjs").then(_rDefault),
21
- info: () => import("./info-BSqWMt0L.mjs").then(_rDefault),
22
+ info: () => import("./info-CMV1qV_q.mjs").then(_rDefault),
22
23
  init: () => import("./init-DX0yoR1B.mjs").then(_rDefault),
23
24
  module: () => import("./module-t-MDBA3Y.mjs").then(_rDefault),
24
25
  prepare: () => import("./prepare-ZByeo9vQ.mjs").then(_rDefault),
@@ -63,7 +64,7 @@ async function checkEngines() {
63
64
  //#endregion
64
65
  //#region package.json
65
66
  var name = "@nuxt/cli-nightly";
66
- var version = "3.30.1-20251104-170129-78f27f8";
67
+ var version = "3.31.0-20251104-171725-fd1747f";
67
68
  var description = "Nuxt CLI";
68
69
 
69
70
  //#endregion
@@ -108,6 +109,137 @@ const _main = defineCommand({
108
109
  });
109
110
  const main = _main;
110
111
 
112
+ //#endregion
113
+ //#region ../nuxi/src/utils/completions-data.ts
114
+ /** Auto-generated file */
115
+ const nitroPresets = [
116
+ "alwaysdata",
117
+ "aws-amplify",
118
+ "aws-lambda",
119
+ "azure-functions",
120
+ "azure-swa",
121
+ "bun",
122
+ "cleavr",
123
+ "cli",
124
+ "cloudflare-dev",
125
+ "cloudflare-durable",
126
+ "cloudflare-module",
127
+ "cloudflare-module-legacy",
128
+ "cloudflare-pages",
129
+ "cloudflare-pages-static",
130
+ "cloudflare-worker",
131
+ "deno-deploy",
132
+ "deno-server",
133
+ "deno-server-legacy",
134
+ "digital-ocean",
135
+ "edgio",
136
+ "firebase",
137
+ "firebase-app-hosting",
138
+ "flight-control",
139
+ "genezio",
140
+ "github-pages",
141
+ "gitlab-pages",
142
+ "heroku",
143
+ "iis-handler",
144
+ "iis-node",
145
+ "koyeb",
146
+ "netlify",
147
+ "netlify-builder",
148
+ "netlify-edge",
149
+ "netlify-legacy",
150
+ "netlify-static",
151
+ "node-cluster",
152
+ "node-listener",
153
+ "node-server",
154
+ "platform-sh",
155
+ "render-com",
156
+ "service-worker",
157
+ "static",
158
+ "stormkit",
159
+ "vercel",
160
+ "vercel-edge",
161
+ "vercel-static",
162
+ "winterjs",
163
+ "zeabur",
164
+ "zeabur-static",
165
+ "zerops",
166
+ "zerops-static"
167
+ ];
168
+ const templates = [
169
+ "doc-driven",
170
+ "hub",
171
+ "layer",
172
+ "module",
173
+ "module-devtools",
174
+ "ui",
175
+ "ui-vue",
176
+ "v2-bridge",
177
+ "v3",
178
+ "v4",
179
+ "v4-compat"
180
+ ];
181
+
182
+ //#endregion
183
+ //#region ../nuxi/src/completions.ts
184
+ async function initCompletions(command) {
185
+ const completion = await tab(command);
186
+ const devCommand = completion.commands.get("dev");
187
+ if (devCommand) {
188
+ const portOption = devCommand.options.get("port");
189
+ if (portOption) portOption.handler = (complete) => {
190
+ complete("3000", "Default development port");
191
+ complete("3001", "Alternative port");
192
+ complete("8080", "Common alternative port");
193
+ };
194
+ const hostOption = devCommand.options.get("host");
195
+ if (hostOption) hostOption.handler = (complete) => {
196
+ complete("localhost", "Local development");
197
+ complete("0.0.0.0", "Listen on all interfaces");
198
+ complete("127.0.0.1", "Loopback address");
199
+ };
200
+ }
201
+ const buildCommand = completion.commands.get("build");
202
+ if (buildCommand) {
203
+ const presetOption = buildCommand.options.get("preset");
204
+ if (presetOption) presetOption.handler = (complete) => {
205
+ for (const preset of nitroPresets) complete(preset, "");
206
+ };
207
+ }
208
+ const initCommand = completion.commands.get("init");
209
+ if (initCommand) {
210
+ const templateOption = initCommand.options.get("template");
211
+ if (templateOption) templateOption.handler = (complete) => {
212
+ for (const template of templates) complete(template, "");
213
+ };
214
+ }
215
+ const addCommand = completion.commands.get("add");
216
+ if (addCommand) {
217
+ const cwdOption = addCommand.options.get("cwd");
218
+ if (cwdOption) cwdOption.handler = (complete) => {
219
+ complete(".", "Current directory");
220
+ };
221
+ }
222
+ for (const cmdName of [
223
+ "dev",
224
+ "build",
225
+ "generate",
226
+ "preview",
227
+ "prepare",
228
+ "init"
229
+ ]) {
230
+ const cmd = completion.commands.get(cmdName);
231
+ if (cmd) {
232
+ const logLevelOption = cmd.options.get("logLevel");
233
+ if (logLevelOption) logLevelOption.handler = (complete) => {
234
+ complete("silent", "No logs");
235
+ complete("info", "Standard logging");
236
+ complete("verbose", "Detailed logging");
237
+ };
238
+ }
239
+ }
240
+ return completion;
241
+ }
242
+
111
243
  //#endregion
112
244
  //#region src/run.ts
113
245
  globalThis.__nuxt_cli__ = globalThis.__nuxt_cli__ || {
@@ -115,7 +247,10 @@ globalThis.__nuxt_cli__ = globalThis.__nuxt_cli__ || {
115
247
  entry: fileURLToPath(new URL("../../bin/nuxi.mjs", import.meta.url)),
116
248
  devEntry: fileURLToPath(new URL("../dev/index.mjs", import.meta.url))
117
249
  };
118
- const runMain = () => runMain$1(main);
250
+ async function runMain() {
251
+ await initCompletions(main);
252
+ return runMain$1(main);
253
+ }
119
254
  async function runCommand(name$1, argv = process.argv.slice(2), data = {}) {
120
255
  argv.push("--no-clear");
121
256
  if (!(name$1 in commands)) throw new Error(`Invalid command ${name$1}`);
@@ -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.1-20251104-170121-78f27f8";
16
+ var version = "3.31.0-20251104-171713-fd1747f";
17
17
 
18
18
  //#endregion
19
19
  //#region ../nuxi/src/commands/info.ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/cli-nightly",
3
3
  "type": "module",
4
- "version": "3.30.1-20251104-170129-78f27f8",
4
+ "version": "3.31.0-20251104-171725-fd1747f",
5
5
  "description": "Nuxt CLI",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -33,6 +33,7 @@
33
33
  "prepack": "tsdown"
34
34
  },
35
35
  "dependencies": {
36
+ "@bomb.sh/tab": "^0.0.9",
36
37
  "@clack/prompts": "^1.0.0-alpha.6",
37
38
  "c12": "^3.3.1",
38
39
  "citty": "^0.1.6",