@batijs/cli 0.0.295 → 0.0.297

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 (88) 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 +4 -4
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +8 -8
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +3 -3
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -5
  9. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +3 -3
  10. package/dist/boilerplates/@batijs/cloudflare/files/$vite.config.ts.js +5 -5
  11. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +4 -4
  12. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +5 -5
  13. package/dist/boilerplates/@batijs/d1/files/$README.md.js +3 -3
  14. package/dist/boilerplates/@batijs/d1/files/$package.json.js +7 -7
  15. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +3 -3
  16. package/dist/boilerplates/@batijs/d1/files/$wrangler.toml.js +1 -1
  17. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +6 -6
  18. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +3 -3
  19. package/dist/boilerplates/@batijs/drizzle/files/$README.md.js +3 -3
  20. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +5 -5
  21. package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +1 -0
  22. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +1 -0
  23. package/dist/boilerplates/@batijs/edgedb/files/$README.md.js +3 -3
  24. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +4 -4
  25. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +5 -5
  26. package/dist/boilerplates/@batijs/express/files/$package.json.js +6 -6
  27. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +6 -6
  28. package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
  29. package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
  30. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +8 -8
  31. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  32. package/dist/boilerplates/@batijs/h3/files/$package.json.js +6 -6
  33. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +7 -7
  34. package/dist/boilerplates/@batijs/hono/files/$package.json.js +9 -9
  35. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
  36. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
  37. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
  38. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +9 -9
  39. package/dist/boilerplates/@batijs/lucia-auth/types/server/lucia-auth-handlers.d.ts +6 -6
  40. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  41. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +5 -5
  42. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  43. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  44. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
  45. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
  46. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  47. package/dist/boilerplates/@batijs/react/files/$package.json.js +8 -8
  48. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  49. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  50. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +6 -6
  51. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  52. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  53. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
  54. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  55. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +7 -7
  56. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  57. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +6 -6
  58. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  59. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  60. package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
  61. package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
  62. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +7 -7
  63. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  64. package/dist/boilerplates/@batijs/solid/files/$package.json.js +6 -6
  65. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  66. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  67. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +5 -5
  68. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  69. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
  70. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +3 -3
  71. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +7 -7
  72. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +7 -7
  73. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  74. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +6 -6
  75. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +1 -0
  76. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
  77. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +5 -5
  78. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
  79. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  80. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  81. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  82. package/dist/boilerplates/@batijs/vue/files/$package.json.js +9 -9
  83. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  84. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  85. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +6 -6
  86. package/dist/{chunk-IQ3PY4ZR.js → chunk-IZVHJULL.js} +49997 -49974
  87. package/dist/index.js +15 -15
  88. package/package.json +6 -6
@@ -2,6 +2,7 @@
2
2
  import { appRouter } from "../trpc/server";
3
3
  // TODO: stop using universal-middleware and directly integrate server middlewares instead. (Bati generates boilerplates that use universal-middleware https://github.com/magne4000/universal-middleware to make Bati's internal logic easier. This is temporary and will be removed soon.)
4
4
  import type { Get, UniversalHandler } from "@universal-middleware/core";
5
+ import type { D1Database } from "@cloudflare/workers-types";
5
6
  import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
6
7
 
7
8
  export const trpcHandler = ((endpoint) => (request, context, runtime) => {
@@ -1 +1 @@
1
- export declare const trpcHandler: (endpoint: string) => (request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
1
+ export declare const trpcHandler: (endpoint: string) => (request: Request, context: Universal.Context, runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- AJs
4
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ RJs
4
+ } from "../../../../chunk-IZVHJULL.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/ts-rest/dist/files/$package.json.js
@@ -47,11 +47,11 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@cloudflare/workers-types": "^4.20241004.0",
50
+ "@cloudflare/workers-types": "^4.20241011.0",
51
51
  "@ts-rest/core": "^3.51.0",
52
52
  "@ts-rest/serverless": "^3.51.0",
53
53
  "@types/node": "^18.19.55",
54
- "@universal-middleware/core": "^0.2.12",
54
+ "@universal-middleware/core": "^0.2.13",
55
55
  zod: "^3.23.8"
56
56
  },
57
57
  dependencies: {
@@ -93,7 +93,7 @@ var require_package = __commonJS({
93
93
  }
94
94
  });
95
95
  async function getPackageJson(props) {
96
- const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
96
+ const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
97
97
  return packageJson.addDevDependencies(["zod"]).addDependencies(["@ts-rest/core", "@ts-rest/serverless", "@universal-middleware/core"]);
98
98
  }
99
99
  export {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- AJs
4
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ RJs
4
+ } from "../../../../chunk-IZVHJULL.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/vercel/dist/files/$package.json.js
@@ -49,8 +49,8 @@ var require_package = __commonJS({
49
49
  "@batijs/compile": "workspace:*",
50
50
  "@types/node": "^18.19.55",
51
51
  "@vite-plugin-vercel/vike": "^9.0.2",
52
- vike: "^0.4.198",
53
- vite: "^5.4.8",
52
+ vike: "^0.4.199",
53
+ vite: "^5.4.9",
54
54
  "vite-plugin-vercel": "^9.0.3"
55
55
  },
56
56
  dependencies: {
@@ -68,7 +68,7 @@ var require_package = __commonJS({
68
68
  }
69
69
  });
70
70
  async function getPackageJson(props) {
71
- const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
71
+ const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
72
72
  return packageJson.addDependencies(["vite-plugin-vercel", "@vite-plugin-vercel/vike"]);
73
73
  }
74
74
  export {
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- CJs
4
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ MJs
4
+ } from "../../../../chunk-IZVHJULL.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/vercel/dist/files/$tsconfig.json.js
8
8
  async function getTsConfig(props) {
9
- const tsConfig = await CJs(props);
9
+ const tsConfig = await MJs(props);
10
10
  tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vite-plugin-vercel/types"];
11
11
  return tsConfig;
12
12
  }
@@ -1,17 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- DJs,
4
- Mgs
5
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ $gs,
4
+ jJs
5
+ } from "../../../../chunk-IZVHJULL.js";
6
6
  import "../../../../chunk-LU7IBQI7.js";
7
7
 
8
8
  // ../../boilerplates/vercel/dist/files/$vite.config.ts.js
9
9
  async function getViteConfig(props) {
10
- const mod = await DJs(props);
10
+ const mod = await jJs(props);
11
11
  const options = props.meta.BATI.has("express") || props.meta.BATI.has("fastify") ? {
12
12
  source: "/.*"
13
13
  } : void 0;
14
- Mgs(mod, {
14
+ $gs(mod, {
15
15
  from: "vite-plugin-vercel",
16
16
  constructor: "vercel",
17
17
  options
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- EJs
4
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ FJs
4
+ } from "../../../../chunk-IZVHJULL.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/vue/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await EJs(props);
9
+ const content = await FJs(props);
10
10
  const about = `
11
11
 
12
12
  This app is ready to start. It's powered by [Vike](https://vike.dev) and [Vue](https://vuejs.org/guide/quick-start.html).
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- AJs
4
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ RJs
4
+ } from "../../../../chunk-IZVHJULL.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/vue/dist/files/$package.json.js
@@ -49,15 +49,15 @@ var require_package = __commonJS({
49
49
  "@batijs/compile": "workspace:*",
50
50
  "@types/node": "^18.19.55",
51
51
  "@vitejs/plugin-vue": "^5.1.4",
52
- "@vue/compiler-sfc": "^3.5.11",
53
- "@vue/server-renderer": "^3.5.11",
54
- tailwindcss: "^3.4.13",
52
+ "@vue/compiler-sfc": "^3.5.12",
53
+ "@vue/server-renderer": "^3.5.12",
54
+ tailwindcss: "^3.4.14",
55
55
  typescript: "^5.6.3",
56
56
  "unplugin-vue-markdown": "^0.26.2",
57
- vike: "^0.4.198",
57
+ vike: "^0.4.199",
58
58
  "vike-vue": "^0.8.5",
59
- vite: "^5.4.8",
60
- vue: "^3.5.11",
59
+ vite: "^5.4.9",
60
+ vue: "^3.5.12",
61
61
  "vue-gtag": "^2.0.1"
62
62
  },
63
63
  dependencies: {
@@ -123,7 +123,7 @@ var require_package = __commonJS({
123
123
  }
124
124
  });
125
125
  async function getPackageJson(props) {
126
- const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
126
+ const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
127
127
  return packageJson.addDevDependencies(["vite"]).addDependencies([
128
128
  "@vitejs/plugin-vue",
129
129
  "@vue/compiler-sfc",
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- CJs
4
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ MJs
4
+ } from "../../../../chunk-IZVHJULL.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/vue/dist/files/$tsconfig.json.js
8
8
  async function getTsConfig(props) {
9
- const tsConfig = await CJs(props);
9
+ const tsConfig = await MJs(props);
10
10
  tsConfig.compilerOptions.jsx = "preserve";
11
11
  tsConfig.compilerOptions.jsxImportSource = "vue";
12
12
  return tsConfig;
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- DJs,
4
- Mgs
5
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ $gs,
4
+ jJs
5
+ } from "../../../../chunk-IZVHJULL.js";
6
6
  import "../../../../chunk-LU7IBQI7.js";
7
7
 
8
8
  // ../../boilerplates/vue/dist/files/$vite.config.ts.js
9
9
  async function getViteConfig(props) {
10
- const mod = await DJs(props);
11
- Mgs(mod, {
10
+ const mod = await jJs(props);
11
+ $gs(mod, {
12
12
  from: "@vitejs/plugin-vue",
13
13
  constructor: "vue",
14
14
  options: {
15
15
  include: [/\.vue$/, /\.md$/]
16
16
  }
17
17
  });
18
- Mgs(mod, {
18
+ $gs(mod, {
19
19
  from: "unplugin-vue-markdown/vite",
20
20
  constructor: "md",
21
21
  options: {}
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- AJs
4
- } from "../../../../chunk-IQ3PY4ZR.js";
3
+ RJs
4
+ } from "../../../../chunk-IZVHJULL.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/vue-sentry/dist/files/$package.json.js
@@ -47,11 +47,11 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@sentry/vue": "^8.33.1",
50
+ "@sentry/vue": "^8.34.0",
51
51
  "@types/node": "^18.19.55",
52
52
  "vike-vue": "^0.8.5",
53
- vite: "^5.4.8",
54
- vue: "^3.5.11"
53
+ vite: "^5.4.9",
54
+ vue: "^3.5.12"
55
55
  },
56
56
  dependencies: {
57
57
  "@batijs/core": "workspace:*"
@@ -85,7 +85,7 @@ var require_package = __commonJS({
85
85
  }
86
86
  });
87
87
  async function getPackageJson(props) {
88
- const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
88
+ const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
89
89
  return packageJson.addDependencies(["@sentry/vue"]);
90
90
  }
91
91
  export {