nitro 3.0.260311-beta → 3.0.260415-beta

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 (206) hide show
  1. package/dist/_build/common.mjs +630 -1602
  2. package/dist/_build/rolldown.mjs +0 -11
  3. package/dist/_build/rollup.mjs +0 -13
  4. package/dist/_build/vite.build.mjs +0 -2
  5. package/dist/_chunks/nitro.mjs +23 -216
  6. package/dist/_chunks/nitro2.mjs +0 -2
  7. package/dist/_chunks/nitro3.mjs +128 -121
  8. package/dist/_chunks/nitro4.mjs +127 -0
  9. package/dist/_chunks/utils.mjs +0 -7
  10. package/dist/_common.mjs +0 -2
  11. package/dist/_dev.d.mts +0 -3
  12. package/dist/_dev.mjs +0 -10
  13. package/dist/_libs/_.mjs +0 -1
  14. package/dist/_libs/_3.mjs +0 -1
  15. package/dist/_libs/_5.mjs +0 -1
  16. package/dist/_libs/_6.mjs +0 -2
  17. package/dist/_libs/_7.mjs +0 -3
  18. package/dist/_libs/c12+rc9.mjs +24 -22
  19. package/dist/_libs/c12+readdirp+chokidar.d.mts +0 -7
  20. package/dist/_libs/citty.mjs +134 -31
  21. package/dist/_libs/commondir+is-reference.mjs +2 -9
  22. package/dist/_libs/compatx.d.mts +0 -2
  23. package/dist/_libs/compatx.mjs +0 -2
  24. package/dist/_libs/esbuild.d.mts +0 -1
  25. package/dist/_libs/escape-string-regexp.mjs +0 -2
  26. package/dist/_libs/estree+pluginutils.d.mts +0 -5
  27. package/dist/_libs/estree-walker.mjs +3 -88
  28. package/dist/_libs/hasown+resolve+deepmerge.mjs +22 -85
  29. package/dist/_libs/httpxy.d.mts +9 -5
  30. package/dist/_libs/httpxy.mjs +284 -116
  31. package/dist/_libs/klona.mjs +0 -2
  32. package/dist/_libs/magic-string.d.mts +0 -2
  33. package/dist/_libs/mlly.d.mts +0 -2
  34. package/dist/_libs/nypm+tinyexec.mjs +111 -134
  35. package/dist/_libs/perfect-debounce.mjs +0 -20
  36. package/dist/_libs/pkg-types.d.mts +0 -3
  37. package/dist/_libs/plugin-alias.mjs +0 -2
  38. package/dist/_libs/plugin-inject.mjs +0 -2
  39. package/dist/_libs/plugin-json.mjs +0 -2
  40. package/dist/_libs/pluginutils.mjs +0 -26
  41. package/dist/_libs/readdirp+chokidar.mjs +0 -173
  42. package/dist/_libs/remapping.mjs +0 -2
  43. package/dist/_libs/resolve-uri+gen-mapping.mjs +0 -32
  44. package/dist/_libs/rou3.d.mts +0 -4
  45. package/dist/_libs/rou3.mjs +0 -29
  46. package/dist/_libs/std-env.d.mts +1 -3
  47. package/dist/_libs/tsconfck.mjs +0 -294
  48. package/dist/_libs/ultrahtml.mjs +0 -2
  49. package/dist/_libs/unimport+unplugin.mjs +1 -44
  50. package/dist/_libs/unplugin+unimport.d.mts +0 -7
  51. package/dist/_libs/unwasm.d.mts +0 -3
  52. package/dist/_presets.mjs +211 -80
  53. package/dist/builder.d.mts +1 -22
  54. package/dist/builder.mjs +0 -11
  55. package/dist/cli/_chunks/build.mjs +0 -2
  56. package/dist/cli/_chunks/common.mjs +0 -2
  57. package/dist/cli/_chunks/deploy.mjs +0 -3
  58. package/dist/cli/_chunks/dev.mjs +0 -5
  59. package/dist/cli/_chunks/docs.mjs +1 -3
  60. package/dist/cli/_chunks/list.mjs +0 -2
  61. package/dist/cli/_chunks/prepare.mjs +0 -2
  62. package/dist/cli/_chunks/preview.mjs +1 -4
  63. package/dist/cli/_chunks/run.mjs +0 -2
  64. package/dist/cli/_chunks/task.mjs +0 -2
  65. package/dist/cli/index.mjs +0 -2
  66. package/{skills/nitro/docs/docs/quick-start.md → dist/docs/0.docs/1.quick-start.md} +4 -4
  67. package/{skills/nitro/docs/docs/lifecycle.md → dist/docs/0.docs/10.lifecycle.md} +4 -4
  68. package/dist/docs/0.docs/11.openapi.md +291 -0
  69. package/{skills/nitro/docs/docs/plugins.md → dist/docs/0.docs/12.plugins.md} +2 -2
  70. package/{skills/nitro/docs/docs/tasks.md → dist/docs/0.docs/13.tasks.md} +6 -6
  71. package/dist/docs/0.docs/14.websocket.md +386 -0
  72. package/{skills/nitro/docs/docs/migration.md → dist/docs/0.docs/15.migration.md} +2 -4
  73. package/{skills/nitro/docs/docs/renderer.md → dist/docs/0.docs/2.renderer.md} +8 -8
  74. package/{skills/nitro/docs/docs/routing.md → dist/docs/0.docs/3.routing.md} +34 -34
  75. package/{skills/nitro/docs/docs/server-entry.md → dist/docs/0.docs/4.server-entry.md} +6 -6
  76. package/{skills/nitro/docs/docs/cache.md → dist/docs/0.docs/5.cache.md} +12 -12
  77. package/{skills/nitro/docs/docs/storage.md → dist/docs/0.docs/6.storage.md} +6 -6
  78. package/{skills/nitro/docs/docs/assets.md → dist/docs/0.docs/7.assets.md} +8 -8
  79. package/{skills/nitro/docs/docs/configuration.md → dist/docs/0.docs/8.configuration.md} +16 -16
  80. package/{skills/nitro/docs/docs/database.md → dist/docs/0.docs/9.database.md} +6 -6
  81. package/{skills/nitro/docs/deploy → dist/docs/1.deploy/0.index}/index.md +3 -3
  82. package/{skills/nitro/docs/deploy/providers/aws.md → dist/docs/1.deploy/2.providers/1.aws.md} +4 -4
  83. package/{skills/nitro/docs/deploy/providers/iis.md → dist/docs/1.deploy/2.providers/15.iis.md} +2 -2
  84. package/{skills/nitro/docs/deploy/providers/aws-amplify.md → dist/docs/1.deploy/2.providers/2.aws-amplify.md} +2 -2
  85. package/{skills/nitro/docs/deploy/providers/vercel.md → dist/docs/1.deploy/2.providers/21.vercel.md} +98 -7
  86. package/{skills/nitro/docs/deploy/providers/zephyr.md → dist/docs/1.deploy/2.providers/23.zephyr.md} +2 -2
  87. package/{skills/nitro/docs/deploy/providers/cloudflare.md → dist/docs/1.deploy/2.providers/5.cloudflare.md} +9 -15
  88. package/dist/docs/1.deploy/2.providers/8.edgeone.md +20 -0
  89. package/{skills/nitro/docs/config → dist/docs/2.config/0.index}/index.md +165 -91
  90. package/{skills/nitro/docs/examples/hono.md → dist/docs/3.examples/10.hono.md} +1 -1
  91. package/{skills/nitro/docs/examples/import-alias.md → dist/docs/3.examples/11.import-alias.md} +1 -4
  92. package/{skills/nitro/docs/examples/mono-jsx.md → dist/docs/3.examples/13.mono-jsx.md} +2 -2
  93. package/{skills/nitro/docs/examples/plugins.md → dist/docs/3.examples/15.plugins.md} +4 -4
  94. package/{skills/nitro/docs/examples/shiki.md → dist/docs/3.examples/19.shiki.md} +1 -1
  95. package/{skills/nitro/docs/examples/auto-imports.md → dist/docs/3.examples/2.auto-imports.md} +0 -1
  96. package/{skills/nitro/docs/examples/vite-nitro-plugin.md → dist/docs/3.examples/21.vite-nitro-plugin.md} +1 -1
  97. package/{skills/nitro/docs/examples/vite-rsc.md → dist/docs/3.examples/22.vite-rsc.md} +4 -4
  98. package/{skills/nitro/docs/examples/vite-ssr-html.md → dist/docs/3.examples/23.vite-ssr-html.md} +3 -3
  99. package/{skills/nitro/docs/examples/vite-ssr-preact.md → dist/docs/3.examples/24.vite-ssr-preact.md} +6 -6
  100. package/{skills/nitro/docs/examples/vite-ssr-react.md → dist/docs/3.examples/25.vite-ssr-react.md} +3 -3
  101. package/{skills/nitro/docs/examples/vite-ssr-solid.md → dist/docs/3.examples/26.vite-ssr-solid.md} +3 -3
  102. package/{skills/nitro/docs/examples/vite-ssr-tsr-react.md → dist/docs/3.examples/27.vite-ssr-tsr-react.md} +6 -6
  103. package/{skills/nitro/docs/examples/vite-ssr-tss-react.md → dist/docs/3.examples/28.vite-ssr-tss-react.md} +11 -11
  104. package/{skills/nitro/docs/examples/vite-ssr-vue-router.md → dist/docs/3.examples/29.vite-ssr-vue-router.md} +6 -5
  105. package/{skills/nitro/docs/examples/vite-trpc.md → dist/docs/3.examples/30.vite-trpc.md} +3 -3
  106. package/{skills/nitro/docs/examples/elysia.md → dist/docs/3.examples/6.elysia.md} +1 -1
  107. package/{skills/nitro/docs/examples/fastify.md → dist/docs/3.examples/8.fastify.md} +1 -1
  108. package/dist/docs/README.md +86 -0
  109. package/dist/node_modules/@speed-highlight/core/dist/index.js +4 -4
  110. package/dist/node_modules/@speed-highlight/core/dist/terminal.js +2 -2
  111. package/dist/node_modules/@speed-highlight/core/package.json +1 -1
  112. package/dist/node_modules/cookie-es/dist/index.mjs +299 -250
  113. package/dist/node_modules/cookie-es/package.json +26 -23
  114. package/dist/node_modules/defu/dist/defu.mjs +2 -2
  115. package/dist/node_modules/defu/package.json +33 -28
  116. package/dist/node_modules/rendu/dist/_chunks/libs/cookie-es.mjs +151 -0
  117. package/dist/node_modules/rendu/dist/index.mjs +5 -112
  118. package/dist/node_modules/rendu/package.json +25 -24
  119. package/dist/node_modules/youch/package.json +2 -2
  120. package/dist/presets/_nitro/runtime/nitro-dev.mjs +3 -1
  121. package/dist/presets/_nitro/runtime/service-worker.mjs +1 -1
  122. package/dist/presets/aws-lambda/runtime/_utils.mjs +6 -6
  123. package/dist/presets/azure/runtime/_utils.mjs +5 -5
  124. package/dist/presets/azure/runtime/azure-swa.mjs +5 -5
  125. package/dist/presets/bun/runtime/bun.mjs +5 -3
  126. package/dist/presets/cloudflare/runtime/_module-handler.mjs +1 -1
  127. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +4 -4
  128. package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +3 -3
  129. package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +2 -2
  130. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +10 -21
  131. package/dist/presets/deno/runtime/deno-deploy.mjs +4 -4
  132. package/dist/presets/deno/runtime/deno-server.mjs +5 -3
  133. package/dist/presets/edgeone/runtime/edgeone.mjs +10 -0
  134. package/dist/presets/netlify/runtime/netlify-edge.mjs +2 -2
  135. package/dist/presets/node/runtime/node-cluster.mjs +2 -2
  136. package/dist/presets/node/runtime/node-middleware.mjs +1 -1
  137. package/dist/presets/node/runtime/node-server.mjs +5 -3
  138. package/dist/presets/stormkit/runtime/stormkit.mjs +1 -1
  139. package/dist/presets/vercel/runtime/cron-handler.mjs +1 -1
  140. package/dist/presets/vercel/runtime/queue-handler.mjs +21 -0
  141. package/dist/presets/vercel/runtime/vercel.node.mjs +3 -3
  142. package/dist/presets/vercel/runtime/vercel.web.mjs +1 -1
  143. package/dist/presets/winterjs/runtime/winterjs.mjs +10 -10
  144. package/dist/runtime/internal/app.mjs +12 -11
  145. package/dist/runtime/internal/context.mjs +1 -9
  146. package/dist/runtime/internal/error/dev.mjs +10 -10
  147. package/dist/runtime/internal/route-rules.d.mts +3 -1
  148. package/dist/runtime/internal/route-rules.mjs +9 -7
  149. package/dist/runtime/internal/routes/dev-tasks.mjs +13 -12
  150. package/dist/runtime/internal/routes/openapi.mjs +2 -2
  151. package/dist/runtime/internal/routes/scalar.mjs +3 -3
  152. package/dist/runtime/internal/routes/swagger.mjs +7 -4
  153. package/dist/runtime/internal/runtime-config.mjs +2 -2
  154. package/dist/runtime/internal/task.mjs +5 -5
  155. package/dist/runtime/meta.d.mts +1 -0
  156. package/dist/runtime/meta.mjs +1 -0
  157. package/dist/runtime/nitro.mjs +3 -3
  158. package/dist/runtime/virtual/renderer-template.mjs +1 -1
  159. package/dist/runtime/virtual/tracing.d.mts +5 -0
  160. package/dist/runtime/virtual/tracing.mjs +1 -0
  161. package/dist/types/index.d.mts +155 -86
  162. package/dist/vite.d.mts +0 -5
  163. package/dist/vite.mjs +57 -28
  164. package/lib/tsconfig.json +3 -5
  165. package/package.json +56 -54
  166. package/skills/nitro/SKILL.md +0 -10
  167. package/skills/nitro/docs/TOC.md +0 -83
  168. package/skills/nitro/docs/_navigation.json +0 -679
  169. /package/{skills/nitro/docs/docs → dist/docs/0.docs/0.index}/index.md +0 -0
  170. /package/{skills/nitro/docs/docs/nightly.md → dist/docs/0.docs/16.nightly.md} +0 -0
  171. /package/{skills/nitro/docs/deploy/runtimes/node.md → dist/docs/1.deploy/1.runtimes/0.node.md} +0 -0
  172. /package/{skills/nitro/docs/deploy/runtimes/bun.md → dist/docs/1.deploy/1.runtimes/1.bun.md} +0 -0
  173. /package/{skills/nitro/docs/deploy/runtimes/deno.md → dist/docs/1.deploy/1.runtimes/2.deno.md} +0 -0
  174. /package/{skills/nitro/docs/deploy/providers/alwaysdata.md → dist/docs/1.deploy/2.providers/0.alwaysdata.md} +0 -0
  175. /package/{skills/nitro/docs/deploy/providers/flightcontrol.md → dist/docs/1.deploy/2.providers/10.flightcontrol.md} +0 -0
  176. /package/{skills/nitro/docs/deploy/providers/genezio.md → dist/docs/1.deploy/2.providers/11.genezio.md} +0 -0
  177. /package/{skills/nitro/docs/deploy/providers/github-pages.md → dist/docs/1.deploy/2.providers/12.github-pages.md} +0 -0
  178. /package/{skills/nitro/docs/deploy/providers/gitlab-pages.md → dist/docs/1.deploy/2.providers/13.gitlab-pages.md} +0 -0
  179. /package/{skills/nitro/docs/deploy/providers/heroku.md → dist/docs/1.deploy/2.providers/14.heroku.md} +0 -0
  180. /package/{skills/nitro/docs/deploy/providers/koyeb.md → dist/docs/1.deploy/2.providers/16.koyeb.md} +0 -0
  181. /package/{skills/nitro/docs/deploy/providers/netlify.md → dist/docs/1.deploy/2.providers/17.netlify.md} +0 -0
  182. /package/{skills/nitro/docs/deploy/providers/platform-sh.md → dist/docs/1.deploy/2.providers/18.platform-sh.md} +0 -0
  183. /package/{skills/nitro/docs/deploy/providers/render.md → dist/docs/1.deploy/2.providers/19.render.md} +0 -0
  184. /package/{skills/nitro/docs/deploy/providers/stormkit.md → dist/docs/1.deploy/2.providers/20.stormkit.md} +0 -0
  185. /package/{skills/nitro/docs/deploy/providers/zeabur.md → dist/docs/1.deploy/2.providers/22.zeabur.md} +0 -0
  186. /package/{skills/nitro/docs/deploy/providers/zerops.md → dist/docs/1.deploy/2.providers/24.zerops.md} +0 -0
  187. /package/{skills/nitro/docs/deploy/providers/azure.md → dist/docs/1.deploy/2.providers/3.azure.md} +0 -0
  188. /package/{skills/nitro/docs/deploy/providers/cleavr.md → dist/docs/1.deploy/2.providers/4.cleavr.md} +0 -0
  189. /package/{skills/nitro/docs/deploy/providers/deno-deploy.md → dist/docs/1.deploy/2.providers/6.deno-deploy.md} +0 -0
  190. /package/{skills/nitro/docs/deploy/providers/digitalocean.md → dist/docs/1.deploy/2.providers/7.digitalocean.md} +0 -0
  191. /package/{skills/nitro/docs/deploy/providers/firebase.md → dist/docs/1.deploy/2.providers/9.firebase.md} +0 -0
  192. /package/{skills/nitro/docs/examples → dist/docs/3.examples/0.index}/index.md +0 -0
  193. /package/{skills/nitro/docs/examples/api-routes.md → dist/docs/3.examples/1.api-routes.md} +0 -0
  194. /package/{skills/nitro/docs/examples/middleware.md → dist/docs/3.examples/12.middleware.md} +0 -0
  195. /package/{skills/nitro/docs/examples/nano-jsx.md → dist/docs/3.examples/14.nano-jsx.md} +0 -0
  196. /package/{skills/nitro/docs/examples/renderer.md → dist/docs/3.examples/16.renderer.md} +0 -0
  197. /package/{skills/nitro/docs/examples/runtime-config.md → dist/docs/3.examples/17.runtime-config.md} +0 -0
  198. /package/{skills/nitro/docs/examples/server-fetch.md → dist/docs/3.examples/18.server-fetch.md} +0 -0
  199. /package/{skills/nitro/docs/examples/virtual-routes.md → dist/docs/3.examples/20.virtual-routes.md} +0 -0
  200. /package/{skills/nitro/docs/examples/cached-handler.md → dist/docs/3.examples/3.cached-handler.md} +0 -0
  201. /package/{skills/nitro/docs/examples/websocket.md → dist/docs/3.examples/31.websocket.md} +0 -0
  202. /package/{skills/nitro/docs/examples/custom-error-handler.md → dist/docs/3.examples/4.custom-error-handler.md} +0 -0
  203. /package/{skills/nitro/docs/examples/database.md → dist/docs/3.examples/5.database.md} +0 -0
  204. /package/{skills/nitro/docs/examples/express.md → dist/docs/3.examples/7.express.md} +0 -0
  205. /package/{skills/nitro/docs/examples/hello-world.md → dist/docs/3.examples/9.hello-world.md} +0 -0
  206. /package/{skills/nitro → dist}/docs/index.md +0 -0
@@ -1,4 +1,3 @@
1
- //#region node_modules/.pnpm/magic-string@0.30.21/node_modules/magic-string/dist/magic-string.es.d.mts
2
1
  interface SourceMapOptions {
3
2
  /**
4
3
  * Whether the mapping should be high-resolution.
@@ -216,5 +215,4 @@ declare class MagicString {
216
215
  toString(): string;
217
216
  offset: number;
218
217
  }
219
- //#endregion
220
218
  export { MagicString as t };
@@ -1,4 +1,3 @@
1
- //#region node_modules/.pnpm/mlly@1.8.1/node_modules/mlly/dist/index.d.ts
2
1
  /**
3
2
  * Represents a general structure for ECMAScript module exports.
4
3
  */
@@ -53,5 +52,4 @@ interface ESMExport {
53
52
  * Represents a declaration export within an ECMAScript module.
54
53
  * Extends {@link ESMExport}.
55
54
  */
56
- //#endregion
57
55
  export { ESMExport as t };
@@ -4,74 +4,54 @@ import { existsSync } from "node:fs";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import { delimiter, dirname, join, normalize, resolve } from "node:path";
6
6
  import { cwd } from "node:process";
7
- import { createRequire as createRequire$1 } from "module";
8
7
  import { PassThrough } from "node:stream";
9
8
  import { spawn } from "node:child_process";
10
9
  import c from "node:readline";
11
- //#region node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js
12
- var l = Object.create;
13
- var u = Object.defineProperty;
14
- var d = Object.getOwnPropertyDescriptor;
15
- var f = Object.getOwnPropertyNames;
16
- var p = Object.getPrototypeOf;
17
- var m = Object.prototype.hasOwnProperty;
18
- var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
19
- var g = (e, t, n, r) => {
20
- if (t && typeof t === "object" || typeof t === "function") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {
21
- s = i[a];
22
- if (!m.call(e, s) && s !== n) u(e, s, {
23
- get: ((e) => t[e]).bind(null, s),
24
- enumerable: !(r = d(t, s)) || r.enumerable
25
- });
26
- }
27
- return e;
28
- };
29
- var _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, "default", {
30
- value: e,
31
- enumerable: true
32
- }) : n, e));
33
- var v = /* @__PURE__ */ createRequire$1(import.meta.url);
34
- const y = /^path$/i;
35
- const b = {
10
+ var l = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
11
+ var u = /* @__PURE__ */ createRequire(import.meta.url);
12
+ const d = /^path$/i;
13
+ const f = {
36
14
  key: "PATH",
37
15
  value: ""
38
16
  };
39
- function x(e) {
17
+ function p(e) {
40
18
  for (const t in e) {
41
- if (!Object.prototype.hasOwnProperty.call(e, t) || !y.test(t)) continue;
19
+ if (!Object.prototype.hasOwnProperty.call(e, t) || !d.test(t)) continue;
42
20
  const n = e[t];
43
- if (!n) return b;
21
+ if (!n) return f;
44
22
  return {
45
23
  key: t,
46
24
  value: n
47
25
  };
48
26
  }
49
- return b;
27
+ return f;
50
28
  }
51
- function S(e, t) {
29
+ function m(e, t) {
52
30
  const i = t.value.split(delimiter);
53
- let o = e;
54
- let s;
31
+ const o = [];
32
+ let s = e;
33
+ let c;
55
34
  do {
56
- i.push(resolve(o, "node_modules", ".bin"));
57
- s = o;
58
- o = dirname(o);
59
- } while (o !== s);
35
+ o.push(resolve(s, "node_modules", ".bin"));
36
+ c = s;
37
+ s = dirname(s);
38
+ } while (s !== c);
39
+ const l = o.concat(i).join(delimiter);
60
40
  return {
61
41
  key: t.key,
62
- value: i.join(delimiter)
42
+ value: l
63
43
  };
64
44
  }
65
- function C(e, t) {
45
+ function h(e, t) {
66
46
  const n = {
67
47
  ...process.env,
68
48
  ...t
69
49
  };
70
- const r = S(e, x(n));
50
+ const r = m(e, p(n));
71
51
  n[r.key] = r.value;
72
52
  return n;
73
53
  }
74
- const w = (e) => {
54
+ const g = (e) => {
75
55
  let t = e.length;
76
56
  const n = new PassThrough();
77
57
  const r = () => {
@@ -83,10 +63,10 @@ const w = (e) => {
83
63
  }
84
64
  return n;
85
65
  };
86
- var T = h((exports, t) => {
66
+ var _ = /* @__PURE__ */ l(((e, t) => {
87
67
  t.exports = a;
88
68
  a.sync = o;
89
- var n = v("fs");
69
+ var n = u("fs");
90
70
  function r(e, t) {
91
71
  var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
92
72
  if (!n) return true;
@@ -110,11 +90,11 @@ var T = h((exports, t) => {
110
90
  function o(e, t) {
111
91
  return i(n.statSync(e), e, t);
112
92
  }
113
- });
114
- var E = h((exports, t) => {
93
+ }));
94
+ var v = /* @__PURE__ */ l(((e, t) => {
115
95
  t.exports = r;
116
96
  r.sync = i;
117
- var n = v("fs");
97
+ var n = u("fs");
118
98
  function r(e, t, r) {
119
99
  n.stat(e, function(e, n) {
120
100
  r(e, e ? false : a(n, t));
@@ -138,52 +118,52 @@ var E = h((exports, t) => {
138
118
  var u = s | c;
139
119
  return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
140
120
  }
141
- });
142
- var D = h((exports, t) => {
143
- v("fs");
144
- var r;
145
- if (process.platform === "win32" || global.TESTING_WINDOWS) r = T();
146
- else r = E();
147
- t.exports = i;
148
- i.sync = a;
149
- function i(e, t, n) {
121
+ }));
122
+ var y = /* @__PURE__ */ l(((e, t) => {
123
+ u("fs");
124
+ var n;
125
+ if (process.platform === "win32" || global.TESTING_WINDOWS) n = _();
126
+ else n = v();
127
+ t.exports = r;
128
+ r.sync = i;
129
+ function r(e, t, i) {
150
130
  if (typeof t === "function") {
151
- n = t;
131
+ i = t;
152
132
  t = {};
153
133
  }
154
- if (!n) {
134
+ if (!i) {
155
135
  if (typeof Promise !== "function") throw new TypeError("callback not provided");
156
- return new Promise(function(n, r) {
157
- i(e, t || {}, function(e, t) {
158
- if (e) r(e);
136
+ return new Promise(function(n, i) {
137
+ r(e, t || {}, function(e, t) {
138
+ if (e) i(e);
159
139
  else n(t);
160
140
  });
161
141
  });
162
142
  }
163
- r(e, t || {}, function(e, r) {
143
+ n(e, t || {}, function(e, n) {
164
144
  if (e) {
165
145
  if (e.code === "EACCES" || t && t.ignoreErrors) {
166
146
  e = null;
167
- r = false;
147
+ n = false;
168
148
  }
169
149
  }
170
- n(e, r);
150
+ i(e, n);
171
151
  });
172
152
  }
173
- function a(e, t) {
153
+ function i(e, t) {
174
154
  try {
175
- return r.sync(e, t || {});
155
+ return n.sync(e, t || {});
176
156
  } catch (e) {
177
157
  if (t && t.ignoreErrors || e.code === "EACCES") return false;
178
158
  else throw e;
179
159
  }
180
160
  }
181
- });
182
- var O = h((exports, t) => {
161
+ }));
162
+ var b = /* @__PURE__ */ l(((e, t) => {
183
163
  const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
184
- const r = v("path");
164
+ const r = u("path");
185
165
  const i = n ? ";" : ":";
186
- const a = D();
166
+ const a = y();
187
167
  const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
188
168
  const s = (e, t) => {
189
169
  const r = t.colon || i;
@@ -248,8 +228,8 @@ var O = h((exports, t) => {
248
228
  };
249
229
  t.exports = c;
250
230
  c.sync = l;
251
- });
252
- var k = h((exports, t) => {
231
+ }));
232
+ var x = /* @__PURE__ */ l(((e, t) => {
253
233
  const n = (e = {}) => {
254
234
  const t = e.env || process.env;
255
235
  if ((e.platform || process.platform) !== "win32") return "PATH";
@@ -257,11 +237,11 @@ var k = h((exports, t) => {
257
237
  };
258
238
  t.exports = n;
259
239
  t.exports.default = n;
260
- });
261
- var A = h((exports, t) => {
262
- const n = v("path");
263
- const r = O();
264
- const i = k();
240
+ }));
241
+ var S = /* @__PURE__ */ l(((e, t) => {
242
+ const n = u("path");
243
+ const r = b();
244
+ const i = x();
265
245
  function a(e, t) {
266
246
  const a = e.options.env || process.env;
267
247
  const o = process.cwd();
@@ -286,8 +266,8 @@ var A = h((exports, t) => {
286
266
  return a(e) || a(e, true);
287
267
  }
288
268
  t.exports = o;
289
- });
290
- var j = h((exports, t) => {
269
+ }));
270
+ var C = /* @__PURE__ */ l(((e, t) => {
291
271
  const n = /([()\][%!^"`<>&|;, *?])/g;
292
272
  function r(e) {
293
273
  e = e.replace(n, "^$1");
@@ -295,8 +275,8 @@ var j = h((exports, t) => {
295
275
  }
296
276
  function i(e, t) {
297
277
  e = `${e}`;
298
- e = e.replace(/(\\*)"/g, "$1$1\\\"");
299
- e = e.replace(/(\\*)$/, "$1$1");
278
+ e = e.replace(/(?=(\\+?)?)\1"/g, "$1$1\\\"");
279
+ e = e.replace(/(?=(\\+?)?)\1$/, "$1$1");
300
280
  e = `"${e}"`;
301
281
  e = e.replace(n, "^$1");
302
282
  if (t) e = e.replace(n, "^$1");
@@ -304,12 +284,12 @@ var j = h((exports, t) => {
304
284
  }
305
285
  t.exports.command = r;
306
286
  t.exports.argument = i;
307
- });
308
- var M = h((exports, t) => {
287
+ }));
288
+ var w = /* @__PURE__ */ l(((e, t) => {
309
289
  t.exports = /^#!(.*)/;
310
- });
311
- var N = h((exports, t) => {
312
- const n = M();
290
+ }));
291
+ var T = /* @__PURE__ */ l(((e, t) => {
292
+ const n = w();
313
293
  t.exports = (e = "") => {
314
294
  const t = e.match(n);
315
295
  if (!t) return null;
@@ -318,10 +298,10 @@ var N = h((exports, t) => {
318
298
  if (a === "env") return i;
319
299
  return i ? `${a} ${i}` : a;
320
300
  };
321
- });
322
- var P = h((exports, t) => {
323
- const n = v("fs");
324
- const r = N();
301
+ }));
302
+ var E = /* @__PURE__ */ l(((e, t) => {
303
+ const n = u("fs");
304
+ const r = T();
325
305
  function i(e) {
326
306
  const t = 150;
327
307
  const i = Buffer.alloc(t);
@@ -334,12 +314,12 @@ var P = h((exports, t) => {
334
314
  return r(i.toString());
335
315
  }
336
316
  t.exports = i;
337
- });
338
- var F = h((exports, t) => {
339
- const n = v("path");
340
- const r = A();
341
- const i = j();
342
- const a = P();
317
+ }));
318
+ var D = /* @__PURE__ */ l(((e, t) => {
319
+ const n = u("path");
320
+ const r = S();
321
+ const i = C();
322
+ const a = E();
343
323
  const o = process.platform === "win32";
344
324
  const s = /\.(?:com|exe)$/i;
345
325
  const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
@@ -353,7 +333,7 @@ var F = h((exports, t) => {
353
333
  }
354
334
  return e.file;
355
335
  }
356
- function u(e) {
336
+ function d(e) {
357
337
  if (!o) return e;
358
338
  const t = l(e);
359
339
  const r = !s.test(t);
@@ -373,7 +353,7 @@ var F = h((exports, t) => {
373
353
  }
374
354
  return e;
375
355
  }
376
- function d(e, t, n) {
356
+ function f(e, t, n) {
377
357
  if (t && !Array.isArray(t)) {
378
358
  n = t;
379
359
  t = null;
@@ -390,11 +370,11 @@ var F = h((exports, t) => {
390
370
  args: t
391
371
  }
392
372
  };
393
- return n.shell ? r : u(r);
373
+ return n.shell ? r : d(r);
394
374
  }
395
- t.exports = d;
396
- });
397
- var I = h((exports, t) => {
375
+ t.exports = f;
376
+ }));
377
+ var O = /* @__PURE__ */ l(((e, t) => {
398
378
  const n = process.platform === "win32";
399
379
  function r(e, t) {
400
380
  return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
@@ -410,7 +390,7 @@ var I = h((exports, t) => {
410
390
  const r = e.emit;
411
391
  e.emit = function(n, i) {
412
392
  if (n === "exit") {
413
- const n = a(i, t, "spawn");
393
+ const n = a(i, t);
414
394
  if (n) return r.call(e, "error", n);
415
395
  }
416
396
  return r.apply(e, arguments);
@@ -430,11 +410,11 @@ var I = h((exports, t) => {
430
410
  verifyENOENTSync: o,
431
411
  notFoundError: r
432
412
  };
433
- });
434
- var R = _(h((exports, t) => {
435
- const n = v("child_process");
436
- const r = F();
437
- const i = I();
413
+ }));
414
+ var A = (/* @__PURE__ */ l(((e, t) => {
415
+ const n = u("child_process");
416
+ const r = D();
417
+ const i = O();
438
418
  function a(e, t, a) {
439
419
  const o = r(e, t, a);
440
420
  const s = n.spawn(o.command, o.args, o.options);
@@ -452,8 +432,8 @@ var R = _(h((exports, t) => {
452
432
  t.exports.sync = o;
453
433
  t.exports._parse = r;
454
434
  t.exports._enoent = i;
455
- })(), 1);
456
- var z = class extends Error {
435
+ })))();
436
+ var j = class extends Error {
457
437
  result;
458
438
  output;
459
439
  get exitCode() {
@@ -465,18 +445,18 @@ var z = class extends Error {
465
445
  this.output = t;
466
446
  }
467
447
  };
468
- const B = {
448
+ const M = {
469
449
  timeout: void 0,
470
450
  persist: false
471
451
  };
472
- const V = { windowsHide: true };
473
- function H(e, t) {
452
+ const N = { windowsHide: true };
453
+ function P(e, t) {
474
454
  return {
475
455
  command: normalize(e),
476
456
  args: t ?? []
477
457
  };
478
458
  }
479
- function U(e) {
459
+ function F(e) {
480
460
  const t = new AbortController();
481
461
  for (const n of e) {
482
462
  if (n.aborted) {
@@ -490,12 +470,12 @@ function U(e) {
490
470
  }
491
471
  return t.signal;
492
472
  }
493
- async function W(e) {
473
+ async function I(e) {
494
474
  let t = "";
495
475
  for await (const n of e) t += n.toString();
496
476
  return t;
497
477
  }
498
- var G = class {
478
+ var L = class {
499
479
  _process;
500
480
  _aborted = false;
501
481
  _options;
@@ -515,7 +495,7 @@ var G = class {
515
495
  }
516
496
  constructor(e, t, n) {
517
497
  this._options = {
518
- ...B,
498
+ ...M,
519
499
  ...n
520
500
  };
521
501
  this._command = e;
@@ -534,7 +514,7 @@ var G = class {
534
514
  return this._process?.killed === true;
535
515
  }
536
516
  pipe(e, t, n) {
537
- return q(e, t, {
517
+ return z(e, t, {
538
518
  ...n,
539
519
  stdin: this
540
520
  });
@@ -545,18 +525,18 @@ var G = class {
545
525
  const t = [];
546
526
  if (this._streamErr) t.push(this._streamErr);
547
527
  if (this._streamOut) t.push(this._streamOut);
548
- const n = w(t);
528
+ const n = g(t);
549
529
  const r = c.createInterface({ input: n });
550
530
  for await (const e of r) yield e.toString();
551
531
  await this._processClosed;
552
532
  e.removeAllListeners();
553
533
  if (this._thrownError) throw this._thrownError;
554
- if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);
534
+ if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this);
555
535
  }
556
536
  async _waitForOutput() {
557
537
  const e = this._process;
558
538
  if (!e) throw new Error("No process was started");
559
- const [t, n] = await Promise.all([this._streamOut ? W(this._streamOut) : "", this._streamErr ? W(this._streamErr) : ""]);
539
+ const [t, n] = await Promise.all([this._streamOut ? I(this._streamOut) : "", this._streamErr ? I(this._streamErr) : ""]);
560
540
  await this._processClosed;
561
541
  if (this._options?.stdin) await this._options.stdin;
562
542
  e.removeAllListeners();
@@ -566,7 +546,7 @@ var G = class {
566
546
  stdout: t,
567
547
  exitCode: this.exitCode
568
548
  };
569
- if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r);
549
+ if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new j(this, r);
570
550
  return r;
571
551
  }
572
552
  then(e, t) {
@@ -578,7 +558,7 @@ var G = class {
578
558
  const e = cwd();
579
559
  const n = this._options;
580
560
  const r = {
581
- ...V,
561
+ ...N,
582
562
  ...n.nodeOptions
583
563
  };
584
564
  const i = [];
@@ -586,10 +566,10 @@ var G = class {
586
566
  if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
587
567
  if (n.signal !== void 0) i.push(n.signal);
588
568
  if (n.persist === true) r.detached = true;
589
- if (i.length > 0) r.signal = U(i);
590
- r.env = C(e, r.env);
591
- const { command: a, args: s } = H(this._command, this._args);
592
- const c = (0, R._parse)(a, s, r);
569
+ if (i.length > 0) r.signal = F(i);
570
+ r.env = h(e, r.env);
571
+ const { command: a, args: s } = P(this._command, this._args);
572
+ const c = (0, A._parse)(a, s, r);
593
573
  const l = spawn(c.command, c.args, c.options);
594
574
  if (l.stderr) this._streamErr = l.stderr;
595
575
  if (l.stdout) this._streamOut = l.stdout;
@@ -619,14 +599,12 @@ var G = class {
619
599
  if (this._resolveClose) this._resolveClose();
620
600
  };
621
601
  };
622
- const K = (e, t, n) => {
623
- const r = new G(e, t, n);
602
+ const R = (e, t, n) => {
603
+ const r = new L(e, t, n);
624
604
  r.spawn();
625
605
  return r;
626
606
  };
627
- const q = K;
628
- //#endregion
629
- //#region node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs
607
+ const z = R;
630
608
  async function findup(cwd, match, options = {}) {
631
609
  const segments = normalize$1(cwd).split("/");
632
610
  while (segments.length > 0) {
@@ -654,7 +632,7 @@ function cached(fn) {
654
632
  const hasCorepack = cached(async () => {
655
633
  if (globalThis.process?.versions?.webcontainer) return false;
656
634
  try {
657
- const { exitCode } = await K("corepack", ["--version"]);
635
+ const { exitCode } = await R("corepack", ["--version"]);
658
636
  return exitCode === 0;
659
637
  } catch {
660
638
  return false;
@@ -662,7 +640,7 @@ const hasCorepack = cached(async () => {
662
640
  });
663
641
  async function executeCommand(command, args, options = {}) {
664
642
  const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args];
665
- const { exitCode, stdout, stderr } = await K(xArgs[0], xArgs[1], { nodeOptions: {
643
+ const { exitCode, stdout, stderr } = await R(xArgs[0], xArgs[1], { nodeOptions: {
666
644
  cwd: resolve$1(options.cwd || process.cwd()),
667
645
  env: options.env,
668
646
  stdio: options.silent ? "pipe" : "inherit"
@@ -841,5 +819,4 @@ async function addDevDependency(name, options = {}) {
841
819
  dev: true
842
820
  });
843
821
  }
844
- //#endregion
845
822
  export { packageManagers as i, addDevDependency as n, detectPackageManager as r, addDependency as t };
@@ -1,23 +1,4 @@
1
- //#region node_modules/.pnpm/perfect-debounce@2.1.0/node_modules/perfect-debounce/dist/index.mjs
2
1
  const DEBOUNCE_DEFAULTS = { trailing: true };
3
- /**
4
- Debounce functions
5
- @param fn - Promise-returning/async function to debounce.
6
- @param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
7
- @returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
8
- @example
9
- ```
10
- import { debounce } from 'perfect-debounce';
11
- const expensiveCall = async input => input;
12
- const debouncedFn = debounce(expensiveCall, 200);
13
- for (const number of [1, 2, 3]) {
14
- console.log(await debouncedFn(number));
15
- }
16
- //=> 1
17
- //=> 2
18
- //=> 3
19
- ```
20
- */
21
2
  function debounce(fn, wait = 25, options = {}) {
22
3
  options = {
23
4
  ...DEBOUNCE_DEFAULTS,
@@ -84,5 +65,4 @@ function debounce(fn, wait = 25, options = {}) {
84
65
  async function _applyPromised(fn, _this, args) {
85
66
  return await fn.apply(_this, args);
86
67
  }
87
- //#endregion
88
68
  export { debounce as t };
@@ -1,6 +1,4 @@
1
1
  import { CompilerOptions, TypeAcquisition } from "typescript";
2
-
3
- //#region node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.d.mts
4
2
  type StripEnums<T extends Record<string, any>> = { [K in keyof T]: T[K] extends boolean ? T[K] : T[K] extends string ? T[K] : T[K] extends object ? T[K] : T[K] extends Array<any> ? T[K] : T[K] extends undefined ? undefined : any };
5
3
  interface TSConfig {
6
4
  compilerOptions?: StripEnums<CompilerOptions>;
@@ -19,5 +17,4 @@ interface TSConfig {
19
17
  * @param tsconfig - The contents of `tsconfig.json` as an object. See {@link TSConfig}.
20
18
  * @returns the same `tsconfig.json` object.
21
19
  */
22
- //#endregion
23
20
  export { TSConfig as t };
@@ -1,6 +1,5 @@
1
1
  import { n as __exportAll } from "../_common.mjs";
2
2
  import path from "node:path";
3
- //#region node_modules/.pnpm/@rollup+plugin-alias@6.0.0_rollup@4.59.0/node_modules/@rollup/plugin-alias/dist/index.js
4
3
  var dist_exports = /* @__PURE__ */ __exportAll({ default: () => alias });
5
4
  function matches(pattern, importee) {
6
5
  if (pattern instanceof RegExp) return pattern.test(importee);
@@ -60,5 +59,4 @@ function alias(options = {}) {
60
59
  }
61
60
  };
62
61
  }
63
- //#endregion
64
62
  export { dist_exports as n, alias as t };
@@ -1,6 +1,5 @@
1
1
  import { S as MagicString, c as walk, i as createFilter, r as attachScopes, s as makeLegalIdentifier } from "../_build/common.mjs";
2
2
  import { sep } from "path";
3
- //#region node_modules/.pnpm/@rollup+plugin-inject@5.0.5_rollup@4.59.0/node_modules/@rollup/plugin-inject/dist/es/index.js
4
3
  var escape = function(str) {
5
4
  return str.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
6
5
  };
@@ -127,5 +126,4 @@ function inject(options) {
127
126
  }
128
127
  };
129
128
  }
130
- //#endregion
131
129
  export { inject as t };
@@ -1,5 +1,4 @@
1
1
  import { a as dataToEsm, i as createFilter } from "../_build/common.mjs";
2
- //#region node_modules/.pnpm/@rollup+plugin-json@6.1.0_rollup@4.59.0/node_modules/@rollup/plugin-json/dist/es/index.js
3
2
  function json(options) {
4
3
  if (options === void 0) options = {};
5
4
  var filter = createFilter(options.include, options.exclude);
@@ -30,5 +29,4 @@ function json(options) {
30
29
  }
31
30
  };
32
31
  }
33
- //#endregion
34
32
  export { json as t };
@@ -6,27 +6,6 @@ import "node:assert";
6
6
  import { createHash } from "node:crypto";
7
7
  import { isCSSRequest, normalizePath } from "vite";
8
8
  import assert$1 from "node:assert/strict";
9
- //#region node_modules/.pnpm/@rolldown+pluginutils@1.0.0-beta.55/node_modules/@rolldown/pluginutils/dist/simple-filters.js
10
- /**
11
- * Constructs a RegExp that matches the exact string specified.
12
- *
13
- * This is useful for plugin hook filters.
14
- *
15
- * @param str the string to match.
16
- * @param flags flags for the RegExp.
17
- *
18
- * @example
19
- * ```ts
20
- * import { exactRegex } from '@rolldown/pluginutils';
21
- * const plugin = {
22
- * name: 'plugin',
23
- * resolveId: {
24
- * filter: { id: exactRegex('foo') },
25
- * handler(id) {} // will only be called for `foo`
26
- * }
27
- * }
28
- * ```
29
- */
30
9
  function exactRegex(str, flags) {
31
10
  return new RegExp(`^${escapeRegex(str)}$`, flags);
32
11
  }
@@ -34,8 +13,6 @@ const escapeRegexRE = /[-/\\^$*+?.()|[\]{}]/g;
34
13
  function escapeRegex(str) {
35
14
  return str.replace(escapeRegexRE, "\\$&");
36
15
  }
37
- //#endregion
38
- //#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.11_vite@8.0.0-beta.18_@types+node@25.4.0_esbuild@0.2_62dda1eccee284f7388c2af4cc76ce61/node_modules/@hiogawa/vite-plugin-fullstack/dist/plugin-B4MlD0Bd.js
39
16
  function parseIdQuery(id) {
40
17
  if (!id.includes("?")) return {
41
18
  filename: id,
@@ -618,8 +595,6 @@ function assetsURL(url, config) {
618
595
  function assetsURLDev(url, config) {
619
596
  return config.base + url;
620
597
  }
621
- //#endregion
622
- //#region node_modules/.pnpm/@hiogawa+vite-plugin-fullstack@0.0.11_vite@8.0.0-beta.18_@types+node@25.4.0_esbuild@0.2_62dda1eccee284f7388c2af4cc76ce61/node_modules/@hiogawa/vite-plugin-fullstack/dist/runtime.js
623
598
  function mergeAssets(...args) {
624
599
  const js = uniqBy(args.flatMap((h) => h.js), (a) => a.href);
625
600
  const css = uniqBy(args.flatMap((h) => h.css), (a) => a.href);
@@ -642,5 +617,4 @@ function mergeAssets(...args) {
642
617
  });
643
618
  }
644
619
  }
645
- //#endregion
646
620
  export { assetsPlugin as n, mergeAssets as t };