@batijs/cli 0.0.542 → 0.0.544

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 (115) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +3 -3
  3. package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +3 -3
  4. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$README.md.js +5 -5
  6. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +5 -5
  7. package/dist/boilerplates/@batijs/aws/files/$package.json.js +6 -6
  8. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  9. package/dist/boilerplates/@batijs/aws/files/cdk/bin/infrastructure.ts +1 -1
  10. package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
  11. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +5 -5
  12. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -5
  13. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  14. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
  15. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  16. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +5 -5
  17. package/dist/boilerplates/@batijs/d1/files/$package.json.js +4 -4
  18. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +3 -3
  19. package/dist/boilerplates/@batijs/d1-kysely/bati.config.js +17 -0
  20. package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +77 -0
  21. package/dist/boilerplates/@batijs/d1-kysely/files/database/migrations/todos.sql +4 -0
  22. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +3 -3
  23. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  24. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +5 -5
  25. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -5
  26. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +4 -4
  27. package/dist/boilerplates/@batijs/express/files/$package.json.js +7 -7
  28. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +6 -6
  29. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  30. package/dist/boilerplates/@batijs/h3/files/$package.json.js +7 -7
  31. package/dist/boilerplates/@batijs/hono/files/$package.json.js +6 -6
  32. package/dist/boilerplates/@batijs/kysely/bati.config.js +35 -0
  33. package/dist/boilerplates/@batijs/kysely/files/$.env.js +19 -0
  34. package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +30 -0
  35. package/dist/boilerplates/@batijs/kysely/files/$package.json.js +120 -0
  36. package/dist/boilerplates/@batijs/kysely/files/database/kysely/db.ts +25 -0
  37. package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrate.ts +45 -0
  38. package/dist/boilerplates/@batijs/kysely/files/database/kysely/migrations/001_create_todos_table.ts +16 -0
  39. package/dist/boilerplates/@batijs/kysely/files/database/kysely/queries/todos.ts +20 -0
  40. package/dist/boilerplates/@batijs/kysely/files/database/kysely/types.ts +13 -0
  41. package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.ts +5 -0
  42. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrate.d.ts +1 -0
  43. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrations/001_create_todos_table.d.ts +4 -0
  44. package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.ts +15 -0
  45. package/dist/boilerplates/@batijs/kysely/types/database/kysely/types.d.ts +10 -0
  46. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  47. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +6 -6
  48. package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +5 -5
  49. package/dist/boilerplates/@batijs/photon/files/$README.md.js +3 -3
  50. package/dist/boilerplates/@batijs/photon/files/$package.json.js +4 -4
  51. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +3 -3
  52. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
  53. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
  54. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  55. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +5 -5
  56. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
  57. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  58. package/dist/boilerplates/@batijs/react/files/$package.json.js +8 -8
  59. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  60. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  61. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +7 -7
  62. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  63. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +5 -5
  64. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +3 -3
  65. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
  66. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  67. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  68. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +5 -5
  69. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +4 -4
  70. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  71. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  72. package/dist/boilerplates/@batijs/shared/files/$README.md.js +7 -7
  73. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +3 -3
  74. package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
  75. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +10 -3
  76. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +3 -0
  77. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +4 -4
  78. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +6 -0
  79. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +7 -0
  80. package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +3 -0
  81. package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +5 -0
  82. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  83. package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
  84. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  85. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  86. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +5 -5
  87. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  88. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +5 -5
  89. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
  90. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -5
  91. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  92. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
  93. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  94. package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +3 -0
  95. package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +4 -0
  96. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +3 -0
  97. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
  98. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +6 -0
  99. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +7 -3
  100. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +13 -0
  101. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +3 -3
  102. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +6 -0
  103. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
  104. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  105. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  106. package/dist/boilerplates/@batijs/vue/files/$package.json.js +5 -5
  107. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  108. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +5 -5
  109. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -5
  110. package/dist/boilerplates/boilerplates.json +12 -0
  111. package/dist/{chunk-X4G6MHMH.js → chunk-CIBJZ5MN.js} +75803 -75758
  112. package/dist/index.js +87 -67
  113. package/dist/{jiti-ZW3ADF2F-2SLKRUEN.js → jiti-PKZMRTZN-BIHN3GUM.js} +2 -3
  114. package/dist/{prompt-YBELZKBA.js → prompt-424IOCOV.js} +2 -2
  115. package/package.json +8 -8
@@ -3,15 +3,15 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- gSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/shared/dist/files/$TODO.md.js
12
12
  var todoIntro = "Follow the steps below to finish setting up your application.";
13
13
  async function getTodo(props) {
14
- const content = await gSs(props);
14
+ const content = await PEs(props);
15
15
  content.addMarkdown(todoIntro, {
16
16
  wrapper: {
17
17
  section: "intro"
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "devDependencies": {
11
11
  "typescript": "^5.9.3",
12
- "vite": "^7.2.6"
12
+ "vite": "^7.2.7"
13
13
  },
14
14
  "type": "module"
15
15
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { getDbFromRuntime } from "@batijs/d1/database/d1/helpers";
4
4
  import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
5
+ import { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
5
6
  import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
6
7
  import { enhance, type UniversalMiddleware } from "@universal-middleware/core";
7
8
 
@@ -13,6 +14,8 @@ declare global {
13
14
  'BATI.has("sqlite") && !BATI.hasD1': ReturnType<typeof sqliteDb>;
14
15
  'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
15
16
  'BATI.has("drizzle")': ReturnType<typeof dbD1>;
17
+ 'BATI.has("kysely") && !BATI.hasD1': ReturnType<typeof dbKysely>;
18
+ 'BATI.has("kysely")': ReturnType<typeof dbKyselyD1>;
16
19
  "BATI.hasD1": D1Database;
17
20
  }>;
18
21
  }
@@ -27,9 +30,13 @@ export const dbMiddleware: UniversalMiddleware = enhance(
27
30
  ? sqliteDb()
28
31
  : BATI.has("drizzle") && !BATI.hasD1
29
32
  ? dbSqlite()
30
- : BATI.has("drizzle")
31
- ? dbD1(await getDbFromRuntime(_runtime))
32
- : await getDbFromRuntime(_runtime);
33
+ : BATI.has("kysely") && !BATI.hasD1
34
+ ? dbKysely()
35
+ : BATI.has("kysely")
36
+ ? dbKyselyD1(await getDbFromRuntime(_runtime))
37
+ : BATI.has("drizzle")
38
+ ? dbD1(await getDbFromRuntime(_runtime))
39
+ : await getDbFromRuntime(_runtime);
33
40
 
34
41
  return {
35
42
  ...context,
@@ -1,4 +1,5 @@
1
1
  import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
+ import { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
2
3
  import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
4
  import { type UniversalMiddleware } from "@universal-middleware/core";
4
5
  declare global {
@@ -8,6 +9,8 @@ declare global {
8
9
  'BATI.has("sqlite") && !BATI.hasD1': ReturnType<typeof sqliteDb>;
9
10
  'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
10
11
  'BATI.has("drizzle")': ReturnType<typeof dbD1>;
12
+ 'BATI.has("kysely") && !BATI.hasD1': ReturnType<typeof dbKysely>;
13
+ 'BATI.has("kysely")': ReturnType<typeof dbKyselyD1>;
11
14
  "BATI.hasD1": D1Database;
12
15
  }>;
13
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
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -55,7 +55,7 @@ var require_package = __commonJS({
55
55
  "@types/node": "^20.19.25",
56
56
  "@universal-middleware/core": "^0.4.13",
57
57
  vike: "^0.4.247",
58
- vite: "^7.2.6"
58
+ vite: "^7.2.7"
59
59
  },
60
60
  files: [
61
61
  "dist/"
@@ -76,7 +76,7 @@ var require_package = __commonJS({
76
76
  }
77
77
  });
78
78
  async function getPackageJson(props) {
79
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
79
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
80
80
  return packageJson.addDependencies(["@universal-middleware/core"]);
81
81
  }
82
82
  export {
@@ -3,6 +3,8 @@
3
3
  import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
4
4
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
5
5
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
6
+ import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
7
+ import * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
6
8
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
7
9
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
8
10
  import { enhance, type UniversalHandler } from "@universal-middleware/core";
@@ -13,6 +15,8 @@ export const createTodoHandler: UniversalHandler<
13
15
  'BATI.has("sqlite") && !BATI.hasD1': { db: ReturnType<typeof sqliteDb> };
14
16
  'BATI.has("drizzle") && !BATI.hasD1': { db: ReturnType<typeof dbSqlite> };
15
17
  'BATI.has("drizzle")': { db: ReturnType<typeof dbD1> };
18
+ 'BATI.has("kysely") && !BATI.hasD1': { db: ReturnType<typeof dbKysely> };
19
+ 'BATI.has("kysely")': { db: ReturnType<typeof dbKyselyD1> };
16
20
  "BATI.hasD1": { db: D1Database };
17
21
  _: object;
18
22
  }>
@@ -25,6 +29,8 @@ export const createTodoHandler: UniversalHandler<
25
29
  await drizzleQueries.insertTodo(_context.db, newTodo.text);
26
30
  } else if (BATI.has("sqlite") && !BATI.hasD1) {
27
31
  sqliteQueries.insertTodo(_context.db, newTodo.text);
32
+ } else if (BATI.has("kysely")) {
33
+ await kyselyQueries.insertTodo(_context.db, newTodo.text);
28
34
  } else if (BATI.hasD1) {
29
35
  await d1Queries.insertTodo(_context.db, newTodo.text);
30
36
  } else {
@@ -1,4 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
+ import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
2
3
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
4
  import { type UniversalHandler } from "@universal-middleware/core";
4
5
  export declare const createTodoHandler: UniversalHandler<Universal.Context & BATI.If<{
@@ -11,6 +12,12 @@ export declare const createTodoHandler: UniversalHandler<Universal.Context & BAT
11
12
  'BATI.has("drizzle")': {
12
13
  db: ReturnType<typeof dbD1>;
13
14
  };
15
+ 'BATI.has("kysely") && !BATI.hasD1': {
16
+ db: ReturnType<typeof dbKysely>;
17
+ };
18
+ 'BATI.has("kysely")': {
19
+ db: ReturnType<typeof dbKyselyD1>;
20
+ };
14
21
  "BATI.hasD1": {
15
22
  db: D1Database;
16
23
  };
@@ -1,4 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
+ import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
2
3
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
4
 
4
5
  //# BATI.hasDatabase
@@ -9,6 +10,8 @@ declare global {
9
10
  'BATI.has("sqlite") && !BATI.hasD1': ReturnType<typeof sqliteDb>;
10
11
  'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
11
12
  'BATI.has("drizzle")': ReturnType<typeof dbD1>;
13
+ 'BATI.has("kysely") && !BATI.hasD1': ReturnType<typeof dbKysely>;
14
+ 'BATI.has("kysely")': ReturnType<typeof dbKyselyD1>;
12
15
  "BATI.hasD1": D1Database;
13
16
  }>;
14
17
  }
@@ -2,6 +2,7 @@
2
2
 
3
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 * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
5
6
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
6
7
  import type { PageContextServer } from "vike/types";
7
8
 
@@ -15,6 +16,10 @@ export async function data(_pageContext: PageContextServer) {
15
16
  } else if (BATI.has("sqlite") && !BATI.hasD1) {
16
17
  const todoItemsInitial = sqliteQueries.getAllTodos(_pageContext.db);
17
18
 
19
+ return { todoItemsInitial };
20
+ } else if (BATI.has("kysely")) {
21
+ const todoItemsInitial = await kyselyQueries.getAllTodos(_pageContext.db);
22
+
18
23
  return { todoItemsInitial };
19
24
  } else if (BATI.hasD1) {
20
25
  const todoItemsInitial = await d1Queries.getAllTodos(_pageContext.db);
@@ -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
- gSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid/dist/files/$README.md.js
12
12
  async function getReadme(props) {
13
- const content = await gSs(props);
13
+ const content = await PEs(props);
14
14
  const about = `
15
15
  ## Vike
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
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -56,9 +56,9 @@ var require_package = __commonJS({
56
56
  tailwindcss: "^4.1.17",
57
57
  typescript: "^5.9.3",
58
58
  vike: "^0.4.247",
59
- "vike-photon": "^0.1.21",
59
+ "vike-photon": "^0.1.22",
60
60
  "vike-solid": "^0.7.13",
61
- vite: "^7.2.6",
61
+ vite: "^7.2.7",
62
62
  "vite-plugin-solid": "^2.11.10"
63
63
  },
64
64
  dependencies: {
@@ -173,7 +173,7 @@ var require_package = __commonJS({
173
173
  }
174
174
  });
175
175
  async function getPackageJson(props) {
176
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
176
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
177
177
  return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
178
178
  }
179
179
  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
- ySs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ kEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
13
- const tsConfig = await ySs(props);
13
+ const tsConfig = await kEs(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
- TSs,
7
- pri
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ IEs,
7
+ gni
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/solid/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await TSs(props);
15
- pri(mod, {
14
+ const mod = await IEs(props);
15
+ gni(mod, {
16
16
  from: "vike-solid/vite",
17
17
  constructor: "vikeSolid"
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
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.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.27.0",
54
+ "@sentry/solid": "^10.29.0",
55
55
  "@types/node": "^20.19.25",
56
56
  "solid-js": "^1.9.10",
57
57
  "vike-solid": "^0.7.13",
58
- vite: "^7.2.6"
58
+ vite: "^7.2.7"
59
59
  },
60
60
  dependencies: {
61
61
  "@batijs/core": "workspace:*"
@@ -85,7 +85,7 @@ var require_package = __commonJS({
85
85
  }
86
86
  });
87
87
  async function getPackageJson(props) {
88
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
88
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
89
89
  return packageJson.addDependencies(["@sentry/solid"]);
90
90
  }
91
91
  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
- r9s
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ mjs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -12,7 +12,7 @@ import "../../../../chunk-IHX3I5SM.js";
12
12
  async function getEnv(props) {
13
13
  if (props.meta.BATI.hasD1) return;
14
14
  const envContent = await props.readfile?.();
15
- return r9s(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
15
+ return mjs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
16
16
  }
17
17
  export {
18
18
  getEnv as default
@@ -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
- Nus,
7
- gSs
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ PEs,
7
+ Yps
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/sqlite/dist/files/$TODO.md.js
13
13
  async function getTodo(props) {
14
14
  if (props.meta.BATI.hasD1) return;
15
- const content = await gSs(props);
16
- const pmCmd = Nus().run;
15
+ const content = await PEs(props);
16
+ const pmCmd = Yps().run;
17
17
  const todo = `
18
18
  ## Sqlite
19
19
 
@@ -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
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -97,7 +97,7 @@ var require_package = __commonJS({
97
97
  }
98
98
  });
99
99
  async function getPackageJson(props) {
100
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
100
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
101
101
  return packageJson.setScript("sqlite:migrate", {
102
102
  value: "tsx ./database/sqlite/schema/all.ts",
103
103
  precedence: 1
@@ -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
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -54,10 +54,10 @@ var require_package = __commonJS({
54
54
  "@tailwindcss/vite": "^4.1.17",
55
55
  "@types/node": "^20.19.25",
56
56
  autoprefixer: "^10.4.22",
57
- daisyui: "^5.5.5",
57
+ daisyui: "^5.5.8",
58
58
  tailwindcss: "^4.1.17",
59
59
  vike: "^0.4.247",
60
- vite: "^7.2.6"
60
+ vite: "^7.2.7"
61
61
  },
62
62
  dependencies: {
63
63
  "@batijs/core": "workspace:*"
@@ -70,7 +70,7 @@ var require_package = __commonJS({
70
70
  });
71
71
  async function getPackageJson(props) {
72
72
  const pkgjson = await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default);
73
- const packageJson = await bSs(props, pkgjson);
73
+ const packageJson = await NEs(props, pkgjson);
74
74
  return packageJson.addDevDependencies(["tailwindcss", "@tailwindcss/vite"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
75
75
  }
76
76
  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
- TSs,
7
- pri
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ IEs,
7
+ gni
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/tailwindcss/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await TSs(props);
15
- pri(mod, {
14
+ const mod = await IEs(props);
15
+ gni(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
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -55,7 +55,7 @@ var require_package = __commonJS({
55
55
  "@universal-middleware/core": "^0.4.13",
56
56
  telefunc: "^0.2.17",
57
57
  vike: "^0.4.247",
58
- vite: "^7.2.6"
58
+ vite: "^7.2.7"
59
59
  },
60
60
  dependencies: {
61
61
  "@batijs/core": "workspace:*"
@@ -85,7 +85,7 @@ var require_package = __commonJS({
85
85
  }
86
86
  });
87
87
  async function getPackageJson(props) {
88
- const packageJson = await bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
88
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
89
89
  return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
90
90
  }
91
91
  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
- TSs,
7
- pri
8
- } from "../../../../chunk-X4G6MHMH.js";
6
+ IEs,
7
+ gni
8
+ } from "../../../../chunk-CIBJZ5MN.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await TSs(props);
15
- pri(mod, {
14
+ const mod = await IEs(props);
15
+ gni(mod, {
16
16
  from: "telefunc/vite",
17
17
  constructor: "telefunc",
18
18
  imported: "telefunc"
@@ -1,4 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
+ import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
2
3
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
4
 
4
5
  //# BATI.hasDatabase
@@ -9,6 +10,8 @@ declare module "telefunc" {
9
10
  'BATI.has("sqlite") && !BATI.hasD1': ReturnType<typeof sqliteDb>;
10
11
  'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
11
12
  'BATI.has("drizzle")': ReturnType<typeof dbD1>;
13
+ 'BATI.has("kysely") && !BATI.hasD1': ReturnType<typeof dbKysely>;
14
+ 'BATI.has("kysely")': ReturnType<typeof dbKyselyD1>;
12
15
  "BATI.hasD1": D1Database;
13
16
  _: object;
14
17
  }>;
@@ -2,6 +2,7 @@
2
2
 
3
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 * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
5
6
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
6
7
  import { getContext } from "telefunc";
7
8
 
@@ -12,6 +13,9 @@ export async function onNewTodo({ text }: { text: string }) {
12
13
  } else if (BATI.has("sqlite") && !BATI.hasD1) {
13
14
  const context = getContext();
14
15
  sqliteQueries.insertTodo(context.db, text);
16
+ } else if (BATI.has("kysely")) {
17
+ const context = getContext();
18
+ await kyselyQueries.insertTodo(context.db, text);
15
19
  } else if (BATI.hasD1) {
16
20
  const context = getContext();
17
21
  await d1Queries.insertTodo(context.db, text);
@@ -1,4 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
+ import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
2
3
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
4
  import { enhance, type UniversalHandler } from "@universal-middleware/core";
4
5
  import { telefunc } from "telefunc";
@@ -14,6 +15,8 @@ export const telefuncHandler: UniversalHandler = enhance(
14
15
  'BATI.has("sqlite") && !BATI.hasD1': { db: ReturnType<typeof sqliteDb> };
15
16
  'BATI.has("drizzle") && !BATI.hasD1': { db: ReturnType<typeof dbSqlite> };
16
17
  'BATI.has("drizzle")': { db: ReturnType<typeof dbD1> };
18
+ 'BATI.has("kysely") && !BATI.hasD1': { db: ReturnType<typeof dbKysely> };
19
+ 'BATI.has("kysely")': { db: ReturnType<typeof dbKyselyD1> };
17
20
  "BATI.hasD1": { db: D1Database };
18
21
  }>),
19
22
  ...(runtime as BATI.If<{
@@ -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
- bSs
7
- } from "../../../../chunk-X4G6MHMH.js";
6
+ NEs
7
+ } from "../../../../chunk-CIBJZ5MN.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -55,7 +55,7 @@ var require_package = __commonJS({
55
55
  "@trpc/server": "^11.7.2",
56
56
  "@types/node": "^20.19.25",
57
57
  "@universal-middleware/core": "^0.4.13",
58
- vite: "^7.2.6"
58
+ vite: "^7.2.7"
59
59
  },
60
60
  dependencies: {
61
61
  "@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 bSs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
94
+ const packageJson = await NEs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
95
95
  return packageJson.addDependencies(["@trpc/server", "@trpc/client"]);
96
96
  }
97
97
  export {
@@ -1,6 +1,8 @@
1
1
  import * as d1Queries from "@batijs/d1-sqlite/database/d1/queries/todos";
2
2
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
3
3
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
4
+ import type { dbKysely, dbKyselyD1 } from "@batijs/kysely/database/kysely/db";
5
+ import * as kyselyQueries from "@batijs/kysely/database/kysely/queries/todos";
4
6
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
5
7
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
6
8
  import { initTRPC } from "@trpc/server";
@@ -15,6 +17,8 @@ const t = initTRPC
15
17
  'BATI.has("sqlite") && !BATI.hasD1': { db: ReturnType<typeof sqliteDb> };
16
18
  'BATI.has("drizzle") && !BATI.hasD1': { db: ReturnType<typeof dbSqlite> };
17
19
  'BATI.has("drizzle")': { db: ReturnType<typeof dbD1> };
20
+ 'BATI.has("kysely") && !BATI.hasD1': { db: ReturnType<typeof dbKysely> };
21
+ 'BATI.has("kysely")': { db: ReturnType<typeof dbKyselyD1> };
18
22
  "BATI.hasD1": { db: D1Database };
19
23
  _: object;
20
24
  }>
@@ -44,6 +48,8 @@ export const appRouter = router({
44
48
  await drizzleQueries.insertTodo(opts.ctx.db, opts.input);
45
49
  } else if (BATI.has("sqlite") && !BATI.hasD1) {
46
50
  sqliteQueries.insertTodo(opts.ctx.db, opts.input);
51
+ } else if (BATI.has("kysely")) {
52
+ await kyselyQueries.insertTodo(opts.ctx.db, opts.input);
47
53
  } else if (BATI.hasD1) {
48
54
  await d1Queries.insertTodo(opts.ctx.db, opts.input);
49
55
  } else {
@@ -1,10 +1,14 @@
1
1
  export declare const trpc: import("@trpc/client").TRPCClient<import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: object & {
3
- db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
4
- } & {
5
3
  db: ReturnType<any>;
6
4
  } & {
7
- db: ReturnType<any>;
5
+ db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
6
+ } & {
7
+ db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
8
+ } & {
9
+ db: ReturnType<typeof import("@batijs/kysely/database/kysely/db").dbKysely>;
10
+ } & {
11
+ db: ReturnType<typeof import("@batijs/kysely/database/kysely/db").dbKyselyD1>;
8
12
  } & {
9
13
  db: D1Database;
10
14
  };