@batijs/cli 0.0.583 → 0.0.587

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 (93) 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 +3 -3
  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 +4 -4
  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 +3 -3
  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 +6 -6
  25. package/dist/boilerplates/@batijs/express/files/$package.json.js +4 -4
  26. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +4 -4
  27. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  28. package/dist/boilerplates/@batijs/h3/files/$package.json.js +4 -4
  29. package/dist/boilerplates/@batijs/hono/files/$package.json.js +4 -4
  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 +4 -4
  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 +3 -3
  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 +6 -6
  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-db/files/server/db-middleware.ts +1 -1
  62. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +3 -3
  63. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +1 -1
  64. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +1 -3
  65. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  66. package/dist/boilerplates/@batijs/solid/files/$package.json.js +4 -4
  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 +6 -6
  74. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +5 -5
  75. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -4
  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 +3 -3
  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 +3 -3
  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 +3 -3
  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 +5 -5
  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-RACOWJAZ.js} +66832 -66688
  91. package/dist/index.js +92 -69
  92. package/package.json +6 -6
  93. package/dist/boilerplates/@batijs/prettier/files/.prettierrc +0 -3
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  YG,
7
7
  b7,
8
- fhe,
9
- qxs
10
- } from "../../../../../chunk-WIRXYZ5Z.js";
8
+ i2s,
9
+ mhe
10
+ } from "../../../../../chunk-RACOWJAZ.js";
11
11
  import "../../../../../chunk-IAWYWZSL.js";
12
12
  import "../../../../../chunk-IHX3I5SM.js";
13
13
 
@@ -15,9 +15,9 @@ import "../../../../../chunk-IHX3I5SM.js";
15
15
  async function getViteConfig(props) {
16
16
  let mod;
17
17
  try {
18
- mod = await qxs(props);
18
+ mod = await i2s(props);
19
19
  } catch {
20
- mod = fhe("");
20
+ mod = mhe("");
21
21
  }
22
22
  if (!props.meta.BATI.has("vue")) {
23
23
  mod.imports.$prepend({
@@ -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
- Rxs,
7
- o_s
8
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ t2s,
7
+ x_s
8
+ } from "../../../../chunk-RACOWJAZ.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/shadcn-ui/dist/files/$README.md.js
13
13
  async function getReadme(props) {
14
- const content = await Rxs(props);
15
- const pmCmd = o_s().run;
14
+ const content = await t2s(props);
15
+ const pmCmd = x_s().run;
16
16
  const about = `
17
17
 
18
18
  ## shadcn/ui
@@ -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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -56,9 +56,9 @@ var require_package = __commonJS({
56
56
  autoprefixer: "^10.4.24",
57
57
  "class-variance-authority": "^0.7.1",
58
58
  clsx: "^2.1.1",
59
- "lucide-react": "^0.564.0",
60
- "tailwind-merge": "^3.4.1",
61
- tailwindcss: "^4.1.18",
59
+ "lucide-react": "^0.575.0",
60
+ "tailwind-merge": "^3.5.0",
61
+ tailwindcss: "^4.2.1",
62
62
  "tw-animate-css": "^1.4.0"
63
63
  },
64
64
  dependencies: {
@@ -83,7 +83,7 @@ var require_package = __commonJS({
83
83
  }
84
84
  });
85
85
  async function getPackageJson(props) {
86
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
86
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
87
87
  return packageJson.setScript("shadcn", {
88
88
  value: "npx shadcn@latest",
89
89
  precedence: 1,
@@ -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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/shadcn-ui/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
  tsConfig.compilerOptions.paths = {
15
15
  ...tsConfig.compilerOptions?.paths ?? {},
16
16
  "@/*": ["./*"]
@@ -3,22 +3,22 @@ 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
- yir
8
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ Tir,
7
+ i2s
8
+ } from "../../../../chunk-RACOWJAZ.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
14
- const mod = await qxs(props);
14
+ const mod = await i2s(props);
15
15
  const replacement = `new URL("./", import.meta.url).pathname`;
16
16
  addResolveAlias(mod, "@", replacement);
17
17
  return mod.generate().code.replace(`"{{PLACEHOLDER_ALIAS}}"`, replacement);
18
18
  }
19
19
  function addResolveAlias(mod, find, replacement) {
20
20
  const alias = mod.exports.default.$args[0]?.resolve?.alias ?? {};
21
- const warnMsg = `${yir("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
21
+ const warnMsg = `${Tir("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
22
22
  if (alias?.length === void 0) {
23
23
  if (alias[find]) {
24
24
  console.warn(warnMsg);
@@ -3,22 +3,22 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- JBs,
7
- Rxs,
8
- WBs
9
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ lUs,
7
+ t2s,
8
+ uUs
9
+ } from "../../../../chunk-RACOWJAZ.js";
10
10
  import "../../../../chunk-IAWYWZSL.js";
11
11
  import "../../../../chunk-IHX3I5SM.js";
12
12
 
13
13
  // ../../boilerplates/shared/dist/files/$README.md.js
14
14
  async function getReadme(props) {
15
- const content = await Rxs(props);
15
+ const content = await t2s(props);
16
16
  const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
17
- const v = JBs();
17
+ const v = uUs();
18
18
  const intro = `Generated with [vike.dev/new](https://vike.dev/new) ([version ${v.semver.at(-1)}](https://www.npmjs.com/package/create-vike/v/${v.version})) using this command:
19
19
 
20
20
  \`\`\`sh
21
- ${WBs()} ${flags}
21
+ ${lUs()} ${flags}
22
22
  \`\`\`
23
23
  `;
24
24
  content.addMarkdown(intro, {
@@ -3,15 +3,15 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- Rxs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ t2s
7
+ } from "../../../../chunk-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
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.";
13
13
  async function getTodo(props) {
14
- const content = await Rxs(props);
14
+ const content = await t2s(props);
15
15
  content.addMarkdown(todoIntro, {
16
16
  wrapper: {
17
17
  section: "intro"
@@ -22,7 +22,7 @@ declare global {
22
22
  }
23
23
  }
24
24
 
25
- // 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.)
25
+ // Note: You can directly define a server middleware instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
26
26
  /**
27
27
  * Add the `db` object to the context.
28
28
  */
@@ -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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -76,7 +76,7 @@ var require_package = __commonJS({
76
76
  }
77
77
  });
78
78
  async function getPackageJson(props) {
79
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
79
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
80
80
  return packageJson.addDependencies(["@universal-middleware/core"]);
81
81
  }
82
82
  export {
@@ -9,7 +9,7 @@ import type { db as sqliteDb } from "@batijs/sqlite/database/sqlite/db";
9
9
  import * as sqliteQueries from "@batijs/sqlite/database/sqlite/queries/todos";
10
10
  import { enhance, type UniversalHandler } from "@universal-middleware/core";
11
11
 
12
- // 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.)
12
+ // Note: You can directly define a server middleware instead of defining a universal middleware. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
13
13
  export const createTodoHandler: UniversalHandler<
14
14
  Universal.Context &
15
15
  BATI.If<{
@@ -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,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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid/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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -53,7 +53,7 @@ var require_package = __commonJS({
53
53
  "@batijs/compile": "workspace:*",
54
54
  "@types/node": "^20.19.30",
55
55
  "solid-js": "^1.9.11",
56
- tailwindcss: "^4.1.18",
56
+ tailwindcss: "^4.2.1",
57
57
  typescript: "^5.9.3",
58
58
  vike: "^0.4.253",
59
59
  "vike-photon": "^0.1.24",
@@ -173,7 +173,7 @@ var require_package = __commonJS({
173
173
  }
174
174
  });
175
175
  async function getPackageJson(props) {
176
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
176
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
177
177
  return packageJson.addDevDependencies(["vite", "vite-plugin-solid"]).addDependencies(["solid-js", "vike-solid", "vike"]);
178
178
  }
179
179
  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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/solid/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
  tsConfig.compilerOptions.jsx = "react-jsx";
15
15
  tsConfig.compilerOptions.jsxImportSource = "solid-js";
16
16
  tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-solid/client"];
@@ -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-RACOWJAZ.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/solid/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: "vike-solid/vite",
17
17
  constructor: "vikeSolid"
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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -51,7 +51,7 @@ var require_package = __commonJS({
51
51
  license: "MIT",
52
52
  devDependencies: {
53
53
  "@batijs/compile": "workspace:*",
54
- "@sentry/solid": "^10.39.0",
54
+ "@sentry/solid": "^10.40.0",
55
55
  "@types/node": "^20.19.30",
56
56
  "solid-js": "^1.9.11",
57
57
  "vike-solid": "^0.8.1",
@@ -85,7 +85,7 @@ var require_package = __commonJS({
85
85
  }
86
86
  });
87
87
  async function getPackageJson(props) {
88
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
88
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
89
89
  return packageJson.addDependencies(["@sentry/solid"]);
90
90
  }
91
91
  export {
@@ -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
- GBs
7
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ fUs
7
+ } from "../../../../chunk-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -12,7 +12,7 @@ import "../../../../chunk-IHX3I5SM.js";
12
12
  async function getEnv(props) {
13
13
  if (props.meta.BATI.hasD1) return;
14
14
  const envContent = await props.readfile?.();
15
- return GBs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
15
+ return fUs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
16
16
  }
17
17
  export {
18
18
  getEnv as default
@@ -3,17 +3,17 @@ 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
- o_s
8
- } from "../../../../chunk-WIRXYZ5Z.js";
6
+ t2s,
7
+ x_s
8
+ } from "../../../../chunk-RACOWJAZ.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/sqlite/dist/files/$TODO.md.js
13
13
  async function getTodo(props) {
14
14
  if (props.meta.BATI.hasD1) return;
15
- const content = await Rxs(props);
16
- const pmCmd = o_s().run;
15
+ const content = await t2s(props);
16
+ const pmCmd = x_s().run;
17
17
  const todo = `
18
18
  ## Sqlite
19
19
 
@@ -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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -97,7 +97,7 @@ var require_package = __commonJS({
97
97
  }
98
98
  });
99
99
  async function getPackageJson(props) {
100
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
100
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
101
101
  return packageJson.setScript("sqlite:migrate", {
102
102
  value: "tsx ./database/sqlite/schema/all.ts",
103
103
  precedence: 1
@@ -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-RACOWJAZ.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
- "@tailwindcss/vite": "^4.1.18",
54
+ "@tailwindcss/vite": "^4.2.1",
55
55
  "@types/node": "^20.19.30",
56
56
  autoprefixer: "^10.4.24",
57
- daisyui: "^5.5.18",
58
- tailwindcss: "^4.1.18",
57
+ daisyui: "^5.5.19",
58
+ tailwindcss: "^4.2.1",
59
59
  vike: "^0.4.253",
60
60
  vite: "^7.3.1"
61
61
  },
@@ -70,7 +70,7 @@ var require_package = __commonJS({
70
70
  });
71
71
  async function getPackageJson(props) {
72
72
  const pkgjson = await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default);
73
- const packageJson = await Uxs(props, pkgjson);
73
+ const packageJson = await n2s(props, pkgjson);
74
74
  return packageJson.addDevDependencies(["tailwindcss", "@tailwindcss/vite"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
75
75
  }
76
76
  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-RACOWJAZ.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/tailwindcss/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: "@tailwindcss/vite",
17
17
  constructor: "tailwindcss"
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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -53,7 +53,7 @@ var require_package = __commonJS({
53
53
  "@batijs/compile": "workspace:*",
54
54
  "@types/node": "^20.19.30",
55
55
  "@universal-middleware/core": "^0.4.16",
56
- telefunc: "^0.2.18",
56
+ telefunc: "^0.2.19",
57
57
  vike: "^0.4.253",
58
58
  vite: "^7.3.1"
59
59
  },
@@ -85,7 +85,7 @@ var require_package = __commonJS({
85
85
  }
86
86
  });
87
87
  async function getPackageJson(props) {
88
- const packageJson = await Uxs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
88
+ const packageJson = await n2s(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
89
89
  return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
90
90
  }
91
91
  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-RACOWJAZ.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
10
  import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/telefunc/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: "telefunc/vite",
17
17
  constructor: "telefunc",
18
18
  imported: "telefunc"
@@ -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. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -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. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
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-RACOWJAZ.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
9
  import "../../../../chunk-IHX3I5SM.js";
10
10
 
@@ -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. (Vike's scaffolder uses https://github.com/magne4000/universal-middleware to simplify its internal logic.)
62
62
  export const tsRestHandler: UniversalHandler = enhance(
63
63
  async (request, ctx, runtime) =>
64
64
  fetchRequestHandler({