@nuxt/cli-nightly 3.26.0-20250701-120115-29d45b3 → 3.26.0-20250701-133609-99b4136
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 +2 -2
- package/dist/chunks/dev.mjs +14 -7
- package/dist/chunks/devtools.mjs +1 -1
- package/dist/chunks/generate.mjs +1 -1
- package/dist/chunks/index.mjs +75 -13
- 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 +11 -7
- package/dist/dev/index.d.ts +11 -7
- package/dist/dev/index.mjs +1 -0
- package/dist/index.mjs +1 -1
- package/dist/shared/{cli-nightly.DhbSxUXU.mjs → cli-nightly.BBa5DrL9.mjs} +1 -1
- package/dist/shared/{cli-nightly.ssnpOeq9.mjs → cli-nightly.CNen0afL.mjs} +1 -1
- package/dist/shared/{cli-nightly.CzZMZHcE.mjs → cli-nightly.D6YrTxAn.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.D6YrTxAn.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.BBa5DrL9.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.CNen0afL.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.qKvs7FJ2.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.BBa5DrL9.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.qKvs7FJ2.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.BBa5DrL9.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.qKvs7FJ2.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.BBa5DrL9.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.qKvs7FJ2.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.BBa5DrL9.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.BBa5DrL9.mjs';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'consola';
|
|
8
8
|
import '../shared/cli-nightly.B9AmABr3.mjs';
|
|
@@ -30,7 +30,7 @@ const devChild = defineCommand({
|
|
|
30
30
|
console.warn("`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.");
|
|
31
31
|
}
|
|
32
32
|
const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
|
|
33
|
-
const { initialize } = await import('./index.mjs').then(function (n) { return n.
|
|
33
|
+
const { initialize } = await import('./index.mjs').then(function (n) { return n.b; });
|
|
34
34
|
await initialize({ cwd, args: ctx.args }, ctx);
|
|
35
35
|
}
|
|
36
36
|
});
|
package/dist/chunks/dev.mjs
CHANGED
|
@@ -7,12 +7,12 @@ import { getArgs, parseArgs } from 'listhen/cli';
|
|
|
7
7
|
import { resolve } from 'pathe';
|
|
8
8
|
import { satisfies } from 'semver';
|
|
9
9
|
import { isTest, isBun } from 'std-env';
|
|
10
|
-
import { i as initialize, r as renderError } from './index.mjs';
|
|
10
|
+
import { i as initialize, r as renderError, a as isSocketURL, p as parseSocketURL } from './index.mjs';
|
|
11
11
|
import { s as showVersions } from '../shared/cli-nightly.DltNmcvh.mjs';
|
|
12
12
|
import { o as overrideEnv } from '../shared/cli-nightly.DkO5RR_e.mjs';
|
|
13
13
|
import { l as loadKit } from '../shared/cli-nightly.qKvs7FJ2.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.BBa5DrL9.mjs';
|
|
16
16
|
import 'defu';
|
|
17
17
|
import 'node:events';
|
|
18
18
|
import 'node:fs';
|
|
@@ -24,6 +24,7 @@ import '../shared/cli-nightly.DPmMxQ6h.mjs';
|
|
|
24
24
|
import '../shared/cli-nightly.Bu_9IHj2.mjs';
|
|
25
25
|
import 'ohash';
|
|
26
26
|
import 'youch';
|
|
27
|
+
import 'node:http';
|
|
27
28
|
import 'consola/utils';
|
|
28
29
|
import 'exsolve';
|
|
29
30
|
import 'node:url';
|
|
@@ -125,6 +126,7 @@ const command = defineCommand({
|
|
|
125
126
|
};
|
|
126
127
|
}
|
|
127
128
|
const devProxy = await createDevProxy(nuxtOptions, listenOptions);
|
|
129
|
+
const useSocket = nuxtOptions._majorVersion === 4 || !!process.env.NUXT_SOCKET;
|
|
128
130
|
const urls = await devProxy.listener.getURLs();
|
|
129
131
|
const { onRestart, onReady, close } = await initialize({
|
|
130
132
|
cwd,
|
|
@@ -137,13 +139,15 @@ const command = defineCommand({
|
|
|
137
139
|
urls,
|
|
138
140
|
https: devProxy.listener.https
|
|
139
141
|
}
|
|
140
|
-
|
|
142
|
+
// if running with nuxt v4 or `NUXT_SOCKET=1`, we use the socket listener
|
|
143
|
+
// otherwise pass 'true' to listen on a random port instead
|
|
144
|
+
}, {}, useSocket ? void 0 : true);
|
|
141
145
|
onReady((address) => devProxy.setAddress(address));
|
|
142
146
|
const fork2 = startSubprocess(cwd, ctx.args, ctx.rawArgs, listenOptions);
|
|
143
147
|
onRestart(async (devServer) => {
|
|
144
148
|
await devServer.close();
|
|
145
149
|
const subprocess = await fork2;
|
|
146
|
-
await subprocess.initialize(devProxy);
|
|
150
|
+
await subprocess.initialize(devProxy, useSocket);
|
|
147
151
|
});
|
|
148
152
|
return {
|
|
149
153
|
listener: devProxy.listener,
|
|
@@ -191,14 +195,16 @@ async function createDevProxy(nuxtOptions, listenOptions) {
|
|
|
191
195
|
}
|
|
192
196
|
return resolveLoadingMessage();
|
|
193
197
|
}
|
|
194
|
-
|
|
198
|
+
const target = isSocketURL(address) ? parseSocketURL(address) : address;
|
|
199
|
+
proxy.web(req, res, { target });
|
|
195
200
|
}, listenOptions);
|
|
196
201
|
listener.server.on("upgrade", (req, socket, head) => {
|
|
197
202
|
if (!address) {
|
|
198
203
|
socket.destroy();
|
|
199
204
|
return;
|
|
200
205
|
}
|
|
201
|
-
|
|
206
|
+
const target = isSocketURL(address) ? parseSocketURL(address) : address;
|
|
207
|
+
return proxy.ws(req, socket, { target }, head);
|
|
202
208
|
});
|
|
203
209
|
return {
|
|
204
210
|
listener,
|
|
@@ -226,12 +232,13 @@ async function startSubprocess(cwd, args, rawArgs, listenOptions) {
|
|
|
226
232
|
childProc = void 0;
|
|
227
233
|
}
|
|
228
234
|
};
|
|
229
|
-
async function initialize2(proxy) {
|
|
235
|
+
async function initialize2(proxy, socket) {
|
|
230
236
|
devProxy = proxy;
|
|
231
237
|
const urls = await devProxy.listener.getURLs();
|
|
232
238
|
await ready;
|
|
233
239
|
childProc.send({
|
|
234
240
|
type: "nuxt:internal:dev:context",
|
|
241
|
+
socket,
|
|
235
242
|
context: {
|
|
236
243
|
cwd,
|
|
237
244
|
args,
|
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.BBa5DrL9.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.BBa5DrL9.mjs';
|
|
3
3
|
import buildCommand from './build.mjs';
|
|
4
4
|
import 'node:path';
|
|
5
5
|
import 'node:process';
|
package/dist/chunks/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import defu from 'defu';
|
|
3
3
|
import EventEmitter from 'node:events';
|
|
4
|
-
import { watch } from 'node:fs';
|
|
4
|
+
import { existsSync, unlinkSync, watch } from 'node:fs';
|
|
5
5
|
import { mkdir } from 'node:fs/promises';
|
|
6
6
|
import { toNodeListener } from 'h3';
|
|
7
7
|
import { listen } from 'listhen';
|
|
@@ -13,6 +13,7 @@ import { a as clearBuildDir } from '../shared/cli-nightly.DPmMxQ6h.mjs';
|
|
|
13
13
|
import { l as loadKit } from '../shared/cli-nightly.qKvs7FJ2.mjs';
|
|
14
14
|
import { l as loadNuxtManifest, r as resolveNuxtManifest, w as writeNuxtManifest } from '../shared/cli-nightly.Bu_9IHj2.mjs';
|
|
15
15
|
import { Youch } from 'youch';
|
|
16
|
+
import { Server } from 'node:http';
|
|
16
17
|
|
|
17
18
|
async function renderError(req, res, error) {
|
|
18
19
|
const youch = new Youch();
|
|
@@ -28,16 +29,77 @@ async function renderError(req, res, error) {
|
|
|
28
29
|
res.end(html);
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
function generateSocketPath(prefix) {
|
|
33
|
+
const timestamp = Date.now();
|
|
34
|
+
const random = Math.random().toString(36).slice(2, 8);
|
|
35
|
+
if (process.platform === "win32") {
|
|
36
|
+
return `\\\\.\\pipe\\nuxt-${prefix}-${timestamp}-${random}`;
|
|
37
|
+
}
|
|
38
|
+
return `/tmp/nuxt-${prefix}-${timestamp}-${random}.sock`;
|
|
39
|
+
}
|
|
40
|
+
function formatSocketURL(socketPath, ssl = false) {
|
|
41
|
+
const protocol = ssl ? "https" : "http";
|
|
42
|
+
if (process.platform === "win32") {
|
|
43
|
+
const encodedPath = encodeURIComponent(socketPath);
|
|
44
|
+
return `${protocol}+unix://${encodedPath}`;
|
|
45
|
+
}
|
|
46
|
+
return `${protocol}+unix://${socketPath.replace(/\//g, "%2F")}`;
|
|
47
|
+
}
|
|
48
|
+
function isSocketURL(url) {
|
|
49
|
+
return url.startsWith("http+unix://") || url.startsWith("https+unix://");
|
|
50
|
+
}
|
|
51
|
+
function parseSocketURL(url) {
|
|
52
|
+
if (!isSocketURL(url)) {
|
|
53
|
+
throw new Error(`Invalid socket URL: ${url}`);
|
|
54
|
+
}
|
|
55
|
+
const ssl = url.startsWith("https+unix://");
|
|
56
|
+
const path = url.slice(ssl ? "https+unix://".length : "http+unix://".length);
|
|
57
|
+
const socketPath = decodeURIComponent(path.replace(/%2F/g, "/"));
|
|
58
|
+
return { socketPath, protocol: ssl ? "https" : "http" };
|
|
59
|
+
}
|
|
60
|
+
async function createSocketListener(handler, ssl = false) {
|
|
61
|
+
const socketPath = generateSocketPath("nuxt-dev");
|
|
62
|
+
const server = new Server(handler);
|
|
63
|
+
if (process.platform !== "win32" && existsSync(socketPath)) {
|
|
64
|
+
try {
|
|
65
|
+
unlinkSync(socketPath);
|
|
66
|
+
} catch {
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
await new Promise((resolve) => server.listen({ path: socketPath }, resolve));
|
|
70
|
+
const url = formatSocketURL(socketPath, ssl);
|
|
71
|
+
return {
|
|
72
|
+
url,
|
|
73
|
+
address: {
|
|
74
|
+
socketPath,
|
|
75
|
+
address: "localhost",
|
|
76
|
+
port: 3e3
|
|
77
|
+
},
|
|
78
|
+
async close() {
|
|
79
|
+
try {
|
|
80
|
+
server.removeAllListeners();
|
|
81
|
+
await new Promise((resolve, reject) => server.close((err) => err ? reject(err) : resolve()));
|
|
82
|
+
} finally {
|
|
83
|
+
if (process.platform !== "win32") {
|
|
84
|
+
try {
|
|
85
|
+
unlinkSync(socketPath);
|
|
86
|
+
} catch {
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
getURLs: async () => [{ url, type: "network" }],
|
|
92
|
+
https: false,
|
|
93
|
+
server
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
31
97
|
async function createNuxtDevServer(options, listenOptions) {
|
|
32
98
|
const devServer = new NuxtDevServer(options);
|
|
33
|
-
devServer.listener = await listen(
|
|
34
|
-
|
|
35
|
-
listenOptions
|
|
36
|
-
|
|
37
|
-
hostname: "127.0.0.1",
|
|
38
|
-
showURL: false
|
|
39
|
-
}
|
|
40
|
-
);
|
|
99
|
+
devServer.listener = listenOptions ? await listen(devServer.handler, typeof listenOptions === "object" ? listenOptions : { port: options.port ?? 0, hostname: "127.0.0.1", showURL: false }) : await createSocketListener(devServer.handler);
|
|
100
|
+
if (process.env.DEBUG) {
|
|
101
|
+
console.debug(`Using ${listenOptions ? "network" : "socket"} listener for Nuxt dev server.`);
|
|
102
|
+
}
|
|
41
103
|
devServer.listener._url = devServer.listener.url;
|
|
42
104
|
if (options.devContext.proxy?.url) {
|
|
43
105
|
devServer.listener.url = options.devContext.proxy.url;
|
|
@@ -214,7 +276,7 @@ class NuxtDevServer extends EventEmitter {
|
|
|
214
276
|
const addr = this.listener.address;
|
|
215
277
|
this._currentNuxt.options.devServer.host = addr.address;
|
|
216
278
|
this._currentNuxt.options.devServer.port = addr.port;
|
|
217
|
-
this._currentNuxt.options.devServer.url = getAddressURL(addr, !!this.listener.https);
|
|
279
|
+
this._currentNuxt.options.devServer.url = "socketPath" in addr ? this.options.devContext.proxy?.url || getAddressURL(addr, !!this.listener.https) : getAddressURL(addr, !!this.listener.https);
|
|
218
280
|
this._currentNuxt.options.devServer.https = this.options.devContext.proxy?.https;
|
|
219
281
|
if (this.listener.https && !process.env.NODE_TLS_REJECT_UNAUTHORIZED) {
|
|
220
282
|
console.warn("You might need `NODE_TLS_REJECT_UNAUTHORIZED=0` environment variable to make https work.");
|
|
@@ -233,7 +295,7 @@ class NuxtDevServer extends EventEmitter {
|
|
|
233
295
|
this.loadDebounced(true, ".nuxt/dist directory has been removed");
|
|
234
296
|
});
|
|
235
297
|
this._handler = toNodeListener(this._currentNuxt.server.app);
|
|
236
|
-
this.emit("ready", `http://127.0.0.1:${addr.port}`);
|
|
298
|
+
this.emit("ready", "socketPath" in addr ? formatSocketURL(addr.socketPath, !!this.listener.https) : `http://127.0.0.1:${addr.port}`);
|
|
237
299
|
}
|
|
238
300
|
async _watchConfig() {
|
|
239
301
|
this._configWatcher = watch(this.options.cwd, { recursive: true });
|
|
@@ -289,7 +351,7 @@ class IPC {
|
|
|
289
351
|
});
|
|
290
352
|
process.on("message", (message) => {
|
|
291
353
|
if (message.type === "nuxt:internal:dev:context") {
|
|
292
|
-
initialize(message.context);
|
|
354
|
+
initialize(message.context, {}, message.socket ? void 0 : true);
|
|
293
355
|
}
|
|
294
356
|
});
|
|
295
357
|
this.send({ type: "nuxt:internal:dev:fork-ready" });
|
|
@@ -372,4 +434,4 @@ const index = {
|
|
|
372
434
|
initialize: initialize
|
|
373
435
|
};
|
|
374
436
|
|
|
375
|
-
export {
|
|
437
|
+
export { isSocketURL as a, index as b, initialize as i, parseSocketURL as p, renderError as r };
|
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.CNen0afL.mjs';
|
|
12
12
|
import { t as tryResolveNuxt } from '../shared/cli-nightly.qKvs7FJ2.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.BBa5DrL9.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.D6YrTxAn.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.BBa5DrL9.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.CNen0afL.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.qKvs7FJ2.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.BBa5DrL9.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.qKvs7FJ2.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.BBa5DrL9.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.BBa5DrL9.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.BBa5DrL9.mjs';
|
|
6
6
|
import 'consola';
|
|
7
7
|
import 'node:path';
|
|
8
8
|
import 'std-env';
|
|
@@ -6,7 +6,7 @@ import { readTSConfig } from 'pkg-types';
|
|
|
6
6
|
import { isBun } from 'std-env';
|
|
7
7
|
import { x } from 'tinyexec';
|
|
8
8
|
import { l as loadKit } from '../shared/cli-nightly.qKvs7FJ2.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.BBa5DrL9.mjs';
|
|
10
10
|
import 'node:url';
|
|
11
11
|
import 'node:path';
|
|
12
12
|
import 'consola';
|
package/dist/chunks/upgrade.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { l as loadKit } from '../shared/cli-nightly.qKvs7FJ2.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.BBa5DrL9.mjs';
|
|
13
13
|
import 'node:url';
|
|
14
14
|
import 'exsolve';
|
|
15
15
|
import 'consola';
|
package/dist/dev/index.d.mts
CHANGED
|
@@ -57,9 +57,11 @@ declare class NuxtDevServer extends EventEmitter<DevServerEventMap> {
|
|
|
57
57
|
handler: RequestListener;
|
|
58
58
|
listener: Pick<Listener, 'server' | 'getURLs' | 'https' | 'url' | 'close'> & {
|
|
59
59
|
_url?: string;
|
|
60
|
-
address:
|
|
61
|
-
socketPath
|
|
62
|
-
|
|
60
|
+
address: {
|
|
61
|
+
socketPath: string;
|
|
62
|
+
port: number;
|
|
63
|
+
address: string;
|
|
64
|
+
} | AddressInfo;
|
|
63
65
|
};
|
|
64
66
|
constructor(options: NuxtDevServerOptions);
|
|
65
67
|
_renderError(req: IncomingMessage, res: ServerResponse): void;
|
|
@@ -79,12 +81,14 @@ interface InitializeOptions {
|
|
|
79
81
|
overrides?: NuxtConfig;
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
|
-
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: Partial<ListenOptions>): Promise<{
|
|
84
|
+
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: true | Partial<ListenOptions>): Promise<{
|
|
83
85
|
listener: Pick<listhen.Listener, "server" | "getURLs" | "https" | "url" | "close"> & {
|
|
84
86
|
_url?: string;
|
|
85
|
-
address:
|
|
86
|
-
socketPath
|
|
87
|
-
|
|
87
|
+
address: {
|
|
88
|
+
socketPath: string;
|
|
89
|
+
port: number;
|
|
90
|
+
address: string;
|
|
91
|
+
} | net.AddressInfo;
|
|
88
92
|
};
|
|
89
93
|
close: () => Promise<void>;
|
|
90
94
|
onReady: (callback: (address: string) => void) => void;
|
package/dist/dev/index.d.ts
CHANGED
|
@@ -57,9 +57,11 @@ declare class NuxtDevServer extends EventEmitter<DevServerEventMap> {
|
|
|
57
57
|
handler: RequestListener;
|
|
58
58
|
listener: Pick<Listener, 'server' | 'getURLs' | 'https' | 'url' | 'close'> & {
|
|
59
59
|
_url?: string;
|
|
60
|
-
address:
|
|
61
|
-
socketPath
|
|
62
|
-
|
|
60
|
+
address: {
|
|
61
|
+
socketPath: string;
|
|
62
|
+
port: number;
|
|
63
|
+
address: string;
|
|
64
|
+
} | AddressInfo;
|
|
63
65
|
};
|
|
64
66
|
constructor(options: NuxtDevServerOptions);
|
|
65
67
|
_renderError(req: IncomingMessage, res: ServerResponse): void;
|
|
@@ -79,12 +81,14 @@ interface InitializeOptions {
|
|
|
79
81
|
overrides?: NuxtConfig;
|
|
80
82
|
};
|
|
81
83
|
}
|
|
82
|
-
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: Partial<ListenOptions>): Promise<{
|
|
84
|
+
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: true | Partial<ListenOptions>): Promise<{
|
|
83
85
|
listener: Pick<listhen.Listener, "server" | "getURLs" | "https" | "url" | "close"> & {
|
|
84
86
|
_url?: string;
|
|
85
|
-
address:
|
|
86
|
-
socketPath
|
|
87
|
-
|
|
87
|
+
address: {
|
|
88
|
+
socketPath: string;
|
|
89
|
+
port: number;
|
|
90
|
+
address: string;
|
|
91
|
+
} | net.AddressInfo;
|
|
88
92
|
};
|
|
89
93
|
close: () => Promise<void>;
|
|
90
94
|
onReady: (callback: (address: string) => void) => void;
|
package/dist/dev/index.mjs
CHANGED
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-20250701-
|
|
124
|
+
const version = "3.26.0-20250701-133609-99b4136";
|
|
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.BBa5DrL9.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.CNen0afL.mjs';
|
|
9
9
|
import { l as logger } from './cli-nightly.B9AmABr3.mjs';
|
|
10
10
|
|
|
11
11
|
if (!globalThis.crypto) {
|