@nuxt/cli-nightly 4.0.1-2610242015-ccc7d7a → 4.0.1-2610261815-080ecd6
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/{_shared-ClCnexCF.mjs → _shared-ObiFLtM9.mjs} +5 -9
- package/dist/{_utils-B8_iwzhz.mjs → _utils-CWsYyU_S.mjs} +5 -6
- package/dist/{_utils-B0a0PSdh.mjs → _utils-bAmc4Gja.mjs} +7 -8
- package/dist/{add-C5KjpCS4.mjs → add-BPcT2bES.mjs} +14 -16
- package/dist/add-DxdflBM6.mjs +4 -0
- package/dist/{add-template-CF92lJTp.mjs → add-template-Bj2TYQt-.mjs} +24 -43
- package/dist/{analyze-DKAZw85q.mjs → analyze-PMwxp1p_.mjs} +11 -12
- package/dist/{args-DGaOocsH.mjs → args-CAT9qhaw.mjs} +1 -2
- package/dist/{banner-lMLtjrKS.mjs → banner-r3Yp_lIs.mjs} +5 -7
- package/dist/{binaries-BwgN39nD.mjs → binaries-CoyCkCUz.mjs} +5 -6
- package/dist/boot.d.mts +1 -3
- package/dist/boot.mjs +4 -5
- package/dist/{broadcast-mciEtrFQ.mjs → broadcast-DlkNi15U.mjs} +2 -3
- package/dist/{build-Dqnfh3YR.mjs → build-DKRMFGJv.mjs} +15 -17
- package/dist/{cache-CKYx3gns.mjs → cache-BJWDQT6x.mjs} +1 -2
- package/dist/{catalog-TtcO3WFN.mjs → catalog-Dyn9F8h-.mjs} +1 -2
- package/dist/{cert-kjBThizO.mjs → cert-CL3CVdGa.mjs} +5 -6
- package/dist/{cleanup-DMZ6dich.mjs → cleanup-mOzRdkbU.mjs} +6 -7
- package/dist/{compile-timing-C-twwYy6.mjs → compile-timing-B_KunOqs.mjs} +1 -2
- package/dist/{completions-BlbZo3Pd.mjs → completions-sUv020nV.mjs} +7 -13
- package/dist/{config-DqfnDD2A.mjs → config-DzUIvbGt.mjs} +6 -10
- package/dist/{console-BgmzEcbV.mjs → console-CkLh6PBj.mjs} +4 -5
- package/dist/{controller-C7zOxCnC.mjs → controller-D1_hMZzN.mjs} +6 -7
- package/dist/{curl-C-JpGX_5.mjs → curl-BDWl-ub3.mjs} +8 -10
- package/dist/dev/index.d.mts +1 -18
- package/dist/dev/index.mjs +36 -51
- package/dist/{dev-1V1Cf-nv.mjs → dev-AtDt4Vtw.mjs} +22 -25
- package/dist/{dev-child-DfLkn4zI.mjs → dev-child-BjWI2jDO.mjs} +3 -4
- package/dist/{dev-server-BbPB-3UF.mjs → dev-server-VUbWoDnc.mjs} +3 -4
- package/dist/{devtools-DX5NzRRm.mjs → devtools-DSju2wPe.mjs} +4 -5
- package/dist/{docs-BqoQtQSA.mjs → docs-BH-gjeyW.mjs} +8 -9
- package/dist/{docs-index-BIRwN9tz.mjs → docs-index-BgQdPkjD.mjs} +5 -6
- package/dist/{engines-MLDTwf7f.mjs → engines-Cww7W0kL.mjs} +3 -4
- package/dist/{env-BkMPEX1D.mjs → env-BTX46A5j.mjs} +2 -3
- package/dist/{fetch-g4bhLuz9.mjs → fetch-C_KK6VWh.mjs} +1 -2
- package/dist/{first-frame-BfGM-BAA.mjs → first-frame-Bmls4swH.mjs} +9 -13
- package/dist/{formatting-Co5DEjad.mjs → formatting-B89h0XiW.mjs} +1 -2
- package/dist/{fs-CSqg02ri.mjs → fs-BerxlAZq.mjs} +1 -2
- package/dist/{generate-CoaFd1Sp.mjs → generate-HL0LOEtF.mjs} +3 -4
- package/dist/{hang-DvJGbBHh.mjs → hang-CeKwpp7-.mjs} +2 -3
- package/dist/{highlight-CNtoRxLK.mjs → highlight-BO2Og4MK.mjs} +16 -32
- package/dist/{host-check-DW342-PP.mjs → host-check-Brcef2L-.mjs} +1 -2
- package/dist/index.d.mts +1 -6
- package/dist/index.mjs +43 -49
- package/dist/{info-C5wgn8r8.mjs → info-zJKwGe5z.mjs} +12 -13
- package/dist/{init-D86Hi7gZ.mjs → init-BQdF4hrT.mjs} +4 -6
- package/dist/{install-DSVDREZm.mjs → install-4xMk3sj1.mjs} +3 -4
- package/dist/{kit-CbhDo9Zs.mjs → kit-BsoFle3Z.mjs} +3 -4
- package/dist/{list-C1OkZvLM.mjs → list-CGJ41xey.mjs} +6 -7
- package/dist/{listen-Dp-mDGLy.mjs → listen-Dob5VroR.mjs} +7 -11
- package/dist/{lockfile-B3ZS8bEh.mjs → lockfile-vznrWPLk.mjs} +2 -3
- package/dist/{log-channel-DEjp4g0E.mjs → log-channel-Cbl9Hx9p.mjs} +2 -3
- package/dist/module-yEtMd58h.mjs +15 -0
- package/dist/{names-BemXlTaX.mjs → names-tK6YAhfF.mjs} +1 -2
- package/dist/{nuxt-CCjsh7BJ.mjs → nuxt-DJuU-J2_.mjs} +3 -4
- package/dist/{nuxt-config-zyufWWwx.mjs → nuxt-config-DvyFKfn_.mjs} +1 -2
- package/dist/{nuxt-packages-2vh2Ybse.mjs → nuxt-packages-DI1WwngW.mjs} +1 -2
- package/dist/{package-json-DACIqDr_.mjs → package-json-DQZk9pws.mjs} +1 -2
- package/dist/{package-managers-B9HZ9pY9.mjs → package-managers-lR2ICmUG.mjs} +2 -3
- package/dist/{path-env-D9Xd_BAN.mjs → path-env-DgxqH9NH.mjs} +4 -7
- package/dist/{paths-DlXZaaIg.mjs → paths-BWaxgDBO.mjs} +3 -4
- package/dist/{phase-reporter-xcVDefHV.mjs → phase-reporter-4PlWKr01.mjs} +6 -8
- package/dist/{pkg-CInP2k7X.mjs → pkg-CcVIZkyU.mjs} +3 -4
- package/dist/{prepare-DSrn_6tt.mjs → prepare-DzKrOAC0.mjs} +9 -10
- package/dist/{preview-B-ioyxRd.mjs → preview-DR7grQsj.mjs} +12 -14
- package/dist/{progress-snapshot-BsUn_089.mjs → progress-snapshot-BEIE-Ir2.mjs} +1 -2
- package/dist/{reason-BzYs8eZ4.mjs → reason-ZeAW2Y3R.mjs} +4 -6
- package/dist/{registry-B7GzM18R.mjs → registry-CBGsoXLh.mjs} +2 -3
- package/dist/{release-notes-BQieF1F4.mjs → release-notes-nQz36YNr.mjs} +1 -2
- package/dist/{remove-djQWMHrq.mjs → remove-CFMT2Lwu.mjs} +11 -12
- package/dist/{resolve-nuxt-VKCDOC-A.mjs → resolve-nuxt-l3Qmn2zH.mjs} +1 -2
- package/dist/{rolldown-runtime-D7D4PA-g.mjs → rolldown-runtime-D8jQpDG7.mjs} +1 -2
- package/dist/{run-CY8F2KeF.mjs → run-1oUF_7Q8.mjs} +5 -6
- package/dist/{search-DJWFU3tW.mjs → search-DtnmRmC5.mjs} +8 -9
- package/dist/{server-build-Cga7EB-K.mjs → server-build-Bivun9Hl.mjs} +1 -2
- package/dist/{serving-state-Cts7VBoa.mjs → serving-state-fIXs1OJo.mjs} +1 -2
- package/dist/{session-DCdLW1mF.mjs → session-CJaCF2gy.mjs} +11 -14
- package/dist/{shortcut-context-B1rQszYJ.mjs → shortcut-context-jl_XQvPi.mjs} +1 -2
- package/dist/{shortcuts-1_r5Cfkh.mjs → shortcuts-DcyQbGhs.mjs} +4 -5
- package/dist/{shutdown-BavsC3O_.mjs → shutdown-16FH-C3A.mjs} +4 -5
- package/dist/{span-channel-CmmfG3vs.mjs → span-channel-BzXzBXzJ.mjs} +2 -3
- package/dist/{spinner-Cj-5sQW4.mjs → spinner-BSFu_Z9-.mjs} +4 -5
- package/dist/{start-Dtcs-dJl.mjs → start-BU8acJdu.mjs} +3 -4
- package/dist/{startup-clock-DXZlxuSA.mjs → startup-clock-Brvqy2C-.mjs} +6 -11
- package/dist/{support-Dvae58g8.mjs → support-C5Mr02jF.mjs} +2 -3
- package/dist/{takeover-D0x-_4xO.mjs → takeover-CSIrECPD.mjs} +7 -8
- package/dist/task-DhSP0yi4.mjs +14 -0
- package/dist/{terminal-theme-BUtyan0v.mjs → terminal-theme-ClkB-QvF.mjs} +1 -2
- package/dist/{test-Wp6Ocv48.mjs → test-D_APmpUl.mjs} +4 -5
- package/dist/{tui-Dp8qayFz.mjs → tui-CW_X4Mk6.mjs} +25 -36
- package/dist/{tunnel-CneTg7qS.mjs → tunnel-PaNmyzym.mjs} +3 -4
- package/dist/{typecheck-CW6ssuzX.mjs → typecheck-BOACnn21.mjs} +11 -12
- package/dist/{update-X8ao_jua.mjs → update-DuAXhoRs.mjs} +4 -5
- package/dist/{update-check-DC_pUt-A.mjs → update-check-CcnXaY6J.mjs} +6 -7
- package/dist/{upgrade-CF8zW4C9.mjs → upgrade-BeJxKiZz.mjs} +11 -12
- package/dist/{versions-BA3DmZ0X.mjs → versions-B-6QvS-C.mjs} +8 -9
- package/package.json +11 -11
- package/dist/add-BchdEeyz.mjs +0 -5
- package/dist/module-LGa5lkYB.mjs +0 -16
- package/dist/task-HqSVZ3rW.mjs +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { parseArgs } from "node:util";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/.pnpm/citty@0.2.2_patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac/node_modules/citty/dist/_chunks/libs/scule.mjs
|
|
3
3
|
const NUMBER_CHAR_RE = /\d/;
|
|
4
4
|
const STR_SPLITTERS = [
|
|
5
5
|
"-",
|
|
@@ -67,8 +67,7 @@ function kebabCase(str, joiner) {
|
|
|
67
67
|
function snakeCase(str) {
|
|
68
68
|
return kebabCase(str || "", "_");
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
//#region ../../node_modules/.pnpm/citty@0.2.2_patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac/node_modules/citty/dist/index.mjs
|
|
70
|
+
// ../../node_modules/.pnpm/citty@0.2.2_patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac/node_modules/citty/dist/index.mjs
|
|
72
71
|
function toArray(val) {
|
|
73
72
|
if (Array.isArray(val)) return val;
|
|
74
73
|
return val === void 0 ? [] : [val];
|
|
@@ -529,14 +528,12 @@ function _getBuiltinFlags(long, short, userNames, userAliases) {
|
|
|
529
528
|
if (userNames.has(short) || userAliases.has(short)) return [`--${long}`];
|
|
530
529
|
return [`--${long}`, `-${short}`];
|
|
531
530
|
}
|
|
532
|
-
|
|
533
|
-
//#region package.json
|
|
531
|
+
// package.json
|
|
534
532
|
var name = "@nuxt/cli-nightly";
|
|
535
|
-
var version = "4.0.1-
|
|
533
|
+
var version = "4.0.1-2610261815-080ecd6";
|
|
536
534
|
var description = "Nuxt CLI";
|
|
537
535
|
var engines = { "node": "^22.21.0 || ^24.11.0 || >=26.0.0" };
|
|
538
|
-
|
|
539
|
-
//#region src/commands/_shared.ts
|
|
536
|
+
// src/commands/_shared.ts
|
|
540
537
|
const cwdArgs = { cwd: {
|
|
541
538
|
type: "string",
|
|
542
539
|
description: "Specify the root directory of your Nuxt project",
|
|
@@ -621,5 +618,4 @@ const jsonArgs = { json: {
|
|
|
621
618
|
type: "boolean",
|
|
622
619
|
description: "Print output as JSON"
|
|
623
620
|
} };
|
|
624
|
-
//#endregion
|
|
625
621
|
export { runCommand as _, globalCwdArgs as a, profileArgs as c, description as d, engines as f, renderUsage as g, defineCommand as h, extendsArgs as i, rootDirArgs as l, version as m, dotEnvArgs as n, jsonArgs as o, name as p, envNameArgs as r, logLevelArgs as s, cwdArgs as t, targetArgs as u, runMain as v };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { s as logLevelArgs, t as cwdArgs } from "./_shared-
|
|
2
|
-
import { u as logger } from "./startup-clock-
|
|
3
|
-
import { r as relativeToProcess } from "./paths-
|
|
4
|
-
import { t as fetchJson } from "./fetch-
|
|
1
|
+
import { s as logLevelArgs, t as cwdArgs } from "./_shared-ObiFLtM9.mjs";
|
|
2
|
+
import { u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
3
|
+
import { r as relativeToProcess } from "./paths-BWaxgDBO.mjs";
|
|
4
|
+
import { t as fetchJson } from "./fetch-C_KK6VWh.mjs";
|
|
5
5
|
import { styleText } from "node:util";
|
|
6
6
|
import { confirm, isCancel } from "@clack/prompts";
|
|
7
7
|
import { satisfies } from "verkit";
|
|
8
|
-
|
|
8
|
+
// src/commands/module/_utils.ts
|
|
9
9
|
const MODULES_API_URL = "https://api.nuxt.com/modules?version=all";
|
|
10
10
|
async function fetchModules() {
|
|
11
11
|
const { modules } = await fetchJson(MODULES_API_URL);
|
|
@@ -95,5 +95,4 @@ async function ensureNuxtDependency(cwd, projectPkg) {
|
|
|
95
95
|
function forwardCommandArgs(args) {
|
|
96
96
|
return Object.entries(args).filter(([k]) => k in cwdArgs || k in logLevelArgs).map(([k, v]) => `--${k}=${v}`);
|
|
97
97
|
}
|
|
98
|
-
//#endregion
|
|
99
98
|
export { fetchModules as a, parseModuleSpec as c, ensureNuxtDependency as i, resolveModuleEntry as l, basePackageName as n, forwardCommandArgs as o, checkNuxtCompatibility as r, getProjectDependencies as s, MODULES_API_URL as t };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { u as logger } from "./startup-clock-
|
|
2
|
-
import { i as logNetworkError } from "./path-env-
|
|
3
|
-
import { i as resolveRootDir } from "./paths-
|
|
4
|
-
import { n as getNuxtConfig } from "./nuxt-config-
|
|
5
|
-
import { a as resolveLockDir, i as noDevServerMessage, n as findNitroDevWorker, o as toLoopback, t as findDevServer } from "./dev-server-
|
|
6
|
-
import { t as highlight } from "./highlight-
|
|
1
|
+
import { u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
2
|
+
import { i as logNetworkError } from "./path-env-DgxqH9NH.mjs";
|
|
3
|
+
import { i as resolveRootDir } from "./paths-BWaxgDBO.mjs";
|
|
4
|
+
import { n as getNuxtConfig } from "./nuxt-config-DvyFKfn_.mjs";
|
|
5
|
+
import { a as resolveLockDir, i as noDevServerMessage, n as findNitroDevWorker, o as toLoopback, t as findDevServer } from "./dev-server-VUbWoDnc.mjs";
|
|
6
|
+
import { t as highlight } from "./highlight-BO2Og4MK.mjs";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import { styleText } from "node:util";
|
|
9
9
|
import { join, resolve } from "pathe";
|
|
10
10
|
import { readdirSync } from "node:fs";
|
|
11
11
|
import http from "node:http";
|
|
12
|
-
|
|
12
|
+
// src/commands/task/_utils.ts
|
|
13
13
|
const TRAILING_SLASH_RE = /\/$/;
|
|
14
14
|
const taskArgs = { url: {
|
|
15
15
|
type: "string",
|
|
@@ -207,5 +207,4 @@ function parseBody(text) {
|
|
|
207
207
|
function describeSocket(socketPath) {
|
|
208
208
|
return socketPath.replace(/\0/g, "@");
|
|
209
209
|
}
|
|
210
|
-
//#endregion
|
|
211
210
|
export { reportTaskError as a, runTask as c, missingTaskRoutesHint as i, taskArgs as l, fetchTasks as n, reportUnknownTask as o, format as r, resolveTaskServer as s, emptyTaskListHint as t };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-
|
|
2
|
-
import { u as logger } from "./startup-clock-
|
|
3
|
-
import { i as logNetworkError } from "./path-env-
|
|
4
|
-
import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-
|
|
5
|
-
import { t as fetchJson } from "./fetch-
|
|
6
|
-
import { a as isPackageManagerName, n as detectPackageManager, o as packageManagerNames, t as defaultPackageManager } from "./package-managers-
|
|
7
|
-
import { a as runInstall, o as takeUnreportedIgnoredBuilds, r as isVerboseInstall, t as createInstallLog } from "./install-
|
|
8
|
-
import { t as createSpinner } from "./spinner-
|
|
9
|
-
import { n as getNuxtVersion } from "./versions-
|
|
10
|
-
import { t as prepare_default } from "./prepare-
|
|
11
|
-
import { a as fetchModules, c as parseModuleSpec, i as ensureNuxtDependency, l as resolveModuleEntry, n as basePackageName, o as forwardCommandArgs, r as checkNuxtCompatibility, s as getProjectDependencies, t as MODULES_API_URL } from "./_utils-
|
|
1
|
+
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-ObiFLtM9.mjs";
|
|
2
|
+
import { u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
3
|
+
import { i as logNetworkError } from "./path-env-DgxqH9NH.mjs";
|
|
4
|
+
import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-DzUIvbGt.mjs";
|
|
5
|
+
import { t as fetchJson } from "./fetch-C_KK6VWh.mjs";
|
|
6
|
+
import { a as isPackageManagerName, n as detectPackageManager, o as packageManagerNames, t as defaultPackageManager } from "./package-managers-lR2ICmUG.mjs";
|
|
7
|
+
import { a as runInstall, o as takeUnreportedIgnoredBuilds, r as isVerboseInstall, t as createInstallLog } from "./install-4xMk3sj1.mjs";
|
|
8
|
+
import { t as createSpinner } from "./spinner-BSFu_Z9-.mjs";
|
|
9
|
+
import { n as getNuxtVersion } from "./versions-B-6QvS-C.mjs";
|
|
10
|
+
import { t as prepare_default } from "./prepare-DzKrOAC0.mjs";
|
|
11
|
+
import { a as fetchModules, c as parseModuleSpec, i as ensureNuxtDependency, l as resolveModuleEntry, n as basePackageName, o as forwardCommandArgs, r as checkNuxtCompatibility, s as getProjectDependencies, t as MODULES_API_URL } from "./_utils-CWsYyU_S.mjs";
|
|
12
12
|
import process from "node:process";
|
|
13
13
|
import { styleText } from "node:util";
|
|
14
14
|
import { hasTTY } from "std-env";
|
|
@@ -17,7 +17,7 @@ import { resolve } from "pathe";
|
|
|
17
17
|
import { readPackageJSON } from "pkg-types";
|
|
18
18
|
import { findMaxSatisfying, satisfies } from "verkit";
|
|
19
19
|
import fuzzysort from "fuzzysort";
|
|
20
|
-
|
|
20
|
+
// src/commands/module/_autocomplete.ts
|
|
21
21
|
const TRAILING_DOT_RE = /\.$/;
|
|
22
22
|
/**
|
|
23
23
|
* Clack wraps each row at the terminal width less its `│ ` guide, and the row
|
|
@@ -114,8 +114,7 @@ async function selectModulesAutocomplete(options) {
|
|
|
114
114
|
cancelled: false
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
//#region src/commands/module/add.ts
|
|
117
|
+
// src/commands/module/add.ts
|
|
119
118
|
const WHITESPACE_RE = /\s/;
|
|
120
119
|
/**
|
|
121
120
|
* `layers` only affects help text: `nuxt add` is documented as accepting layers as
|
|
@@ -374,7 +373,7 @@ async function resolveModule(moduleName, cwd, modulesDB, getProjectNuxtVersion)
|
|
|
374
373
|
}
|
|
375
374
|
let version = pkgVersion || "latest";
|
|
376
375
|
const pkgScope = pkgName.startsWith("@") ? pkgName.split("/")[0] : null;
|
|
377
|
-
const { detectNpmRegistry } = await import("./registry-
|
|
376
|
+
const { detectNpmRegistry } = await import("./registry-CBGsoXLh.mjs").then((n) => n.r);
|
|
378
377
|
const meta = await detectNpmRegistry(pkgScope, cwd);
|
|
379
378
|
const headers = meta.authorization ? { Authorization: meta.authorization } : {};
|
|
380
379
|
const pkgUrl = `${meta.registry}/${pkgName}`;
|
|
@@ -414,5 +413,4 @@ async function resolveModule(moduleName, cwd, modulesDB, getProjectNuxtVersion)
|
|
|
414
413
|
optionalPeerDependencies: Object.entries(pkg.peerDependenciesMeta || {}).filter(([, meta]) => meta?.optional).map(([name]) => name)
|
|
415
414
|
};
|
|
416
415
|
}
|
|
417
|
-
//#endregion
|
|
418
416
|
export { add_default as default, defineAddCommand, describeModules, resolveRequiredPeerDependencies };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-
|
|
2
|
-
import { c as intro, d as outro, u as logger } from "./startup-clock-
|
|
3
|
-
import { t as templateNames } from "./names-
|
|
4
|
-
import { t as loadKit } from "./kit-
|
|
5
|
-
import { r as relativeToProcess } from "./paths-
|
|
1
|
+
import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-ObiFLtM9.mjs";
|
|
2
|
+
import { c as intro, d as outro, u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
3
|
+
import { t as templateNames } from "./names-tK6YAhfF.mjs";
|
|
4
|
+
import { t as loadKit } from "./kit-BsoFle3Z.mjs";
|
|
5
|
+
import { r as relativeToProcess } from "./paths-BWaxgDBO.mjs";
|
|
6
6
|
import process from "node:process";
|
|
7
7
|
import { styleText } from "node:util";
|
|
8
8
|
import { dirname, isAbsolute, relative, resolve } from "pathe";
|
|
9
9
|
import { promises } from "node:fs";
|
|
10
10
|
import { camelCase, pascalCase } from "scule";
|
|
11
|
-
|
|
11
|
+
// src/utils/templates/modifiers.ts
|
|
12
12
|
/** Suffixes accepted by `--mode`, and as shorthand flags of their own. */
|
|
13
13
|
const modes = ["client", "server"];
|
|
14
14
|
/**
|
|
@@ -28,8 +28,7 @@ const httpMethods = [
|
|
|
28
28
|
"trace",
|
|
29
29
|
"patch"
|
|
30
30
|
];
|
|
31
|
-
|
|
32
|
-
//#region src/utils/templates/api.ts
|
|
31
|
+
// src/utils/templates/api.ts
|
|
33
32
|
const api = ({ name, args, nuxtOptions }) => {
|
|
34
33
|
return {
|
|
35
34
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, `api/${name}${applySuffix(args, httpMethods, "method")}.ts`),
|
|
@@ -40,8 +39,7 @@ export default defineEventHandler(event => {
|
|
|
40
39
|
`
|
|
41
40
|
};
|
|
42
41
|
};
|
|
43
|
-
|
|
44
|
-
//#region src/utils/templates/app.ts
|
|
42
|
+
// src/utils/templates/app.ts
|
|
45
43
|
const app = ({ args, nuxtOptions }) => ({
|
|
46
44
|
path: resolve(nuxtOptions.srcDir, "app.vue"),
|
|
47
45
|
contents: args.pages ? `
|
|
@@ -68,16 +66,14 @@ const app = ({ args, nuxtOptions }) => ({
|
|
|
68
66
|
<style scoped></style>
|
|
69
67
|
`
|
|
70
68
|
});
|
|
71
|
-
|
|
72
|
-
//#region src/utils/templates/app-config.ts
|
|
69
|
+
// src/utils/templates/app-config.ts
|
|
73
70
|
const appConfig = ({ nuxtOptions }) => ({
|
|
74
71
|
path: resolve(nuxtOptions.srcDir, "app.config.ts"),
|
|
75
72
|
contents: `
|
|
76
73
|
export default defineAppConfig({})
|
|
77
74
|
`
|
|
78
75
|
});
|
|
79
|
-
|
|
80
|
-
//#region src/utils/templates/component.ts
|
|
76
|
+
// src/utils/templates/component.ts
|
|
81
77
|
const component = ({ name, args, nuxtOptions }) => ({
|
|
82
78
|
path: resolve(nuxtOptions.srcDir, `components/${name}${applySuffix(args, modes, "mode")}.vue`),
|
|
83
79
|
contents: `
|
|
@@ -92,8 +88,7 @@ const component = ({ name, args, nuxtOptions }) => ({
|
|
|
92
88
|
<style scoped></style>
|
|
93
89
|
`
|
|
94
90
|
});
|
|
95
|
-
|
|
96
|
-
//#region src/utils/templates/composable.ts
|
|
91
|
+
// src/utils/templates/composable.ts
|
|
97
92
|
const USE_PREFIX_RE = /^use-?/;
|
|
98
93
|
const composable = ({ name, nuxtOptions }) => {
|
|
99
94
|
const nameWithoutUsePrefix = name.replace(USE_PREFIX_RE, "");
|
|
@@ -107,8 +102,7 @@ export const ${nameWithUsePrefix} = () => {
|
|
|
107
102
|
`
|
|
108
103
|
};
|
|
109
104
|
};
|
|
110
|
-
|
|
111
|
-
//#region src/utils/templates/error.ts
|
|
105
|
+
// src/utils/templates/error.ts
|
|
112
106
|
const error = ({ nuxtOptions }) => ({
|
|
113
107
|
path: resolve(nuxtOptions.srcDir, "error.vue"),
|
|
114
108
|
contents: `
|
|
@@ -130,8 +124,7 @@ const props = defineProps({
|
|
|
130
124
|
<style scoped></style>
|
|
131
125
|
`
|
|
132
126
|
});
|
|
133
|
-
|
|
134
|
-
//#region src/utils/templates/layer.ts
|
|
127
|
+
// src/utils/templates/layer.ts
|
|
135
128
|
const layer = ({ name, nuxtOptions }) => {
|
|
136
129
|
return {
|
|
137
130
|
path: resolve(nuxtOptions.rootDir, `layers/${name}/nuxt.config.ts`),
|
|
@@ -140,8 +133,7 @@ export default defineNuxtConfig({})
|
|
|
140
133
|
`
|
|
141
134
|
};
|
|
142
135
|
};
|
|
143
|
-
|
|
144
|
-
//#region src/utils/templates/layout.ts
|
|
136
|
+
// src/utils/templates/layout.ts
|
|
145
137
|
const layout = ({ name, nuxtOptions }) => ({
|
|
146
138
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.dir.layouts, `${name}.vue`),
|
|
147
139
|
contents: `
|
|
@@ -157,16 +149,14 @@ const layout = ({ name, nuxtOptions }) => ({
|
|
|
157
149
|
<style scoped></style>
|
|
158
150
|
`
|
|
159
151
|
});
|
|
160
|
-
|
|
161
|
-
//#region src/utils/templates/middleware.ts
|
|
152
|
+
// src/utils/templates/middleware.ts
|
|
162
153
|
const middleware = ({ name, args, nuxtOptions }) => ({
|
|
163
154
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.dir.middleware, `${name}${applySuffix(args, ["global"])}.ts`),
|
|
164
155
|
contents: `
|
|
165
156
|
export default defineNuxtRouteMiddleware((to, from) => {})
|
|
166
157
|
`
|
|
167
158
|
});
|
|
168
|
-
|
|
169
|
-
//#region src/utils/templates/module.ts
|
|
159
|
+
// src/utils/templates/module.ts
|
|
170
160
|
const module = ({ name, nuxtOptions }) => ({
|
|
171
161
|
path: resolve(nuxtOptions.rootDir, "modules", `${name}.ts`),
|
|
172
162
|
contents: `
|
|
@@ -180,8 +170,7 @@ export default defineNuxtModule({
|
|
|
180
170
|
})
|
|
181
171
|
`
|
|
182
172
|
});
|
|
183
|
-
|
|
184
|
-
//#region src/utils/templates/page.ts
|
|
173
|
+
// src/utils/templates/page.ts
|
|
185
174
|
const page = ({ name, nuxtOptions }) => ({
|
|
186
175
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.dir.pages, `${name}.vue`),
|
|
187
176
|
contents: `
|
|
@@ -196,48 +185,42 @@ const page = ({ name, nuxtOptions }) => ({
|
|
|
196
185
|
<style scoped></style>
|
|
197
186
|
`
|
|
198
187
|
});
|
|
199
|
-
|
|
200
|
-
//#region src/utils/templates/plugin.ts
|
|
188
|
+
// src/utils/templates/plugin.ts
|
|
201
189
|
const plugin = ({ name, args, nuxtOptions }) => ({
|
|
202
190
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.dir.plugins, `${name}${applySuffix(args, modes, "mode")}.ts`),
|
|
203
191
|
contents: `
|
|
204
192
|
export default defineNuxtPlugin(nuxtApp => {})
|
|
205
193
|
`
|
|
206
194
|
});
|
|
207
|
-
|
|
208
|
-
//#region src/utils/templates/server-middleware.ts
|
|
195
|
+
// src/utils/templates/server-middleware.ts
|
|
209
196
|
const serverMiddleware = ({ name, nuxtOptions }) => ({
|
|
210
197
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, "middleware", `${name}.ts`),
|
|
211
198
|
contents: `
|
|
212
199
|
export default defineEventHandler(event => {})
|
|
213
200
|
`
|
|
214
201
|
});
|
|
215
|
-
|
|
216
|
-
//#region src/utils/templates/server-plugin.ts
|
|
202
|
+
// src/utils/templates/server-plugin.ts
|
|
217
203
|
const serverPlugin = ({ name, nuxtOptions }) => ({
|
|
218
204
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, "plugins", `${name}.ts`),
|
|
219
205
|
contents: `
|
|
220
206
|
export default defineNitroPlugin(nitroApp => {})
|
|
221
207
|
`
|
|
222
208
|
});
|
|
223
|
-
|
|
224
|
-
//#region src/utils/templates/server-route.ts
|
|
209
|
+
// src/utils/templates/server-route.ts
|
|
225
210
|
const serverRoute = ({ name, args, nuxtOptions }) => ({
|
|
226
211
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, args.api ? "api" : "routes", `${name}.ts`),
|
|
227
212
|
contents: `
|
|
228
213
|
export default defineEventHandler(event => {})
|
|
229
214
|
`
|
|
230
215
|
});
|
|
231
|
-
|
|
232
|
-
//#region src/utils/templates/server-util.ts
|
|
216
|
+
// src/utils/templates/server-util.ts
|
|
233
217
|
const serverUtil = ({ name, nuxtOptions }) => ({
|
|
234
218
|
path: resolve(nuxtOptions.srcDir, nuxtOptions.serverDir, "utils", `${name}.ts`),
|
|
235
219
|
contents: `
|
|
236
220
|
export function ${camelCase(name)}() {}
|
|
237
221
|
`
|
|
238
222
|
});
|
|
239
|
-
|
|
240
|
-
//#region src/utils/templates/index.ts
|
|
223
|
+
// src/utils/templates/index.ts
|
|
241
224
|
const templates = {
|
|
242
225
|
"api": api,
|
|
243
226
|
"app": app,
|
|
@@ -262,8 +245,7 @@ function applySuffix(args, suffixes, unwrapFrom) {
|
|
|
262
245
|
if (unwrapFrom && args[unwrapFrom] && suffixes.includes(args[unwrapFrom])) suffix += `.${args[unwrapFrom]}`;
|
|
263
246
|
return suffix;
|
|
264
247
|
}
|
|
265
|
-
|
|
266
|
-
//#region src/commands/add-template.ts
|
|
248
|
+
// src/commands/add-template.ts
|
|
267
249
|
const modifierArgs = Object.fromEntries([...modes.map((mode) => [mode, `Shorthand for \`--mode ${mode}\``]), ...httpMethods.map((method) => [method, `Shorthand for \`--method ${method}\``])].map(([name, description]) => [name, {
|
|
268
250
|
type: "boolean",
|
|
269
251
|
description
|
|
@@ -375,5 +357,4 @@ function escapesRoot(root, path) {
|
|
|
375
357
|
const rel = relative(resolve(root), resolve(path));
|
|
376
358
|
return !rel || rel.startsWith("../") || rel === ".." || isAbsolute(rel);
|
|
377
359
|
}
|
|
378
|
-
//#endregion
|
|
379
360
|
export { add_template_default as default, escapesRoot };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-
|
|
2
|
-
import { S as ActionableError, c as intro$1, d as outro$1, u as logger } from "./startup-clock-
|
|
3
|
-
import { n as resolveDotenvFileNames } from "./args-
|
|
4
|
-
import { t as overrideEnv } from "./env-
|
|
5
|
-
import { t as isAllowedHost } from "./host-check-
|
|
6
|
-
import { n as clearDir } from "./fs-
|
|
7
|
-
import { t as loadKit } from "./kit-
|
|
8
|
-
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-
|
|
9
|
-
import { t as resolveServerBuild } from "./server-build-
|
|
10
|
-
import { i as resolveRootDir, r as relativeToProcess } from "./paths-
|
|
1
|
+
import { h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, s as logLevelArgs } from "./_shared-ObiFLtM9.mjs";
|
|
2
|
+
import { S as ActionableError, c as intro$1, d as outro$1, u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
3
|
+
import { n as resolveDotenvFileNames } from "./args-CAT9qhaw.mjs";
|
|
4
|
+
import { t as overrideEnv } from "./env-BTX46A5j.mjs";
|
|
5
|
+
import { t as isAllowedHost } from "./host-check-Brcef2L-.mjs";
|
|
6
|
+
import { n as clearDir } from "./fs-BerxlAZq.mjs";
|
|
7
|
+
import { t as loadKit } from "./kit-BsoFle3Z.mjs";
|
|
8
|
+
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-vznrWPLk.mjs";
|
|
9
|
+
import { t as resolveServerBuild } from "./server-build-Bivun9Hl.mjs";
|
|
10
|
+
import { i as resolveRootDir, r as relativeToProcess } from "./paths-BWaxgDBO.mjs";
|
|
11
11
|
import process from "node:process";
|
|
12
12
|
import { styleText } from "node:util";
|
|
13
13
|
import { note, taskLog } from "@clack/prompts";
|
|
@@ -15,7 +15,7 @@ import { join, relative } from "pathe";
|
|
|
15
15
|
import { promises } from "node:fs";
|
|
16
16
|
import { defu as defu$1 } from "defu";
|
|
17
17
|
import { serve } from "srvx";
|
|
18
|
-
|
|
18
|
+
// src/commands/analyze.ts
|
|
19
19
|
const NON_WORD_RE = /[^\w-]/g;
|
|
20
20
|
const indexHtml = `
|
|
21
21
|
<!DOCTYPE html>
|
|
@@ -174,5 +174,4 @@ var analyze_default = defineCommand({
|
|
|
174
174
|
} else outro$1("✨ Analysis build complete!");
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
//#endregion
|
|
178
177
|
export { analyze_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolve } from "pathe";
|
|
2
|
-
|
|
2
|
+
// src/utils/args.ts
|
|
3
3
|
/**
|
|
4
4
|
* Point `rawArgs` at `cwd`, so a process launched with them (a dev fork) runs
|
|
5
5
|
* against the same directory as this one.
|
|
@@ -31,5 +31,4 @@ function replaceCwdArg(rawArgs, cwd, previousCwd) {
|
|
|
31
31
|
function resolveDotenvFileNames(dotenv) {
|
|
32
32
|
return dotenv?.length ? dotenv : void 0;
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { resolveDotenvFileNames as n, replaceCwdArg as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { u as logger } from "./startup-clock-
|
|
2
|
-
import { t as NUXT_PACKAGES } from "./nuxt-packages-
|
|
3
|
-
import { n as getPkgJSON, r as getPkgVersion, t as getNuxtPkgVersion } from "./pkg-
|
|
1
|
+
import { u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
2
|
+
import { t as NUXT_PACKAGES } from "./nuxt-packages-DI1WwngW.mjs";
|
|
3
|
+
import { n as getPkgJSON, r as getPkgVersion, t as getNuxtPkgVersion } from "./pkg-CcVIZkyU.mjs";
|
|
4
4
|
import { styleText } from "node:util";
|
|
5
|
-
|
|
5
|
+
// src/utils/nitro.ts
|
|
6
6
|
/**
|
|
7
7
|
* Names Nitro is installed under, newest naming first, so a manifest that
|
|
8
8
|
* declares more than one resolves to the current name.
|
|
@@ -90,8 +90,7 @@ async function resolveNitroVersion(cwd, getDepVersion) {
|
|
|
90
90
|
if (declared) return declared;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
|
|
94
|
-
//#region src/utils/banner.ts
|
|
93
|
+
// src/utils/banner.ts
|
|
95
94
|
function getBuilder(cwd, builder) {
|
|
96
95
|
switch (builder) {
|
|
97
96
|
case "rspack":
|
|
@@ -146,5 +145,4 @@ function describeStack(cwd, options = {}) {
|
|
|
146
145
|
const detail = parts.length > 1 ? `${parts.slice(0, -1).join(", ")} and ${parts.at(-1)}` : parts[0];
|
|
147
146
|
return styleText("green", `Nuxt ${styleText("bold", nuxtVersion)}`) + styleText("gray", ` (with ${detail})`);
|
|
148
147
|
}
|
|
149
|
-
//#endregion
|
|
150
148
|
export { resolveNitroVersion as i, resolveStackVersions as n, showBanner as r, getBuilder as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as withUserAttention, s as debug, u as logger } from "./startup-clock-
|
|
2
|
-
import { c as withDirectStdout, o as restoreRawMode } from "./console-
|
|
3
|
-
import { i as logNetworkError, t as findInPath } from "./path-env-
|
|
4
|
-
import { t as getCacheDir } from "./cache-
|
|
1
|
+
import { i as withUserAttention, s as debug, u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
2
|
+
import { c as withDirectStdout, o as restoreRawMode } from "./console-CkLh6PBj.mjs";
|
|
3
|
+
import { i as logNetworkError, t as findInPath } from "./path-env-DgxqH9NH.mjs";
|
|
4
|
+
import { t as getCacheDir } from "./cache-BJWDQT6x.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { confirm, isCancel, progress, spinner } from "@clack/prompts";
|
|
7
7
|
import { basename, dirname, join } from "pathe";
|
|
@@ -10,7 +10,7 @@ import { createHash } from "node:crypto";
|
|
|
10
10
|
import { Buffer } from "node:buffer";
|
|
11
11
|
import { execFileSync } from "node:child_process";
|
|
12
12
|
import { readUser, updateUser } from "rc9";
|
|
13
|
-
|
|
13
|
+
// src/dev/binaries.ts
|
|
14
14
|
/**
|
|
15
15
|
* Resolve a third-party tool binary: from `PATH`, then the download cache,
|
|
16
16
|
* then (with the user's consent) by downloading it.
|
|
@@ -159,5 +159,4 @@ async function readWithProgress(response, label) {
|
|
|
159
159
|
function formatSize(bytes) {
|
|
160
160
|
return bytes < 1048576 ? `${Math.round(bytes / 1024)} KB` : `${(bytes / 1024 / 1024).toFixed(1)} MB`;
|
|
161
161
|
}
|
|
162
|
-
//#endregion
|
|
163
162
|
export { resolveTool as t };
|
package/dist/boot.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
//#region src/boot.d.ts
|
|
2
1
|
/**
|
|
3
2
|
* Paint the dev panel and bind its shortcuts, before the command graph loads.
|
|
4
3
|
*
|
|
5
4
|
* The `dev` command joins the same session and the same shortcut context, and
|
|
6
5
|
* gives the terminal back if the resolved arguments refuse the panel.
|
|
7
6
|
*/
|
|
8
|
-
export declare function bootDevUI(): Promise<void>;
|
|
9
|
-
//#endregion
|
|
7
|
+
export declare function bootDevUI(): Promise<void>;
|
package/dist/boot.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import process from "node:process";
|
|
2
|
-
|
|
2
|
+
// src/boot.ts
|
|
3
3
|
/** Flags that mean this is not going to be a panel session. */
|
|
4
4
|
const OPT_OUT = /^(?:--help|-h|--version|-v|--no-tui|--tui|--inspect|--inspect-brk|--profile)(?:=|$)/;
|
|
5
5
|
/**
|
|
@@ -16,12 +16,12 @@ async function bootDevUI() {
|
|
|
16
16
|
cwd: resolveCwd(argv),
|
|
17
17
|
startTime: globalThis.__nuxt_cli__?.startTime
|
|
18
18
|
};
|
|
19
|
-
const { paintFirstFrame } = await import("./first-frame-
|
|
19
|
+
const { paintFirstFrame } = await import("./first-frame-Bmls4swH.mjs").then((n) => n.n);
|
|
20
20
|
const start = paintFirstFrame(options);
|
|
21
21
|
if (!start) return;
|
|
22
22
|
try {
|
|
23
|
-
const { devShortcutContext } = await import("./shortcut-context-
|
|
24
|
-
const { setupDevUI } = await import("./controller-
|
|
23
|
+
const { devShortcutContext } = await import("./shortcut-context-jl_XQvPi.mjs");
|
|
24
|
+
const { setupDevUI } = await import("./controller-D1_hMZzN.mjs");
|
|
25
25
|
await setupDevUI(devShortcutContext().context, {
|
|
26
26
|
...options,
|
|
27
27
|
start
|
|
@@ -41,5 +41,4 @@ function resolveCwd(argv) {
|
|
|
41
41
|
}
|
|
42
42
|
return argv[1] && !argv[1].startsWith("-") ? argv[1] : void 0;
|
|
43
43
|
}
|
|
44
|
-
//#endregion
|
|
45
44
|
export { bootDevUI };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { s as debug } from "./startup-clock-
|
|
1
|
+
import { s as debug } from "./startup-clock-Brvqy2C-.mjs";
|
|
2
2
|
import { BroadcastChannel } from "node:worker_threads";
|
|
3
|
-
|
|
3
|
+
// src/dev/broadcast.ts
|
|
4
4
|
/** Listen on the channel called `name`, or return nothing where the runtime cannot open one. */
|
|
5
5
|
function openBroadcast(name, onMessage) {
|
|
6
6
|
try {
|
|
@@ -12,5 +12,4 @@ function openBroadcast(name, onMessage) {
|
|
|
12
12
|
debug(`Could not open the \`${name}\` channel:`, error);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
//#endregion
|
|
16
15
|
export { openBroadcast as t };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs, u as targetArgs } from "./_shared-
|
|
2
|
-
import { S as ActionableError, c as intro, d as outro, u as logger } from "./startup-clock-
|
|
3
|
-
import { n as resolveDotenvFileNames } from "./args-
|
|
4
|
-
import { t as overrideEnv } from "./env-
|
|
5
|
-
import { i as stopCpuProfile, n as formatPhaseBreakdown, r as startCpuProfile, t as createPhaseReporter } from "./phase-reporter-
|
|
6
|
-
import { t as PhaseTimeline } from "./progress-snapshot-
|
|
7
|
-
import { n as formatDuration } from "./formatting-
|
|
8
|
-
import { r as showBanner } from "./banner-
|
|
9
|
-
import { t as clearBuildDir } from "./fs-
|
|
10
|
-
import { t as loadKit } from "./kit-
|
|
11
|
-
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-
|
|
12
|
-
import { t as resolveServerBuild } from "./server-build-
|
|
13
|
-
import { i as resolveRootDir } from "./paths-
|
|
1
|
+
import { c as profileArgs, h as defineCommand, i as extendsArgs, l as rootDirArgs, n as dotEnvArgs, r as envNameArgs, s as logLevelArgs, u as targetArgs } from "./_shared-ObiFLtM9.mjs";
|
|
2
|
+
import { S as ActionableError, c as intro, d as outro, u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
3
|
+
import { n as resolveDotenvFileNames } from "./args-CAT9qhaw.mjs";
|
|
4
|
+
import { t as overrideEnv } from "./env-BTX46A5j.mjs";
|
|
5
|
+
import { i as stopCpuProfile, n as formatPhaseBreakdown, r as startCpuProfile, t as createPhaseReporter } from "./phase-reporter-4PlWKr01.mjs";
|
|
6
|
+
import { t as PhaseTimeline } from "./progress-snapshot-BEIE-Ir2.mjs";
|
|
7
|
+
import { n as formatDuration } from "./formatting-B89h0XiW.mjs";
|
|
8
|
+
import { r as showBanner } from "./banner-r3Yp_lIs.mjs";
|
|
9
|
+
import { t as clearBuildDir } from "./fs-BerxlAZq.mjs";
|
|
10
|
+
import { t as loadKit } from "./kit-BsoFle3Z.mjs";
|
|
11
|
+
import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-vznrWPLk.mjs";
|
|
12
|
+
import { t as resolveServerBuild } from "./server-build-Bivun9Hl.mjs";
|
|
13
|
+
import { i as resolveRootDir } from "./paths-BWaxgDBO.mjs";
|
|
14
14
|
import process from "node:process";
|
|
15
15
|
import { styleText } from "node:util";
|
|
16
16
|
import { relative } from "pathe";
|
|
17
|
-
|
|
17
|
+
// src/utils/build-progress.ts
|
|
18
18
|
/**
|
|
19
19
|
* Build phases, in the order they are reached. A phase is never re-entered, so
|
|
20
20
|
* the index only ever moves forward and the breakdown printed at the end lists
|
|
@@ -150,8 +150,7 @@ var BuildProgress = class extends PhaseTimeline {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
};
|
|
153
|
-
|
|
154
|
-
//#region src/commands/build.ts
|
|
153
|
+
// src/commands/build.ts
|
|
155
154
|
/** How often a phase repeats itself where there is no animated line. */
|
|
156
155
|
const HEARTBEAT_INTERVAL = 5e3;
|
|
157
156
|
var build_default = defineCommand({
|
|
@@ -260,5 +259,4 @@ var build_default = defineCommand({
|
|
|
260
259
|
}
|
|
261
260
|
}
|
|
262
261
|
});
|
|
263
|
-
//#endregion
|
|
264
262
|
export { build_default as default };
|
|
@@ -2,7 +2,7 @@ import process from "node:process";
|
|
|
2
2
|
import { join } from "pathe";
|
|
3
3
|
import { mkdirSync } from "node:fs";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
|
-
|
|
5
|
+
// src/utils/cache.ts
|
|
6
6
|
/**
|
|
7
7
|
* A directory under the user's cache home (`XDG_CACHE_HOME`, else `~/.cache`)
|
|
8
8
|
* for Nuxt to keep downloaded artefacts in, created if it does not exist.
|
|
@@ -13,5 +13,4 @@ function getCacheDir(...segments) {
|
|
|
13
13
|
mkdirSync(dir, { recursive: true });
|
|
14
14
|
return dir;
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { getCacheDir as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { dirname, join, resolve } from "pathe";
|
|
2
2
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { parseYAML } from "confbox/yaml";
|
|
4
|
-
|
|
4
|
+
// src/utils/catalog.ts
|
|
5
5
|
const CATALOG_SPECIFIER_RE = /^catalog:(.*)$/;
|
|
6
6
|
const DEFAULT_CATALOG = "default";
|
|
7
7
|
/**
|
|
@@ -232,5 +232,4 @@ function quoteYAMLKey(key) {
|
|
|
232
232
|
function quoteYAMLScalar(value) {
|
|
233
233
|
return value === "" || /^[-?:,[\]{}#&*!|>'"%@`]/.test(value) || /:\s|\s#|[\n\t]/.test(value) || value.trim() !== value ? JSON.stringify(value) : value;
|
|
234
234
|
}
|
|
235
|
-
//#endregion
|
|
236
235
|
export { clearCatalogCache, findPnpmWorkspaceYaml, parseCatalogSpecifier, readCatalogConfig, resolveCatalogEntry, updateCatalogEntries };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { S as ActionableError, s as debug, u as logger } from "./startup-clock-
|
|
2
|
-
import { t as findInPath } from "./path-env-
|
|
3
|
-
import { t as getCacheDir } from "./cache-
|
|
4
|
-
import { t as resolveTool } from "./binaries-
|
|
1
|
+
import { S as ActionableError, s as debug, u as logger } from "./startup-clock-Brvqy2C-.mjs";
|
|
2
|
+
import { t as findInPath } from "./path-env-DgxqH9NH.mjs";
|
|
3
|
+
import { t as getCacheDir } from "./cache-BJWDQT6x.mjs";
|
|
4
|
+
import { t as resolveTool } from "./binaries-CoyCkCUz.mjs";
|
|
5
5
|
import process from "node:process";
|
|
6
6
|
import { styleText } from "node:util";
|
|
7
7
|
import { join } from "pathe";
|
|
@@ -10,7 +10,7 @@ import { isIP } from "node:net";
|
|
|
10
10
|
import { X509Certificate, createHash, createPrivateKey } from "node:crypto";
|
|
11
11
|
import { readFile, writeFile } from "node:fs/promises";
|
|
12
12
|
import { execFileSync } from "node:child_process";
|
|
13
|
-
|
|
13
|
+
// src/dev/cert.ts
|
|
14
14
|
async function resolveCertificate(options) {
|
|
15
15
|
if (options.pfx) return {
|
|
16
16
|
pfx: await readCertificateFile(options.pfx, "--https.pfx"),
|
|
@@ -155,5 +155,4 @@ function generateWithOpenssl(certPath, keyPath, domains, validityDays = 30) {
|
|
|
155
155
|
return false;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
|
-
//#endregion
|
|
159
158
|
export { resolveCertificate };
|