@batijs/cli 0.0.462 → 0.0.465

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 (139) 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 +1 -1
  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-EFIXXE6N.js → chunk-4TGDHMDE.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
@@ -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-EFIXXE6N.js";
6
+ $js
7
+ } from "../../../../chunk-4TGDHMDE.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-EFIXXE6N.js";
6
+ pEs
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/drizzle/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
  ## *Drizzle*
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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -103,7 +103,7 @@ var require_package = __commonJS({
103
103
  }
104
104
  });
105
105
  async function getPackageJson(props) {
106
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
106
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
107
107
  return packageJson.setScript("drizzle:generate", {
108
108
  value: "drizzle-kit generate",
109
109
  precedence: 20
@@ -1,7 +1,7 @@
1
+ import type { D1Database } from "@cloudflare/workers-types";
1
2
  import Database from "better-sqlite3";
2
3
  import { drizzle as drizzleSqlite } from "drizzle-orm/better-sqlite3";
3
4
  import { drizzle as drizzleD1 } from "drizzle-orm/d1";
4
- import type { D1Database } from "@cloudflare/workers-types";
5
5
 
6
6
  //# !BATI.hasD1
7
7
  export function dbSqlite() {
@@ -1,6 +1,7 @@
1
1
  /*# BATI include-if-imported #*/
2
+
3
+ import type { dbD1, dbSqlite } from "../db";
2
4
  import { todoTable } from "../schema/todos";
3
- import { dbD1, type dbSqlite } from "../db";
4
5
 
5
6
  export function insertTodo(
6
7
  db: BATI.If<{
@@ -13,6 +13,7 @@ export default defineConfig({
13
13
  out: "./database/migrations",
14
14
  //# !BATI.hasD1
15
15
  dbCredentials: {
16
+ // biome-ignore lint/style/noNonNullAssertion: exists
16
17
  url: process.env.DATABASE_URL!,
17
18
  },
18
19
  });
@@ -1,5 +1,5 @@
1
- import Database from "better-sqlite3";
2
1
  import type { D1Database } from "@cloudflare/workers-types";
2
+ import Database from "better-sqlite3";
3
3
  export declare function dbSqlite(): import("drizzle-orm/better-sqlite3").BetterSQLite3Database<Record<string, never>> & {
4
4
  $client: Database.Database;
5
5
  };
@@ -1,4 +1,4 @@
1
- import { dbD1, type dbSqlite } from "../db";
1
+ import type { dbD1, dbSqlite } from "../db";
2
2
  export declare function insertTodo(db: BATI.If<{
3
3
  "!BATI.hasD1": ReturnType<typeof dbSqlite>;
4
4
  _: ReturnType<typeof dbD1>;
@@ -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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -51,15 +51,15 @@ var require_package = __commonJS({
51
51
  },
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:^",
54
- "@eslint/js": "^9.32.0",
55
- eslint: "^9.32.0",
54
+ "@eslint/js": "^9.33.0",
55
+ eslint: "^9.33.0",
56
56
  "eslint-config-prettier": "^10.1.8",
57
57
  "eslint-plugin-prettier": "^5.5.4",
58
58
  "eslint-plugin-react": "^7.37.5",
59
59
  "eslint-plugin-solid": "^0.14.5",
60
60
  "eslint-plugin-vue": "^10.4.0",
61
61
  globals: "^16.3.0",
62
- "typescript-eslint": "^8.39.0",
62
+ "typescript-eslint": "^8.39.1",
63
63
  "vue-eslint-parser": "^10.2.0"
64
64
  },
65
65
  dependencies: {
@@ -89,7 +89,7 @@ var require_package = __commonJS({
89
89
  }
90
90
  });
91
91
  async function getPackageJson(props) {
92
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
92
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
93
93
  return packageJson.setScript("lint", {
94
94
  value: "eslint .",
95
95
  precedence: 0
@@ -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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -60,9 +60,9 @@ var require_package = __commonJS({
60
60
  dotenv: "^17.2.1",
61
61
  express: "^5.1.0",
62
62
  telefunc: "^0.2.8",
63
- tsx: "^4.20.3",
64
- vike: "^0.4.236",
65
- vite: "^7.0.6"
63
+ tsx: "^4.20.4",
64
+ vike: "^0.4.237",
65
+ vite: "^7.1.2"
66
66
  },
67
67
  dependencies: {
68
68
  "@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.setScript("dev", {
96
96
  value: "tsx ./express-entry.ts",
97
97
  precedence: 20,
@@ -3,14 +3,14 @@ import "dotenv/config";
3
3
  import { dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
6
+ import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
6
7
  import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
7
8
  import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
8
9
  import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
10
+ import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
9
11
  import { tsRestHandler } from "@batijs/ts-rest/server/ts-rest-handler";
10
12
  import { createHandler, createMiddleware } from "@universal-middleware/express";
11
- import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
12
13
  import express from "express";
13
- import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
14
14
  import { createDevMiddleware } from "vike";
15
15
 
16
16
  const __filename = fileURLToPath(import.meta.url);
@@ -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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -60,11 +60,11 @@ var require_package = __commonJS({
60
60
  "@universal-middleware/fastify": "^0.5.20",
61
61
  "cross-env": "^10.0.0",
62
62
  dotenv: "^17.2.1",
63
- fastify: "^5.4.0",
63
+ fastify: "^5.5.0",
64
64
  telefunc: "^0.2.8",
65
- tsx: "^4.20.3",
66
- vike: "^0.4.236",
67
- vite: "^7.0.6"
65
+ tsx: "^4.20.4",
66
+ vike: "^0.4.237",
67
+ vite: "^7.1.2"
68
68
  },
69
69
  dependencies: {
70
70
  "@batijs/core": "workspace:*"
@@ -93,7 +93,7 @@ var require_package = __commonJS({
93
93
  }
94
94
  });
95
95
  async function getPackageJson(props) {
96
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
96
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
97
97
  return packageJson.setScript("dev", {
98
98
  value: "tsx ./fastify-entry.ts",
99
99
  precedence: 20,
@@ -3,14 +3,14 @@ import "dotenv/config";
3
3
  import { dirname } from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
6
+ import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
6
7
  import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
7
8
  import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
8
9
  import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
10
+ import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
9
11
  import { tsRestHandler } from "@batijs/ts-rest/server/ts-rest-handler";
10
- import Fastify from "fastify";
11
12
  import { createHandler, createMiddleware } from "@universal-middleware/fastify";
12
- import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
13
- import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
13
+ import Fastify from "fastify";
14
14
  import { createDevMiddleware } from "vike";
15
15
 
16
16
  const __filename = fileURLToPath(import.meta.url);
@@ -25,7 +25,7 @@ async function startServer() {
25
25
  // Avoid pre-parsing body, otherwise it will cause issue with universal handlers
26
26
  // This will probably change in the future though, you can follow https://github.com/magne4000/universal-middleware for updates
27
27
  app.removeAllContentTypeParsers();
28
- app.addContentTypeParser("*", function (_request, _payload, done) {
28
+ app.addContentTypeParser("*", (_request, _payload, done) => {
29
29
  done(null, "");
30
30
  });
31
31
 
@@ -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
- Wjs
7
- } from "../../../../chunk-EFIXXE6N.js";
6
+ $js
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/google-analytics/dist/files/$.env.js
12
12
  async function getEnv(props) {
13
13
  const envContent = await props.readfile?.();
14
- return Wjs(
14
+ return $js(
15
15
  envContent,
16
16
  "PUBLIC_ENV__GOOGLE_ANALYTICS",
17
17
  "G-XXXXXXXXXX",
@@ -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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -63,9 +63,9 @@ var require_package = __commonJS({
63
63
  h3: "~1.15.4",
64
64
  "serve-static": "^2.2.0",
65
65
  telefunc: "^0.2.8",
66
- tsx: "^4.20.3",
67
- vike: "^0.4.236",
68
- vite: "^7.0.6"
66
+ tsx: "^4.20.4",
67
+ vike: "^0.4.237",
68
+ vite: "^7.1.2"
69
69
  },
70
70
  dependencies: {
71
71
  "@batijs/core": "workspace:*"
@@ -94,7 +94,7 @@ var require_package = __commonJS({
94
94
  }
95
95
  });
96
96
  async function getPackageJson(props) {
97
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
97
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
98
98
  return packageJson.setScript("dev", {
99
99
  value: "tsx ./h3-entry.ts",
100
100
  precedence: 20,
@@ -4,6 +4,7 @@ import { createServer, type IncomingMessage, type ServerResponse } from "node:ht
4
4
  import { dirname } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
7
+ import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
7
8
  import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
8
9
  import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
9
10
  import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
@@ -13,10 +14,9 @@ import installCrypto from "@hattip/polyfills/crypto";
13
14
  import installGetSetCookie from "@hattip/polyfills/get-set-cookie";
14
15
  import installWhatwgNodeFetch from "@hattip/polyfills/whatwg-node";
15
16
  import { type NodeHTTPCreateContextFnOptions, nodeHTTPRequestHandler } from "@trpc/server/adapters/node-http";
17
+ import { createHandler, createMiddleware, getContext } from "@universal-middleware/h3";
16
18
  import { createApp, createRouter, eventHandler, fromNodeMiddleware, toNodeListener } from "h3";
17
19
  import serveStatic from "serve-static";
18
- import { createHandler, createMiddleware, getContext } from "@universal-middleware/h3";
19
- import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
20
20
  import { createDevMiddleware } from "vike";
21
21
 
22
22
  installWhatwgNodeFetch();
@@ -85,10 +85,11 @@ async function startServer() {
85
85
  nodeHTTPRequestHandler({
86
86
  req: event.node.req,
87
87
  res: event.node.res,
88
+ // biome-ignore lint/style/noNonNullAssertion: param exists
88
89
  path: event.context.params!.path,
89
90
  router: appRouter,
90
91
  createContext({ req, res }: NodeHTTPCreateContextFnOptions<IncomingMessage, ServerResponse>) {
91
- return { ...getContext(event)!, req, res } as BATI.Any;
92
+ return { ...getContext(event), req, res } as BATI.Any;
92
93
  },
93
94
  }),
94
95
  ),
@@ -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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -52,8 +52,8 @@ var require_package = __commonJS({
52
52
  devDependencies: {
53
53
  "@auth/core": "^0.40.0",
54
54
  "@batijs/compile": "workspace:*",
55
- "@cloudflare/workers-types": "^4.20250806.0",
56
- "@hono/node-server": "^1.18.1",
55
+ "@cloudflare/workers-types": "^4.20250816.0",
56
+ "@hono/node-server": "^1.19.0",
57
57
  "@hono/vite-dev-server": "^0.20.1",
58
58
  "@trpc/server": "^11.4.4",
59
59
  "@types/aws-lambda": "^8.10.152",
@@ -61,11 +61,11 @@ var require_package = __commonJS({
61
61
  "@universal-middleware/hono": "^0.4.16",
62
62
  "cross-env": "^10.0.0",
63
63
  dotenv: "^17.2.1",
64
- hono: "^4.8.12",
64
+ hono: "^4.9.2",
65
65
  telefunc: "^0.2.8",
66
- tsx: "^4.20.3",
67
- vike: "^0.4.236",
68
- vite: "^7.0.6"
66
+ tsx: "^4.20.4",
67
+ vike: "^0.4.237",
68
+ vite: "^7.1.2"
69
69
  },
70
70
  dependencies: {
71
71
  "@batijs/core": "workspace:*"
@@ -106,7 +106,7 @@ var require_package = __commonJS({
106
106
  }
107
107
  });
108
108
  async function getPackageJson(props) {
109
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
109
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
110
110
  return packageJson.setScript("dev", {
111
111
  value: "vike dev",
112
112
  precedence: 20,
@@ -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-EFIXXE6N.js";
6
+ Vri,
7
+ dEs
8
+ } from "../../../../chunk-4TGDHMDE.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
12
12
  // ../../boilerplates/hono/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: "@hono/vite-dev-server",
17
17
  constructor: "devServer",
18
18
  options: {
@@ -9,12 +9,12 @@ Notes:
9
9
 
10
10
  */
11
11
 
12
- import { Hono } from "hono";
12
+ import app from "@batijs/hono/hono-entry"; // file is provided by hono
13
13
  import { serveStatic } from "@hono/node-server/serve-static";
14
+ import type { APIGatewayProxyResult, Handler } from "aws-lambda";
15
+ import { Hono } from "hono";
16
+ import type { LambdaContext, LambdaEvent } from "hono/aws-lambda";
14
17
  import { handle } from "hono/aws-lambda";
15
- import type { LambdaEvent, LambdaContext } from "hono/aws-lambda";
16
- import app from "@batijs/hono/hono-entry"; // file is provided by hono
17
- import type { Handler, APIGatewayProxyResult } from "aws-lambda";
18
18
 
19
19
  type Bindings = {
20
20
  event: LambdaEvent;
@@ -30,7 +30,7 @@ lambdaApp.use(
30
30
  }),
31
31
  );
32
32
 
33
- lambdaApp.route("/", app!);
33
+ lambdaApp.route("/", app as Hono);
34
34
  const awsHandler = handle(lambdaApp);
35
35
 
36
36
  export const handler: Handler<LambdaEvent, APIGatewayProxyResult> = awsHandler;
@@ -20,7 +20,7 @@ nodeApp.use(
20
20
  }),
21
21
  );
22
22
 
23
- nodeApp.route("/", app!);
23
+ nodeApp.route("/", app as Hono);
24
24
 
25
25
  const port = envs.PORT ? parseInt(envs.PORT, 10) : 3000;
26
26
 
@@ -1,15 +1,15 @@
1
1
  // BATI.has("auth0") || BATI.hasDatabase
2
2
  import "dotenv/config";
3
3
  import { authjsHandler, authjsSessionMiddleware } from "@batijs/authjs/server/authjs-handler";
4
+ import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
4
5
  import { createTodoHandler } from "@batijs/shared-server/server/create-todo-handler";
5
6
  import { vikeHandler } from "@batijs/shared-server/server/vike-handler";
6
7
  import { telefuncHandler } from "@batijs/telefunc/server/telefunc-handler";
8
+ import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
7
9
  import { tsRestHandler } from "@batijs/ts-rest/server/ts-rest-handler";
10
+ import { createHandler, createMiddleware } from "@universal-middleware/hono";
8
11
  import { Hono } from "hono";
9
12
  import { handle } from "hono/vercel";
10
- import { createHandler, createMiddleware } from "@universal-middleware/hono";
11
- import { dbMiddleware } from "@batijs/shared-db/server/db-middleware";
12
- import { trpcHandler } from "@batijs/trpc/server/trpc-handler";
13
13
 
14
14
  const app = new Hono();
15
15
 
@@ -1,3 +1,3 @@
1
+ import type { APIGatewayProxyResult, Handler } from "aws-lambda";
1
2
  import type { LambdaEvent } from "hono/aws-lambda";
2
- import type { Handler, APIGatewayProxyResult } from "aws-lambda";
3
3
  export declare const handler: Handler<LambdaEvent, APIGatewayProxyResult>;
@@ -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-EFIXXE6N.js";
6
+ pEs
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/mantine/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
  ## Mantine
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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -51,10 +51,10 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@mantine/core": "^8.2.3",
55
- "@mantine/hooks": "^8.2.3",
54
+ "@mantine/core": "^8.2.5",
55
+ "@mantine/hooks": "^8.2.5",
56
56
  "@types/node": "^20.19.9",
57
- "@types/react": "^19.1.9",
57
+ "@types/react": "^19.1.10",
58
58
  "@types/react-dom": "^19.1.7",
59
59
  postcss: "^8.5.6",
60
60
  "postcss-preset-mantine": "^1.18.0",
@@ -62,7 +62,7 @@ var require_package = __commonJS({
62
62
  react: "^19.1.1",
63
63
  "react-dom": "^19.1.1",
64
64
  "vike-react": "^0.6.5",
65
- vite: "^7.0.6",
65
+ vite: "^7.1.2",
66
66
  "vite-plugin-compiled-react": "^1.3.1"
67
67
  },
68
68
  dependencies: {
@@ -110,7 +110,7 @@ var require_package = __commonJS({
110
110
  }
111
111
  });
112
112
  async function getPackageJson(props) {
113
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
113
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
114
114
  return packageJson.addDevDependencies(["postcss", "postcss-preset-mantine", "postcss-simple-vars"]).addDependencies(["@mantine/core", "@mantine/hooks"]);
115
115
  }
116
116
  export {
@@ -1,5 +1,5 @@
1
- import { usePageContext } from "vike-react/usePageContext";
2
1
  import { NavLink } from "@mantine/core";
2
+ import { usePageContext } from "vike-react/usePageContext";
3
3
 
4
4
  export function Link({ href, label }: { href: string; label: string }) {
5
5
  const pageContext = usePageContext();
@@ -1,10 +1,10 @@
1
1
  import "@mantine/core/styles.css";
2
- import { AppShell, Burger, Group, Image, MantineProvider } from "@mantine/core";
3
- import { useDisclosure } from "@mantine/hooks";
4
- import theme from "./theme.js";
5
2
 
6
3
  import logoUrl from "@batijs/react/assets/logo.svg";
4
+ import { AppShell, Burger, Group, Image, MantineProvider } from "@mantine/core";
5
+ import { useDisclosure } from "@mantine/hooks";
7
6
  import { Link } from "../components/Link";
7
+ import theme from "./theme.js";
8
8
 
9
9
  export default function LayoutDefault({ children }: { children: React.ReactNode }) {
10
10
  const [opened, { toggle }] = useDisclosure();
@@ -1,5 +1,5 @@
1
- import { createTheme } from "@mantine/core";
2
1
  import type { MantineThemeOverride } from "@mantine/core";
2
+ import { createTheme } from "@mantine/core";
3
3
 
4
4
  const theme: MantineThemeOverride = createTheme({
5
5
  /** Put your mantine theme override here */
@@ -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
- Fjs
7
- } from "../../../../chunk-EFIXXE6N.js";
6
+ hEs
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -28,7 +28,7 @@ async function getPnpmWorkspace(props) {
28
28
  ];
29
29
  const intersection = intersect(dependenciesApproveBuild, deps);
30
30
  if (intersection.length === 0) return;
31
- const pnpmWorkspace = await Fjs(props, { fallbackEmpty: true });
31
+ const pnpmWorkspace = await hEs(props, { fallbackEmpty: true });
32
32
  if (!pnpmWorkspace.has("onlyBuiltDependencies")) {
33
33
  pnpmWorkspace.set("onlyBuiltDependencies", []);
34
34
  }
@@ -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-EFIXXE6N.js";
6
+ _Es
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -69,7 +69,7 @@ var require_package = __commonJS({
69
69
  }
70
70
  });
71
71
  async function getPackageJson(props) {
72
- const packageJson = await Ijs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
72
+ const packageJson = await _Es(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
73
73
  return packageJson.addDevDependencies(["prettier"]);
74
74
  }
75
75
  export {
@@ -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
- Wjs
7
- } from "../../../../chunk-EFIXXE6N.js";
6
+ $js
7
+ } from "../../../../chunk-4TGDHMDE.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
11
11
  // ../../boilerplates/prisma/dist/files/$.env.js
12
12
  async function getEnv(props) {
13
13
  const envContent = await props.readfile?.();
14
- return Wjs(
14
+ return $js(
15
15
  envContent,
16
16
  "DATABASE_URL",
17
17
  "postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public",