@nuxt/cli-nightly 3.26.0-20250611-110752-7f580c3 → 3.26.0-20250614-131604-f2e098a
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/chunks/add.mjs +3 -3
- package/dist/chunks/add2.mjs +1 -1
- package/dist/chunks/analyze.mjs +1 -1
- package/dist/chunks/build.mjs +1 -1
- package/dist/chunks/cleanup.mjs +1 -1
- package/dist/chunks/dev-child.mjs +1 -1
- package/dist/chunks/dev.mjs +3 -3
- package/dist/chunks/devtools.mjs +1 -1
- package/dist/chunks/generate.mjs +1 -1
- package/dist/chunks/index.mjs +8 -8
- package/dist/chunks/info.mjs +2 -2
- package/dist/chunks/init.mjs +3 -3
- package/dist/chunks/prepare.mjs +1 -1
- package/dist/chunks/preview.mjs +1 -1
- package/dist/chunks/search.mjs +1 -1
- package/dist/chunks/test.mjs +1 -1
- package/dist/chunks/typecheck.mjs +1 -1
- package/dist/chunks/upgrade.mjs +1 -1
- package/dist/dev/index.d.mts +22 -4
- package/dist/dev/index.d.ts +22 -4
- package/dist/index.mjs +1 -1
- package/dist/shared/{cli-nightly.CxmiFAaT.mjs → cli-nightly.BYEnVJsb.mjs} +1 -1
- package/dist/shared/{cli-nightly.C32yb6Wx.mjs → cli-nightly.CVJ2nMht.mjs} +1 -1
- package/dist/shared/{cli-nightly.DoWvXCAy.mjs → cli-nightly.CdZRrYq7.mjs} +2 -2
- package/package.json +1 -1
package/dist/chunks/add.mjs
CHANGED
|
@@ -11,14 +11,14 @@ import { resolve } from 'pathe';
|
|
|
11
11
|
import { readPackageJSON } from 'pkg-types';
|
|
12
12
|
import { satisfies } from 'semver';
|
|
13
13
|
import { joinURL } from 'ufo';
|
|
14
|
-
import { r as runCommand } from '../shared/cli-nightly.
|
|
14
|
+
import { r as runCommand } from '../shared/cli-nightly.CdZRrYq7.mjs';
|
|
15
15
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
16
|
-
import { a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
16
|
+
import { a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
17
17
|
import { f as fetchModules, g as getNuxtVersion, c as checkNuxtCompatibility, a as getRegistryFromContent } from '../shared/cli-nightly.jA1DRKbi.mjs';
|
|
18
18
|
import 'node:url';
|
|
19
19
|
import 'node:crypto';
|
|
20
20
|
import 'std-env';
|
|
21
|
-
import '../shared/cli-nightly.
|
|
21
|
+
import '../shared/cli-nightly.BYEnVJsb.mjs';
|
|
22
22
|
import 'consola';
|
|
23
23
|
import 'confbox';
|
|
24
24
|
|
package/dist/chunks/add2.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { resolve, extname, dirname } from 'pathe';
|
|
|
5
5
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
6
6
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
7
7
|
import { pascalCase, camelCase } from 'scule';
|
|
8
|
-
import { a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
8
|
+
import { a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import 'exsolve';
|
|
11
11
|
import 'consola';
|
package/dist/chunks/analyze.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { o as overrideEnv } from '../shared/cli-nightly.DkO5RR_e.mjs';
|
|
|
9
9
|
import { c as clearDir } from '../shared/cli-nightly.DPmMxQ6h.mjs';
|
|
10
10
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
11
11
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
12
|
-
import { d as dotEnvArgs, l as legacyRootDirArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
12
|
+
import { d as dotEnvArgs, l as legacyRootDirArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
13
13
|
import 'node:url';
|
|
14
14
|
import 'exsolve';
|
|
15
15
|
import 'consola';
|
package/dist/chunks/build.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { o as overrideEnv } from '../shared/cli-nightly.DkO5RR_e.mjs';
|
|
|
6
6
|
import { a as clearBuildDir } from '../shared/cli-nightly.DPmMxQ6h.mjs';
|
|
7
7
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
8
8
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
9
|
-
import { l as legacyRootDirArgs, e as envNameArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
9
|
+
import { l as legacyRootDirArgs, e as envNameArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
10
10
|
import 'node:fs';
|
|
11
11
|
import 'consola/utils';
|
|
12
12
|
import 'exsolve';
|
package/dist/chunks/cleanup.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { defineCommand } from 'citty';
|
|
|
2
2
|
import { resolve } from 'pathe';
|
|
3
3
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
4
4
|
import { c as cleanupNuxtDirs } from '../shared/cli-nightly.Bu_9IHj2.mjs';
|
|
5
|
-
import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
5
|
+
import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
import 'exsolve';
|
|
8
8
|
import 'node:fs';
|
|
@@ -2,7 +2,7 @@ import process from 'node:process';
|
|
|
2
2
|
import { defineCommand } from 'citty';
|
|
3
3
|
import { resolve } from 'pathe';
|
|
4
4
|
import { isTest } from 'std-env';
|
|
5
|
-
import { l as legacyRootDirArgs, d as dotEnvArgs, e as envNameArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
5
|
+
import { l as legacyRootDirArgs, d as dotEnvArgs, e as envNameArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'consola';
|
|
8
8
|
import '../shared/cli-nightly.B9AmABr3.mjs';
|
package/dist/chunks/dev.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { s as showVersions } from '../shared/cli-nightly.Dc8ncNQ_.mjs';
|
|
|
12
12
|
import { o as overrideEnv } from '../shared/cli-nightly.DkO5RR_e.mjs';
|
|
13
13
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
14
14
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
15
|
-
import { e as envNameArgs, l as legacyRootDirArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
15
|
+
import { e as envNameArgs, l as legacyRootDirArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
16
16
|
import 'defu';
|
|
17
17
|
import 'node:events';
|
|
18
18
|
import 'chokidar';
|
|
@@ -138,7 +138,7 @@ const command = defineCommand({
|
|
|
138
138
|
https: devProxy.listener.https
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
onReady((
|
|
141
|
+
onReady((address) => devProxy.setAddress(address));
|
|
142
142
|
const fork2 = startSubprocess(cwd, ctx.args, ctx.rawArgs, listenOptions);
|
|
143
143
|
onRestart(async (devServer) => {
|
|
144
144
|
await devServer.close();
|
|
@@ -271,7 +271,7 @@ async function startSubprocess(cwd, args, rawArgs, listenOptions) {
|
|
|
271
271
|
if (message.type === "nuxt:internal:dev:fork-ready") {
|
|
272
272
|
resolve2();
|
|
273
273
|
} else if (message.type === "nuxt:internal:dev:ready") {
|
|
274
|
-
devProxy.setAddress(
|
|
274
|
+
devProxy.setAddress(message.address);
|
|
275
275
|
if (startTime) {
|
|
276
276
|
logger.debug(`Dev server ready for connections in ${Date.now() - startTime}ms`);
|
|
277
277
|
}
|
package/dist/chunks/devtools.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { defineCommand } from 'citty';
|
|
|
3
3
|
import { resolve } from 'pathe';
|
|
4
4
|
import { x } from 'tinyexec';
|
|
5
5
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
6
|
-
import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
6
|
+
import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
7
7
|
import 'consola';
|
|
8
8
|
import 'node:path';
|
|
9
9
|
import 'std-env';
|
package/dist/chunks/generate.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineCommand } from 'citty';
|
|
2
|
-
import { l as legacyRootDirArgs, e as envNameArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
2
|
+
import { l as legacyRootDirArgs, e as envNameArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
3
3
|
import buildCommand from './build.mjs';
|
|
4
4
|
import 'node:path';
|
|
5
5
|
import 'node:process';
|
package/dist/chunks/index.mjs
CHANGED
|
@@ -233,7 +233,7 @@ class NuxtDevServer extends EventEmitter {
|
|
|
233
233
|
this.loadDebounced(true, ".nuxt/dist directory has been removed");
|
|
234
234
|
});
|
|
235
235
|
this._handler = toNodeListener(this._currentNuxt.server.app);
|
|
236
|
-
this.emit("ready", addr);
|
|
236
|
+
this.emit("ready", `http://127.0.0.1:${addr.port}`);
|
|
237
237
|
}
|
|
238
238
|
async _watchConfig() {
|
|
239
239
|
const configWatcher = chokidar.watch([this.options.cwd, join(this.options.cwd, ".config")], {
|
|
@@ -327,7 +327,7 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
327
327
|
port: process.env._PORT ?? void 0,
|
|
328
328
|
devContext
|
|
329
329
|
}, listenOptions);
|
|
330
|
-
let
|
|
330
|
+
let address;
|
|
331
331
|
if (ipc.enabled) {
|
|
332
332
|
devServer.on("loading:error", (_error) => {
|
|
333
333
|
ipc.send({
|
|
@@ -336,7 +336,7 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
336
336
|
message: _error.message,
|
|
337
337
|
stack: _error.stack,
|
|
338
338
|
name: _error.name,
|
|
339
|
-
code: _error.code
|
|
339
|
+
code: "code" in _error ? _error.code : void 0
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
342
|
});
|
|
@@ -347,11 +347,11 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
347
347
|
ipc.send({ type: "nuxt:internal:dev:restart" });
|
|
348
348
|
});
|
|
349
349
|
devServer.on("ready", (payload) => {
|
|
350
|
-
ipc.send({ type: "nuxt:internal:dev:ready",
|
|
350
|
+
ipc.send({ type: "nuxt:internal:dev:ready", address: payload });
|
|
351
351
|
});
|
|
352
352
|
} else {
|
|
353
353
|
devServer.on("ready", (payload) => {
|
|
354
|
-
|
|
354
|
+
address = payload;
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
357
|
await devServer.init();
|
|
@@ -362,10 +362,10 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
362
362
|
listener: devServer.listener,
|
|
363
363
|
close: () => devServer.close(),
|
|
364
364
|
onReady: (callback) => {
|
|
365
|
-
if (
|
|
366
|
-
callback(
|
|
365
|
+
if (address) {
|
|
366
|
+
callback(address);
|
|
367
367
|
} else {
|
|
368
|
-
devServer.once("ready", (payload) => callback(payload
|
|
368
|
+
devServer.once("ready", (payload) => callback(payload));
|
|
369
369
|
}
|
|
370
370
|
},
|
|
371
371
|
onRestart: (callback) => {
|
package/dist/chunks/info.mjs
CHANGED
|
@@ -8,11 +8,11 @@ import { resolve } from 'pathe';
|
|
|
8
8
|
import { readPackageJSON } from 'pkg-types';
|
|
9
9
|
import { splitByCase } from 'scule';
|
|
10
10
|
import { isMinimal } from 'std-env';
|
|
11
|
-
import { v as version } from '../shared/cli-nightly.
|
|
11
|
+
import { v as version } from '../shared/cli-nightly.BYEnVJsb.mjs';
|
|
12
12
|
import { t as tryResolveNuxt } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
13
13
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
14
14
|
import { g as getPackageManagerVersion } from '../shared/cli-nightly.BSm0_9Hr.mjs';
|
|
15
|
-
import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
15
|
+
import { l as legacyRootDirArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
16
16
|
import 'node:url';
|
|
17
17
|
import 'exsolve';
|
|
18
18
|
import 'consola';
|
package/dist/chunks/init.mjs
CHANGED
|
@@ -8,13 +8,13 @@ import { $fetch } from 'ofetch';
|
|
|
8
8
|
import { resolve, relative, join } from 'pathe';
|
|
9
9
|
import { hasTTY } from 'std-env';
|
|
10
10
|
import { x } from 'tinyexec';
|
|
11
|
-
import { r as runCommand } from '../shared/cli-nightly.
|
|
11
|
+
import { r as runCommand } from '../shared/cli-nightly.CdZRrYq7.mjs';
|
|
12
12
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
13
|
-
import { a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
13
|
+
import { a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
14
14
|
import 'node:url';
|
|
15
15
|
import 'node:crypto';
|
|
16
16
|
import 'node:path';
|
|
17
|
-
import '../shared/cli-nightly.
|
|
17
|
+
import '../shared/cli-nightly.BYEnVJsb.mjs';
|
|
18
18
|
import 'consola';
|
|
19
19
|
|
|
20
20
|
const themeColor = "\x1B[38;2;0;220;130m";
|
package/dist/chunks/prepare.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { resolve, relative } from 'pathe';
|
|
|
4
4
|
import { a as clearBuildDir } from '../shared/cli-nightly.DPmMxQ6h.mjs';
|
|
5
5
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
6
6
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
7
|
-
import { l as legacyRootDirArgs, e as envNameArgs, a as logLevelArgs, c as cwdArgs, d as dotEnvArgs } from '../shared/cli-nightly.
|
|
7
|
+
import { l as legacyRootDirArgs, e as envNameArgs, a as logLevelArgs, c as cwdArgs, d as dotEnvArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
8
8
|
import 'node:fs';
|
|
9
9
|
import 'node:url';
|
|
10
10
|
import 'exsolve';
|
package/dist/chunks/preview.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { resolve } from 'pathe';
|
|
|
9
9
|
import { x } from 'tinyexec';
|
|
10
10
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
11
11
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
12
|
-
import { d as dotEnvArgs, l as legacyRootDirArgs, e as envNameArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
12
|
+
import { d as dotEnvArgs, l as legacyRootDirArgs, e as envNameArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
13
13
|
import 'node:url';
|
|
14
14
|
import 'exsolve';
|
|
15
15
|
import 'consola';
|
package/dist/chunks/search.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { colors } from 'consola/utils';
|
|
|
3
3
|
import Fuse from 'fuse.js';
|
|
4
4
|
import { upperFirst, kebabCase } from 'scule';
|
|
5
5
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
6
|
-
import { c as cwdArgs } from '../shared/cli-nightly.
|
|
6
|
+
import { c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
7
7
|
import { g as getNuxtVersion, f as fetchModules, c as checkNuxtCompatibility } from '../shared/cli-nightly.jA1DRKbi.mjs';
|
|
8
8
|
import 'consola';
|
|
9
9
|
import 'node:path';
|
package/dist/chunks/test.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import process from 'node:process';
|
|
|
2
2
|
import { defineCommand } from 'citty';
|
|
3
3
|
import { resolve } from 'pathe';
|
|
4
4
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
5
|
-
import { l as legacyRootDirArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
5
|
+
import { l as legacyRootDirArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
6
6
|
import 'consola';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'std-env';
|
|
@@ -6,7 +6,7 @@ import { resolve } from 'pathe';
|
|
|
6
6
|
import { isBun } from 'std-env';
|
|
7
7
|
import { x } from 'tinyexec';
|
|
8
8
|
import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
9
|
-
import { l as legacyRootDirArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
9
|
+
import { l as legacyRootDirArgs, d as dotEnvArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
10
10
|
import 'node:path';
|
|
11
11
|
import 'consola';
|
|
12
12
|
import '../shared/cli-nightly.B9AmABr3.mjs';
|
package/dist/chunks/upgrade.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { l as loadKit } from '../shared/cli-nightly.BrKZotr9.mjs';
|
|
|
9
9
|
import { l as logger } from '../shared/cli-nightly.B9AmABr3.mjs';
|
|
10
10
|
import { c as cleanupNuxtDirs, n as nuxtVersionToGitIdentifier } from '../shared/cli-nightly.Bu_9IHj2.mjs';
|
|
11
11
|
import { g as getPackageManagerVersion } from '../shared/cli-nightly.BSm0_9Hr.mjs';
|
|
12
|
-
import { l as legacyRootDirArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.
|
|
12
|
+
import { l as legacyRootDirArgs, a as logLevelArgs, c as cwdArgs } from '../shared/cli-nightly.CVJ2nMht.mjs';
|
|
13
13
|
import 'node:url';
|
|
14
14
|
import 'exsolve';
|
|
15
15
|
import 'consola';
|
package/dist/dev/index.d.mts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import * as net from 'net';
|
|
1
2
|
import * as listhen from 'listhen';
|
|
2
3
|
import { ListenURL, HTTPSOptions, Listener, ListenOptions } from 'listhen';
|
|
3
4
|
import { NuxtConfig } from '@nuxt/schema';
|
|
4
5
|
import { DotenvOptions } from 'c12';
|
|
5
6
|
import { RequestListener, IncomingMessage, ServerResponse } from 'node:http';
|
|
7
|
+
import { AddressInfo } from 'node:net';
|
|
6
8
|
import EventEmitter from 'node:events';
|
|
7
9
|
|
|
8
10
|
interface NuxtDevContext {
|
|
@@ -36,7 +38,13 @@ interface NuxtDevServerOptions {
|
|
|
36
38
|
}) => string;
|
|
37
39
|
devContext: NuxtDevContext;
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
interface DevServerEventMap {
|
|
42
|
+
'loading:error': [error: Error];
|
|
43
|
+
'loading': [loadingMessage: string];
|
|
44
|
+
'ready': [address: string];
|
|
45
|
+
'restart': [];
|
|
46
|
+
}
|
|
47
|
+
declare class NuxtDevServer extends EventEmitter<DevServerEventMap> {
|
|
40
48
|
private options;
|
|
41
49
|
private _handler?;
|
|
42
50
|
private _distWatcher?;
|
|
@@ -46,7 +54,12 @@ declare class NuxtDevServer extends EventEmitter {
|
|
|
46
54
|
private cwd;
|
|
47
55
|
loadDebounced: (reload?: boolean, reason?: string) => void;
|
|
48
56
|
handler: RequestListener;
|
|
49
|
-
listener: Listener
|
|
57
|
+
listener: Pick<Listener, 'server' | 'getURLs' | 'https' | 'url' | 'close'> & {
|
|
58
|
+
_url?: string;
|
|
59
|
+
address: AddressInfo & {
|
|
60
|
+
socketPath?: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
50
63
|
constructor(options: NuxtDevServerOptions);
|
|
51
64
|
_renderError(req: IncomingMessage, res: ServerResponse): void;
|
|
52
65
|
resolveLoadingTemplate(): Promise<(params: {
|
|
@@ -66,9 +79,14 @@ interface InitializeOptions {
|
|
|
66
79
|
};
|
|
67
80
|
}
|
|
68
81
|
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: Partial<ListenOptions>): Promise<{
|
|
69
|
-
listener: listhen.Listener
|
|
82
|
+
listener: Pick<listhen.Listener, "server" | "getURLs" | "https" | "url" | "close"> & {
|
|
83
|
+
_url?: string;
|
|
84
|
+
address: net.AddressInfo & {
|
|
85
|
+
socketPath?: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
70
88
|
close: () => Promise<void>;
|
|
71
|
-
onReady: (callback: (
|
|
89
|
+
onReady: (callback: (address: string) => void) => void;
|
|
72
90
|
onRestart: (callback: (devServer: NuxtDevServer) => void) => void;
|
|
73
91
|
}>;
|
|
74
92
|
|
package/dist/dev/index.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import * as net from 'net';
|
|
1
2
|
import * as listhen from 'listhen';
|
|
2
3
|
import { ListenURL, HTTPSOptions, Listener, ListenOptions } from 'listhen';
|
|
3
4
|
import { NuxtConfig } from '@nuxt/schema';
|
|
4
5
|
import { DotenvOptions } from 'c12';
|
|
5
6
|
import { RequestListener, IncomingMessage, ServerResponse } from 'node:http';
|
|
7
|
+
import { AddressInfo } from 'node:net';
|
|
6
8
|
import EventEmitter from 'node:events';
|
|
7
9
|
|
|
8
10
|
interface NuxtDevContext {
|
|
@@ -36,7 +38,13 @@ interface NuxtDevServerOptions {
|
|
|
36
38
|
}) => string;
|
|
37
39
|
devContext: NuxtDevContext;
|
|
38
40
|
}
|
|
39
|
-
|
|
41
|
+
interface DevServerEventMap {
|
|
42
|
+
'loading:error': [error: Error];
|
|
43
|
+
'loading': [loadingMessage: string];
|
|
44
|
+
'ready': [address: string];
|
|
45
|
+
'restart': [];
|
|
46
|
+
}
|
|
47
|
+
declare class NuxtDevServer extends EventEmitter<DevServerEventMap> {
|
|
40
48
|
private options;
|
|
41
49
|
private _handler?;
|
|
42
50
|
private _distWatcher?;
|
|
@@ -46,7 +54,12 @@ declare class NuxtDevServer extends EventEmitter {
|
|
|
46
54
|
private cwd;
|
|
47
55
|
loadDebounced: (reload?: boolean, reason?: string) => void;
|
|
48
56
|
handler: RequestListener;
|
|
49
|
-
listener: Listener
|
|
57
|
+
listener: Pick<Listener, 'server' | 'getURLs' | 'https' | 'url' | 'close'> & {
|
|
58
|
+
_url?: string;
|
|
59
|
+
address: AddressInfo & {
|
|
60
|
+
socketPath?: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
50
63
|
constructor(options: NuxtDevServerOptions);
|
|
51
64
|
_renderError(req: IncomingMessage, res: ServerResponse): void;
|
|
52
65
|
resolveLoadingTemplate(): Promise<(params: {
|
|
@@ -66,9 +79,14 @@ interface InitializeOptions {
|
|
|
66
79
|
};
|
|
67
80
|
}
|
|
68
81
|
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: Partial<ListenOptions>): Promise<{
|
|
69
|
-
listener: listhen.Listener
|
|
82
|
+
listener: Pick<listhen.Listener, "server" | "getURLs" | "https" | "url" | "close"> & {
|
|
83
|
+
_url?: string;
|
|
84
|
+
address: net.AddressInfo & {
|
|
85
|
+
socketPath?: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
70
88
|
close: () => Promise<void>;
|
|
71
|
-
onReady: (callback: (
|
|
89
|
+
onReady: (callback: (address: string) => void) => void;
|
|
72
90
|
onRestart: (callback: (devServer: NuxtDevServer) => void) => void;
|
|
73
91
|
}>;
|
|
74
92
|
|
package/dist/index.mjs
CHANGED
|
@@ -121,7 +121,7 @@ async function checkEngines() {
|
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
const name = "@nuxt/cli-nightly";
|
|
124
|
-
const version = "3.26.0-
|
|
124
|
+
const version = "3.26.0-20250614-131604-f2e098a";
|
|
125
125
|
const description = "Nuxt CLI";
|
|
126
126
|
|
|
127
127
|
const main = defineCommand({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import { fileURLToPath } from 'node:url';
|
|
3
3
|
import { defineCommand, runCommand as runCommand$1 } from 'citty';
|
|
4
|
-
import { b as commands, c as cwdArgs, s as setupGlobalConsole, f as checkEngines } from './cli-nightly.
|
|
4
|
+
import { b as commands, c as cwdArgs, s as setupGlobalConsole, f as checkEngines } from './cli-nightly.CVJ2nMht.mjs';
|
|
5
5
|
import nodeCrypto from 'node:crypto';
|
|
6
6
|
import { resolve } from 'node:path';
|
|
7
7
|
import { provider } from 'std-env';
|
|
8
|
-
import { d as description, v as version, n as name } from './cli-nightly.
|
|
8
|
+
import { d as description, v as version, n as name } from './cli-nightly.BYEnVJsb.mjs';
|
|
9
9
|
import { l as logger } from './cli-nightly.B9AmABr3.mjs';
|
|
10
10
|
|
|
11
11
|
if (!globalThis.crypto) {
|