@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
@@ -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,12 +51,12 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@cloudflare/workers-types": "^4.20250906.0",
55
- "@trpc/client": "^11.5.1",
56
- "@trpc/server": "^11.5.1",
57
- "@types/node": "^20.19.9",
58
- "@universal-middleware/core": "^0.4.10",
59
- vite: "^7.1.4"
54
+ "@cloudflare/workers-types": "^4.20251011.0",
55
+ "@trpc/client": "^11.6.0",
56
+ "@trpc/server": "^11.6.0",
57
+ "@types/node": "^20.19.21",
58
+ "@universal-middleware/core": "^0.4.11",
59
+ vite: "^7.1.10"
60
60
  },
61
61
  dependencies: {
62
62
  "@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(["@trpc/server", "@trpc/client"]);
102
102
  }
103
103
  export {
@@ -2,24 +2,32 @@
2
2
 
3
3
  import type { D1Database } from "@cloudflare/workers-types";
4
4
  import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
5
- // TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/vike-server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
6
- import type { Get, UniversalHandler } from "@universal-middleware/core";
5
+ import { enhance, type Get, type UniversalHandler } from "@universal-middleware/core";
7
6
  import { appRouter } from "../trpc/server";
8
7
 
9
- export const trpcHandler = ((endpoint) => (request, context, runtime) => {
10
- return fetchRequestHandler({
11
- endpoint,
12
- req: request,
13
- router: appRouter,
14
- createContext({ req, resHeaders }) {
15
- return {
16
- ...(context as BATI.Any),
17
- ...(runtime as BATI.If<{
18
- "BATI.hasD1": { runtime: "workerd"; adapter: "cloudflare-pages"; env?: { DB: D1Database } };
19
- }>),
20
- req,
21
- resHeaders,
22
- };
8
+ export const trpcHandler = ((endpoint) =>
9
+ enhance(
10
+ (request, context, runtime) => {
11
+ return fetchRequestHandler({
12
+ endpoint,
13
+ req: request,
14
+ router: appRouter,
15
+ createContext({ req, resHeaders }) {
16
+ return {
17
+ ...(context as BATI.Any),
18
+ ...(runtime as BATI.If<{
19
+ "BATI.hasD1": { runtime: "workerd"; adapter: "cloudflare-pages"; env?: { DB: D1Database } };
20
+ }>),
21
+ req,
22
+ resHeaders,
23
+ };
24
+ },
25
+ });
23
26
  },
24
- });
25
- }) satisfies Get<[endpoint: string], UniversalHandler>;
27
+ {
28
+ name: "my-app:trpc-handler",
29
+ path: `${endpoint}/**`,
30
+ method: ["GET", "POST"],
31
+ immutable: false,
32
+ },
33
+ )) satisfies Get<[endpoint: string], UniversalHandler>;
@@ -1 +1,6 @@
1
- export declare const trpcHandler: (endpoint: string) => (request: Request, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
1
+ export declare const trpcHandler: (endpoint: string) => ((request: Request, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>) & import("@universal-middleware/core").WithUniversalSymbols<{
2
+ name: string;
3
+ path: string;
4
+ method: ("GET" | "POST")[];
5
+ immutable: false;
6
+ }>;
@@ -1,6 +1,6 @@
1
1
  export declare const trpc: import("@trpc/client").TRPCClient<import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: object & {
3
- db: ReturnType<any>;
3
+ db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
4
4
  } & {
5
5
  db: ReturnType<any>;
6
6
  } & {
@@ -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,11 +51,11 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@cloudflare/workers-types": "^4.20250906.0",
54
+ "@cloudflare/workers-types": "^4.20251011.0",
55
55
  "@ts-rest/core": "^3.52.1",
56
56
  "@ts-rest/serverless": "^3.52.1",
57
- "@types/node": "^20.19.9",
58
- "@universal-middleware/core": "^0.4.10",
57
+ "@types/node": "^20.19.21",
58
+ "@universal-middleware/core": "^0.4.11",
59
59
  zod: "^3.25.76"
60
60
  },
61
61
  dependencies: {
@@ -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.addDevDependencies(["zod"]).addDependencies(["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"]);
102
102
  }
103
103
  export {
@@ -6,8 +6,7 @@ import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
6
6
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
7
7
  import type { D1Database } from "@cloudflare/workers-types";
8
8
  import { fetchRequestHandler, tsr } from "@ts-rest/serverless/fetch";
9
- // TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/vike-server. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
10
- import type { Get, UniversalHandler } from "@universal-middleware/core";
9
+ import { enhance, type UniversalHandler } from "@universal-middleware/core";
11
10
  import { contract } from "../ts-rest/contract";
12
11
 
13
12
  /**
@@ -54,15 +53,23 @@ const router = tsr
54
53
  },
55
54
  });
56
55
 
57
- export const tsRestHandler: Get<[], UniversalHandler> = () => async (request, ctx, runtime) =>
58
- fetchRequestHandler({
59
- request: new Request(request.url, request),
60
- contract,
61
- router,
62
- options: {},
63
- platformContext: {
64
- ...ctx,
65
- ...runtime,
66
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
- } as any,
68
- });
56
+ export const tsRestHandler: UniversalHandler = enhance(
57
+ async (request, ctx, runtime) =>
58
+ fetchRequestHandler({
59
+ request: new Request(request.url, request),
60
+ contract,
61
+ router,
62
+ options: {},
63
+ platformContext: {
64
+ ...ctx,
65
+ ...runtime,
66
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
+ } as any,
68
+ }),
69
+ {
70
+ name: "my-app:ts-rest-handler",
71
+ path: `/api/**`,
72
+ method: ["GET", "POST"],
73
+ immutable: false,
74
+ },
75
+ );
@@ -1,2 +1,2 @@
1
- import type { Get, UniversalHandler } from "@universal-middleware/core";
2
- export declare const tsRestHandler: Get<[], UniversalHandler>;
1
+ import { type UniversalHandler } from "@universal-middleware/core";
2
+ export declare const tsRestHandler: UniversalHandler;
@@ -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,11 +51,10 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@types/node": "^20.19.9",
55
- "@vite-plugin-vercel/vike": "^9.0.6",
56
- vike: "^0.4.239",
57
- vite: "^7.1.4",
58
- "vite-plugin-vercel": "^9.0.7"
54
+ "@photonjs/vercel": "^0.1.4",
55
+ "@types/node": "^20.19.21",
56
+ vike: "^0.4.242",
57
+ vite: "^7.1.10"
59
58
  },
60
59
  dependencies: {
61
60
  "@batijs/core": "workspace:*"
@@ -72,8 +71,8 @@ var require_package = __commonJS({
72
71
  }
73
72
  });
74
73
  async function getPackageJson(props) {
75
- const packageJson = await txs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
76
- return packageJson.addDependencies(["vite-plugin-vercel", "@vite-plugin-vercel/vike"]);
74
+ const packageJson = await $xs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
75
+ return packageJson.removeScript("prod").addDependencies(["@photonjs/vercel"]);
77
76
  }
78
77
  export {
79
78
  getPackageJson as default
@@ -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
- rxs
7
- } from "../../../../../chunk-2SZ4N3E5.js";
6
+ Kxs
7
+ } from "../../../../../chunk-LRTYGOU6.js";
8
8
  import "../../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/vercel/dist/files/pages/$+config.ts.js
12
12
  async function getViteConfig(props) {
13
- const mod = await rxs(props);
13
+ const mod = await Kxs(props);
14
14
  mod.exports.default.prerender = true;
15
15
  return mod.generate().code;
16
16
  }
@@ -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/vue/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
  This app is ready to start. It's powered by [Vike](https://vike.dev) and [Vue](https://vuejs.org/guide/quick-start.html).
@@ -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,18 +52,19 @@ var require_package = __commonJS({
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
54
  "@batijs/tailwindcss": "workspace:*",
55
- "@types/node": "^20.19.9",
55
+ "@types/node": "^20.19.21",
56
56
  "@vitejs/plugin-vue": "^6.0.1",
57
- "@vue/compiler-sfc": "^3.5.21",
58
- "@vue/server-renderer": "^3.5.21",
59
- tailwindcss: "^4.1.13",
60
- typescript: "^5.9.2",
61
- "unplugin-vue-markdown": "^29.1.0",
62
- vike: "^0.4.239",
63
- "vike-vue": "^0.9.2",
64
- vite: "^7.1.4",
65
- vue: "^3.5.21",
66
- "vue-gtag": "^3.6.1"
57
+ "@vue/compiler-sfc": "^3.5.22",
58
+ "@vue/server-renderer": "^3.5.22",
59
+ tailwindcss: "^4.1.14",
60
+ typescript: "^5.9.3",
61
+ "unplugin-vue-markdown": "^29.2.0",
62
+ vike: "^0.4.242",
63
+ "vike-photon": "^0.1.10",
64
+ "vike-vue": "^0.9.3",
65
+ vite: "^7.1.10",
66
+ vue: "^3.5.22",
67
+ "vue-gtag": "^3.6.2"
67
68
  },
68
69
  dependencies: {
69
70
  "@batijs/core": "workspace:*"
@@ -128,7 +129,7 @@ var require_package = __commonJS({
128
129
  }
129
130
  });
130
131
  async function getPackageJson(props) {
131
- const packageJson = await txs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
132
+ const packageJson = await $xs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
132
133
  return packageJson.addDevDependencies(["vite"]).addDependencies([
133
134
  "@vitejs/plugin-vue",
134
135
  "@vue/compiler-sfc",
@@ -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/vue/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.jsx = "react-jsx";
15
15
  tsConfig.compilerOptions.jsxImportSource = "vue";
16
16
  return tsConfig;
@@ -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
- Zri,
7
- rxs
8
- } from "../../../../chunk-2SZ4N3E5.js";
6
+ Kxs,
7
+ hni
8
+ } from "../../../../chunk-LRTYGOU6.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
12
12
  // ../../boilerplates/vue/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await rxs(props);
15
- Zri(mod, {
14
+ const mod = await Kxs(props);
15
+ hni(mod, {
16
16
  from: "@vitejs/plugin-vue",
17
17
  constructor: "vue",
18
18
  options: {
19
19
  include: [/\.vue$/, /\.md$/]
20
20
  }
21
21
  });
22
- Zri(mod, {
22
+ hni(mod, {
23
23
  from: "unplugin-vue-markdown/vite",
24
24
  constructor: "md",
25
25
  options: {}
@@ -1,4 +1,5 @@
1
1
  import type { Config } from "vike/types";
2
+ import vikePhoton from "vike-photon/config";
2
3
  import vikeVue from "vike-vue/config";
3
4
  import Layout from "../layouts/LayoutDefault.vue";
4
5
 
@@ -15,5 +16,9 @@ export default {
15
16
 
16
17
  //# BATI.has("auth0") || BATI.has("authjs")
17
18
  passToClient: ["user"],
18
- extends: vikeVue as typeof vikeVue,
19
+ extends: [
20
+ vikeVue,
21
+ //# BATI.hasPhoton
22
+ vikePhoton,
23
+ ] as BATI.Any,
19
24
  } satisfies Config;
@@ -1,9 +1,8 @@
1
- import vikeVue from "vike-vue/config";
2
1
  declare const _default: {
3
2
  Layout: any;
4
3
  title: string;
5
4
  description: string;
6
5
  passToClient: string[];
7
- extends: typeof vikeVue;
6
+ extends: BATI.Any;
8
7
  };
9
8
  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,11 +51,11 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@sentry/vue": "^10.10.0",
55
- "@types/node": "^20.19.9",
56
- "vike-vue": "^0.9.2",
57
- vite: "^7.1.4",
58
- vue: "^3.5.21"
54
+ "@sentry/vue": "^10.19.0",
55
+ "@types/node": "^20.19.21",
56
+ "vike-vue": "^0.9.3",
57
+ vite: "^7.1.10",
58
+ vue: "^3.5.22"
59
59
  },
60
60
  dependencies: {
61
61
  "@batijs/core": "workspace:*"
@@ -89,7 +89,7 @@ var require_package = __commonJS({
89
89
  }
90
90
  });
91
91
  async function getPackageJson(props) {
92
- 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));
93
93
  return packageJson.addDependencies(["@sentry/vue"]);
94
94
  }
95
95
  export {
@@ -201,6 +201,26 @@
201
201
  "files"
202
202
  ]
203
203
  },
204
+ {
205
+ "config": {
206
+ "if": {
207
+ "flag": {
208
+ "$in": [
209
+ "h3",
210
+ "express",
211
+ "hono",
212
+ "fastify",
213
+ "vercel",
214
+ "cloudflare"
215
+ ]
216
+ }
217
+ }
218
+ },
219
+ "folder": "@batijs/photon",
220
+ "subfolders": [
221
+ "files"
222
+ ]
223
+ },
204
224
  {
205
225
  "config": {
206
226
  "if": {