@batijs/cli 0.0.529 → 0.0.530

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 (105) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +1 -1
  2. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +1 -1
  3. package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +1 -1
  4. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +1 -2
  5. package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +2 -4
  6. package/dist/boilerplates/@batijs/aws/files/$README.md.js +1 -1
  7. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +1 -1
  8. package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
  9. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +1 -1
  10. package/dist/boilerplates/@batijs/biome/files/$biome.json.js +10 -3
  11. package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
  12. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +1 -1
  13. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +4 -5
  14. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +1 -1
  15. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
  16. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +1 -1
  17. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +1 -1
  18. package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -2
  19. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +1 -1
  20. package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +0 -1
  21. package/dist/boilerplates/@batijs/d1/files/global.d.ts +3 -8
  22. package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.ts +0 -1
  23. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -2
  24. package/dist/boilerplates/@batijs/d1-sqlite/files/database/d1/queries/todos.ts +0 -2
  25. package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.ts +1 -2
  26. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +1 -1
  27. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +1 -1
  28. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
  29. package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +0 -1
  30. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +0 -1
  31. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
  32. package/dist/boilerplates/@batijs/eslint/files/eslint.config.ts +2 -0
  33. package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
  34. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
  35. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +1 -1
  36. package/dist/boilerplates/@batijs/h3/files/$package.json.js +1 -1
  37. package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -2
  38. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +1 -1
  39. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
  40. package/dist/boilerplates/@batijs/photon/files/$README.md.js +1 -1
  41. package/dist/boilerplates/@batijs/photon/files/$package.json.js +1 -1
  42. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +1 -1
  43. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +1 -1
  44. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
  45. package/dist/boilerplates/@batijs/prisma/files/$.env.js +1 -1
  46. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +1 -1
  47. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
  48. package/dist/boilerplates/@batijs/react/files/$README.md.js +1 -1
  49. package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
  50. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +1 -1
  51. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +1 -1
  52. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
  53. package/dist/boilerplates/@batijs/sentry/files/$.env.js +1 -1
  54. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +1 -1
  55. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +1 -1
  56. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
  57. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +1 -1
  58. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +1 -1
  59. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +1 -1
  60. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
  61. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +1 -1
  62. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +1 -1
  63. package/dist/boilerplates/@batijs/shared/files/$README.md.js +1 -1
  64. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +1 -1
  65. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +0 -1
  66. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +0 -1
  67. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -2
  68. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +0 -1
  69. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +0 -1
  70. package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +1 -2
  71. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +1 -3
  72. package/dist/boilerplates/@batijs/solid/files/$README.md.js +1 -1
  73. package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
  74. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +1 -1
  75. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +1 -1
  76. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
  77. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +1 -1
  78. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +1 -1
  79. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
  80. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +1 -1
  81. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +1 -1
  82. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -2
  83. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +1 -1
  84. package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +4 -1
  85. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +0 -1
  86. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -2
  87. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +0 -1
  88. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +0 -1
  89. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
  90. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
  91. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +0 -1
  92. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -2
  93. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +0 -1
  94. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
  95. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +1 -1
  96. package/dist/boilerplates/@batijs/vue/files/$README.md.js +1 -1
  97. package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
  98. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +1 -1
  99. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +1 -1
  100. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
  101. package/dist/{chunk-F525H6YP.js → chunk-L2AHUKWS.js} +3 -3
  102. package/dist/index.js +9 -2
  103. package/package.json +5 -5
  104. package/dist/boilerplates/@batijs/cloudflare/files/worker-configuration.d.ts +0 -1
  105. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +0 -19
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -6,7 +6,7 @@ import {
6
6
  drr,
7
7
  i1s,
8
8
  iQn
9
- } from "../../../../chunk-F525H6YP.js";
9
+ } from "../../../../chunk-L2AHUKWS.js";
10
10
  import "../../../../chunk-IAWYWZSL.js";
11
11
  import "../../../../chunk-DHZ7AZKP.js";
12
12
 
@@ -7,7 +7,7 @@ import {
7
7
  i1s,
8
8
  mR,
9
9
  pK
10
- } from "../../../../../chunk-F525H6YP.js";
10
+ } from "../../../../../chunk-L2AHUKWS.js";
11
11
  import "../../../../../chunk-IAWYWZSL.js";
12
12
  import "../../../../../chunk-DHZ7AZKP.js";
13
13
 
@@ -5,7 +5,7 @@ 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-L2AHUKWS.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  r1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -5,7 +5,7 @@ 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-L2AHUKWS.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
@@ -6,7 +6,7 @@ import {
6
6
  RMs,
7
7
  jMs,
8
8
  t1s
9
- } from "../../../../chunk-F525H6YP.js";
9
+ } from "../../../../chunk-L2AHUKWS.js";
10
10
  import "../../../../chunk-IAWYWZSL.js";
11
11
  import "../../../../chunk-DHZ7AZKP.js";
12
12
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -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 {
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -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': {
@@ -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
  }>;
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  r1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -5,7 +5,7 @@ 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-L2AHUKWS.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  UMs
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -5,7 +5,7 @@ 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-L2AHUKWS.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -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,7 +5,7 @@ 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-L2AHUKWS.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
@@ -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
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -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
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -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";
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  i1s
7
- } from "../../../../../chunk-F525H6YP.js";
7
+ } from "../../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  r1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -5,7 +5,7 @@ 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-L2AHUKWS.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-DHZ7AZKP.js";
11
11
 
@@ -4,7 +4,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-L2AHUKWS.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-DHZ7AZKP.js";
10
10
 
@@ -208790,7 +208790,7 @@ function d0t(t2, e, n2, i, a, c) {
208790
208790
  t2.report({ node: n2, message: "bati/as-expression-if", *fix(g) {
208791
208791
  let y, T = false;
208792
208792
  for (let b of _) {
208793
- if (b.type !== "TSPropertySignature" || b.key.type !== "Literal" && b.key.type !== "Identifier" || b.typeAnnotation?.type !== "TSTypeAnnotation") throw console.log(), new Error("Linter: Malformed BATI.If members type");
208793
+ if (b.type !== "TSPropertySignature" || b.key.type !== "Literal" && b.key.type !== "Identifier" || b.typeAnnotation?.type !== "TSTypeAnnotation") throw new Error("Linter: Malformed BATI.If members type");
208794
208794
  let E = "value" in b.key ? b.key.value : b.key.name, C = e.text.slice(b.typeAnnotation.typeAnnotation.range[0], b.typeAnnotation.typeAnnotation.range[1]);
208795
208795
  if (E === "_") {
208796
208796
  y = C;
@@ -208801,7 +208801,7 @@ function d0t(t2, e, n2, i, a, c) {
208801
208801
  break;
208802
208802
  }
208803
208803
  }
208804
- T || (y ? yield g.replaceTextRange(f, c(y, p2)) : yield g.removeRange(f));
208804
+ T || (y ? yield g.replaceTextRange(f, c(y, p2)) : n2.parent?.parent?.type === "Identifier" ? yield g.removeRange([f[0] - 2, f[1]]) : yield g.removeRange(f));
208805
208805
  } });
208806
208806
  } else throw new Error("Linter: Malformed BATI.If type");
208807
208807
  break;
@@ -209320,7 +209320,7 @@ async function Sas(t2, e, n2) {
209320
209320
  }
209321
209321
  return !e.BATI.has("eslint") && qzr.test(c) && (c = c.replace(qzr, ""), f = true), !e.BATI.has("biome") && Vzr.test(c) && (c = c.replace(Vzr, ""), f = true), { code: f ? await Unt(c, n2) : c, context: p2 };
209322
209322
  }
209323
- var SSt = { name: "@batijs/core", version: "0.0.529", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.25", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.48.0", "@typescript-eslint/utils": "^8.48.0", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.0", eslint: "^9.39.1", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^11.0.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.6.2", squirrelly: "^9.1.0", tsup: "^8.5.1", tsx: "^4.20.6", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.13", "vue-eslint-parser": "^10.2.0", which: "^6.0.0", yaml: "^2.8.1" }, exports: { ".": "./dist/index.js", "./config": "./dist/config.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { config: ["./dist/config.d.ts"], types: ["./global.d.ts"] } }, files: ["dist/"] };
209323
+ var SSt = { name: "@batijs/core", version: "0.0.530", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.25", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.48.0", "@typescript-eslint/utils": "^8.48.0", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.0", eslint: "^9.39.1", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^11.0.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.6.2", squirrelly: "^9.1.0", tsup: "^8.5.1", tsx: "^4.20.6", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.13", "vue-eslint-parser": "^10.2.0", which: "^6.0.0", yaml: "^2.8.1" }, exports: { ".": "./dist/index.js", "./config": "./dist/config.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { config: ["./dist/config.d.ts"], types: ["./global.d.ts"] } }, files: ["dist/"] };
209324
209324
  function xas() {
209325
209325
  return process.env.npm_config_user_agent ? Cas(process.env.npm_config_user_agent) : { name: "npm", run: "npm run" };
209326
209326
  }
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  jMs,
11
11
  prr,
12
12
  xas
13
- } from "./chunk-F525H6YP.js";
13
+ } from "./chunk-L2AHUKWS.js";
14
14
  import "./chunk-IAWYWZSL.js";
15
15
  import {
16
16
  __commonJS,
@@ -226,6 +226,13 @@ async function mergeDts({
226
226
  const res = await Sas(currentAst.generate().code, meta, {
227
227
  filepath
228
228
  });
229
+ console.log({
230
+ filepath,
231
+ code: currentAst.generate().code,
232
+ clean: res.code,
233
+ previousContent,
234
+ fileContent
235
+ });
229
236
  return clearExports(res.code, meta);
230
237
  }
231
238
  function clearExports(code, meta) {
@@ -4652,7 +4659,7 @@ var {
4652
4659
  // package.json
4653
4660
  var package_default = {
4654
4661
  name: "@batijs/cli",
4655
- version: "0.0.529",
4662
+ version: "0.0.530",
4656
4663
  type: "module",
4657
4664
  scripts: {
4658
4665
  "check-types": "tsc --noEmit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.529",
3
+ "version": "0.0.530",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -19,12 +19,12 @@
19
19
  "typescript": "^5.9.3",
20
20
  "unplugin-purge-polyfills": "^0.1.0",
21
21
  "vite": "^7.2.4",
22
- "@batijs/compile": "0.0.529",
23
- "@batijs/build": "0.0.529"
22
+ "@batijs/compile": "0.0.530",
23
+ "@batijs/build": "0.0.530"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.529",
27
- "@batijs/features": "0.0.529"
26
+ "@batijs/core": "0.0.530",
27
+ "@batijs/features": "0.0.530"
28
28
  },
29
29
  "bin": "./cli.js",
30
30
  "exports": {
@@ -1 +0,0 @@
1
- // TODO: generate this file by running `$ wranger types` — see TODO.md
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as createRequire_BATI_CLI } from 'module';
3
- const require = createRequire_BATI_CLI(import.meta.url);
4
-
5
- import {
6
- r1s
7
- } from "../../../../chunk-F525H6YP.js";
8
- import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
10
-
11
- // ../../boilerplates/d1/dist/files/$tsconfig.json.js
12
- async function getTsConfig(props) {
13
- const tsConfig = await r1s(props);
14
- tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "@cloudflare/workers-types"];
15
- return tsConfig;
16
- }
17
- export {
18
- getTsConfig as default
19
- };