@nuxt/cli-nightly 3.26.0-20250611-110752-7f580c3 → 3.26.0-20250614-132951-19ba8b0
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 +4 -5
- package/dist/chunks/devtools.mjs +1 -1
- package/dist/chunks/generate.mjs +1 -1
- package/dist/chunks/index.mjs +17 -27
- 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 +23 -4
- package/dist/dev/index.d.ts +23 -4
- package/dist/dev/index.mjs +1 -2
- package/dist/index.mjs +1 -1
- package/dist/shared/{cli-nightly.C32yb6Wx.mjs → cli-nightly.Brthhq62.mjs} +1 -1
- package/dist/shared/{cli-nightly.CxmiFAaT.mjs → cli-nightly.CGF1nLdA.mjs} +1 -1
- package/dist/shared/{cli-nightly.DoWvXCAy.mjs → cli-nightly.Qae7kWMg.mjs} +2 -2
- package/package.json +1 -2
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.Qae7kWMg.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.Brthhq62.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.CGF1nLdA.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.Brthhq62.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.Brthhq62.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.Brthhq62.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.Brthhq62.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.Brthhq62.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,15 +12,14 @@ 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.Brthhq62.mjs';
|
|
16
16
|
import 'defu';
|
|
17
17
|
import 'node:events';
|
|
18
|
-
import '
|
|
18
|
+
import 'node:fs';
|
|
19
19
|
import 'h3';
|
|
20
20
|
import 'perfect-debounce';
|
|
21
21
|
import 'ufo';
|
|
22
22
|
import '../shared/cli-nightly.DPmMxQ6h.mjs';
|
|
23
|
-
import 'node:fs';
|
|
24
23
|
import '../shared/cli-nightly.Bu_9IHj2.mjs';
|
|
25
24
|
import 'ohash';
|
|
26
25
|
import 'youch';
|
|
@@ -138,7 +137,7 @@ const command = defineCommand({
|
|
|
138
137
|
https: devProxy.listener.https
|
|
139
138
|
}
|
|
140
139
|
});
|
|
141
|
-
onReady((
|
|
140
|
+
onReady((address) => devProxy.setAddress(address));
|
|
142
141
|
const fork2 = startSubprocess(cwd, ctx.args, ctx.rawArgs, listenOptions);
|
|
143
142
|
onRestart(async (devServer) => {
|
|
144
143
|
await devServer.close();
|
|
@@ -271,7 +270,7 @@ async function startSubprocess(cwd, args, rawArgs, listenOptions) {
|
|
|
271
270
|
if (message.type === "nuxt:internal:dev:fork-ready") {
|
|
272
271
|
resolve2();
|
|
273
272
|
} else if (message.type === "nuxt:internal:dev:ready") {
|
|
274
|
-
devProxy.setAddress(
|
|
273
|
+
devProxy.setAddress(message.address);
|
|
275
274
|
if (startTime) {
|
|
276
275
|
logger.debug(`Dev server ready for connections in ${Date.now() - startTime}ms`);
|
|
277
276
|
}
|
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.Brthhq62.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.Brthhq62.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,10 +1,10 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import defu from 'defu';
|
|
3
3
|
import EventEmitter from 'node:events';
|
|
4
|
-
import
|
|
4
|
+
import { watch } from 'node:fs';
|
|
5
5
|
import { toNodeListener } from 'h3';
|
|
6
6
|
import { listen } from 'listhen';
|
|
7
|
-
import { resolve
|
|
7
|
+
import { resolve } from 'pathe';
|
|
8
8
|
import { debounce } from 'perfect-debounce';
|
|
9
9
|
import { provider } from 'std-env';
|
|
10
10
|
import { joinURL } from 'ufo';
|
|
@@ -77,6 +77,7 @@ class NuxtDevServer extends EventEmitter {
|
|
|
77
77
|
}
|
|
78
78
|
_handler;
|
|
79
79
|
_distWatcher;
|
|
80
|
+
_configWatcher;
|
|
80
81
|
_currentNuxt;
|
|
81
82
|
_loadingMessage;
|
|
82
83
|
_loadingError;
|
|
@@ -121,12 +122,11 @@ class NuxtDevServer extends EventEmitter {
|
|
|
121
122
|
}
|
|
122
123
|
}
|
|
123
124
|
async close() {
|
|
125
|
+
this._distWatcher?.close();
|
|
126
|
+
this._configWatcher?.close();
|
|
124
127
|
if (this._currentNuxt) {
|
|
125
128
|
await this._currentNuxt.close();
|
|
126
129
|
}
|
|
127
|
-
if (this._distWatcher) {
|
|
128
|
-
await this._distWatcher.close();
|
|
129
|
-
}
|
|
130
130
|
}
|
|
131
131
|
async _load(reload, reason) {
|
|
132
132
|
const action = reload ? "Restarting" : "Starting";
|
|
@@ -225,26 +225,16 @@ class NuxtDevServer extends EventEmitter {
|
|
|
225
225
|
if (!this._currentNuxt.server) {
|
|
226
226
|
throw new Error("Nitro server has not been initialized.");
|
|
227
227
|
}
|
|
228
|
-
this._distWatcher =
|
|
229
|
-
|
|
230
|
-
depth: 0
|
|
231
|
-
});
|
|
232
|
-
this._distWatcher.on("unlinkDir", () => {
|
|
228
|
+
this._distWatcher = watch(resolve(this._currentNuxt.options.buildDir, "dist"));
|
|
229
|
+
this._distWatcher.on("change", () => {
|
|
233
230
|
this.loadDebounced(true, ".nuxt/dist directory has been removed");
|
|
234
231
|
});
|
|
235
232
|
this._handler = toNodeListener(this._currentNuxt.server.app);
|
|
236
|
-
this.emit("ready", addr);
|
|
233
|
+
this.emit("ready", `http://127.0.0.1:${addr.port}`);
|
|
237
234
|
}
|
|
238
235
|
async _watchConfig() {
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
depth: 0
|
|
242
|
-
});
|
|
243
|
-
configWatcher.on("all", (event, _file) => {
|
|
244
|
-
if (event === "all" || event === "ready" || event === "error" || event === "raw") {
|
|
245
|
-
return;
|
|
246
|
-
}
|
|
247
|
-
const file = relative(this.options.cwd, _file);
|
|
236
|
+
this._configWatcher = watch(this.options.cwd, { recursive: true });
|
|
237
|
+
this._configWatcher.on("change", (_event, file) => {
|
|
248
238
|
if (file === (this.options.dotenv.fileName || ".env")) {
|
|
249
239
|
this.emit("restart");
|
|
250
240
|
}
|
|
@@ -327,7 +317,7 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
327
317
|
port: process.env._PORT ?? void 0,
|
|
328
318
|
devContext
|
|
329
319
|
}, listenOptions);
|
|
330
|
-
let
|
|
320
|
+
let address;
|
|
331
321
|
if (ipc.enabled) {
|
|
332
322
|
devServer.on("loading:error", (_error) => {
|
|
333
323
|
ipc.send({
|
|
@@ -336,7 +326,7 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
336
326
|
message: _error.message,
|
|
337
327
|
stack: _error.stack,
|
|
338
328
|
name: _error.name,
|
|
339
|
-
code: _error.code
|
|
329
|
+
code: "code" in _error ? _error.code : void 0
|
|
340
330
|
}
|
|
341
331
|
});
|
|
342
332
|
});
|
|
@@ -347,11 +337,11 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
347
337
|
ipc.send({ type: "nuxt:internal:dev:restart" });
|
|
348
338
|
});
|
|
349
339
|
devServer.on("ready", (payload) => {
|
|
350
|
-
ipc.send({ type: "nuxt:internal:dev:ready",
|
|
340
|
+
ipc.send({ type: "nuxt:internal:dev:ready", address: payload });
|
|
351
341
|
});
|
|
352
342
|
} else {
|
|
353
343
|
devServer.on("ready", (payload) => {
|
|
354
|
-
|
|
344
|
+
address = payload;
|
|
355
345
|
});
|
|
356
346
|
}
|
|
357
347
|
await devServer.init();
|
|
@@ -362,10 +352,10 @@ async function initialize(devContext, ctx = {}, listenOptions) {
|
|
|
362
352
|
listener: devServer.listener,
|
|
363
353
|
close: () => devServer.close(),
|
|
364
354
|
onReady: (callback) => {
|
|
365
|
-
if (
|
|
366
|
-
callback(
|
|
355
|
+
if (address) {
|
|
356
|
+
callback(address);
|
|
367
357
|
} else {
|
|
368
|
-
devServer.once("ready", (payload) => callback(payload
|
|
358
|
+
devServer.once("ready", (payload) => callback(payload));
|
|
369
359
|
}
|
|
370
360
|
},
|
|
371
361
|
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.CGF1nLdA.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.Brthhq62.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.Qae7kWMg.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.Brthhq62.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.CGF1nLdA.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.Brthhq62.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.Brthhq62.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.Brthhq62.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.Brthhq62.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.Brthhq62.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.Brthhq62.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,17 +38,29 @@ 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?;
|
|
51
|
+
private _configWatcher?;
|
|
43
52
|
private _currentNuxt?;
|
|
44
53
|
private _loadingMessage?;
|
|
45
54
|
private _loadingError?;
|
|
46
55
|
private cwd;
|
|
47
56
|
loadDebounced: (reload?: boolean, reason?: string) => void;
|
|
48
57
|
handler: RequestListener;
|
|
49
|
-
listener: Listener
|
|
58
|
+
listener: Pick<Listener, 'server' | 'getURLs' | 'https' | 'url' | 'close'> & {
|
|
59
|
+
_url?: string;
|
|
60
|
+
address: AddressInfo & {
|
|
61
|
+
socketPath?: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
50
64
|
constructor(options: NuxtDevServerOptions);
|
|
51
65
|
_renderError(req: IncomingMessage, res: ServerResponse): void;
|
|
52
66
|
resolveLoadingTemplate(): Promise<(params: {
|
|
@@ -66,9 +80,14 @@ interface InitializeOptions {
|
|
|
66
80
|
};
|
|
67
81
|
}
|
|
68
82
|
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: Partial<ListenOptions>): Promise<{
|
|
69
|
-
listener: listhen.Listener
|
|
83
|
+
listener: Pick<listhen.Listener, "server" | "getURLs" | "https" | "url" | "close"> & {
|
|
84
|
+
_url?: string;
|
|
85
|
+
address: net.AddressInfo & {
|
|
86
|
+
socketPath?: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
70
89
|
close: () => Promise<void>;
|
|
71
|
-
onReady: (callback: (
|
|
90
|
+
onReady: (callback: (address: string) => void) => void;
|
|
72
91
|
onRestart: (callback: (devServer: NuxtDevServer) => void) => void;
|
|
73
92
|
}>;
|
|
74
93
|
|
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,17 +38,29 @@ 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?;
|
|
51
|
+
private _configWatcher?;
|
|
43
52
|
private _currentNuxt?;
|
|
44
53
|
private _loadingMessage?;
|
|
45
54
|
private _loadingError?;
|
|
46
55
|
private cwd;
|
|
47
56
|
loadDebounced: (reload?: boolean, reason?: string) => void;
|
|
48
57
|
handler: RequestListener;
|
|
49
|
-
listener: Listener
|
|
58
|
+
listener: Pick<Listener, 'server' | 'getURLs' | 'https' | 'url' | 'close'> & {
|
|
59
|
+
_url?: string;
|
|
60
|
+
address: AddressInfo & {
|
|
61
|
+
socketPath?: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
50
64
|
constructor(options: NuxtDevServerOptions);
|
|
51
65
|
_renderError(req: IncomingMessage, res: ServerResponse): void;
|
|
52
66
|
resolveLoadingTemplate(): Promise<(params: {
|
|
@@ -66,9 +80,14 @@ interface InitializeOptions {
|
|
|
66
80
|
};
|
|
67
81
|
}
|
|
68
82
|
declare function initialize(devContext: NuxtDevContext, ctx?: InitializeOptions, listenOptions?: Partial<ListenOptions>): Promise<{
|
|
69
|
-
listener: listhen.Listener
|
|
83
|
+
listener: Pick<listhen.Listener, "server" | "getURLs" | "https" | "url" | "close"> & {
|
|
84
|
+
_url?: string;
|
|
85
|
+
address: net.AddressInfo & {
|
|
86
|
+
socketPath?: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
70
89
|
close: () => Promise<void>;
|
|
71
|
-
onReady: (callback: (
|
|
90
|
+
onReady: (callback: (address: string) => void) => void;
|
|
72
91
|
onRestart: (callback: (devServer: NuxtDevServer) => void) => void;
|
|
73
92
|
}>;
|
|
74
93
|
|
package/dist/dev/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ export { i as initialize } from '../chunks/index.mjs';
|
|
|
2
2
|
import 'node:process';
|
|
3
3
|
import 'defu';
|
|
4
4
|
import 'node:events';
|
|
5
|
-
import '
|
|
5
|
+
import 'node:fs';
|
|
6
6
|
import 'h3';
|
|
7
7
|
import 'listhen';
|
|
8
8
|
import 'pathe';
|
|
@@ -10,7 +10,6 @@ import 'perfect-debounce';
|
|
|
10
10
|
import 'std-env';
|
|
11
11
|
import 'ufo';
|
|
12
12
|
import '../shared/cli-nightly.DPmMxQ6h.mjs';
|
|
13
|
-
import 'node:fs';
|
|
14
13
|
import '../shared/cli-nightly.B9AmABr3.mjs';
|
|
15
14
|
import 'consola';
|
|
16
15
|
import '../shared/cli-nightly.BrKZotr9.mjs';
|
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-132951-19ba8b0";
|
|
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.Brthhq62.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.CGF1nLdA.mjs';
|
|
9
9
|
import { l as logger } from './cli-nightly.B9AmABr3.mjs';
|
|
10
10
|
|
|
11
11
|
if (!globalThis.crypto) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/cli-nightly",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.26.0-
|
|
4
|
+
"version": "3.26.0-20250614-132951-19ba8b0",
|
|
5
5
|
"description": "Nuxt CLI",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"c12": "^3.0.4",
|
|
37
|
-
"chokidar": "^4.0.3",
|
|
38
37
|
"citty": "^0.1.6",
|
|
39
38
|
"clipboardy": "^4.0.0",
|
|
40
39
|
"confbox": "^0.2.2",
|