@batijs/cli 0.0.583 → 0.0.591

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 (92) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +3 -3
  3. package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +3 -3
  4. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
  5. package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +2 -2
  6. package/dist/boilerplates/@batijs/aws/files/$README.md.js +5 -5
  7. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +5 -5
  8. package/dist/boilerplates/@batijs/aws/files/$package.json.js +7 -7
  9. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  10. package/dist/boilerplates/@batijs/biome/files/$package.json.js +5 -5
  11. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +5 -5
  12. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +4 -4
  13. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  14. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
  15. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  16. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +5 -5
  17. package/dist/boilerplates/@batijs/d1/files/$package.json.js +6 -6
  18. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +3 -3
  19. package/dist/boilerplates/@batijs/d1-kysely/files/$package.json.js +3 -3
  20. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +5 -5
  21. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  22. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +5 -5
  23. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +3 -3
  24. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +7 -7
  25. package/dist/boilerplates/@batijs/express/files/$package.json.js +6 -6
  26. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +6 -6
  27. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  28. package/dist/boilerplates/@batijs/h3/files/$package.json.js +7 -7
  29. package/dist/boilerplates/@batijs/hono/files/$package.json.js +8 -8
  30. package/dist/boilerplates/@batijs/kysely/files/$.env.js +3 -3
  31. package/dist/boilerplates/@batijs/kysely/files/$TODO.md.js +5 -5
  32. package/dist/boilerplates/@batijs/kysely/files/$package.json.js +4 -4
  33. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  34. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +3 -3
  35. package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +5 -5
  36. package/dist/boilerplates/@batijs/photon/files/$README.md.js +3 -3
  37. package/dist/boilerplates/@batijs/photon/files/$package.json.js +3 -3
  38. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +3 -3
  39. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +3 -3
  40. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  41. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  42. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +5 -5
  43. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
  44. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  45. package/dist/boilerplates/@batijs/react/files/$package.json.js +5 -5
  46. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  47. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  48. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +4 -4
  49. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  50. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +5 -5
  51. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +3 -3
  52. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
  53. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  54. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +5 -5
  55. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +5 -5
  56. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +7 -7
  57. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  58. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  59. package/dist/boilerplates/@batijs/shared/files/$README.md.js +7 -7
  60. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +3 -3
  61. package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
  62. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +1 -1
  63. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -5
  64. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +1 -1
  65. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  66. package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
  67. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  68. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  69. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +4 -4
  70. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  71. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +5 -5
  72. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
  73. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +8 -8
  74. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  75. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +6 -6
  76. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  77. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +2 -4
  78. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +6 -6
  79. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +1 -1
  80. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +3 -3
  81. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
  82. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +1 -1
  83. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -4
  84. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +3 -3
  85. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  86. package/dist/boilerplates/@batijs/vue/files/$package.json.js +6 -6
  87. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  88. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +5 -5
  89. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -5
  90. package/dist/{chunk-WIRXYZ5Z.js → chunk-O5RWXNWF.js} +66832 -66688
  91. package/dist/index.js +92 -69
  92. package/package.json +6 -6
@@ -4,13 +4,11 @@ import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
4
4
  import { enhance, type UniversalHandler } from "@universal-middleware/core";
5
5
  import { telefunc } from "telefunc";
6
6
 
7
- // Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
7
+ // Note: You can directly define a server middleware instead of defining a Universal Middleware. (You can remove @universal-middleware/* — Vike's scaffolder uses it only to simplify its internal logic, see https://github.com/vikejs/vike/discussions/3116)
8
8
  export const telefuncHandler: UniversalHandler = enhance(
9
9
  async (request, context, runtime) => {
10
10
  const httpResponse = await telefunc({
11
- url: request.url.toString(),
12
- method: request.method,
13
- body: await request.text(),
11
+ request,
14
12
  context: {
15
13
  ...(context as BATI.If<{
16
14
  'BATI.has("sqlite") && !BATI.hasD1': { db: ReturnType<typeof sqliteDb> };
@@ -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
- Uxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ n2s
7
+ } from "../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -51,10 +51,10 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@trpc/client": "^11.10.0",
55
- "@trpc/server": "^11.10.0",
54
+ "@trpc/client": "^11.11.0",
55
+ "@trpc/server": "^11.11.0",
56
56
  "@types/node": "^20.19.30",
57
- "@universal-middleware/core": "^0.4.16",
57
+ "@universal-middleware/core": "^0.4.17",
58
58
  vite: "^7.3.1"
59
59
  },
60
60
  dependencies: {
@@ -91,7 +91,7 @@ var require_package = __commonJS({
91
91
  }
92
92
  });
93
93
  async function getPackageJson(props) {
94
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
94
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
95
95
  return packageJson.addDependencies(["@trpc/server", "@trpc/client"]);
96
96
  }
97
97
  export {
@@ -4,7 +4,7 @@ import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
4
4
  import { enhance, type Get, type UniversalHandler } from "@universal-middleware/core";
5
5
  import { appRouter } from "../trpc/server";
6
6
 
7
- // Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
7
+ // Note: You can directly define a server middleware instead of defining a Universal Middleware. (You can remove @universal-middleware/* — Vike's scaffolder uses it only to simplify its internal logic, see https://github.com/vikejs/vike/discussions/3116)
8
8
  export const trpcHandler = ((endpoint) =>
9
9
  enhance(
10
10
  (request, context, runtime) => {
@@ -1,14 +1,14 @@
1
1
  export declare const trpc: import("@trpc/client").TRPCClient<import("@trpc/server").TRPCBuiltRouter<{
2
2
  ctx: object & {
3
- db: ReturnType<any>;
3
+ db: ReturnType<typeof import("@batijs/sqlite/database/sqlite/db").db>;
4
4
  } & {
5
5
  db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbSqlite>;
6
6
  } & {
7
7
  db: ReturnType<typeof import("@batijs/drizzle/database/drizzle/db").dbD1>;
8
8
  } & {
9
- db: ReturnType<typeof import("@batijs/kysely/database/kysely/db").dbKysely>;
9
+ db: ReturnType<any>;
10
10
  } & {
11
- db: ReturnType<typeof import("@batijs/kysely/database/kysely/db").dbKyselyD1>;
11
+ db: ReturnType<any>;
12
12
  } & {
13
13
  db: D1Database;
14
14
  };
@@ -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
- Uxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ n2s
7
+ } from "../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -54,7 +54,7 @@ var require_package = __commonJS({
54
54
  "@ts-rest/core": "^3.52.1",
55
55
  "@ts-rest/serverless": "^3.52.1",
56
56
  "@types/node": "^20.19.30",
57
- "@universal-middleware/core": "^0.4.16",
57
+ "@universal-middleware/core": "^0.4.17",
58
58
  zod: "^3.25.76"
59
59
  },
60
60
  dependencies: {
@@ -91,7 +91,7 @@ var require_package = __commonJS({
91
91
  }
92
92
  });
93
93
  async function getPackageJson(props) {
94
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
94
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
95
95
  return packageJson.addDevDependencies(["zod"]).addDependencies(["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"]);
96
96
  }
97
97
  export {
@@ -58,7 +58,7 @@ const router = tsr
58
58
  },
59
59
  });
60
60
 
61
- // Note: You can also directly use your server instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
61
+ // Note: You can directly define a server middleware instead of defining a Universal Middleware. (You can remove @universal-middleware/* — Vike's scaffolder uses it only to simplify its internal logic, see https://github.com/vikejs/vike/discussions/3116)
62
62
  export const tsRestHandler: UniversalHandler = enhance(
63
63
  async (request, ctx, runtime) =>
64
64
  fetchRequestHandler({
@@ -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
- Uxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ n2s
7
+ } from "../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -54,7 +54,7 @@ var require_package = __commonJS({
54
54
  "@photonjs/vercel": "^0.1.22",
55
55
  "@types/node": "^20.19.30",
56
56
  h3: "~1.15.5",
57
- vike: "^0.4.253",
57
+ vike: "^0.4.255",
58
58
  vite: "^7.3.1"
59
59
  },
60
60
  dependencies: {
@@ -67,7 +67,7 @@ var require_package = __commonJS({
67
67
  }
68
68
  });
69
69
  async function getPackageJson(props) {
70
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
70
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
71
71
  return packageJson.removeScript("prod").addDevDependencies(["h3"]).addDependencies(["@photonjs/vercel"]);
72
72
  }
73
73
  export {
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- qxs
7
- } from "../../../../../chunk-WIRXYZ5Z.js";
6
+ i2s
7
+ } from "../../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vercel/dist/files/pages/$+config.ts.js
12
12
  async function getViteConfig(props) {
13
- const mod = await qxs(props);
13
+ const mod = await i2s(props);
14
14
  mod.exports.default.prerender = true;
15
15
  return mod.generate().code;
16
16
  }
@@ -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
- Rxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ t2s
7
+ } from "../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vue/dist/files/$README.md.js
12
12
  async function getReadme(props) {
13
- const content = await Rxs(props);
13
+ const content = await t2s(props);
14
14
  const about = `
15
15
  ## Vike
16
16
 
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Uxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ n2s
7
+ } from "../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -54,13 +54,13 @@ var require_package = __commonJS({
54
54
  "@batijs/tailwindcss": "workspace:*",
55
55
  "@types/node": "^20.19.30",
56
56
  "@vitejs/plugin-vue": "^6.0.4",
57
- tailwindcss: "^4.1.18",
57
+ tailwindcss: "^4.2.1",
58
58
  typescript: "^5.9.3",
59
- vike: "^0.4.253",
59
+ vike: "^0.4.255",
60
60
  "vike-photon": "^0.1.24",
61
61
  "vike-vue": "^0.9.11",
62
62
  vite: "^7.3.1",
63
- vue: "^3.5.28",
63
+ vue: "^3.5.29",
64
64
  "vue-gtag": "^3.7.0"
65
65
  },
66
66
  dependencies: {
@@ -121,7 +121,7 @@ var require_package = __commonJS({
121
121
  }
122
122
  });
123
123
  async function getPackageJson(props) {
124
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
124
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
125
125
  return packageJson.addDevDependencies(["vite", "@vitejs/plugin-vue"]).addDependencies(["vike-vue", "vike", "vue"]).addDependencies(["vue-gtag"], props.meta.BATI.has("google-analytics"));
126
126
  }
127
127
  export {
@@ -3,14 +3,14 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Bxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ r2s
7
+ } from "../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vue/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
13
- const tsConfig = await Bxs(props);
13
+ const tsConfig = await r2s(props);
14
14
  return tsConfig;
15
15
  }
16
16
  export {
@@ -3,16 +3,16 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- qxs,
7
- zni
8
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ $ni,
7
+ i2s
8
+ } from "../../../../chunk-O5RWXNWF.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/vue/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await qxs(props);
15
- zni(mod, {
14
+ const mod = await i2s(props);
15
+ $ni(mod, {
16
16
  from: "@vitejs/plugin-vue",
17
17
  constructor: "vue"
18
18
  });
@@ -3,8 +3,8 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Uxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ n2s
7
+ } from "../../../../chunk-O5RWXNWF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -51,11 +51,11 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@sentry/vue": "^10.39.0",
54
+ "@sentry/vue": "^10.40.0",
55
55
  "@types/node": "^20.19.30",
56
56
  "vike-vue": "^0.9.11",
57
57
  vite: "^7.3.1",
58
- vue: "^3.5.28"
58
+ vue: "^3.5.29"
59
59
  },
60
60
  dependencies: {
61
61
  "@batijs/core": "workspace:*"
@@ -79,7 +79,7 @@ var require_package = __commonJS({
79
79
  }
80
80
  });
81
81
  async function getPackageJson(props) {
82
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
82
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
83
83
  return packageJson.addDependencies(["@sentry/vue"]);
84
84
  }
85
85
  export {