@batijs/cli 0.0.476 → 0.0.478

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 (129) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +6 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
  3. package/dist/boilerplates/@batijs/auth0/files/$wrangler.toml.js +32 -0
  4. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +7 -6
  5. package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +42 -35
  6. package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +8 -3
  7. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  8. package/dist/boilerplates/@batijs/aws/files/$package.json.js +10 -10
  9. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  10. package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
  11. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +17 -26
  12. package/dist/boilerplates/@batijs/cloudflare/files/wrangler.toml +2 -3
  13. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +5 -5
  14. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  15. package/dist/boilerplates/@batijs/d1/files/$README.md.js +4 -4
  16. package/dist/boilerplates/@batijs/d1/files/$package.json.js +8 -8
  17. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  18. package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +3 -11
  19. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +7 -7
  20. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  21. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
  22. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +8 -8
  23. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +8 -8
  24. package/dist/boilerplates/@batijs/eslint/types/eslint.config.d.ts +1 -1
  25. package/dist/boilerplates/@batijs/express/files/$package.json.js +16 -29
  26. package/dist/boilerplates/@batijs/express/files/server/entry.ts +45 -0
  27. package/dist/boilerplates/@batijs/express/types/server/entry.d.ts +3 -0
  28. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +18 -32
  29. package/dist/boilerplates/@batijs/fastify/files/server/entry.ts +52 -0
  30. package/dist/boilerplates/@batijs/fastify/types/server/entry.d.ts +4 -0
  31. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  32. package/dist/boilerplates/@batijs/h3/files/$package.json.js +21 -32
  33. package/dist/boilerplates/@batijs/h3/files/server/entry.ts +45 -0
  34. package/dist/boilerplates/@batijs/{express/types/express-entry.d.ts → h3/types/server/entry.d.ts} +1 -1
  35. package/dist/boilerplates/@batijs/hono/files/$package.json.js +23 -40
  36. package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +2 -9
  37. package/dist/boilerplates/@batijs/hono/files/server/entry.ts +53 -0
  38. package/dist/boilerplates/@batijs/hono/types/server/entry.d.ts +4 -0
  39. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  40. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +12 -12
  41. package/dist/boilerplates/@batijs/photon/files/$README.md.js +29 -0
  42. package/dist/boilerplates/@batijs/photon/files/$package.json.js +109 -0
  43. package/dist/boilerplates/@batijs/photon/files/+photon.ts +7 -0
  44. package/dist/boilerplates/@batijs/photon/types/+photon.d.ts +4 -0
  45. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
  46. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
  47. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  48. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
  49. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +6 -6
  50. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  51. package/dist/boilerplates/@batijs/react/files/$package.json.js +16 -15
  52. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  53. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  54. package/dist/boilerplates/@batijs/react/files/pages/+config.ts +6 -1
  55. package/dist/boilerplates/@batijs/react/types/pages/+config.d.ts +63 -2
  56. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +10 -10
  57. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  58. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  59. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +6 -6
  60. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  61. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  62. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  63. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +7 -7
  64. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  65. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  66. package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
  67. package/dist/boilerplates/@batijs/shared/files/package.json +3 -3
  68. package/dist/boilerplates/@batijs/shared/files/vite.config.ts +1 -20
  69. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +21 -15
  70. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +2 -2
  71. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +8 -14
  72. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +33 -34
  73. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +3 -4
  74. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  75. package/dist/boilerplates/@batijs/solid/files/$package.json.js +11 -10
  76. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  77. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  78. package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +6 -1
  79. package/dist/boilerplates/@batijs/solid/types/pages/+config.d.ts +70 -2
  80. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +7 -7
  81. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  82. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +4 -3
  83. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +7 -7
  84. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +9 -9
  85. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  86. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +9 -9
  87. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  88. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +34 -27
  89. package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.ts +2 -2
  90. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +9 -9
  91. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +26 -18
  92. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +6 -1
  93. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +1 -1
  94. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +6 -6
  95. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +21 -14
  96. package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +2 -2
  97. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +8 -9
  98. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  99. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  100. package/dist/boilerplates/@batijs/vue/files/$package.json.js +15 -14
  101. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  102. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  103. package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +6 -1
  104. package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +1 -2
  105. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +8 -8
  106. package/dist/boilerplates/boilerplates.json +20 -0
  107. package/dist/{chunk-2SZ4N3E5.js → chunk-LRTYGOU6.js} +83539 -83181
  108. package/dist/index.js +720 -659
  109. package/dist/jiti-ZW3ADF2F-7XIEJQMO.js +2982 -0
  110. package/dist/src-5HGZFBZ3-KQZBBJSW.js +468 -0
  111. package/package.json +10 -10
  112. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +0 -19
  113. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +0 -34
  114. package/dist/boilerplates/@batijs/express/files/express-entry.ts +0 -102
  115. package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +0 -140
  116. package/dist/boilerplates/@batijs/fastify/types/fastify-entry.d.ts +0 -3
  117. package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +0 -144
  118. package/dist/boilerplates/@batijs/h3/types/h3-entry.d.ts +0 -4
  119. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +0 -36
  120. package/dist/boilerplates/@batijs/hono/files/hono-entry.node.ts +0 -31
  121. package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +0 -74
  122. package/dist/boilerplates/@batijs/hono/types/hono-entry.d.ts +0 -6
  123. package/dist/boilerplates/@batijs/hono/types/hono-entry.node.d.ts +0 -1
  124. package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +0 -20
  125. package/dist/boilerplates/@batijs/shared-server/types/server/vike-handler.d.ts +0 -2
  126. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +0 -19
  127. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +0 -27
  128. package/dist/jiti-W5Y5D52V-VBLACVBV.js +0 -30587
  129. package/dist/src-UAKFXUB2-DFO2P37K.js +0 -417
@@ -1,4 +1,5 @@
1
1
  import type { Config } from "vike/types";
2
+ import vikePhoton from "vike-photon/config";
2
3
  import vikeReact from "vike-react/config";
3
4
  import Layout from "../layouts/LayoutDefault.js";
4
5
 
@@ -15,5 +16,9 @@ export default {
15
16
 
16
17
  //# BATI.has("auth0") || BATI.has("authjs")
17
18
  passToClient: ["user"],
18
- extends: vikeReact,
19
+ extends: [
20
+ vikeReact,
21
+ //# BATI.hasPhoton
22
+ vikePhoton,
23
+ ],
19
24
  } satisfies Config;
@@ -4,7 +4,7 @@ declare const _default: {
4
4
  title: string;
5
5
  description: string;
6
6
  passToClient: string[];
7
- extends: {
7
+ extends: ({
8
8
  name: string;
9
9
  require: {
10
10
  vike: string;
@@ -155,6 +155,67 @@ declare const _default: {
155
155
  env: {};
156
156
  };
157
157
  };
158
- };
158
+ } | Omit<{
159
+ name: "vike-photon";
160
+ require: {
161
+ vike: ">=0.4.238";
162
+ "vike-react": {
163
+ version: ">=0.6.4";
164
+ optional: true;
165
+ };
166
+ "vike-vue": {
167
+ version: ">=0.9.2";
168
+ optional: true;
169
+ };
170
+ "vike-solid": {
171
+ version: ">=0.7.11";
172
+ optional: true;
173
+ };
174
+ };
175
+ vite: {
176
+ plugins: (((Record<string, unknown> & {
177
+ name: string;
178
+ }) | Promise<(Record<string, unknown> & {
179
+ name: string;
180
+ }) | (Record<string, unknown> & {
181
+ name: string;
182
+ })[]>)[] | import("vite").Plugin<any>[])[];
183
+ };
184
+ stream: {
185
+ enable: null;
186
+ type: "web";
187
+ };
188
+ meta: {
189
+ stream: {
190
+ isDefinedByPeerDependency: true;
191
+ };
192
+ photon: {
193
+ env: {
194
+ config: true;
195
+ };
196
+ global: true;
197
+ };
198
+ isr: {
199
+ env: {
200
+ server: true;
201
+ config: true;
202
+ };
203
+ eager: true;
204
+ effect({ configValue }: {
205
+ configValue: unknown;
206
+ configDefinedAt: `Config ${string} defined at ${string}`;
207
+ }): {
208
+ prerender: false;
209
+ } | undefined;
210
+ };
211
+ edge: {
212
+ env: {
213
+ server: true;
214
+ config: true;
215
+ };
216
+ eager: true;
217
+ };
218
+ };
219
+ }, "stream">)[];
159
220
  };
160
221
  export default _default;
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- txs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ $xs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -51,13 +51,13 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@sentry/react": "^10.10.0",
55
- "@types/node": "^20.19.9",
56
- "@types/react": "^19.1.12",
57
- "@types/react-dom": "^19.1.9",
58
- react: "^19.1.1",
59
- "react-dom": "^19.1.1",
60
- vite: "^7.1.4"
54
+ "@sentry/react": "^10.19.0",
55
+ "@types/node": "^20.19.21",
56
+ "@types/react": "^19.2.2",
57
+ "@types/react-dom": "^19.2.2",
58
+ react: "^19.2.0",
59
+ "react-dom": "^19.2.0",
60
+ vite: "^7.1.10"
61
61
  },
62
62
  dependencies: {
63
63
  "@batijs/core": "workspace:*"
@@ -97,7 +97,7 @@ var require_package = __commonJS({
97
97
  }
98
98
  });
99
99
  async function getPackageJson(props) {
100
- const packageJson = await txs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
100
+ const packageJson = await $xs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
101
101
  return packageJson.addDependencies(["@sentry/react"]);
102
102
  }
103
103
  export {
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- MBs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ kUs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -12,13 +12,13 @@ import "../../../../chunk-DHZ7AZKP.js";
12
12
  async function getServerlessEnv(props) {
13
13
  const sentryDNS = process.env.TEST_SENTRY_DSN;
14
14
  let envContent = await props.readfile?.();
15
- envContent = MBs(
15
+ envContent = kUs(
16
16
  envContent,
17
17
  "SENTRY_DSN",
18
18
  sentryDNS ?? "",
19
19
  "Sentry DNS. Used for Error Reporting on the Server"
20
20
  );
21
- envContent = MBs(
21
+ envContent = kUs(
22
22
  envContent,
23
23
  "PUBLIC_ENV__SENTRY_DSN",
24
24
  "",
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- ZEs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ Wxs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/sentry/dist/files/$README.md.js
12
12
  async function getReadme(props) {
13
- const content = await ZEs(props);
13
+ const content = await Wxs(props);
14
14
  const about = `
15
15
 
16
16
  ## Sentry Browser / Error Tracking & Performance Monitoring
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- txs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ $xs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -51,9 +51,9 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@sentry/vite-plugin": "^4.3.0",
55
- "@types/node": "^20.19.9",
56
- vite: "^7.1.4"
54
+ "@sentry/vite-plugin": "^4.4.0",
55
+ "@types/node": "^20.19.21",
56
+ vite: "^7.1.10"
57
57
  },
58
58
  dependencies: {
59
59
  "@batijs/core": "workspace:*"
@@ -82,7 +82,7 @@ var require_package = __commonJS({
82
82
  }
83
83
  });
84
84
  async function getPackageJson(props) {
85
- const packageJson = await txs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
85
+ const packageJson = await $xs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
86
86
  return packageJson.addDevDependencies(["@sentry/vite-plugin"]);
87
87
  }
88
88
  export {
@@ -3,17 +3,17 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Zir,
7
- Zri,
8
- rxs
9
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ Kxs,
7
+ fsr,
8
+ hni
9
+ } from "../../../../chunk-LRTYGOU6.js";
10
10
  import "../../../../chunk-IAWYWZSL.js";
11
11
  import "../../../../chunk-DHZ7AZKP.js";
12
12
 
13
13
  // ../../boilerplates/sentry/dist/files/$vite.config.ts.js
14
14
  async function getViteConfig(props) {
15
- const mod = await rxs(props);
16
- Zri(mod, {
15
+ const mod = await Kxs(props);
16
+ hni(mod, {
17
17
  from: "@sentry/vite-plugin",
18
18
  constructor: "sentryVitePlugin",
19
19
  imported: "sentryVitePlugin",
@@ -21,7 +21,7 @@ async function getViteConfig(props) {
21
21
  sourcemaps: { disable: false }
22
22
  }
23
23
  });
24
- Zir(mod.exports.default.$args[0], { build: { sourcemap: true } });
24
+ fsr(mod.exports.default.$args[0], { build: { sourcemap: true } });
25
25
  return mod.generate().code;
26
26
  }
27
27
  export {
@@ -3,11 +3,11 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- gNe,
7
- pne,
8
- qq,
9
- rxs
10
- } from "../../../../../chunk-2SZ4N3E5.js";
6
+ Ene,
7
+ Gq,
8
+ Kxs,
9
+ PNe
10
+ } from "../../../../../chunk-LRTYGOU6.js";
11
11
  import "../../../../../chunk-IAWYWZSL.js";
12
12
  import "../../../../../chunk-DHZ7AZKP.js";
13
13
 
@@ -15,17 +15,17 @@ import "../../../../../chunk-DHZ7AZKP.js";
15
15
  async function getViteConfig(props) {
16
16
  let mod;
17
17
  try {
18
- mod = await rxs(props);
18
+ mod = await Kxs(props);
19
19
  } catch {
20
- mod = gNe("");
20
+ mod = PNe("");
21
21
  }
22
22
  if (!props.meta.BATI.has("vue")) {
23
23
  mod.imports.$prepend({
24
24
  from: "../sentry.browser.config",
25
25
  imported: "sentryBrowserConfig"
26
26
  });
27
- const e = pne.functionCall("sentryBrowserConfig");
28
- const c = qq(e).code;
27
+ const e = Ene.functionCall("sentryBrowserConfig");
28
+ const c = Gq(e).code;
29
29
  mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
30
30
  }
31
31
  return mod.generate().code;
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- ZEs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ Wxs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/shadcn-ui/dist/files/$README.md.js
12
12
  async function getReadme(props) {
13
- const content = await ZEs(props);
13
+ const content = await Wxs(props);
14
14
  const about = `
15
15
 
16
16
  ## shadcn/ui
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- txs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ $xs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -52,14 +52,14 @@ var require_package = __commonJS({
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
54
  "@radix-ui/react-icons": "^1.3.2",
55
- "@types/node": "^20.19.9",
55
+ "@types/node": "^20.19.21",
56
56
  autoprefixer: "^10.4.21",
57
57
  "class-variance-authority": "^0.7.1",
58
58
  clsx: "^2.1.1",
59
- "lucide-react": "^0.542.0",
59
+ "lucide-react": "^0.545.0",
60
60
  "tailwind-merge": "^3.3.1",
61
- tailwindcss: "^4.1.13",
62
- "tw-animate-css": "^1.3.8"
61
+ tailwindcss: "^4.1.14",
62
+ "tw-animate-css": "^1.4.0"
63
63
  },
64
64
  dependencies: {
65
65
  "@batijs/core": "workspace:*"
@@ -88,7 +88,7 @@ var require_package = __commonJS({
88
88
  }
89
89
  });
90
90
  async function getPackageJson(props) {
91
- const packageJson = await txs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
91
+ const packageJson = await $xs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
92
92
  return packageJson.setScript("shadcn", {
93
93
  value: "npx shadcn@latest",
94
94
  precedence: 1,
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- exs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ Jxs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/shadcn-ui/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
13
- const tsConfig = await exs(props);
13
+ const tsConfig = await Jxs(props);
14
14
  tsConfig.compilerOptions.paths = {
15
15
  ...tsConfig.compilerOptions?.paths ?? {},
16
16
  "@/*": ["./*"]
@@ -3,22 +3,22 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Gir,
7
- rxs
8
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ Kxs,
7
+ lsr
8
+ } from "../../../../chunk-LRTYGOU6.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
12
12
  // ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await rxs(props);
14
+ const mod = await Kxs(props);
15
15
  const replacement = `new URL("./", import.meta.url).pathname`;
16
16
  addResolveAlias(mod, "@", replacement);
17
17
  return mod.generate().code.replace(`"{{PLACEHOLDER_ALIAS}}"`, replacement);
18
18
  }
19
19
  function addResolveAlias(mod, find, replacement) {
20
20
  const alias = mod.exports.default.$args[0]?.resolve?.alias ?? {};
21
- const warnMsg = `${Gir("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
21
+ const warnMsg = `${lsr("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
22
22
  if (alias?.length === void 0) {
23
23
  if (alias[find]) {
24
24
  console.warn(warnMsg);
@@ -3,23 +3,23 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- LBs,
7
- OBs,
8
- QSs,
9
- ZEs
10
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ DUs,
7
+ Wxs,
8
+ YEs,
9
+ wUs
10
+ } from "../../../../chunk-LRTYGOU6.js";
11
11
  import "../../../../chunk-IAWYWZSL.js";
12
12
  import "../../../../chunk-DHZ7AZKP.js";
13
13
 
14
14
  // ../../boilerplates/shared/dist/files/$README.md.js
15
15
  async function getReadme(props) {
16
- const content = await ZEs(props);
16
+ const content = await Wxs(props);
17
17
  const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
18
- const v = LBs();
19
- const intro = `Generated with [vike.dev/new](https://vike.dev/new) ${`(${QSs.link(`https://www.npmjs.com/package/create-vike/v/${v.version}`, `version ${v.semver.at(-1)}`)})`} using this command:
18
+ const v = wUs();
19
+ const intro = `Generated with [vike.dev/new](https://vike.dev/new) ${`(${YEs.link(`https://www.npmjs.com/package/create-vike/v/${v.version}`, `version ${v.semver.at(-1)}`)})`} using this command:
20
20
 
21
21
  \`\`\`sh
22
- ${OBs()} ${flags}
22
+ ${DUs()} ${flags}
23
23
  \`\`\`
24
24
  `;
25
25
  content.addMarkdown(intro, {
@@ -5,11 +5,11 @@
5
5
  "preview": "vike preview"
6
6
  },
7
7
  "dependencies": {
8
- "vike": "^0.4.239"
8
+ "vike": "^0.4.242"
9
9
  },
10
10
  "devDependencies": {
11
- "typescript": "^5.9.2",
12
- "vite": "^7.1.4"
11
+ "typescript": "^5.9.3",
12
+ "vite": "^7.1.10"
13
13
  },
14
14
  "type": "module"
15
15
  }
@@ -1,5 +1,5 @@
1
1
  //# BATI.has("REMOVE-COMMENT") || "remove-comments-only"
2
- /// <reference types="vite-plugin-vercel/types" />
2
+ /// <reference types="@photonjs/vercel/types" />
3
3
  /// <reference types="@batijs/core/types" />
4
4
 
5
5
  import vike from "vike/plugin";
@@ -14,23 +14,4 @@ export default defineConfig({
14
14
  },
15
15
  target: "es2022",
16
16
  },
17
- //# BATI.has("vercel") && BATI.hasServer
18
- vercel: {
19
- additionalEndpoints: [
20
- {
21
- // entry file to the server. Default export must be a node server or a function
22
- source: BATI.has("fastify")
23
- ? "fastify-entry.ts"
24
- : BATI.has("hono")
25
- ? "hono-entry.ts"
26
- : BATI.has("h3")
27
- ? "h3-entry.ts"
28
- : "express-entry.ts",
29
- // replaces default Vike target
30
- destination: "ssr_",
31
- // already added by default Vike route
32
- route: false,
33
- },
34
- ],
35
- },
36
17
  });
@@ -4,7 +4,7 @@ import { getDbFromRuntime } from "@batijs/d1/database/d1/helpers";
4
4
  import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
5
5
  import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
6
6
  import type { D1Database } from "@cloudflare/workers-types";
7
- import type { Get, UniversalMiddleware } from "@universal-middleware/core";
7
+ import { enhance, type UniversalMiddleware } from "@universal-middleware/core";
8
8
 
9
9
  //# BATI.hasDatabase
10
10
  declare global {
@@ -21,18 +21,24 @@ declare global {
21
21
  }
22
22
 
23
23
  // Add `db` to the Context
24
- export const dbMiddleware: Get<[], UniversalMiddleware> = () => async (_request, context, _runtime) => {
25
- const db =
26
- BATI.has("sqlite") && !BATI.hasD1
27
- ? sqliteDb()
28
- : BATI.has("drizzle") && !BATI.hasD1
29
- ? dbSqlite()
30
- : BATI.has("drizzle")
31
- ? dbD1(await getDbFromRuntime(_runtime))
32
- : await getDbFromRuntime(_runtime);
24
+ export const dbMiddleware: UniversalMiddleware = enhance(
25
+ async (_request, context, _runtime) => {
26
+ const db =
27
+ BATI.has("sqlite") && !BATI.hasD1
28
+ ? sqliteDb()
29
+ : BATI.has("drizzle") && !BATI.hasD1
30
+ ? dbSqlite()
31
+ : BATI.has("drizzle")
32
+ ? dbD1(await getDbFromRuntime(_runtime))
33
+ : await getDbFromRuntime(_runtime);
33
34
 
34
- return {
35
- ...context,
36
- db: db as BATI.Any,
37
- };
38
- };
35
+ return {
36
+ ...context,
37
+ db: db as BATI.Any,
38
+ };
39
+ },
40
+ {
41
+ name: "my-app:db-middleware",
42
+ immutable: false,
43
+ },
44
+ );
@@ -1,7 +1,7 @@
1
1
  import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
2
  import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
3
  import type { D1Database } from "@cloudflare/workers-types";
4
- import type { Get, UniversalMiddleware } from "@universal-middleware/core";
4
+ import { type UniversalMiddleware } from "@universal-middleware/core";
5
5
  declare global {
6
6
  namespace Universal {
7
7
  interface Context {
@@ -14,4 +14,4 @@ declare global {
14
14
  }
15
15
  }
16
16
  }
17
- export declare const dbMiddleware: Get<[], UniversalMiddleware>;
17
+ export declare const dbMiddleware: UniversalMiddleware;
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- txs
7
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ $xs
7
+ } from "../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -52,11 +52,11 @@ var require_package = __commonJS({
52
52
  license: "MIT",
53
53
  devDependencies: {
54
54
  "@batijs/compile": "workspace:*",
55
- "@cloudflare/workers-types": "^4.20250906.0",
56
- "@types/node": "^20.19.9",
57
- "@universal-middleware/core": "^0.4.10",
58
- vike: "^0.4.239",
59
- vite: "^7.1.4"
55
+ "@cloudflare/workers-types": "^4.20251011.0",
56
+ "@types/node": "^20.19.21",
57
+ "@universal-middleware/core": "^0.4.11",
58
+ vike: "^0.4.242",
59
+ vite: "^7.1.10"
60
60
  },
61
61
  files: [
62
62
  "dist/"
@@ -76,18 +76,12 @@ var require_package = __commonJS({
76
76
  exports: {
77
77
  "./server/create-todo-handler": {
78
78
  types: "./dist/types/server/create-todo-handler.d.ts"
79
- },
80
- "./server/vike-handler": {
81
- types: "./dist/types/server/vike-handler.d.ts"
82
79
  }
83
80
  },
84
81
  typesVersions: {
85
82
  "*": {
86
83
  "server/create-todo-handler": [
87
84
  "./dist/types/server/create-todo-handler.d.ts"
88
- ],
89
- "server/vike-handler": [
90
- "./dist/types/server/vike-handler.d.ts"
91
85
  ]
92
86
  }
93
87
  }
@@ -95,7 +89,7 @@ var require_package = __commonJS({
95
89
  }
96
90
  });
97
91
  async function getPackageJson(props) {
98
- const packageJson = await txs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
92
+ const packageJson = await $xs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
99
93
  return packageJson.addDependencies(["@universal-middleware/core"]);
100
94
  }
101
95
  export {