@batijs/cli 0.0.461 → 0.0.464

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 (140) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
  4. package/dist/boilerplates/@batijs/authjs/files/global.d.ts +0 -2
  5. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  6. package/dist/boilerplates/@batijs/aws/files/$package.json.js +8 -8
  7. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  8. package/dist/boilerplates/@batijs/aws/files/cdk/bin/infrastructure.ts +3 -4
  9. package/dist/boilerplates/@batijs/aws/files/cdk/lib/vike-stack.ts +12 -12
  10. package/dist/boilerplates/@batijs/aws/files/tests/aws_handler.spec.ts +4 -3
  11. package/dist/boilerplates/@batijs/aws/types/cdk/lib/vike-stack.d.ts +1 -1
  12. package/dist/boilerplates/@batijs/biome/files/$biome.json.js +93 -0
  13. package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
  14. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -5
  15. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  16. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +6 -6
  17. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
  18. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  19. package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
  20. package/dist/boilerplates/@batijs/d1/files/$package.json.js +6 -6
  21. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  22. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +0 -2
  23. package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +1 -0
  24. package/dist/boilerplates/@batijs/d1/files/global.d.ts +1 -3
  25. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +5 -5
  26. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  27. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
  28. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
  29. package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +1 -1
  30. package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/queries/todos.ts +2 -1
  31. package/dist/boilerplates/@batijs/drizzle/files/drizzle.config.ts +1 -0
  32. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +1 -1
  33. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.ts +1 -1
  34. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +6 -6
  35. package/dist/boilerplates/@batijs/express/files/$package.json.js +6 -6
  36. package/dist/boilerplates/@batijs/express/files/express-entry.ts +2 -2
  37. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +7 -7
  38. package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +4 -4
  39. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  40. package/dist/boilerplates/@batijs/h3/files/$package.json.js +6 -6
  41. package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +4 -3
  42. package/dist/boilerplates/@batijs/hono/files/$package.json.js +9 -9
  43. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
  44. package/dist/boilerplates/@batijs/hono/files/entry_aws_lambda.ts +5 -5
  45. package/dist/boilerplates/@batijs/hono/files/hono-entry.node.ts +1 -1
  46. package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +3 -3
  47. package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.ts +1 -1
  48. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  49. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +7 -7
  50. package/dist/boilerplates/@batijs/mantine/files/components/Link.tsx +1 -1
  51. package/dist/boilerplates/@batijs/mantine/files/layouts/LayoutDefault.tsx +3 -3
  52. package/dist/boilerplates/@batijs/mantine/files/layouts/theme.ts +1 -1
  53. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
  54. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  55. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  56. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
  57. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
  58. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  59. package/dist/boilerplates/@batijs/react/files/$package.json.js +9 -9
  60. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  61. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  62. package/dist/boilerplates/@batijs/react/files/pages/+Head.tsx +12 -7
  63. package/dist/boilerplates/@batijs/react/files/pages/+config.ts +1 -1
  64. package/dist/boilerplates/@batijs/react/files/pages/star-wars/@id/+data.ts +1 -1
  65. package/dist/boilerplates/@batijs/react/files/pages/star-wars/index/+data.ts +1 -1
  66. package/dist/boilerplates/@batijs/react/files/pages/todo/TodoList.tsx +1 -1
  67. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +6 -6
  68. package/dist/boilerplates/@batijs/react-sentry/files/pages/sentry/+Page.tsx +3 -2
  69. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  70. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  71. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +5 -5
  72. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  73. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  74. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  75. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +6 -6
  76. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  77. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  78. package/dist/boilerplates/@batijs/shadcn-ui/files/lib/utils.ts +1 -1
  79. package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
  80. package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
  81. package/dist/boilerplates/@batijs/shared/files/vite.config.ts +2 -1
  82. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +4 -3
  83. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +2 -2
  84. package/dist/boilerplates/@batijs/shared-no-db/files/database/todoItems.ts +1 -1
  85. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +6 -6
  86. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +4 -3
  87. package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +2 -1
  88. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +1 -1
  89. package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +3 -5
  90. package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +3 -2
  91. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  92. package/dist/boilerplates/@batijs/solid/files/$package.json.js +7 -7
  93. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  94. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  95. package/dist/boilerplates/@batijs/solid/files/pages/+Head.tsx +1 -5
  96. package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +1 -1
  97. package/dist/boilerplates/@batijs/solid/files/pages/star-wars/@id/+data.ts +1 -1
  98. package/dist/boilerplates/@batijs/solid/files/pages/star-wars/index/+data.ts +1 -1
  99. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +6 -6
  100. package/dist/boilerplates/@batijs/solid-sentry/files/pages/sentry/+Page.tsx +2 -3
  101. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  102. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
  103. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
  104. package/dist/boilerplates/@batijs/sqlite/files/database/sqlite/db.ts +1 -1
  105. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +7 -7
  106. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  107. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +6 -6
  108. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  109. package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +3 -5
  110. package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +2 -2
  111. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +3 -3
  112. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +5 -5
  113. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +4 -3
  114. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +4 -4
  115. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +2 -2
  116. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +1 -1
  117. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
  118. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +8 -7
  119. package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +1 -1
  120. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
  121. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  122. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  123. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  124. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  125. package/dist/boilerplates/@batijs/vue/files/$package.json.js +6 -6
  126. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  127. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  128. package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +1 -0
  129. package/dist/boilerplates/@batijs/vue/files/pages/+Head.vue +1 -1
  130. package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +1 -1
  131. package/dist/boilerplates/@batijs/vue/files/pages/star-wars/@id/+data.ts +1 -1
  132. package/dist/boilerplates/@batijs/vue/files/pages/star-wars/index/+data.ts +1 -1
  133. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -5
  134. package/dist/boilerplates/@batijs/vue-sentry/files/sentry.browser.config.ts +3 -4
  135. package/dist/{chunk-FMU63FHF.js → chunk-IAY736Z6.js} +159734 -159712
  136. package/dist/index.js +5089 -5185
  137. package/dist/{jiti-EM3N2G3P-5LY37YR5.js → jiti-W5Y5D52V-VBLACVBV.js} +417 -417
  138. package/package.json +8 -8
  139. package/dist/boilerplates/@batijs/biome/files/biome.json +0 -29
  140. package/dist/boilerplates/@batijs/prettier/files/.prettierrc +0 -3
@@ -1,7 +1,7 @@
1
- import type { Get, UniversalMiddleware } from "@universal-middleware/core";
2
1
  import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
3
2
  import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
4
- import { D1Database } from "@cloudflare/workers-types";
3
+ import type { D1Database } from "@cloudflare/workers-types";
4
+ import type { Get, UniversalMiddleware } from "@universal-middleware/core";
5
5
  declare global {
6
6
  namespace Universal {
7
7
  interface Context {
@@ -8,7 +8,7 @@ const database =
8
8
  // We create an in-memory database.
9
9
  // - We use globalThis so that the database isn't reset upon HMR.
10
10
  // - The database is reset when restarting the server, use a proper database (SQLite/PostgreSQL/...) if you want persistent data.
11
- // biome-ignore lint:
11
+ // biome-ignore lint: ignore
12
12
  ((globalThis as unknown as { __database: { todos: TodoItem[] } }).__database ??= { todos: todosDefault });
13
13
 
14
14
  const { todos } = database;
@@ -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
- Ijs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ _Es
7
+ } from "../../../../chunk-IAY736Z6.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.20250806.0",
55
+ "@cloudflare/workers-types": "^4.20250816.0",
56
56
  "@types/node": "^20.19.9",
57
57
  "@universal-middleware/core": "^0.4.9",
58
- vike: "^0.4.236",
59
- vite: "^7.0.6"
58
+ vike: "^0.4.237",
59
+ vite: "^7.1.2"
60
60
  },
61
61
  files: [
62
62
  "dist/"
@@ -95,7 +95,7 @@ var require_package = __commonJS({
95
95
  }
96
96
  });
97
97
  async function getPackageJson(props) {
98
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
98
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
99
99
  return packageJson.addDependencies(["@universal-middleware/core"]);
100
100
  }
101
101
  export {
@@ -1,12 +1,13 @@
1
1
  /*# BATI include-if-imported #*/
2
2
  // TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/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.)
3
- import type { Get, UniversalHandler } from "@universal-middleware/core";
4
- import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
5
- import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
3
+
6
4
  import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
7
5
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
6
+ import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
8
7
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
8
+ import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
9
9
  import type { D1Database } from "@cloudflare/workers-types";
10
+ import type { Get, UniversalHandler } from "@universal-middleware/core";
10
11
 
11
12
  export const createTodoHandler: Get<
12
13
  [],
@@ -1,8 +1,9 @@
1
1
  /*# BATI include-if-imported #*/
2
2
  /// <reference lib="webworker" />
3
- import { renderPage } from "vike/server";
3
+
4
4
  // TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/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.)
5
5
  import type { Get, UniversalHandler } from "@universal-middleware/core";
6
+ import { renderPage } from "vike/server";
6
7
 
7
8
  export const vikeHandler: Get<[], UniversalHandler> = () => async (request, context, runtime) => {
8
9
  const pageContextInit = { ...context, ...runtime, urlOriginal: request.url, headersOriginal: request.headers };
@@ -1,7 +1,7 @@
1
- import type { Get, UniversalHandler } from "@universal-middleware/core";
2
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
3
2
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
4
3
  import type { D1Database } from "@cloudflare/workers-types";
4
+ import type { Get, UniversalHandler } from "@universal-middleware/core";
5
5
  export declare const createTodoHandler: Get<[
6
6
  ], UniversalHandler<Universal.Context & BATI.If<{
7
7
  'BATI.has("sqlite") && !BATI.hasD1': {
@@ -1,6 +1,6 @@
1
- import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
- import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
- import { D1Database } from "@cloudflare/workers-types";
1
+ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
+ import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
+ import type { D1Database } from "@cloudflare/workers-types";
4
4
 
5
5
  //# BATI.hasDatabase
6
6
  declare global {
@@ -15,5 +15,3 @@ declare global {
15
15
  }
16
16
  }
17
17
  }
18
-
19
- export {};
@@ -1,8 +1,9 @@
1
1
  // https://vike.dev/data
2
- import { todos } from "@batijs/shared-no-db/database/todoItems";
2
+
3
+ import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
3
4
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
5
+ import { todos } from "@batijs/shared-no-db/database/todoItems";
4
6
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
5
- import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
6
7
  import type { PageContextServer } from "vike/types";
7
8
 
8
9
  export type Data = {
@@ -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
- kjs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ pEs
7
+ } from "../../../../chunk-IAY736Z6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/solid/dist/files/$README.md.js
12
12
  async function getReadme(props) {
13
- const content = await kjs(props);
13
+ const content = await pEs(props);
14
14
  const about = `
15
15
 
16
16
  This app is ready to start. It's powered by [Vike](https://vike.dev) and [SolidJS](https://www.solidjs.com/guides/getting-started).
@@ -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
- Ijs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ _Es
7
+ } from "../../../../chunk-IAY736Z6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -52,12 +52,12 @@ var require_package = __commonJS({
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
54
  "@types/node": "^20.19.9",
55
- "solid-js": "^1.9.7",
56
- tailwindcss: "^4.1.11",
55
+ "solid-js": "^1.9.9",
56
+ tailwindcss: "^4.1.12",
57
57
  typescript: "^5.9.2",
58
- vike: "^0.4.236",
58
+ vike: "^0.4.237",
59
59
  "vike-solid": "^0.7.12",
60
- vite: "^7.0.6",
60
+ vite: "^7.1.2",
61
61
  "vite-plugin-solid": "^2.11.8"
62
62
  },
63
63
  dependencies: {
@@ -177,7 +177,7 @@ var require_package = __commonJS({
177
177
  }
178
178
  });
179
179
  async function getPackageJson(props) {
180
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
180
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
181
181
  return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
182
182
  }
183
183
  export {
@@ -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
- Njs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ fEs
7
+ } from "../../../../chunk-IAY736Z6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/solid/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
13
- const tsConfig = await Njs(props);
13
+ const tsConfig = await fEs(props);
14
14
  tsConfig.compilerOptions.jsx = "react-jsx";
15
15
  tsConfig.compilerOptions.jsxImportSource = "solid-js";
16
16
  tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-solid/client"];
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Ojs,
7
- xps
8
- } from "../../../../chunk-FMU63FHF.js";
6
+ Vri,
7
+ dEs
8
+ } from "../../../../chunk-IAY736Z6.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
12
12
  // ../../boilerplates/solid/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await Ojs(props);
15
- xps(mod, {
14
+ const mod = await dEs(props);
15
+ Vri(mod, {
16
16
  from: "vike-solid/vite",
17
17
  constructor: "vikeSolid"
18
18
  });
@@ -31,10 +31,6 @@ export default function HeadDefault() {
31
31
  </>
32
32
  );
33
33
  } else {
34
- return (
35
- <>
36
- <link rel="icon" href={logoUrl} />
37
- </>
38
- );
34
+ return <link rel="icon" href={logoUrl} />;
39
35
  }
40
36
  }
@@ -1,5 +1,5 @@
1
- import vikeSolid from "vike-solid/config";
2
1
  import type { Config } from "vike/types";
2
+ import vikeSolid from "vike-solid/config";
3
3
  import Layout from "../layouts/LayoutDefault.js";
4
4
 
5
5
  // Default config (can be overridden by pages)
@@ -1,8 +1,8 @@
1
1
  // https://vike.dev/data
2
2
 
3
3
  import type { PageContextServer } from "vike/types";
4
- import type { MovieDetails } from "../types.js";
5
4
  import { useConfig } from "vike-solid/useConfig";
5
+ import type { MovieDetails } from "../types.js";
6
6
 
7
7
  export type Data = Awaited<ReturnType<typeof data>>;
8
8
 
@@ -1,7 +1,7 @@
1
1
  // https://vike.dev/data
2
2
 
3
- import type { Movie, MovieDetails } from "../types.js";
4
3
  import { useConfig } from "vike-solid/useConfig";
4
+ import type { Movie, MovieDetails } from "../types.js";
5
5
 
6
6
  export type Data = Awaited<ReturnType<typeof data>>;
7
7
 
@@ -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
- Ijs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ _Es
7
+ } from "../../../../chunk-IAY736Z6.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/solid": "^10.1.0",
54
+ "@sentry/solid": "^10.5.0",
55
55
  "@types/node": "^20.19.9",
56
- "solid-js": "^1.9.7",
56
+ "solid-js": "^1.9.9",
57
57
  "vike-solid": "^0.7.12",
58
- vite: "^7.0.6"
58
+ vite: "^7.1.2"
59
59
  },
60
60
  dependencies: {
61
61
  "@batijs/core": "workspace:*"
@@ -95,7 +95,7 @@ var require_package = __commonJS({
95
95
  }
96
96
  });
97
97
  async function getPackageJson(props) {
98
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
98
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
99
99
  return packageJson.addDependencies(["@sentry/solid"]);
100
100
  }
101
101
  export {
@@ -27,14 +27,13 @@ export default function SolidSentryErrorPage() {
27
27
  <p style={{ color: "red" }}>
28
28
  <b>Sentry Config Error:</b> {sentryClientStatus().client_not_loaded ? "Client not loaded!" : ""}{" "}
29
29
  {!sentryClientStatus().client_not_loaded && sentryClientStatus().dsn_missing ? "DSN is missing! " : ""}
30
- {!sentryClientStatus().client_not_loaded && !sentryClientStatus().enabled
31
- ? "Client is not enabled! "
32
- : ""}{" "}
30
+ {!sentryClientStatus().client_not_loaded && !sentryClientStatus().enabled ? "Client is not enabled! " : ""}{" "}
33
31
  Vite Mode: {import.meta.env.PROD ? "PROD" : "DEV"}
34
32
  </p>
35
33
  )}
36
34
  <div>
37
35
  <button
36
+ type="button"
38
37
  onClick={() => {
39
38
  throw new Error(`This is a Solid SENTRY Browser Test! [${import.meta.env.DEV ? "DEV Mode" : "PROD Mode"}]`);
40
39
  }}
@@ -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
- Wjs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ $js
7
+ } from "../../../../chunk-IAY736Z6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -12,7 +12,7 @@ import "../../../../chunk-DHZ7AZKP.js";
12
12
  async function getEnv(props) {
13
13
  if (props.meta.BATI.hasD1) return;
14
14
  const envContent = await props.readfile?.();
15
- return Wjs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
15
+ return $js(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
16
16
  }
17
17
  export {
18
18
  getEnv 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
- kjs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ pEs
7
+ } from "../../../../chunk-IAY736Z6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/sqlite/dist/files/$README.md.js
12
12
  async function getReadme(props) {
13
- const content = await kjs(props);
13
+ const content = await pEs(props);
14
14
  const todo = `
15
15
  ## *Sqlite*
16
16
 
@@ -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
- Ijs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ _Es
7
+ } from "../../../../chunk-IAY736Z6.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -55,7 +55,7 @@ var require_package = __commonJS({
55
55
  "@types/node": "^20.19.9",
56
56
  "better-sqlite3": "^12.2.0",
57
57
  dotenv: "^17.2.1",
58
- tsx: "^4.20.3"
58
+ tsx: "^4.20.4"
59
59
  },
60
60
  dependencies: {
61
61
  "@batijs/core": "workspace:*"
@@ -111,7 +111,7 @@ var require_package = __commonJS({
111
111
  }
112
112
  });
113
113
  async function getPackageJson(props) {
114
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
114
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
115
115
  return packageJson.setScript("sqlite:migrate", {
116
116
  value: "tsx ./database/sqlite/schema/all.ts",
117
117
  precedence: 1
@@ -1,7 +1,7 @@
1
1
  /*# BATI include-if-imported #*/
2
2
  import sqlite, { type Database } from "better-sqlite3";
3
3
 
4
- let singleton: Database | undefined = undefined;
4
+ let singleton: Database | undefined;
5
5
 
6
6
  export function db(): Database {
7
7
  if (!singleton) {
@@ -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
- Ijs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ _Es
7
+ } from "../../../../chunk-IAY736Z6.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
- "@tailwindcss/vite": "^4.1.11",
54
+ "@tailwindcss/vite": "^4.1.12",
55
55
  "@types/node": "^20.19.9",
56
56
  autoprefixer: "^10.4.21",
57
57
  daisyui: "^5.0.50",
58
- tailwindcss: "^4.1.11",
59
- vike: "^0.4.236",
60
- vite: "^7.0.6"
58
+ tailwindcss: "^4.1.12",
59
+ vike: "^0.4.237",
60
+ vite: "^7.1.2"
61
61
  },
62
62
  dependencies: {
63
63
  "@batijs/core": "workspace:*"
@@ -75,7 +75,7 @@ var require_package = __commonJS({
75
75
  });
76
76
  async function getPackageJson(props) {
77
77
  const pkgjson = await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default);
78
- const packageJson = await Ijs(props, pkgjson);
78
+ const packageJson = await _Es(props, pkgjson);
79
79
  return packageJson.addDevDependencies(["tailwindcss", "@tailwindcss/vite"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
80
80
  }
81
81
  export {
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Ojs,
7
- xps
8
- } from "../../../../chunk-FMU63FHF.js";
6
+ Vri,
7
+ dEs
8
+ } from "../../../../chunk-IAY736Z6.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
12
12
  // ../../boilerplates/tailwindcss/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await Ojs(props);
15
- xps(mod, {
14
+ const mod = await dEs(props);
15
+ Vri(mod, {
16
16
  from: "@tailwindcss/vite",
17
17
  constructor: "tailwindcss"
18
18
  });
@@ -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
- Ijs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ _Es
7
+ } from "../../../../chunk-IAY736Z6.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.20250806.0",
54
+ "@cloudflare/workers-types": "^4.20250816.0",
55
55
  "@types/node": "^20.19.9",
56
56
  "@universal-middleware/core": "^0.4.9",
57
57
  telefunc: "^0.2.8",
58
- vike: "^0.4.236",
59
- vite: "^7.0.6"
58
+ vike: "^0.4.237",
59
+ vite: "^7.1.2"
60
60
  },
61
61
  dependencies: {
62
62
  "@batijs/core": "workspace:*"
@@ -91,7 +91,7 @@ var require_package = __commonJS({
91
91
  }
92
92
  });
93
93
  async function getPackageJson(props) {
94
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
94
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
95
95
  return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
96
96
  }
97
97
  export {
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Ojs,
7
- xps
8
- } from "../../../../chunk-FMU63FHF.js";
6
+ Vri,
7
+ dEs
8
+ } from "../../../../chunk-IAY736Z6.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
12
12
  // ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await Ojs(props);
15
- xps(mod, {
14
+ const mod = await dEs(props);
15
+ Vri(mod, {
16
16
  from: "telefunc/vite",
17
17
  constructor: "telefunc",
18
18
  imported: "telefunc"
@@ -1,6 +1,6 @@
1
- import { D1Database } from "@cloudflare/workers-types";
2
- import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
3
- import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
1
+ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
+ import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
+ import type { D1Database } from "@cloudflare/workers-types";
4
4
 
5
5
  //# BATI.hasDatabase
6
6
  declare module "telefunc" {
@@ -16,5 +16,3 @@ declare module "telefunc" {
16
16
  }
17
17
  }
18
18
  }
19
-
20
- export {};
@@ -1,9 +1,9 @@
1
1
  // We use Telefunc (https://telefunc.com) for data mutations. Being able to use Telefunc for fetching initial data is work-in-progress (https://vike.dev/data-fetching#tools).
2
2
 
3
- import { todos } from "@batijs/shared-no-db/database/todoItems";
3
+ import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
4
4
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
5
+ import { todos } from "@batijs/shared-no-db/database/todoItems";
5
6
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
6
- import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
7
7
  import { getContext } from "telefunc";
8
8
 
9
9
  export async function onNewTodo({ text }: { text: string }) {
@@ -1,9 +1,9 @@
1
- import { telefunc } from "telefunc";
2
- // TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/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.)
3
- import type { Get, UniversalHandler } from "@universal-middleware/core";
4
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
5
2
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
6
3
  import type { D1Database } from "@cloudflare/workers-types";
4
+ // TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/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.)
5
+ import type { Get, UniversalHandler } from "@universal-middleware/core";
6
+ import { telefunc } from "telefunc";
7
7
 
8
8
  export const telefuncHandler: Get<[], UniversalHandler> = () => async (request, context, runtime) => {
9
9
  const httpResponse = await telefunc({
@@ -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
- Ijs
7
- } from "../../../../chunk-FMU63FHF.js";
6
+ _Es
7
+ } from "../../../../chunk-IAY736Z6.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.20250806.0",
54
+ "@cloudflare/workers-types": "^4.20250816.0",
55
55
  "@trpc/client": "^11.4.4",
56
56
  "@trpc/server": "^11.4.4",
57
57
  "@types/node": "^20.19.9",
58
58
  "@universal-middleware/core": "^0.4.9",
59
- vite: "^7.0.6"
59
+ vite: "^7.1.2"
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 Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
100
+ const packageJson = await _Es(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 {
@@ -1,9 +1,10 @@
1
1
  /*# BATI include-if-imported #*/
2
- import { appRouter } from "../trpc/server";
3
- // TODO: stop using universal-middleware and directly integrate server middlewares instead and/or use vike-server https://vike.dev/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.)
4
- import type { Get, UniversalHandler } from "@universal-middleware/core";
2
+
5
3
  import type { D1Database } from "@cloudflare/workers-types";
6
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/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";
7
+ import { appRouter } from "../trpc/server";
7
8
 
8
9
  export const trpcHandler = ((endpoint) => (request, context, runtime) => {
9
10
  return fetchRequestHandler({
@@ -1,10 +1,10 @@
1
- import { initTRPC } from "@trpc/server";
2
- import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
3
- import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
4
1
  import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
5
2
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
3
+ import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
6
4
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
7
- import { D1Database } from "@cloudflare/workers-types";
5
+ import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
6
+ import type { D1Database } from "@cloudflare/workers-types";
7
+ import { initTRPC } from "@trpc/server";
8
8
 
9
9
  /**
10
10
  * Initialization of tRPC backend