@nuxt/cli-nightly 4.0.1-2610242016-93315b9 → 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.
Files changed (100) hide show
  1. package/dist/{_shared-nkqgCzEB.mjs → _shared-ObiFLtM9.mjs} +5 -9
  2. package/dist/{_utils-DsWzQ-XV.mjs → _utils-CWsYyU_S.mjs} +5 -6
  3. package/dist/{_utils-B0a0PSdh.mjs → _utils-bAmc4Gja.mjs} +7 -8
  4. package/dist/{add-mfAsugiS.mjs → add-BPcT2bES.mjs} +14 -16
  5. package/dist/add-DxdflBM6.mjs +4 -0
  6. package/dist/{add-template-BYavpY8U.mjs → add-template-Bj2TYQt-.mjs} +24 -43
  7. package/dist/{analyze-B3CHvv38.mjs → analyze-PMwxp1p_.mjs} +11 -12
  8. package/dist/{args-DGaOocsH.mjs → args-CAT9qhaw.mjs} +1 -2
  9. package/dist/{banner-lMLtjrKS.mjs → banner-r3Yp_lIs.mjs} +5 -7
  10. package/dist/{binaries-BwgN39nD.mjs → binaries-CoyCkCUz.mjs} +5 -6
  11. package/dist/boot.d.mts +1 -3
  12. package/dist/boot.mjs +4 -5
  13. package/dist/{broadcast-mciEtrFQ.mjs → broadcast-DlkNi15U.mjs} +2 -3
  14. package/dist/{build-DG401Hsc.mjs → build-DKRMFGJv.mjs} +15 -17
  15. package/dist/{cache-CKYx3gns.mjs → cache-BJWDQT6x.mjs} +1 -2
  16. package/dist/{catalog-TtcO3WFN.mjs → catalog-Dyn9F8h-.mjs} +1 -2
  17. package/dist/{cert-kjBThizO.mjs → cert-CL3CVdGa.mjs} +5 -6
  18. package/dist/{cleanup-kvPMMKL0.mjs → cleanup-mOzRdkbU.mjs} +6 -7
  19. package/dist/{compile-timing-C-twwYy6.mjs → compile-timing-B_KunOqs.mjs} +1 -2
  20. package/dist/{completions-BPzARA6g.mjs → completions-sUv020nV.mjs} +7 -13
  21. package/dist/{config-BFF62rAm.mjs → config-DzUIvbGt.mjs} +6 -10
  22. package/dist/{console-BgmzEcbV.mjs → console-CkLh6PBj.mjs} +4 -5
  23. package/dist/{controller-CvBZWi7x.mjs → controller-D1_hMZzN.mjs} +6 -7
  24. package/dist/{curl-DEiUjhyz.mjs → curl-BDWl-ub3.mjs} +8 -10
  25. package/dist/dev/index.d.mts +0 -18
  26. package/dist/dev/index.mjs +36 -51
  27. package/dist/{dev-CCoEPiwT.mjs → dev-AtDt4Vtw.mjs} +22 -25
  28. package/dist/{dev-child-D7zKK8vT.mjs → dev-child-BjWI2jDO.mjs} +3 -4
  29. package/dist/{dev-server-BbPB-3UF.mjs → dev-server-VUbWoDnc.mjs} +3 -4
  30. package/dist/{devtools-BcGRCaqO.mjs → devtools-DSju2wPe.mjs} +4 -5
  31. package/dist/{docs-DZMH3d_5.mjs → docs-BH-gjeyW.mjs} +8 -9
  32. package/dist/{docs-index-BIRwN9tz.mjs → docs-index-BgQdPkjD.mjs} +5 -6
  33. package/dist/{engines-DykDs_yF.mjs → engines-Cww7W0kL.mjs} +3 -4
  34. package/dist/{env-BkMPEX1D.mjs → env-BTX46A5j.mjs} +2 -3
  35. package/dist/{fetch-g4bhLuz9.mjs → fetch-C_KK6VWh.mjs} +1 -2
  36. package/dist/{first-frame-BfGM-BAA.mjs → first-frame-Bmls4swH.mjs} +9 -13
  37. package/dist/{formatting-Co5DEjad.mjs → formatting-B89h0XiW.mjs} +1 -2
  38. package/dist/{fs-CSqg02ri.mjs → fs-BerxlAZq.mjs} +1 -2
  39. package/dist/{generate-DIMfRZCL.mjs → generate-HL0LOEtF.mjs} +3 -4
  40. package/dist/{hang-DvJGbBHh.mjs → hang-CeKwpp7-.mjs} +2 -3
  41. package/dist/{highlight-CNtoRxLK.mjs → highlight-BO2Og4MK.mjs} +16 -32
  42. package/dist/{host-check-DW342-PP.mjs → host-check-Brcef2L-.mjs} +1 -2
  43. package/dist/index.d.mts +0 -6
  44. package/dist/index.mjs +43 -49
  45. package/dist/{info-CTN9BkUD.mjs → info-zJKwGe5z.mjs} +12 -13
  46. package/dist/{init-7qrvW_8M.mjs → init-BQdF4hrT.mjs} +4 -6
  47. package/dist/{install-DSVDREZm.mjs → install-4xMk3sj1.mjs} +3 -4
  48. package/dist/{kit-CbhDo9Zs.mjs → kit-BsoFle3Z.mjs} +3 -4
  49. package/dist/{list-DEZXE316.mjs → list-CGJ41xey.mjs} +6 -7
  50. package/dist/{listen-Dp-mDGLy.mjs → listen-Dob5VroR.mjs} +7 -11
  51. package/dist/{lockfile-B3ZS8bEh.mjs → lockfile-vznrWPLk.mjs} +2 -3
  52. package/dist/{log-channel-DEjp4g0E.mjs → log-channel-Cbl9Hx9p.mjs} +2 -3
  53. package/dist/module-yEtMd58h.mjs +15 -0
  54. package/dist/{names-BemXlTaX.mjs → names-tK6YAhfF.mjs} +1 -2
  55. package/dist/{nuxt-CCjsh7BJ.mjs → nuxt-DJuU-J2_.mjs} +3 -4
  56. package/dist/{nuxt-config-zyufWWwx.mjs → nuxt-config-DvyFKfn_.mjs} +1 -2
  57. package/dist/{nuxt-packages-2vh2Ybse.mjs → nuxt-packages-DI1WwngW.mjs} +1 -2
  58. package/dist/{package-json-DACIqDr_.mjs → package-json-DQZk9pws.mjs} +1 -2
  59. package/dist/{package-managers-B9HZ9pY9.mjs → package-managers-lR2ICmUG.mjs} +2 -3
  60. package/dist/{path-env-D9Xd_BAN.mjs → path-env-DgxqH9NH.mjs} +4 -7
  61. package/dist/{paths-DlXZaaIg.mjs → paths-BWaxgDBO.mjs} +3 -4
  62. package/dist/{phase-reporter-xcVDefHV.mjs → phase-reporter-4PlWKr01.mjs} +6 -8
  63. package/dist/{pkg-CInP2k7X.mjs → pkg-CcVIZkyU.mjs} +3 -4
  64. package/dist/{prepare-BwGutOXk.mjs → prepare-DzKrOAC0.mjs} +9 -10
  65. package/dist/{preview-CfirR92k.mjs → preview-DR7grQsj.mjs} +12 -14
  66. package/dist/{progress-snapshot-BsUn_089.mjs → progress-snapshot-BEIE-Ir2.mjs} +1 -2
  67. package/dist/{reason-BzYs8eZ4.mjs → reason-ZeAW2Y3R.mjs} +4 -6
  68. package/dist/{registry-B7GzM18R.mjs → registry-CBGsoXLh.mjs} +2 -3
  69. package/dist/{release-notes-BQieF1F4.mjs → release-notes-nQz36YNr.mjs} +1 -2
  70. package/dist/{remove-B_pmLNty.mjs → remove-CFMT2Lwu.mjs} +11 -12
  71. package/dist/{resolve-nuxt-VKCDOC-A.mjs → resolve-nuxt-l3Qmn2zH.mjs} +1 -2
  72. package/dist/{rolldown-runtime-D7D4PA-g.mjs → rolldown-runtime-D8jQpDG7.mjs} +1 -2
  73. package/dist/{run-DQa_HKu7.mjs → run-1oUF_7Q8.mjs} +5 -6
  74. package/dist/{search-yrc-48sC.mjs → search-DtnmRmC5.mjs} +8 -9
  75. package/dist/{server-build-Cga7EB-K.mjs → server-build-Bivun9Hl.mjs} +1 -2
  76. package/dist/{serving-state-Cts7VBoa.mjs → serving-state-fIXs1OJo.mjs} +1 -2
  77. package/dist/{session-DCdLW1mF.mjs → session-CJaCF2gy.mjs} +11 -14
  78. package/dist/{shortcut-context-B1rQszYJ.mjs → shortcut-context-jl_XQvPi.mjs} +1 -2
  79. package/dist/{shortcuts-1_r5Cfkh.mjs → shortcuts-DcyQbGhs.mjs} +4 -5
  80. package/dist/{shutdown-BavsC3O_.mjs → shutdown-16FH-C3A.mjs} +4 -5
  81. package/dist/{span-channel-CmmfG3vs.mjs → span-channel-BzXzBXzJ.mjs} +2 -3
  82. package/dist/{spinner-Cj-5sQW4.mjs → spinner-BSFu_Z9-.mjs} +4 -5
  83. package/dist/{start-BJjTJm2O.mjs → start-BU8acJdu.mjs} +3 -4
  84. package/dist/{startup-clock-DXZlxuSA.mjs → startup-clock-Brvqy2C-.mjs} +6 -11
  85. package/dist/{support-Dvae58g8.mjs → support-C5Mr02jF.mjs} +2 -3
  86. package/dist/{takeover-D0x-_4xO.mjs → takeover-CSIrECPD.mjs} +7 -8
  87. package/dist/task-DhSP0yi4.mjs +14 -0
  88. package/dist/{terminal-theme-BUtyan0v.mjs → terminal-theme-ClkB-QvF.mjs} +1 -2
  89. package/dist/{test-CHFGUO9A.mjs → test-D_APmpUl.mjs} +4 -5
  90. package/dist/{tui-g_00PWqA.mjs → tui-CW_X4Mk6.mjs} +25 -36
  91. package/dist/{tunnel-CneTg7qS.mjs → tunnel-PaNmyzym.mjs} +3 -4
  92. package/dist/{typecheck-dI7o5cA8.mjs → typecheck-BOACnn21.mjs} +11 -12
  93. package/dist/{update-X8ao_jua.mjs → update-DuAXhoRs.mjs} +4 -5
  94. package/dist/{update-check-DC_pUt-A.mjs → update-check-CcnXaY6J.mjs} +6 -7
  95. package/dist/{upgrade-BvYjNv2K.mjs → upgrade-BeJxKiZz.mjs} +11 -12
  96. package/dist/{versions-BA3DmZ0X.mjs → versions-B-6QvS-C.mjs} +8 -9
  97. package/package.json +2 -2
  98. package/dist/add-J8lEmlWj.mjs +0 -5
  99. package/dist/module-CarVxbPe.mjs +0 -16
  100. package/dist/task-Bq_rcluO.mjs +0 -15
@@ -1,5 +1,5 @@
1
1
  import { parseArgs } from "node:util";
2
- //#region ../../node_modules/.pnpm/citty@0.2.2_patch_hash=24c57c383378e5de0f0b955a987077b0d3ab2cc2f1d3919c5193e801c7afadac/node_modules/citty/dist/_chunks/libs/scule.mjs
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
- //#endregion
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
- //#endregion
533
- //#region package.json
531
+ // package.json
534
532
  var name = "@nuxt/cli-nightly";
535
- var version = "4.0.1-2610242016-93315b9";
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
- //#endregion
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-nkqgCzEB.mjs";
2
- import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
3
- import { r as relativeToProcess } from "./paths-DlXZaaIg.mjs";
4
- import { t as fetchJson } from "./fetch-g4bhLuz9.mjs";
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
- //#region src/commands/module/_utils.ts
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-DXZlxuSA.mjs";
2
- import { i as logNetworkError } from "./path-env-D9Xd_BAN.mjs";
3
- import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
4
- import { n as getNuxtConfig } from "./nuxt-config-zyufWWwx.mjs";
5
- import { a as resolveLockDir, i as noDevServerMessage, n as findNitroDevWorker, o as toLoopback, t as findDevServer } from "./dev-server-BbPB-3UF.mjs";
6
- import { t as highlight } from "./highlight-CNtoRxLK.mjs";
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
- //#region src/commands/task/_utils.ts
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-nkqgCzEB.mjs";
2
- import { u as logger } from "./startup-clock-DXZlxuSA.mjs";
3
- import { i as logNetworkError } from "./path-env-D9Xd_BAN.mjs";
4
- import { n as createNuxtConfig, o as runCommandDef, r as readNuxtConfig, t as addNuxtConfigEntries } from "./config-BFF62rAm.mjs";
5
- import { t as fetchJson } from "./fetch-g4bhLuz9.mjs";
6
- import { a as isPackageManagerName, n as detectPackageManager, o as packageManagerNames, t as defaultPackageManager } from "./package-managers-B9HZ9pY9.mjs";
7
- import { a as runInstall, o as takeUnreportedIgnoredBuilds, r as isVerboseInstall, t as createInstallLog } from "./install-DSVDREZm.mjs";
8
- import { t as createSpinner } from "./spinner-Cj-5sQW4.mjs";
9
- import { n as getNuxtVersion } from "./versions-BA3DmZ0X.mjs";
10
- import { t as prepare_default } from "./prepare-BwGutOXk.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-DsWzQ-XV.mjs";
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
- //#region src/commands/module/_autocomplete.ts
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
- //#endregion
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-B7GzM18R.mjs").then((n) => n.r);
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 };
@@ -0,0 +1,4 @@
1
+ import { defineAddCommand } from "./add-BPcT2bES.mjs";
2
+ // src/commands/add.ts
3
+ var add_default = defineAddCommand({ layers: true });
4
+ export { add_default as default };
@@ -1,14 +1,14 @@
1
- import { h as defineCommand, s as logLevelArgs, t as cwdArgs } from "./_shared-nkqgCzEB.mjs";
2
- import { c as intro, d as outro, u as logger } from "./startup-clock-DXZlxuSA.mjs";
3
- import { t as templateNames } from "./names-BemXlTaX.mjs";
4
- import { t as loadKit } from "./kit-CbhDo9Zs.mjs";
5
- import { r as relativeToProcess } from "./paths-DlXZaaIg.mjs";
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
- //#region src/utils/templates/modifiers.ts
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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
- //#endregion
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-nkqgCzEB.mjs";
2
- import { S as ActionableError, c as intro$1, d as outro$1, u as logger } from "./startup-clock-DXZlxuSA.mjs";
3
- import { n as resolveDotenvFileNames } from "./args-DGaOocsH.mjs";
4
- import { t as overrideEnv } from "./env-BkMPEX1D.mjs";
5
- import { t as isAllowedHost } from "./host-check-DW342-PP.mjs";
6
- import { n as clearDir } from "./fs-CSqg02ri.mjs";
7
- import { t as loadKit } from "./kit-CbhDo9Zs.mjs";
8
- import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-B3ZS8bEh.mjs";
9
- import { t as resolveServerBuild } from "./server-build-Cga7EB-K.mjs";
10
- import { i as resolveRootDir, r as relativeToProcess } from "./paths-DlXZaaIg.mjs";
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
- //#region src/commands/analyze.ts
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
- //#region src/utils/args.ts
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-DXZlxuSA.mjs";
2
- import { t as NUXT_PACKAGES } from "./nuxt-packages-2vh2Ybse.mjs";
3
- import { n as getPkgJSON, r as getPkgVersion, t as getNuxtPkgVersion } from "./pkg-CInP2k7X.mjs";
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
- //#region src/utils/nitro.ts
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
- //#endregion
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-DXZlxuSA.mjs";
2
- import { c as withDirectStdout, o as restoreRawMode } from "./console-BgmzEcbV.mjs";
3
- import { i as logNetworkError, t as findInPath } from "./path-env-D9Xd_BAN.mjs";
4
- import { t as getCacheDir } from "./cache-CKYx3gns.mjs";
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
- //#region src/dev/binaries.ts
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
- //#region src/boot.ts
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-BfGM-BAA.mjs").then((n) => n.n);
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-B1rQszYJ.mjs");
24
- const { setupDevUI } = await import("./controller-CvBZWi7x.mjs");
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-DXZlxuSA.mjs";
1
+ import { s as debug } from "./startup-clock-Brvqy2C-.mjs";
2
2
  import { BroadcastChannel } from "node:worker_threads";
3
- //#region src/dev/broadcast.ts
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-nkqgCzEB.mjs";
2
- import { S as ActionableError, c as intro, d as outro, u as logger } from "./startup-clock-DXZlxuSA.mjs";
3
- import { n as resolveDotenvFileNames } from "./args-DGaOocsH.mjs";
4
- import { t as overrideEnv } from "./env-BkMPEX1D.mjs";
5
- import { i as stopCpuProfile, n as formatPhaseBreakdown, r as startCpuProfile, t as createPhaseReporter } from "./phase-reporter-xcVDefHV.mjs";
6
- import { t as PhaseTimeline } from "./progress-snapshot-BsUn_089.mjs";
7
- import { n as formatDuration } from "./formatting-Co5DEjad.mjs";
8
- import { r as showBanner } from "./banner-lMLtjrKS.mjs";
9
- import { t as clearBuildDir } from "./fs-CSqg02ri.mjs";
10
- import { t as loadKit } from "./kit-CbhDo9Zs.mjs";
11
- import { a as formatLockError, n as acquireOutputLock, t as acquireLock } from "./lockfile-B3ZS8bEh.mjs";
12
- import { t as resolveServerBuild } from "./server-build-Cga7EB-K.mjs";
13
- import { i as resolveRootDir } from "./paths-DlXZaaIg.mjs";
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
- //#region src/utils/build-progress.ts
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
- //#endregion
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
- //#region src/utils/cache.ts
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
- //#region src/utils/catalog.ts
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-DXZlxuSA.mjs";
2
- import { t as findInPath } from "./path-env-D9Xd_BAN.mjs";
3
- import { t as getCacheDir } from "./cache-CKYx3gns.mjs";
4
- import { t as resolveTool } from "./binaries-BwgN39nD.mjs";
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
- //#region src/dev/cert.ts
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 };