@batijs/cli 0.0.529 → 0.0.531

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 (150) hide show
  1. package/dist/boilerplates/@batijs/auth0/bati.config.js +9 -1
  2. package/dist/boilerplates/@batijs/auth0/files/$.env.js +2 -2
  3. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +2 -2
  4. package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +2 -2
  5. package/dist/boilerplates/@batijs/authjs/bati.config.js +1 -1
  6. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +2 -3
  7. package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +2 -4
  8. package/dist/boilerplates/@batijs/aws/bati.config.js +9 -1
  9. package/dist/boilerplates/@batijs/aws/files/$README.md.js +2 -2
  10. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +2 -2
  11. package/dist/boilerplates/@batijs/aws/files/$package.json.js +2 -2
  12. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +2 -2
  13. package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +1 -1
  14. package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +1 -1
  15. package/dist/boilerplates/@batijs/biome/bati.config.js +1 -1
  16. package/dist/boilerplates/@batijs/biome/files/$biome.json.js +11 -4
  17. package/dist/boilerplates/@batijs/biome/files/$package.json.js +2 -2
  18. package/dist/boilerplates/@batijs/cloudflare/bati.config.js +9 -1
  19. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +2 -2
  20. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -6
  21. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +2 -2
  22. package/dist/boilerplates/@batijs/compiled/bati.config.js +1 -1
  23. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +2 -2
  24. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +2 -2
  25. package/dist/boilerplates/@batijs/d1/bati.config.js +17 -1
  26. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +2 -2
  27. package/dist/boilerplates/@batijs/d1/files/$package.json.js +2 -3
  28. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +2 -2
  29. package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +0 -1
  30. package/dist/boilerplates/@batijs/d1/files/global.d.ts +3 -8
  31. package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.ts +0 -1
  32. package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +1 -1
  33. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +2 -3
  34. package/dist/boilerplates/@batijs/d1-sqlite/files/database/d1/queries/todos.ts +0 -2
  35. package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.ts +1 -2
  36. package/dist/boilerplates/@batijs/drizzle/bati.config.js +17 -1
  37. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +2 -2
  38. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +2 -2
  39. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +2 -2
  40. package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +0 -1
  41. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +0 -1
  42. package/dist/boilerplates/@batijs/eslint/bati.config.js +1 -1
  43. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
  44. package/dist/boilerplates/@batijs/eslint/files/eslint.config.ts +2 -0
  45. package/dist/boilerplates/@batijs/express/bati.config.js +1 -1
  46. package/dist/boilerplates/@batijs/express/files/$package.json.js +2 -2
  47. package/dist/boilerplates/@batijs/fastify/bati.config.js +1 -1
  48. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +2 -2
  49. package/dist/boilerplates/@batijs/google-analytics/bati.config.js +1 -1
  50. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +2 -2
  51. package/dist/boilerplates/@batijs/h3/bati.config.js +1 -1
  52. package/dist/boilerplates/@batijs/h3/files/$package.json.js +2 -2
  53. package/dist/boilerplates/@batijs/hono/bati.config.js +1 -1
  54. package/dist/boilerplates/@batijs/hono/files/$package.json.js +2 -3
  55. package/dist/boilerplates/@batijs/mantine/bati.config.js +1 -1
  56. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +2 -2
  57. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +2 -2
  58. package/dist/boilerplates/@batijs/photon/bati.config.js +1 -1
  59. package/dist/boilerplates/@batijs/photon/files/$README.md.js +2 -2
  60. package/dist/boilerplates/@batijs/photon/files/$package.json.js +2 -2
  61. package/dist/boilerplates/@batijs/plausible.io/bati.config.js +1 -1
  62. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +2 -2
  63. package/dist/boilerplates/@batijs/pnpm/bati.config.js +1 -1
  64. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +2 -2
  65. package/dist/boilerplates/@batijs/prettier/bati.config.js +1 -1
  66. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +2 -2
  67. package/dist/boilerplates/@batijs/prisma/bati.config.js +13 -1
  68. package/dist/boilerplates/@batijs/prisma/files/$.env.js +2 -2
  69. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +7 -5
  70. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +2 -2
  71. package/dist/boilerplates/@batijs/react/bati.config.js +1 -1
  72. package/dist/boilerplates/@batijs/react/files/$README.md.js +2 -2
  73. package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
  74. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +2 -2
  75. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +2 -2
  76. package/dist/boilerplates/@batijs/react-sentry/bati.config.js +1 -1
  77. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +2 -2
  78. package/dist/boilerplates/@batijs/sentry/bati.config.js +9 -1
  79. package/dist/boilerplates/@batijs/sentry/files/$.env.js +2 -2
  80. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +2 -2
  81. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +2 -2
  82. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +2 -2
  83. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +2 -2
  84. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +2 -2
  85. package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +1 -1
  86. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +2 -2
  87. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +2 -2
  88. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +2 -2
  89. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +2 -2
  90. package/dist/boilerplates/@batijs/shared/bati.config.js +1 -1
  91. package/dist/boilerplates/@batijs/shared/files/$README.md.js +2 -2
  92. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +2 -2
  93. package/dist/boilerplates/@batijs/shared-db/bati.config.js +1 -1
  94. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +0 -1
  95. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +0 -1
  96. package/dist/boilerplates/@batijs/shared-server/bati.config.js +1 -1
  97. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +2 -3
  98. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +0 -1
  99. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +0 -1
  100. package/dist/boilerplates/@batijs/shared-todo/bati.config.js +1 -1
  101. package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +1 -2
  102. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +1 -3
  103. package/dist/boilerplates/@batijs/solid/bati.config.js +1 -1
  104. package/dist/boilerplates/@batijs/solid/files/$README.md.js +2 -2
  105. package/dist/boilerplates/@batijs/solid/files/$package.json.js +2 -2
  106. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +2 -2
  107. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +2 -2
  108. package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +1 -1
  109. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +2 -2
  110. package/dist/boilerplates/@batijs/sqlite/bati.config.js +9 -1
  111. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +2 -2
  112. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +7 -5
  113. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +2 -2
  114. package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +1 -1
  115. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -2
  116. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +2 -2
  117. package/dist/boilerplates/@batijs/telefunc/bati.config.js +1 -1
  118. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +2 -3
  119. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +2 -2
  120. package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +4 -1
  121. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +0 -1
  122. package/dist/boilerplates/@batijs/trpc/bati.config.js +1 -1
  123. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +2 -3
  124. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +0 -1
  125. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +0 -1
  126. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
  127. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
  128. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +0 -1
  129. package/dist/boilerplates/@batijs/ts-rest/bati.config.js +1 -1
  130. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +2 -3
  131. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +0 -1
  132. package/dist/boilerplates/@batijs/vercel/bati.config.js +1 -1
  133. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -2
  134. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +2 -2
  135. package/dist/boilerplates/@batijs/vue/bati.config.js +1 -1
  136. package/dist/boilerplates/@batijs/vue/files/$README.md.js +2 -2
  137. package/dist/boilerplates/@batijs/vue/files/$package.json.js +2 -2
  138. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +2 -2
  139. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +2 -2
  140. package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +1 -1
  141. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +2 -2
  142. package/dist/{chunk-DHZ7AZKP.js → chunk-IHX3I5SM.js} +5 -0
  143. package/dist/{chunk-F525H6YP.js → chunk-VIDUWABF.js} +6 -6
  144. package/dist/index.js +71 -15
  145. package/dist/{jiti-ZW3ADF2F-7XIEJQMO.js → jiti-ZW3ADF2F-2SLKRUEN.js} +1 -1
  146. package/dist/{prompt-HBAIF7ML.js → prompt-YBELZKBA.js} +1 -1
  147. package/dist/{src-5HGZFBZ3-KQZBBJSW.js → src-5HGZFBZ3-CGUDMVWF.js} +1 -1
  148. package/package.json +5 -5
  149. package/dist/boilerplates/@batijs/cloudflare/files/worker-configuration.d.ts +0 -1
  150. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +0 -19
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  t1s,
7
7
  xas
8
- } from "../../../../chunk-F525H6YP.js";
8
+ } from "../../../../chunk-VIDUWABF.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/shadcn-ui/dist/files/$README.md.js
13
13
  async function getReadme(props) {
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/shadcn-ui/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  r1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/shadcn-ui/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  i1s,
7
7
  urr
8
- } from "../../../../chunk-F525H6YP.js";
8
+ } from "../../../../chunk-VIDUWABF.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -6,9 +6,9 @@ import {
6
6
  RMs,
7
7
  jMs,
8
8
  t1s
9
- } from "../../../../chunk-F525H6YP.js";
9
+ } from "../../../../chunk-VIDUWABF.js";
10
10
  import "../../../../chunk-IAWYWZSL.js";
11
- import "../../../../chunk-DHZ7AZKP.js";
11
+ import "../../../../chunk-IHX3I5SM.js";
12
12
 
13
13
  // ../../boilerplates/shared/dist/files/$README.md.js
14
14
  async function getReadme(props) {
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
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.";
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -3,7 +3,6 @@
3
3
  import { getDbFromRuntime } from "@batijs/d1/database/d1/helpers";
4
4
  import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
5
5
  import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
6
- import type { D1Database } from "@cloudflare/workers-types";
7
6
  import { enhance, type UniversalMiddleware } from "@universal-middleware/core";
8
7
 
9
8
  //# BATI.hasDatabase
@@ -1,6 +1,5 @@
1
1
  import { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
2
  import { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
- import type { D1Database } from "@cloudflare/workers-types";
4
3
  import { type UniversalMiddleware } from "@universal-middleware/core";
5
4
  declare global {
6
5
  namespace Universal {
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/shared-server/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -52,7 +52,6 @@ var require_package = __commonJS({
52
52
  license: "MIT",
53
53
  devDependencies: {
54
54
  "@batijs/compile": "workspace:*",
55
- "@cloudflare/workers-types": "^4.20251125.0",
56
55
  "@types/node": "^20.19.25",
57
56
  "@universal-middleware/core": "^0.4.13",
58
57
  vike: "^0.4.247",
@@ -5,7 +5,6 @@ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
5
5
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
6
6
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
7
7
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
8
- import type { D1Database } from "@cloudflare/workers-types";
9
8
  import { enhance, type UniversalHandler } from "@universal-middleware/core";
10
9
 
11
10
  export const createTodoHandler: UniversalHandler<
@@ -1,6 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
2
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
- import type { D1Database } from "@cloudflare/workers-types";
4
3
  import { type UniversalHandler } from "@universal-middleware/core";
5
4
  export declare const createTodoHandler: UniversalHandler<Universal.Context & BATI.If<{
6
5
  'BATI.has("sqlite") && !BATI.hasD1': {
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -1,11 +1,10 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
2
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
- import type { D1Database } from "@cloudflare/workers-types";
4
3
 
5
4
  //# BATI.hasDatabase
6
5
  declare global {
7
6
  namespace Vike {
8
- interface PageContext {
7
+ interface PageContextServer {
9
8
  db: BATI.If<{
10
9
  'BATI.has("sqlite") && !BATI.hasD1': ReturnType<typeof sqliteDb>;
11
10
  'BATI.has("drizzle") && !BATI.hasD1': ReturnType<typeof dbSqlite>;
@@ -1,7 +1,5 @@
1
1
  import type { PageContextServer } from "vike/types";
2
2
  export type Data = Awaited<ReturnType<typeof data>>;
3
3
  export declare function data(_pageContext: PageContextServer): Promise<{
4
- todoItemsInitial: {
5
- text: string;
6
- }[];
4
+ todoItemsInitial: any;
7
5
  }>;
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid/dist/files/$README.md.js
12
12
  async function getReadme(props) {
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  r1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  i1s,
7
7
  iQn
8
- } from "../../../../chunk-F525H6YP.js";
8
+ } from "../../../../chunk-VIDUWABF.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/solid/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid-sentry/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -3,13 +3,21 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
10
10
  var bati_config_default = i({
11
11
  if(meta) {
12
12
  return meta.BATI.has("sqlite") && !meta.BATI.has("cloudflare");
13
+ },
14
+ nextSteps(_meta, packageManager) {
15
+ return [
16
+ {
17
+ type: "command",
18
+ step: `${packageManager} sqlite:migrate`
19
+ }
20
+ ];
13
21
  }
14
22
  });
15
23
  export {
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  UMs
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/sqlite/dist/files/$.env.js
12
12
  async function getEnv(props) {
@@ -3,21 +3,23 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- t1s
7
- } from "../../../../chunk-F525H6YP.js";
6
+ t1s,
7
+ xas
8
+ } from "../../../../chunk-VIDUWABF.js";
8
9
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
10
11
 
11
12
  // ../../boilerplates/sqlite/dist/files/$TODO.md.js
12
13
  async function getTodo(props) {
13
14
  if (props.meta.BATI.hasD1) return;
14
15
  const content = await t1s(props);
16
+ const pmCmd = xas().run;
15
17
  const todo = `
16
18
  ## Sqlite
17
19
 
18
- Ensure that \`DATABASE_URL\` is configured in \`.env\` file, then create the database:
20
+ Ensure that \`DATABASE_URL\` is configured as desired in \`.env\` file, then create the database:
19
21
  \`\`\`bash
20
- pnpm sqlite:migrate # creates sqlite tables
22
+ ${pmCmd} sqlite:migrate # creates sqlite tables
21
23
  \`\`\`
22
24
  `;
23
25
  content.addMarkdownFeature(todo, "sqlite");
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/sqlite/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/tailwindcss/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  i1s,
7
7
  iQn
8
- } from "../../../../chunk-F525H6YP.js";
8
+ } from "../../../../chunk-VIDUWABF.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/tailwindcss/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/telefunc/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -51,7 +51,6 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@cloudflare/workers-types": "^4.20251125.0",
55
54
  "@types/node": "^20.19.25",
56
55
  "@universal-middleware/core": "^0.4.13",
57
56
  telefunc: "^0.2.17",
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  i1s,
7
7
  iQn
8
- } from "../../../../chunk-F525H6YP.js";
8
+ } from "../../../../chunk-VIDUWABF.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
@@ -1,6 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
2
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
- import type { D1Database } from "@cloudflare/workers-types";
4
3
 
5
4
  //# BATI.hasDatabase
6
5
  declare module "telefunc" {
@@ -16,3 +15,7 @@ declare module "telefunc" {
16
15
  }
17
16
  }
18
17
  }
18
+
19
+ //# BATI.has("REMOVE-COMMENT") || "remove-comments-only"
20
+ // biome-ignore lint/complexity/noUselessEmptyExport: ensure that the file is considered as a module
21
+ export {};
@@ -1,6 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
2
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
- import type { D1Database } from "@cloudflare/workers-types";
4
3
  import { enhance, type UniversalHandler } from "@universal-middleware/core";
5
4
  import { telefunc } from "telefunc";
6
5
 
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/trpc/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -51,7 +51,6 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@cloudflare/workers-types": "^4.20251125.0",
55
54
  "@trpc/client": "^11.7.2",
56
55
  "@trpc/server": "^11.7.2",
57
56
  "@types/node": "^20.19.25",
@@ -1,6 +1,5 @@
1
1
  /*# BATI include-if-imported #*/
2
2
 
3
- import type { D1Database } from "@cloudflare/workers-types";
4
3
  import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
5
4
  import { enhance, type Get, type UniversalHandler } from "@universal-middleware/core";
6
5
  import { appRouter } from "../trpc/server";
@@ -3,7 +3,6 @@ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
3
3
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
4
4
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
5
5
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
6
- import type { D1Database } from "@cloudflare/workers-types";
7
6
  import { initTRPC } from "@trpc/server";
8
7
 
9
8
  /**
@@ -1,4 +1,4 @@
1
- export declare const trpcHandler: (endpoint: string) => ((request: Request, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>) & import("@universal-middleware/core").WithUniversalSymbols<{
1
+ export declare const trpcHandler: (endpoint: string) => ((request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>) & import("@universal-middleware/core").WithUniversalSymbols<{
2
2
  name: string;
3
3
  path: string;
4
4
  method: ("GET" | "POST")[];
@@ -1,12 +1,12 @@
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>;
3
+ db: ReturnType<any>;
4
4
  } & {
5
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
5
+ db: ReturnType<any>;
6
6
  } & {
7
- db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
7
+ db: ReturnType<any>;
8
8
  } & {
9
- db: import("@cloudflare/workers-types").D1Database;
9
+ db: D1Database;
10
10
  };
11
11
  meta: object;
12
12
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
@@ -1,6 +1,5 @@
1
1
  import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
2
2
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
3
- import type { D1Database } from "@cloudflare/workers-types";
4
3
  /**
5
4
  * Export reusable router and procedure helpers
6
5
  * that can be used throughout the router
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/ts-rest/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -51,7 +51,6 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@cloudflare/workers-types": "^4.20251125.0",
55
54
  "@ts-rest/core": "^3.52.1",
56
55
  "@ts-rest/serverless": "^3.52.1",
57
56
  "@types/node": "^20.19.25",
@@ -4,7 +4,6 @@ import type { dbD1, dbSqlite } from "@batijs/drizzle/database/drizzle/db";
4
4
  import * as drizzleQueries from "@batijs/drizzle/database/drizzle/queries/todos";
5
5
  import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
6
6
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
7
- import type { D1Database } from "@cloudflare/workers-types";
8
7
  import { fetchRequestHandler, tsr } from "@ts-rest/serverless/fetch";
9
8
  import { enhance, type UniversalHandler } from "@universal-middleware/core";
10
9
  import { contract } from "../ts-rest/contract";
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts