nitro-nightly 4.0.0-20251030-091344-d4418b98 → 4.0.0-20251030-122334-09c1a7a8

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 (334) hide show
  1. package/dist/_build/common.mjs +763 -0
  2. package/dist/_build/rolldown.mjs +216 -0
  3. package/dist/_build/rollup.mjs +359 -0
  4. package/dist/_build/vite.build.mjs +67 -0
  5. package/dist/_build/vite.plugin.mjs +762 -0
  6. package/dist/_chunks/B-7HiF0V.mjs +1303 -0
  7. package/dist/_chunks/B3asVbT4.mjs +151 -0
  8. package/dist/_chunks/B5ooyfLk.mjs +372 -0
  9. package/dist/_chunks/DXMHy5ca.mjs +43 -0
  10. package/dist/_dev.d.mts +12 -0
  11. package/dist/_dev.mjs +675 -0
  12. package/dist/_libs/acorn.mjs +5034 -0
  13. package/dist/_libs/c12.mjs +2798 -0
  14. package/dist/_libs/chokidar.mjs +1560 -0
  15. package/dist/_libs/citty.mjs +333 -0
  16. package/dist/_libs/commondir.mjs +22 -0
  17. package/dist/_libs/compatx.mjs +46 -0
  18. package/dist/_libs/confbox.mjs +2920 -0
  19. package/dist/_libs/debug.mjs +848 -0
  20. package/dist/_libs/deepmerge.mjs +86 -0
  21. package/dist/_libs/depd.mjs +314 -0
  22. package/dist/_libs/dot-prop.mjs +138 -0
  23. package/dist/_libs/duplexer.mjs +71 -0
  24. package/dist/_libs/ee-first.mjs +68 -0
  25. package/dist/_libs/encodeurl.mjs +49 -0
  26. package/dist/_libs/escape-html.mjs +58 -0
  27. package/dist/_libs/escape-string-regexp.mjs +8 -0
  28. package/dist/_libs/estree-walker.mjs +330 -0
  29. package/dist/_libs/etag.mjs +75 -0
  30. package/dist/{_chunks/_deps → _libs}/fdir.mjs +49 -104
  31. package/dist/_libs/fresh.mjs +85 -0
  32. package/dist/_libs/function-bind.mjs +63 -0
  33. package/dist/_libs/gen-mapping.mjs +612 -0
  34. package/dist/_libs/giget.mjs +19076 -0
  35. package/dist/_libs/gzip-size.mjs +21 -0
  36. package/dist/_libs/hasown.mjs +14 -0
  37. package/dist/_libs/http-errors.mjs +436 -0
  38. package/dist/_libs/httpxy.mjs +410 -0
  39. package/dist/_libs/is-core-module.mjs +220 -0
  40. package/dist/_libs/is-module.mjs +13 -0
  41. package/dist/_libs/is-reference.mjs +32 -0
  42. package/dist/{_chunks/_deps → _libs}/js-tokens.mjs +83 -112
  43. package/dist/_libs/klona.mjs +90 -0
  44. package/dist/_libs/knitwork.mjs +124 -0
  45. package/dist/_libs/local-pkg.mjs +1686 -0
  46. package/dist/{_chunks/_deps → _libs}/magic-string.mjs +272 -629
  47. package/dist/_libs/mime-db.mjs +7642 -0
  48. package/dist/_libs/mime-types.mjs +162 -0
  49. package/dist/_libs/mime.mjs +1391 -0
  50. package/dist/_libs/node-fetch-native.mjs +173 -0
  51. package/dist/_libs/on-finished.mjs +170 -0
  52. package/dist/_libs/parseurl.mjs +103 -0
  53. package/dist/_libs/path-parse.mjs +47 -0
  54. package/dist/_libs/pathe.mjs +41 -0
  55. package/dist/_libs/picomatch.mjs +1673 -0
  56. package/dist/_libs/plugin-alias.mjs +64 -0
  57. package/dist/_libs/plugin-commonjs.mjs +1489 -0
  58. package/dist/_libs/plugin-inject.mjs +135 -0
  59. package/dist/_libs/plugin-json.mjs +36 -0
  60. package/dist/_libs/plugin-node-resolve.mjs +1553 -0
  61. package/dist/_libs/plugin-replace.mjs +104 -0
  62. package/dist/_libs/pretty-bytes.mjs +116 -0
  63. package/dist/_libs/range-parser.mjs +102 -0
  64. package/dist/_libs/remapping.mjs +117 -0
  65. package/dist/{_chunks/_deps → _libs}/rou3.mjs +7 -22
  66. package/dist/_libs/send.mjs +857 -0
  67. package/dist/_libs/serve-static.mjs +124 -0
  68. package/dist/_libs/std-env.mjs +158 -0
  69. package/dist/_libs/strip-literal.mjs +51 -0
  70. package/dist/{_chunks/_deps → _libs}/tinyglobby.mjs +32 -33
  71. package/dist/_libs/ultrahtml.mjs +138 -0
  72. package/dist/_libs/unimport.mjs +3520 -0
  73. package/dist/_libs/untyped.mjs +271 -0
  74. package/dist/_libs/unwasm.mjs +5825 -0
  75. package/dist/{_chunks/_deps/@pi0 → _libs}/vite-plugin-fullstack.mjs +28 -42
  76. package/dist/_presets.mjs +1723 -0
  77. package/dist/builder.d.mts +37 -35
  78. package/dist/builder.mjs +45 -117
  79. package/dist/cli/_chunks/build.mjs +43 -0
  80. package/dist/cli/_chunks/common.mjs +15 -0
  81. package/dist/cli/_chunks/detect-acorn.mjs +12 -0
  82. package/dist/cli/_chunks/dev.mjs +79 -0
  83. package/dist/cli/_chunks/dist.mjs +3 -0
  84. package/dist/cli/_chunks/dist2.mjs +4 -0
  85. package/dist/cli/_chunks/esm.mjs +3 -0
  86. package/dist/cli/_chunks/json5.mjs +4 -0
  87. package/dist/cli/_chunks/jsonc.mjs +4 -0
  88. package/dist/cli/_chunks/list.mjs +27 -0
  89. package/dist/cli/_chunks/multipart-parser.mjs +6 -0
  90. package/dist/cli/_chunks/prepare.mjs +19 -0
  91. package/dist/cli/_chunks/run.mjs +55 -0
  92. package/dist/cli/_chunks/task.mjs +16 -0
  93. package/dist/cli/_chunks/toml.mjs +4 -0
  94. package/dist/cli/_chunks/yaml.mjs +4 -0
  95. package/dist/cli/index.d.mts +1 -1
  96. package/dist/cli/index.mjs +19 -18
  97. package/dist/presets/_nitro/runtime/nitro-dev.d.mts +1 -0
  98. package/dist/presets/_nitro/runtime/nitro-dev.mjs +42 -33
  99. package/dist/presets/_nitro/runtime/nitro-prerenderer.d.mts +2 -2
  100. package/dist/presets/_nitro/runtime/nitro-prerenderer.mjs +4 -8
  101. package/dist/presets/_nitro/runtime/service-worker.d.mts +1 -0
  102. package/dist/presets/_nitro/runtime/service-worker.mjs +14 -11
  103. package/dist/presets/aws-amplify/runtime/aws-amplify.d.mts +1 -0
  104. package/dist/presets/aws-amplify/runtime/aws-amplify.mjs +6 -5
  105. package/dist/presets/aws-lambda/runtime/_utils.d.mts +8 -13
  106. package/dist/presets/aws-lambda/runtime/_utils.mjs +95 -81
  107. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.d.mts +1 -2
  108. package/dist/presets/aws-lambda/runtime/aws-lambda-streaming.mjs +25 -27
  109. package/dist/presets/aws-lambda/runtime/aws-lambda.mjs +7 -7
  110. package/dist/presets/azure/runtime/_utils.mjs +43 -43
  111. package/dist/presets/azure/runtime/azure-swa.d.mts +2 -2
  112. package/dist/presets/azure/runtime/azure-swa.mjs +22 -21
  113. package/dist/presets/bun/runtime/bun.d.mts +1 -0
  114. package/dist/presets/bun/runtime/bun.mjs +18 -17
  115. package/dist/presets/cloudflare/runtime/_module-handler.d.mts +10 -7
  116. package/dist/presets/cloudflare/runtime/_module-handler.mjs +78 -87
  117. package/dist/presets/cloudflare/runtime/cloudflare-durable.d.mts +6 -14
  118. package/dist/presets/cloudflare/runtime/cloudflare-durable.mjs +53 -58
  119. package/dist/presets/cloudflare/runtime/cloudflare-module.d.mts +1 -7
  120. package/dist/presets/cloudflare/runtime/cloudflare-module.mjs +12 -14
  121. package/dist/presets/cloudflare/runtime/cloudflare-pages.d.mts +12 -12
  122. package/dist/presets/cloudflare/runtime/cloudflare-pages.mjs +35 -39
  123. package/dist/presets/cloudflare/runtime/plugin.dev.d.mts +2 -2
  124. package/dist/presets/cloudflare/runtime/plugin.dev.mjs +86 -76
  125. package/dist/presets/deno/runtime/deno-deploy.d.mts +1 -0
  126. package/dist/presets/deno/runtime/deno-deploy.mjs +12 -11
  127. package/dist/presets/deno/runtime/deno-server.d.mts +2 -1
  128. package/dist/presets/deno/runtime/deno-server.mjs +31 -39
  129. package/dist/presets/netlify/runtime/netlify-edge.d.mts +2 -1
  130. package/dist/presets/netlify/runtime/netlify-edge.mjs +14 -11
  131. package/dist/presets/netlify/runtime/netlify.mjs +11 -17
  132. package/dist/presets/node/runtime/node-cluster.mjs +49 -48
  133. package/dist/presets/node/runtime/node-middleware.d.mts +3 -2
  134. package/dist/presets/node/runtime/node-middleware.mjs +7 -6
  135. package/dist/presets/node/runtime/node-server.mjs +33 -23
  136. package/dist/presets/standard/runtime/server.d.mts +1 -3
  137. package/dist/presets/standard/runtime/server.mjs +1 -3
  138. package/dist/presets/stormkit/runtime/stormkit.d.mts +13 -13
  139. package/dist/presets/stormkit/runtime/stormkit.mjs +20 -20
  140. package/dist/presets/vercel/runtime/vercel.d.mts +3 -3
  141. package/dist/presets/vercel/runtime/vercel.mjs +15 -14
  142. package/dist/presets/winterjs/runtime/winterjs.d.mts +2 -0
  143. package/dist/presets/winterjs/runtime/winterjs.mjs +72 -68
  144. package/dist/presets/zeabur/runtime/zeabur.d.mts +1 -1
  145. package/dist/runtime/index.d.mts +12 -1
  146. package/dist/runtime/index.mjs +12 -7
  147. package/dist/runtime/internal/app.mjs +175 -162
  148. package/dist/runtime/internal/cache.d.mts +10 -4
  149. package/dist/runtime/internal/cache.mjs +247 -216
  150. package/dist/runtime/internal/context.d.mts +9 -9
  151. package/dist/runtime/internal/context.mjs +17 -10
  152. package/dist/runtime/internal/database.mjs +8 -10
  153. package/dist/runtime/internal/error/dev.d.mts +5 -4
  154. package/dist/runtime/internal/error/dev.mjs +106 -105
  155. package/dist/runtime/internal/error/prod.d.mts +2 -2
  156. package/dist/runtime/internal/error/prod.mjs +48 -52
  157. package/dist/runtime/internal/error/utils.d.mts +4 -4
  158. package/dist/runtime/internal/error/utils.mjs +1 -1
  159. package/dist/runtime/internal/index.d.mts +2 -0
  160. package/dist/runtime/internal/index.mjs +2 -0
  161. package/dist/runtime/internal/lib/http-graceful-shutdown.d.mts +14 -14
  162. package/dist/runtime/internal/lib/http-graceful-shutdown.mjs +248 -209
  163. package/dist/runtime/internal/meta.d.mts +1 -1
  164. package/dist/runtime/internal/meta.mjs +1 -1
  165. package/dist/runtime/internal/plugin.d.mts +2 -2
  166. package/dist/runtime/internal/plugin.mjs +1 -1
  167. package/dist/runtime/internal/renderer.mjs +39 -31
  168. package/dist/runtime/internal/route-rules.d.mts +8 -8
  169. package/dist/runtime/internal/route-rules.mjs +53 -51
  170. package/dist/runtime/internal/routes/dev-tasks.d.mts +1 -30
  171. package/dist/runtime/internal/routes/dev-tasks.mjs +15 -17
  172. package/dist/runtime/internal/routes/openapi.d.mts +1 -0
  173. package/dist/runtime/internal/routes/openapi.mjs +81 -87
  174. package/dist/runtime/internal/routes/renderer-template.d.mts +1 -1
  175. package/dist/runtime/internal/routes/renderer-template.dev.d.mts +1 -2
  176. package/dist/runtime/internal/routes/renderer-template.dev.mjs +10 -17
  177. package/dist/runtime/internal/routes/renderer-template.mjs +1 -1
  178. package/dist/runtime/internal/routes/scalar.d.mts +1 -0
  179. package/dist/runtime/internal/routes/scalar.mjs +22 -23
  180. package/dist/runtime/internal/routes/swagger.d.mts +1 -0
  181. package/dist/runtime/internal/routes/swagger.mjs +9 -11
  182. package/dist/runtime/internal/runtime-config.d.mts +4 -4
  183. package/dist/runtime/internal/runtime-config.mjs +40 -35
  184. package/dist/runtime/internal/shutdown.d.mts +2 -7
  185. package/dist/runtime/internal/shutdown.mjs +30 -29
  186. package/dist/runtime/internal/static.mjs +63 -74
  187. package/dist/runtime/internal/storage.mjs +2 -2
  188. package/dist/runtime/internal/task.d.mts +6 -6
  189. package/dist/runtime/internal/task.mjs +56 -59
  190. package/dist/runtime/internal/utils.d.mts +1 -1
  191. package/dist/runtime/internal/utils.mjs +4 -10
  192. package/dist/types/index.d.mts +2566 -3851
  193. package/dist/types/index.mjs +1 -1
  194. package/dist/vite.d.mts +61 -51
  195. package/dist/vite.mjs +55 -132
  196. package/package.json +10 -10
  197. package/dist/_build/build.mjs +0 -368
  198. package/dist/_build/build2.mjs +0 -556
  199. package/dist/_build/info.mjs +0 -1002
  200. package/dist/_build/prepare.mjs +0 -1511
  201. package/dist/_build/snapshot.mjs +0 -185
  202. package/dist/_build/vite.mjs +0 -959
  203. package/dist/_build/vite2.mjs +0 -149
  204. package/dist/_chunks/_deps/@jridgewell/gen-mapping.mjs +0 -189
  205. package/dist/_chunks/_deps/@jridgewell/remapping.mjs +0 -137
  206. package/dist/_chunks/_deps/@jridgewell/resolve-uri.mjs +0 -231
  207. package/dist/_chunks/_deps/@jridgewell/sourcemap-codec.mjs +0 -173
  208. package/dist/_chunks/_deps/@jridgewell/trace-mapping.mjs +0 -170
  209. package/dist/_chunks/_deps/@rollup/plugin-alias.mjs +0 -89
  210. package/dist/_chunks/_deps/@rollup/plugin-commonjs.mjs +0 -2376
  211. package/dist/_chunks/_deps/@rollup/plugin-inject.mjs +0 -212
  212. package/dist/_chunks/_deps/@rollup/plugin-json.mjs +0 -37
  213. package/dist/_chunks/_deps/@rollup/plugin-node-resolve.mjs +0 -1386
  214. package/dist/_chunks/_deps/@rollup/plugin-replace.mjs +0 -133
  215. package/dist/_chunks/_deps/@rollup/pluginutils.mjs +0 -346
  216. package/dist/_chunks/_deps/acorn.mjs +0 -6225
  217. package/dist/_chunks/_deps/c12.mjs +0 -510
  218. package/dist/_chunks/_deps/chokidar.mjs +0 -1428
  219. package/dist/_chunks/_deps/citty.mjs +0 -460
  220. package/dist/_chunks/_deps/commondir.mjs +0 -77
  221. package/dist/_chunks/_deps/compatx.mjs +0 -76
  222. package/dist/_chunks/_deps/confbox.mjs +0 -300
  223. package/dist/_chunks/_deps/debug.mjs +0 -885
  224. package/dist/_chunks/_deps/deepmerge.mjs +0 -147
  225. package/dist/_chunks/_deps/depd.mjs +0 -550
  226. package/dist/_chunks/_deps/dot-prop.mjs +0 -282
  227. package/dist/_chunks/_deps/dotenv.mjs +0 -555
  228. package/dist/_chunks/_deps/duplexer.mjs +0 -1
  229. package/dist/_chunks/_deps/ee-first.mjs +0 -104
  230. package/dist/_chunks/_deps/encodeurl.mjs +0 -69
  231. package/dist/_chunks/_deps/escape-html.mjs +0 -87
  232. package/dist/_chunks/_deps/escape-string-regexp.mjs +0 -13
  233. package/dist/_chunks/_deps/estree-walker.mjs +0 -433
  234. package/dist/_chunks/_deps/etag.mjs +0 -147
  235. package/dist/_chunks/_deps/exsolve.mjs +0 -1416
  236. package/dist/_chunks/_deps/fresh.mjs +0 -145
  237. package/dist/_chunks/_deps/function-bind.mjs +0 -106
  238. package/dist/_chunks/_deps/giget.mjs +0 -451
  239. package/dist/_chunks/_deps/gzip-size.mjs +0 -19
  240. package/dist/_chunks/_deps/hasown.mjs +0 -19
  241. package/dist/_chunks/_deps/http-errors.mjs +0 -307
  242. package/dist/_chunks/_deps/httpxy.mjs +0 -580
  243. package/dist/_chunks/_deps/inherits.mjs +0 -57
  244. package/dist/_chunks/_deps/is-core-module.mjs +0 -596
  245. package/dist/_chunks/_deps/is-module.mjs +0 -25
  246. package/dist/_chunks/_deps/is-reference.mjs +0 -31
  247. package/dist/_chunks/_deps/klona.mjs +0 -137
  248. package/dist/_chunks/_deps/knitwork.mjs +0 -172
  249. package/dist/_chunks/_deps/local-pkg.mjs +0 -163
  250. package/dist/_chunks/_deps/mime-db.mjs +0 -11685
  251. package/dist/_chunks/_deps/mime-types.mjs +0 -287
  252. package/dist/_chunks/_deps/mime.mjs +0 -1172
  253. package/dist/_chunks/_deps/mlly.mjs +0 -2413
  254. package/dist/_chunks/_deps/ms.mjs +0 -172
  255. package/dist/_chunks/_deps/node-fetch-native.mjs +0 -3
  256. package/dist/_chunks/_deps/nypm.mjs +0 -219
  257. package/dist/_chunks/_deps/on-finished.mjs +0 -246
  258. package/dist/_chunks/_deps/parseurl.mjs +0 -168
  259. package/dist/_chunks/_deps/path-parse.mjs +0 -85
  260. package/dist/_chunks/_deps/pathe.mjs +0 -251
  261. package/dist/_chunks/_deps/perfect-debounce.mjs +0 -88
  262. package/dist/_chunks/_deps/picomatch.mjs +0 -2144
  263. package/dist/_chunks/_deps/pkg-types.mjs +0 -247
  264. package/dist/_chunks/_deps/pretty-bytes.mjs +0 -180
  265. package/dist/_chunks/_deps/quansync.mjs +0 -99
  266. package/dist/_chunks/_deps/range-parser.mjs +0 -171
  267. package/dist/_chunks/_deps/rc9.mjs +0 -219
  268. package/dist/_chunks/_deps/readdirp.mjs +0 -245
  269. package/dist/_chunks/_deps/resolve.mjs +0 -1260
  270. package/dist/_chunks/_deps/send.mjs +0 -1022
  271. package/dist/_chunks/_deps/serve-static.mjs +0 -228
  272. package/dist/_chunks/_deps/setprototypeof.mjs +0 -26
  273. package/dist/_chunks/_deps/statuses.mjs +0 -457
  274. package/dist/_chunks/_deps/std-env.mjs +0 -3
  275. package/dist/_chunks/_deps/strip-literal.mjs +0 -67
  276. package/dist/_chunks/_deps/supports-color.mjs +0 -44
  277. package/dist/_chunks/_deps/tinyexec.mjs +0 -552
  278. package/dist/_chunks/_deps/toidentifier.mjs +0 -41
  279. package/dist/_chunks/_deps/ultrahtml.mjs +0 -3
  280. package/dist/_chunks/_deps/unimport.mjs +0 -2267
  281. package/dist/_chunks/_deps/unplugin-utils.mjs +0 -65
  282. package/dist/_chunks/_deps/unplugin.mjs +0 -1294
  283. package/dist/_chunks/_deps/untyped.mjs +0 -375
  284. package/dist/_chunks/_deps/unwasm.mjs +0 -6959
  285. package/dist/_chunks/_deps/webpack-virtual-modules.mjs +0 -360
  286. package/dist/_chunks/_presets/_all.mjs +0 -59
  287. package/dist/_chunks/_presets/_nitro.mjs +0 -74
  288. package/dist/_chunks/_presets/_resolve.mjs +0 -64
  289. package/dist/_chunks/_presets/_static.mjs +0 -69
  290. package/dist/_chunks/_presets/_types.mjs +0 -3
  291. package/dist/_chunks/_presets/_utils.mjs +0 -31
  292. package/dist/_chunks/_presets/alwaysdata.mjs +0 -17
  293. package/dist/_chunks/_presets/aws-amplify.mjs +0 -111
  294. package/dist/_chunks/_presets/aws-lambda.mjs +0 -23
  295. package/dist/_chunks/_presets/azure.mjs +0 -162
  296. package/dist/_chunks/_presets/bun.mjs +0 -19
  297. package/dist/_chunks/_presets/cleavr.mjs +0 -15
  298. package/dist/_chunks/_presets/cloudflare.mjs +0 -608
  299. package/dist/_chunks/_presets/deno.mjs +0 -196
  300. package/dist/_chunks/_presets/digitalocean.mjs +0 -14
  301. package/dist/_chunks/_presets/firebase.mjs +0 -47
  302. package/dist/_chunks/_presets/flightcontrol.mjs +0 -14
  303. package/dist/_chunks/_presets/genezio.mjs +0 -13
  304. package/dist/_chunks/_presets/heroku.mjs +0 -14
  305. package/dist/_chunks/_presets/iis.mjs +0 -194
  306. package/dist/_chunks/_presets/index.mjs +0 -62
  307. package/dist/_chunks/_presets/koyeb.mjs +0 -14
  308. package/dist/_chunks/_presets/netlify.mjs +0 -241
  309. package/dist/_chunks/_presets/node.mjs +0 -54
  310. package/dist/_chunks/_presets/platform.mjs +0 -14
  311. package/dist/_chunks/_presets/render.mjs +0 -14
  312. package/dist/_chunks/_presets/standard.mjs +0 -23
  313. package/dist/_chunks/_presets/stormkit.mjs +0 -18
  314. package/dist/_chunks/_presets/vercel.mjs +0 -375
  315. package/dist/_chunks/_presets/winterjs.mjs +0 -22
  316. package/dist/_chunks/_presets/zeabur.mjs +0 -69
  317. package/dist/_chunks/_presets/zerops.mjs +0 -27
  318. package/dist/_chunks/app.mjs +0 -600
  319. package/dist/_chunks/builder.mjs +0 -648
  320. package/dist/_chunks/server.mjs +0 -256
  321. package/dist/_cli/build.mjs +0 -49
  322. package/dist/_cli/common.mjs +0 -13
  323. package/dist/_cli/dev.mjs +0 -121
  324. package/dist/_cli/index.mjs +0 -16
  325. package/dist/_cli/list.mjs +0 -33
  326. package/dist/_cli/prepare.mjs +0 -23
  327. package/dist/_cli/run.mjs +0 -59
  328. package/dist/presets/cloudflare/runtime/shims/workers.dev.d.mts +0 -21
  329. package/dist/runtime/internal/empty.d.mts +0 -0
  330. package/dist/runtime/internal/vite/dev-entry.d.mts +0 -1
  331. package/dist/runtime/internal/vite/dev-worker.d.mts +0 -1
  332. package/dist/runtime/internal/vite/prod-setup.d.mts +0 -4
  333. package/dist/runtime/internal/vite/ssr-renderer.d.mts +0 -4
  334. /package/lib/{indexd.mts → index.d.mts} +0 -0
@@ -1,360 +0,0 @@
1
- import require$$0 from 'constants';
2
- import { a as getDefaultExportFromCjs } from './commondir.mjs';
3
- import sysPath__default from 'path';
4
-
5
- var virtualStats = {};
6
-
7
- var hasRequiredVirtualStats;
8
-
9
- function requireVirtualStats () {
10
- if (hasRequiredVirtualStats) return virtualStats;
11
- hasRequiredVirtualStats = 1;
12
- var __importDefault = (virtualStats && virtualStats.__importDefault) || function (mod) {
13
- return (mod && mod.__esModule) ? mod : { "default": mod };
14
- };
15
- Object.defineProperty(virtualStats, "__esModule", { value: true });
16
- virtualStats.VirtualStats = void 0;
17
- const constants_1 = __importDefault(require$$0);
18
- class VirtualStats {
19
- constructor(config) {
20
- for (const key in config) {
21
- if (!Object.prototype.hasOwnProperty.call(config, key)) {
22
- continue;
23
- }
24
- this[key] = config[key];
25
- }
26
- }
27
- _checkModeProperty(property) {
28
- return (this.mode & constants_1.default.S_IFMT) === property;
29
- }
30
- isDirectory() {
31
- return this._checkModeProperty(constants_1.default.S_IFDIR);
32
- }
33
- isFile() {
34
- return this._checkModeProperty(constants_1.default.S_IFREG);
35
- }
36
- isBlockDevice() {
37
- return this._checkModeProperty(constants_1.default.S_IFBLK);
38
- }
39
- isCharacterDevice() {
40
- return this._checkModeProperty(constants_1.default.S_IFCHR);
41
- }
42
- isSymbolicLink() {
43
- return this._checkModeProperty(constants_1.default.S_IFLNK);
44
- }
45
- isFIFO() {
46
- return this._checkModeProperty(constants_1.default.S_IFIFO);
47
- }
48
- isSocket() {
49
- return this._checkModeProperty(constants_1.default.S_IFSOCK);
50
- }
51
- }
52
- virtualStats.VirtualStats = VirtualStats;
53
-
54
- return virtualStats;
55
- }
56
-
57
- var lib;
58
- var hasRequiredLib;
59
-
60
- function requireLib () {
61
- if (hasRequiredLib) return lib;
62
- hasRequiredLib = 1;
63
- var __importDefault = (lib && lib.__importDefault) || function (mod) {
64
- return (mod && mod.__esModule) ? mod : { "default": mod };
65
- };
66
- const path_1 = __importDefault(sysPath__default);
67
- const virtual_stats_1 = requireVirtualStats();
68
- let inode = 45000000;
69
- const ALL = 'all';
70
- const STATIC = 'static';
71
- const DYNAMIC = 'dynamic';
72
- function checkActivation(instance) {
73
- if (!instance._compiler) {
74
- throw new Error('You must use this plugin only after creating webpack instance!');
75
- }
76
- }
77
- function getModulePath(filePath, compiler) {
78
- return path_1.default.isAbsolute(filePath) ? filePath : path_1.default.join(compiler.context, filePath);
79
- }
80
- function createWebpackData(result) {
81
- return (backendOrStorage) => {
82
- if (backendOrStorage._data) {
83
- const curLevelIdx = backendOrStorage._currentLevel;
84
- const curLevel = backendOrStorage._levels[curLevelIdx];
85
- return {
86
- result,
87
- level: curLevel,
88
- };
89
- }
90
- return [null, result];
91
- };
92
- }
93
- function getData(storage, key) {
94
- if (storage._data instanceof Map) {
95
- return storage._data.get(key);
96
- }
97
- else if (storage._data) {
98
- return storage.data[key];
99
- }
100
- else if (storage.data instanceof Map) {
101
- return storage.data.get(key);
102
- }
103
- else {
104
- return storage.data[key];
105
- }
106
- }
107
- function setData(backendOrStorage, key, valueFactory) {
108
- const value = valueFactory(backendOrStorage);
109
- if (backendOrStorage._data instanceof Map) {
110
- backendOrStorage._data.set(key, value);
111
- }
112
- else if (backendOrStorage._data) {
113
- backendOrStorage.data[key] = value;
114
- }
115
- else if (backendOrStorage.data instanceof Map) {
116
- backendOrStorage.data.set(key, value);
117
- }
118
- else {
119
- backendOrStorage.data[key] = value;
120
- }
121
- }
122
- function getStatStorage(fileSystem) {
123
- if (fileSystem._statStorage) {
124
- return fileSystem._statStorage;
125
- }
126
- else if (fileSystem._statBackend) {
127
- return fileSystem._statBackend;
128
- }
129
- else {
130
- throw new Error("Couldn't find a stat storage");
131
- }
132
- }
133
- function getFileStorage(fileSystem) {
134
- if (fileSystem._readFileStorage) {
135
- return fileSystem._readFileStorage;
136
- }
137
- else if (fileSystem._readFileBackend) {
138
- return fileSystem._readFileBackend;
139
- }
140
- else {
141
- throw new Error("Couldn't find a readFileStorage");
142
- }
143
- }
144
- function getReadDirBackend(fileSystem) {
145
- if (fileSystem._readdirBackend) {
146
- return fileSystem._readdirBackend;
147
- }
148
- else if (fileSystem._readdirStorage) {
149
- return fileSystem._readdirStorage;
150
- }
151
- else {
152
- throw new Error("Couldn't find a readDirStorage from Webpack Internals");
153
- }
154
- }
155
- function getRealpathBackend(fileSystem) {
156
- if (fileSystem._realpathBackend) {
157
- return fileSystem._realpathBackend;
158
- }
159
- }
160
- class VirtualModulesPlugin {
161
- constructor(modules) {
162
- this._compiler = null;
163
- this._watcher = null;
164
- this._staticModules = modules || null;
165
- }
166
- getModuleList(filter = ALL) {
167
- var _a, _b;
168
- let modules = {};
169
- const shouldGetStaticModules = filter === ALL || filter === STATIC;
170
- const shouldGetDynamicModules = filter === ALL || filter === DYNAMIC;
171
- if (shouldGetStaticModules) {
172
- modules = Object.assign(Object.assign({}, modules), this._staticModules);
173
- }
174
- if (shouldGetDynamicModules) {
175
- const finalInputFileSystem = (_a = this._compiler) === null || _a === void 0 ? void 0 : _a.inputFileSystem;
176
- const virtualFiles = (_b = finalInputFileSystem === null || finalInputFileSystem === void 0 ? void 0 : finalInputFileSystem._virtualFiles) !== null && _b !== void 0 ? _b : {};
177
- const dynamicModules = {};
178
- Object.keys(virtualFiles).forEach((key) => {
179
- dynamicModules[key] = virtualFiles[key].contents;
180
- });
181
- modules = Object.assign(Object.assign({}, modules), dynamicModules);
182
- }
183
- return modules;
184
- }
185
- writeModule(filePath, contents) {
186
- if (!this._compiler) {
187
- throw new Error(`Plugin has not been initialized`);
188
- }
189
- checkActivation(this);
190
- const len = contents ? contents.length : 0;
191
- const time = Date.now();
192
- const date = new Date(time);
193
- const stats = new virtual_stats_1.VirtualStats({
194
- dev: 8675309,
195
- nlink: 0,
196
- uid: 1000,
197
- gid: 1000,
198
- rdev: 0,
199
- blksize: 4096,
200
- ino: inode++,
201
- mode: 33188,
202
- size: len,
203
- blocks: Math.floor(len / 4096),
204
- atime: date,
205
- mtime: date,
206
- ctime: date,
207
- birthtime: date,
208
- });
209
- const modulePath = getModulePath(filePath, this._compiler);
210
- if (process.env.WVM_DEBUG)
211
- console.log(this._compiler.name, 'Write virtual module:', modulePath, contents);
212
- let finalWatchFileSystem = this._watcher && this._watcher.watchFileSystem;
213
- while (finalWatchFileSystem && finalWatchFileSystem.wfs) {
214
- finalWatchFileSystem = finalWatchFileSystem.wfs;
215
- }
216
- let finalInputFileSystem = this._compiler.inputFileSystem;
217
- while (finalInputFileSystem && finalInputFileSystem._inputFileSystem) {
218
- finalInputFileSystem = finalInputFileSystem._inputFileSystem;
219
- }
220
- finalInputFileSystem._writeVirtualFile(modulePath, stats, contents);
221
- if (finalWatchFileSystem &&
222
- finalWatchFileSystem.watcher &&
223
- (finalWatchFileSystem.watcher.fileWatchers.size || finalWatchFileSystem.watcher.fileWatchers.length)) {
224
- const fileWatchers = finalWatchFileSystem.watcher.fileWatchers instanceof Map
225
- ? Array.from(finalWatchFileSystem.watcher.fileWatchers.values())
226
- : finalWatchFileSystem.watcher.fileWatchers;
227
- for (let fileWatcher of fileWatchers) {
228
- if ('watcher' in fileWatcher) {
229
- fileWatcher = fileWatcher.watcher;
230
- }
231
- if (fileWatcher.path === modulePath) {
232
- if (process.env.DEBUG)
233
- console.log(this._compiler.name, 'Emit file change:', modulePath, time);
234
- delete fileWatcher.directoryWatcher._cachedTimeInfoEntries;
235
- fileWatcher.emit('change', time, null);
236
- }
237
- }
238
- }
239
- }
240
- apply(compiler) {
241
- this._compiler = compiler;
242
- const afterEnvironmentHook = () => {
243
- let finalInputFileSystem = compiler.inputFileSystem;
244
- while (finalInputFileSystem && finalInputFileSystem._inputFileSystem) {
245
- finalInputFileSystem = finalInputFileSystem._inputFileSystem;
246
- }
247
- if (!finalInputFileSystem._writeVirtualFile) {
248
- const originalPurge = finalInputFileSystem.purge;
249
- finalInputFileSystem.purge = () => {
250
- originalPurge.apply(finalInputFileSystem, []);
251
- if (finalInputFileSystem._virtualFiles) {
252
- Object.keys(finalInputFileSystem._virtualFiles).forEach((file) => {
253
- const data = finalInputFileSystem._virtualFiles[file];
254
- finalInputFileSystem._writeVirtualFile(file, data.stats, data.contents);
255
- });
256
- }
257
- };
258
- finalInputFileSystem._writeVirtualFile = (file, stats, contents) => {
259
- const statStorage = getStatStorage(finalInputFileSystem);
260
- const fileStorage = getFileStorage(finalInputFileSystem);
261
- const readDirStorage = getReadDirBackend(finalInputFileSystem);
262
- const realPathStorage = getRealpathBackend(finalInputFileSystem);
263
- finalInputFileSystem._virtualFiles = finalInputFileSystem._virtualFiles || {};
264
- finalInputFileSystem._virtualFiles[file] = { stats: stats, contents: contents };
265
- setData(statStorage, file, createWebpackData(stats));
266
- setData(fileStorage, file, createWebpackData(contents));
267
- const segments = file.split(/[\\/]/);
268
- let count = segments.length - 1;
269
- const minCount = segments[0] ? 1 : 0;
270
- while (count > minCount) {
271
- const dir = segments.slice(0, count).join(path_1.default.sep) || path_1.default.sep;
272
- try {
273
- finalInputFileSystem.readdirSync(dir);
274
- }
275
- catch (e) {
276
- const time = Date.now();
277
- const dirStats = new virtual_stats_1.VirtualStats({
278
- dev: 8675309,
279
- nlink: 0,
280
- uid: 1000,
281
- gid: 1000,
282
- rdev: 0,
283
- blksize: 4096,
284
- ino: inode++,
285
- mode: 16877,
286
- size: stats.size,
287
- blocks: Math.floor(stats.size / 4096),
288
- atime: time,
289
- mtime: time,
290
- ctime: time,
291
- birthtime: time,
292
- });
293
- setData(readDirStorage, dir, createWebpackData([]));
294
- if (realPathStorage) {
295
- setData(realPathStorage, dir, createWebpackData(dir));
296
- }
297
- setData(statStorage, dir, createWebpackData(dirStats));
298
- }
299
- let dirData = getData(getReadDirBackend(finalInputFileSystem), dir);
300
- dirData = dirData[1] || dirData.result;
301
- const filename = segments[count];
302
- if (dirData.indexOf(filename) < 0) {
303
- const files = dirData.concat([filename]).sort();
304
- setData(getReadDirBackend(finalInputFileSystem), dir, createWebpackData(files));
305
- }
306
- else {
307
- break;
308
- }
309
- count--;
310
- }
311
- };
312
- }
313
- };
314
- const afterResolversHook = () => {
315
- if (this._staticModules) {
316
- for (const [filePath, contents] of Object.entries(this._staticModules)) {
317
- this.writeModule(filePath, contents);
318
- }
319
- this._staticModules = null;
320
- }
321
- };
322
- const version = typeof compiler.webpack === 'undefined' ? 4 : 5;
323
- const watchRunHook = (watcher, callback) => {
324
- this._watcher = watcher.compiler || watcher;
325
- const virtualFiles = compiler.inputFileSystem._virtualFiles;
326
- const fts = compiler.fileTimestamps;
327
- if (virtualFiles && fts && typeof fts.set === 'function') {
328
- Object.keys(virtualFiles).forEach((file) => {
329
- const mtime = +virtualFiles[file].stats.mtime;
330
- fts.set(file, version === 4
331
- ? mtime
332
- : {
333
- safeTime: mtime,
334
- timestamp: mtime,
335
- });
336
- });
337
- }
338
- callback();
339
- };
340
- if (compiler.hooks) {
341
- compiler.hooks.afterEnvironment.tap('VirtualModulesPlugin', afterEnvironmentHook);
342
- compiler.hooks.afterResolvers.tap('VirtualModulesPlugin', afterResolversHook);
343
- compiler.hooks.watchRun.tapAsync('VirtualModulesPlugin', watchRunHook);
344
- }
345
- else {
346
- compiler.plugin('after-environment', afterEnvironmentHook);
347
- compiler.plugin('after-resolvers', afterResolversHook);
348
- compiler.plugin('watch-run', watchRunHook);
349
- }
350
- }
351
- }
352
- lib = VirtualModulesPlugin;
353
-
354
- return lib;
355
- }
356
-
357
- var libExports = requireLib();
358
- const VirtualModulesPlugin = /*@__PURE__*/getDefaultExportFromCjs(libExports);
359
-
360
- export { VirtualModulesPlugin as V };
@@ -1,59 +0,0 @@
1
- import { _ as _nitro } from './_nitro.mjs';
2
- import { _ as _static } from './_static.mjs';
3
- import { _ as _alwaysdata } from './alwaysdata.mjs';
4
- import { _ as _awsAmplify } from './aws-amplify.mjs';
5
- import { _ as _awsLambda } from './aws-lambda.mjs';
6
- import { _ as _azure } from './azure.mjs';
7
- import { _ as _bun } from './bun.mjs';
8
- import { _ as _cleavr } from './cleavr.mjs';
9
- import { _ as _cloudflare } from './cloudflare.mjs';
10
- import { _ as _deno } from './deno.mjs';
11
- import { _ as _digitalocean } from './digitalocean.mjs';
12
- import { _ as _firebase } from './firebase.mjs';
13
- import { _ as _flightcontrol } from './flightcontrol.mjs';
14
- import { _ as _genezio } from './genezio.mjs';
15
- import { _ as _heroku } from './heroku.mjs';
16
- import { _ as _iis } from './iis.mjs';
17
- import { _ as _koyeb } from './koyeb.mjs';
18
- import { _ as _netlify } from './netlify.mjs';
19
- import { _ as _node } from './node.mjs';
20
- import { _ as _platformSh } from './platform.mjs';
21
- import { _ as _renderCom } from './render.mjs';
22
- import { _ as _standard } from './standard.mjs';
23
- import { _ as _stormkit } from './stormkit.mjs';
24
- import { _ as _vercel } from './vercel.mjs';
25
- import { _ as _winterjs } from './winterjs.mjs';
26
- import { _ as _zeabur } from './zeabur.mjs';
27
- import { _ as _zerops } from './zerops.mjs';
28
-
29
- const allPresets = [
30
- ..._nitro,
31
- ..._static,
32
- ..._alwaysdata,
33
- ..._awsAmplify,
34
- ..._awsLambda,
35
- ..._azure,
36
- ..._bun,
37
- ..._cleavr,
38
- ..._cloudflare,
39
- ..._deno,
40
- ..._digitalocean,
41
- ..._firebase,
42
- ..._flightcontrol,
43
- ..._genezio,
44
- ..._heroku,
45
- ..._iis,
46
- ..._koyeb,
47
- ..._netlify,
48
- ..._node,
49
- ..._platformSh,
50
- ..._renderCom,
51
- ..._standard,
52
- ..._stormkit,
53
- ..._vercel,
54
- ..._winterjs,
55
- ..._zeabur,
56
- ..._zerops
57
- ];
58
-
59
- export { allPresets as a };
@@ -1,74 +0,0 @@
1
- import { d as defineNitroPreset } from './_utils.mjs';
2
- import { runtimeDir } from 'nitro/runtime/meta';
3
- import { j as join } from '../_deps/pathe.mjs';
4
-
5
- const baseWorker = defineNitroPreset(
6
- {
7
- entry: null,
8
- // Abstract
9
- node: false,
10
- minify: true,
11
- noExternals: true,
12
- rollupConfig: {
13
- output: {
14
- format: "iife",
15
- generatedCode: {
16
- symbols: true
17
- }
18
- }
19
- },
20
- inlineDynamicImports: true
21
- // iffe does not support code-splitting
22
- },
23
- {
24
- name: "base-worker"
25
- }
26
- );
27
- const worker = [baseWorker];
28
-
29
- const nitroDev = defineNitroPreset(
30
- {
31
- entry: "./_nitro/runtime/nitro-dev",
32
- output: {
33
- dir: "{{ buildDir }}/dev",
34
- serverDir: "{{ buildDir }}/dev",
35
- publicDir: "{{ buildDir }}/dev"
36
- },
37
- handlers: [
38
- {
39
- route: "/_nitro/tasks/**",
40
- lazy: true,
41
- handler: join(runtimeDir, "internal/routes/dev-tasks")
42
- }
43
- ],
44
- externals: { noTrace: true },
45
- serveStatic: true,
46
- inlineDynamicImports: true,
47
- // externals plugin limitation
48
- sourceMap: true
49
- },
50
- {
51
- name: "nitro-dev",
52
- dev: true
53
- }
54
- );
55
- const dev = [nitroDev];
56
-
57
- const nitroPrerender = defineNitroPreset(
58
- {
59
- entry: "./_nitro/runtime/nitro-prerenderer",
60
- serveStatic: true,
61
- output: {
62
- serverDir: "{{ buildDir }}/prerender"
63
- },
64
- externals: { noTrace: true }
65
- },
66
- {
67
- name: "nitro-prerender"
68
- }
69
- );
70
- const prerender = [nitroPrerender];
71
-
72
- const _nitro = [...worker, ...dev, ...prerender];
73
-
74
- export { _nitro as _ };
@@ -1,64 +0,0 @@
1
- import { r as resolveCompatibilityDatesFromEnv, f as formatCompatibilityDate } from '../_deps/compatx.mjs';
2
- import { kebabCase } from 'scule';
3
- import { p } from '../_deps/std-env.mjs';
4
- import { a as allPresets } from './_all.mjs';
5
-
6
- const _stdProviderMap = {
7
- aws_amplify: "aws",
8
- azure_static: "azure",
9
- cloudflare_pages: "cloudflare"
10
- };
11
- async function resolvePreset(name, opts = {}) {
12
- if (name === ".") {
13
- return void 0;
14
- }
15
- const _name = kebabCase(name) || p;
16
- const _compatDates = opts.compatibilityDate ? resolveCompatibilityDatesFromEnv(opts.compatibilityDate) : false;
17
- const matches = allPresets.filter((preset2) => {
18
- const names = [preset2._meta.name, preset2._meta.stdName, ...preset2._meta.aliases || []].filter(Boolean);
19
- if (!names.includes(_name)) {
20
- return false;
21
- }
22
- if (opts.dev && !preset2._meta.dev || !opts.dev && preset2._meta.dev) {
23
- return false;
24
- }
25
- if (_compatDates) {
26
- const _date = _compatDates[_stdProviderMap[preset2._meta.stdName]] || _compatDates[preset2._meta.stdName] || _compatDates[preset2._meta.name] || _compatDates.default;
27
- if (_date && preset2._meta.compatibilityDate && new Date(preset2._meta.compatibilityDate) > new Date(_date)) {
28
- return false;
29
- }
30
- }
31
- return true;
32
- }).sort((a, b) => {
33
- const aDate = new Date(a._meta.compatibilityDate || 0);
34
- const bDate = new Date(b._meta.compatibilityDate || 0);
35
- return bDate > aDate ? 1 : -1;
36
- });
37
- const preset = matches.find(
38
- (p) => (p._meta.static || false) === (opts?.static || false)
39
- ) || matches[0];
40
- if (typeof preset === "function") {
41
- return preset();
42
- }
43
- if (!name && !preset) {
44
- return opts?.static ? resolvePreset("static", opts) : resolvePreset("node-server", opts);
45
- }
46
- if (name && !preset) {
47
- const options = allPresets.filter((p) => p._meta.name === name || p._meta.stdName === name || p._meta.aliases?.includes(name)).sort((a, b) => (a._meta.compatibilityDate || 0) > (b._meta.compatibilityDate || 0) ? 1 : -1);
48
- if (options.length > 0) {
49
- let msg = `Preset "${name}" cannot be resolved with current compatibilityDate: ${formatCompatibilityDate(_compatDates || "")}.
50
-
51
- `;
52
- for (const option of options) {
53
- msg += `
54
- - ${option._meta.name} (requires compatibilityDate >= ${option._meta.compatibilityDate})`;
55
- }
56
- const err = new Error(msg);
57
- Error.captureStackTrace?.(err, resolvePreset);
58
- throw err;
59
- }
60
- }
61
- return preset;
62
- }
63
-
64
- export { resolvePreset as r };
@@ -1,69 +0,0 @@
1
- import fsp from 'node:fs/promises';
2
- import { d as defineNitroPreset } from './_utils.mjs';
3
- import { j as join } from '../_deps/pathe.mjs';
4
-
5
- const _static = defineNitroPreset(
6
- {
7
- static: true,
8
- output: {
9
- dir: "{{ rootDir }}/.output",
10
- publicDir: "{{ output.dir }}/public"
11
- },
12
- prerender: {
13
- crawlLinks: true
14
- },
15
- commands: {
16
- preview: "npx serve ./public"
17
- }
18
- },
19
- {
20
- name: "static",
21
- static: true
22
- }
23
- );
24
- const githubPages = defineNitroPreset(
25
- {
26
- extends: "static",
27
- commands: {
28
- deploy: "npx gh-pages --dotfiles -d ./public"
29
- },
30
- prerender: {
31
- routes: [
32
- "/",
33
- // https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-custom-404-page-for-your-github-pages-site
34
- "/404.html"
35
- ]
36
- },
37
- hooks: {
38
- async compiled(nitro) {
39
- await fsp.writeFile(
40
- join(nitro.options.output.publicDir, ".nojekyll"),
41
- ""
42
- );
43
- }
44
- }
45
- },
46
- {
47
- name: "github-pages",
48
- static: true
49
- }
50
- );
51
- const gitlabPages = defineNitroPreset(
52
- {
53
- extends: "static",
54
- prerender: {
55
- routes: [
56
- "/",
57
- // https://docs.gitlab.com/ee/user/project/pages/introduction.html#custom-error-codes-pages
58
- "/404.html"
59
- ]
60
- }
61
- },
62
- {
63
- name: "gitlab-pages",
64
- static: true
65
- }
66
- );
67
- const _static$1 = [_static, githubPages, gitlabPages];
68
-
69
- export { _static$1 as _ };
@@ -1,3 +0,0 @@
1
- const presetsWithConfig = ["awsAmplify", "awsLambda", "azure", "cloudflare", "firebase", "netlify", "vercel"];
2
-
3
- export { presetsWithConfig as p };
@@ -1,31 +0,0 @@
1
- import { presetsDir } from 'nitro/runtime/meta';
2
- import { resolve } from 'node:path';
3
- import fsp from 'node:fs/promises';
4
- import consola from 'consola';
5
- import { colors } from 'consola/utils';
6
- import { d as dirname, a as relative } from '../_deps/pathe.mjs';
7
-
8
- function defineNitroPreset(preset, meta) {
9
- if (typeof preset !== "function" && preset.entry && preset.entry.startsWith(".")) {
10
- preset.entry = resolve(presetsDir, preset.entry);
11
- }
12
- return { ...preset, _meta: meta };
13
- }
14
-
15
- function prettyPath(p, highlight = true) {
16
- p = relative(process.cwd(), p);
17
- return highlight ? colors.cyan(p) : p;
18
- }
19
- async function writeFile(file, contents, log = false) {
20
- await fsp.mkdir(dirname(file), { recursive: true });
21
- await fsp.writeFile(
22
- file,
23
- contents,
24
- typeof contents === "string" ? "utf8" : void 0
25
- );
26
- if (log) {
27
- consola.info("Generated", prettyPath(file));
28
- }
29
- }
30
-
31
- export { defineNitroPreset as d, writeFile as w };
@@ -1,17 +0,0 @@
1
- import { d as defineNitroPreset } from './_utils.mjs';
2
-
3
- const alwaysdata = defineNitroPreset(
4
- {
5
- extends: "node-server",
6
- serveStatic: true,
7
- commands: {
8
- deploy: "rsync -rRt --info=progress2 ./ [account]@ssh-[account].alwaysdata.net:www/my-app"
9
- }
10
- },
11
- {
12
- name: "alwaysdata"
13
- }
14
- );
15
- const _alwaysdata = [alwaysdata];
16
-
17
- export { _alwaysdata as _ };