@nuxt/cli-nightly 3.31.0-20251115-162525-d5f9331 → 3.31.0-20251116-171947-02d37f0
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/dev/index.mjs +1 -1
- package/dist/{dev-Db0BBVS6.mjs → dev-7iAIxGot.mjs} +1 -1
- package/dist/{dev-DdcrklU5.mjs → dev-DYv298gM.mjs} +4 -7
- package/dist/{dev-BVZ2mdBN.mjs → dev-JltooV9B.mjs} +19 -16
- package/dist/{dev-child-CjnKUIKB.mjs → dev-child-BMQAV2Jm.mjs} +1 -1
- package/dist/index.mjs +4 -4
- package/dist/{info-BzRrlF1y.mjs → info-BvKzCWpT.mjs} +1 -1
- package/package.json +3 -3
package/dist/dev/index.mjs
CHANGED
|
@@ -406,7 +406,7 @@ var NuxtDevServer = class extends EventEmitter {
|
|
|
406
406
|
};
|
|
407
407
|
if (urls) {
|
|
408
408
|
const overrides = this.options.listenOverrides || {};
|
|
409
|
-
const hostname = overrides.hostname
|
|
409
|
+
const hostname = overrides.hostname;
|
|
410
410
|
const https = overrides.https;
|
|
411
411
|
loadOptions.defaults = resolveDevServerDefaults({
|
|
412
412
|
hostname,
|
|
@@ -432,14 +432,11 @@ var NuxtDevServer = class extends EventEmitter {
|
|
|
432
432
|
const nuxtConfig = this.#currentNuxt.options;
|
|
433
433
|
const overrides = this.options.listenOverrides || {};
|
|
434
434
|
const port = overrides.port ?? nuxtConfig.devServer?.port;
|
|
435
|
-
const
|
|
436
|
-
const hostname = (rawHost === true ? "" : rawHost) ?? nuxtConfig.devServer?.host;
|
|
435
|
+
const hostname = overrides.hostname ?? nuxtConfig.devServer?.host;
|
|
437
436
|
const isPublic = provider === "codesandbox" || (overrides.public ?? (isPublicHostname(hostname) ? true : void 0));
|
|
438
437
|
const httpsFromConfig = typeof nuxtConfig.devServer?.https !== "boolean" && nuxtConfig.devServer?.https ? nuxtConfig.devServer.https : {};
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
...typeof overrides.https === "object" ? overrides.https : {}
|
|
442
|
-
};
|
|
438
|
+
overrides._https ??= !!nuxtConfig.devServer?.https;
|
|
439
|
+
const httpsOptions = overrides.https && defu(typeof overrides.https === "object" ? overrides.https : {}, httpsFromConfig);
|
|
443
440
|
const baseURL = nuxtConfig.app?.baseURL?.startsWith?.("./") ? nuxtConfig.app.baseURL.slice(1) : nuxtConfig.app?.baseURL;
|
|
444
441
|
return {
|
|
445
442
|
...overrides,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as legacyRootDirArgs, i as extendsArgs, n as dotEnvArgs, o as logLevelArgs, r as envNameArgs, t as cwdArgs } from "./_shared-BCYCnX0T.mjs";
|
|
2
2
|
import { n as logger, t as debug } from "./logger-B4ge7MhP.mjs";
|
|
3
|
-
import { t as initialize } from "./dev-
|
|
3
|
+
import { t as initialize } from "./dev-DYv298gM.mjs";
|
|
4
4
|
import "./kit-CWALD0uf.mjs";
|
|
5
5
|
import "./versions-CfGmudYQ.mjs";
|
|
6
6
|
import "./banner-Brd8qg0_.mjs";
|
|
@@ -13,7 +13,7 @@ import { isBun, isDeno, isTest } from "std-env";
|
|
|
13
13
|
import { colors } from "consola/utils";
|
|
14
14
|
import { resolve } from "pathe";
|
|
15
15
|
import { satisfies } from "semver";
|
|
16
|
-
import { getArgs } from "listhen/cli";
|
|
16
|
+
import { getArgs, parseArgs } from "listhen/cli";
|
|
17
17
|
import { fork } from "node:child_process";
|
|
18
18
|
|
|
19
19
|
//#region ../nuxi/src/dev/pool.ts
|
|
@@ -171,29 +171,25 @@ const command = defineCommand({
|
|
|
171
171
|
alias: ["f"]
|
|
172
172
|
},
|
|
173
173
|
...listhenArgs,
|
|
174
|
-
|
|
174
|
+
port: {
|
|
175
175
|
...listhenArgs.port,
|
|
176
176
|
description: "Port to listen on (default: `NUXT_PORT || NITRO_PORT || PORT || nuxtOptions.devServer.port`)",
|
|
177
177
|
alias: ["p"]
|
|
178
178
|
},
|
|
179
|
-
|
|
179
|
+
open: {
|
|
180
180
|
...listhenArgs.open,
|
|
181
181
|
alias: ["o"],
|
|
182
182
|
default: false
|
|
183
183
|
},
|
|
184
|
-
|
|
184
|
+
host: {
|
|
185
185
|
...listhenArgs.host,
|
|
186
186
|
alias: ["h"],
|
|
187
187
|
description: "Host to listen on (default: `NUXT_HOST || NITRO_HOST || HOST || nuxtOptions.devServer?.host`)"
|
|
188
188
|
},
|
|
189
|
-
|
|
189
|
+
clipboard: {
|
|
190
190
|
...listhenArgs.clipboard,
|
|
191
191
|
default: false
|
|
192
192
|
},
|
|
193
|
-
"https.domains": {
|
|
194
|
-
...listhenArgs["https.domains"],
|
|
195
|
-
description: "Comma separated list of domains and IPs, the autogenerated certificate should be valid for (https: true)"
|
|
196
|
-
},
|
|
197
193
|
sslCert: {
|
|
198
194
|
type: "string",
|
|
199
195
|
description: "(DEPRECATED) Use `--https.cert` instead."
|
|
@@ -262,13 +258,20 @@ function resolveListenOverrides(args) {
|
|
|
262
258
|
hostname: "127.0.0.1",
|
|
263
259
|
showURL: false
|
|
264
260
|
};
|
|
265
|
-
const
|
|
266
|
-
const _httpsKey = args["https.key"] || args.sslKey || process.env.NUXT_SSL_KEY || process.env.NITRO_SSL_KEY;
|
|
267
|
-
return {
|
|
261
|
+
const options = parseArgs({
|
|
268
262
|
...args,
|
|
269
|
-
"
|
|
270
|
-
"
|
|
271
|
-
"https
|
|
263
|
+
"host": args.host || process.env.NUXT_HOST || process.env.NITRO_HOST || process.env.HOST,
|
|
264
|
+
"port": args.port || process.env.NUXT_PORT || process.env.NITRO_PORT || process.env.PORT,
|
|
265
|
+
"https": args.https !== false,
|
|
266
|
+
"https.cert": args["https.cert"] || args.sslCert || process.env.NUXT_SSL_CERT || process.env.NITRO_SSL_CERT,
|
|
267
|
+
"https.key": args["https.key"] || args.sslKey || process.env.NUXT_SSL_KEY || process.env.NITRO_SSL_KEY
|
|
268
|
+
});
|
|
269
|
+
return {
|
|
270
|
+
...options,
|
|
271
|
+
_https: args.https,
|
|
272
|
+
get https() {
|
|
273
|
+
return this._https ? options.https : false;
|
|
274
|
+
}
|
|
272
275
|
};
|
|
273
276
|
}
|
|
274
277
|
function isBunForkSupported() {
|
|
@@ -25,7 +25,7 @@ var dev_child_default = defineCommand({
|
|
|
25
25
|
async run(ctx) {
|
|
26
26
|
if (!process.send && !isTest) console.warn("`nuxi _dev` is an internal command and should not be used directly. Please use `nuxi dev` instead.");
|
|
27
27
|
const cwd = resolve(ctx.args.cwd || ctx.args.rootDir);
|
|
28
|
-
const { initialize } = await import("./dev-
|
|
28
|
+
const { initialize } = await import("./dev-7iAIxGot.mjs");
|
|
29
29
|
await initialize({
|
|
30
30
|
cwd,
|
|
31
31
|
args: ctx.args
|
package/dist/index.mjs
CHANGED
|
@@ -16,11 +16,11 @@ const commands = {
|
|
|
16
16
|
analyze: () => import("./analyze-B7vdkB-T.mjs").then(_rDefault),
|
|
17
17
|
build: () => import("./build-BXaUqCgz.mjs").then(_rDefault),
|
|
18
18
|
cleanup: () => import("./cleanup-B6ZYJtxX.mjs").then(_rDefault),
|
|
19
|
-
_dev: () => import("./dev-child-
|
|
20
|
-
dev: () => import("./dev-
|
|
19
|
+
_dev: () => import("./dev-child-BMQAV2Jm.mjs").then(_rDefault),
|
|
20
|
+
dev: () => import("./dev-JltooV9B.mjs").then(_rDefault),
|
|
21
21
|
devtools: () => import("./devtools-BOw17GFK.mjs").then(_rDefault),
|
|
22
22
|
generate: () => import("./generate-DD8qcTxo.mjs").then(_rDefault),
|
|
23
|
-
info: () => import("./info-
|
|
23
|
+
info: () => import("./info-BvKzCWpT.mjs").then(_rDefault),
|
|
24
24
|
init: () => import("./init-D6EjQYoM.mjs").then(_rDefault),
|
|
25
25
|
module: () => import("./module-JzL-mWJT.mjs").then(_rDefault),
|
|
26
26
|
prepare: () => import("./prepare-D3poicWu.mjs").then(_rDefault),
|
|
@@ -65,7 +65,7 @@ async function checkEngines() {
|
|
|
65
65
|
//#endregion
|
|
66
66
|
//#region package.json
|
|
67
67
|
var name = "@nuxt/cli-nightly";
|
|
68
|
-
var version = "3.31.0-
|
|
68
|
+
var version = "3.31.0-20251116-171947-02d37f0";
|
|
69
69
|
var description = "Nuxt CLI";
|
|
70
70
|
|
|
71
71
|
//#endregion
|
|
@@ -17,7 +17,7 @@ import { copy } from "copy-paste";
|
|
|
17
17
|
import { detectPackageManager } from "nypm";
|
|
18
18
|
|
|
19
19
|
//#region ../nuxi/package.json
|
|
20
|
-
var version = "3.31.0-
|
|
20
|
+
var version = "3.31.0-20251116-171936-02d37f0";
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#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.31.0-
|
|
4
|
+
"version": "3.31.0-20251116-171947-02d37f0",
|
|
5
5
|
"description": "Nuxt CLI",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"youch": "^4.1.0-beta.12"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@nuxt/kit": "^4.2.
|
|
66
|
-
"@nuxt/schema": "^4.2.
|
|
65
|
+
"@nuxt/kit": "^4.2.1",
|
|
66
|
+
"@nuxt/schema": "^4.2.1",
|
|
67
67
|
"@types/debug": "^4.1.12",
|
|
68
68
|
"@types/node": "^24.10.1",
|
|
69
69
|
"get-port-please": "^3.2.0",
|