@batijs/cli 0.0.296 → 0.0.298

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 +6 -6
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +4 -4
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +7 -7
  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 +5 -5
  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 +4 -4
  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 +6 -6
  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 +7 -7
  26. package/dist/boilerplates/@batijs/express/files/$package.json.js +6 -6
  27. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +7 -7
  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 +4 -4
  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 +6 -6
  34. package/dist/boilerplates/@batijs/hono/files/$package.json.js +8 -8
  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 +8 -8
  39. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  40. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +6 -6
  41. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +3 -3
  42. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  43. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
  44. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +5 -5
  45. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  46. package/dist/boilerplates/@batijs/react/files/$package.json.js +7 -7
  47. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  48. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  49. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +4 -4
  50. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  51. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  52. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +5 -5
  53. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  54. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  55. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  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 +9 -9
  60. package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
  61. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -5
  62. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  63. package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
  64. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  65. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  66. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +4 -4
  67. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  68. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
  69. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
  70. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +5 -5
  71. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +5 -5
  72. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  73. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +5 -5
  74. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +1 -0
  75. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
  76. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +8 -8
  77. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
  78. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -4
  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 +5 -5
  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 +4 -4
  86. package/dist/{chunk-SHECMR3J.js → chunk-ZZTH5CWB.js} +54173 -54157
  87. package/dist/index.js +20 -20
  88. package/package.json +7 -7
@@ -1,20 +1,20 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- KJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ c$s
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sentry/dist/files/$.env.js
8
8
  async function getServerlessEnv(props) {
9
9
  const sentryDNS = process.env.TEST_SENTRY_DSN;
10
10
  let envContent = await props.readfile?.();
11
- envContent = KJs(
11
+ envContent = c$s(
12
12
  envContent,
13
13
  "SENTRY_DSN",
14
14
  sentryDNS ?? "",
15
15
  "Sentry DNS. Used for Error Reporting on the Server"
16
16
  );
17
- envContent = KJs(
17
+ envContent = c$s(
18
18
  envContent,
19
19
  "PUBLIC_ENV__SENTRY_DSN",
20
20
  "",
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- FJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ GJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sentry/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await FJs(props);
9
+ const content = await GJs(props);
10
10
  const about = `
11
11
 
12
12
  ## Sentry Browser / Error Tracking & Performance Monitoring
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sentry/dist/files/$package.json.js
@@ -47,9 +47,9 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@sentry/vite-plugin": "^2.22.5",
50
+ "@sentry/vite-plugin": "^2.22.6",
51
51
  "@types/node": "^18.19.55",
52
- vite: "^5.4.8"
52
+ vite: "^5.4.9"
53
53
  },
54
54
  dependencies: {
55
55
  "@batijs/core": "workspace:*"
@@ -78,7 +78,7 @@ var require_package = __commonJS({
78
78
  }
79
79
  });
80
80
  async function getPackageJson(props) {
81
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
81
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
82
82
  return packageJson.addDevDependencies(["@sentry/vite-plugin"]);
83
83
  }
84
84
  export {
@@ -1,15 +1,15 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- $Kr,
4
- Jgs,
5
- jJs
6
- } from "../../../../chunk-SHECMR3J.js";
3
+ QKr,
4
+ XJs,
5
+ sys
6
+ } from "../../../../chunk-ZZTH5CWB.js";
7
7
  import "../../../../chunk-LU7IBQI7.js";
8
8
 
9
9
  // ../../boilerplates/sentry/dist/files/$vite.config.ts.js
10
10
  async function getViteConfig(props) {
11
- const mod = await jJs(props);
12
- Jgs(mod, {
11
+ const mod = await XJs(props);
12
+ sys(mod, {
13
13
  from: "@sentry/vite-plugin",
14
14
  constructor: "sentryVitePlugin",
15
15
  imported: "sentryVitePlugin",
@@ -17,7 +17,7 @@ async function getViteConfig(props) {
17
17
  sourcemaps: { disable: false }
18
18
  }
19
19
  });
20
- $Kr(mod.exports.default.$args[0], { build: { sourcemap: true } });
20
+ QKr(mod.exports.default.$args[0], { build: { sourcemap: true } });
21
21
  return mod.generate().code;
22
22
  }
23
23
  export {
@@ -1,27 +1,27 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- U8e,
4
- hse,
5
- jJs,
6
- yV
7
- } from "../../../../../chunk-SHECMR3J.js";
3
+ J8e,
4
+ XJs,
5
+ _se,
6
+ gV
7
+ } from "../../../../../chunk-ZZTH5CWB.js";
8
8
  import "../../../../../chunk-LU7IBQI7.js";
9
9
 
10
10
  // ../../boilerplates/sentry/dist/files/pages/$+client.ts.js
11
11
  async function getViteConfig(props) {
12
12
  let mod;
13
13
  try {
14
- mod = await jJs(props);
14
+ mod = await XJs(props);
15
15
  } catch {
16
- mod = U8e("");
16
+ mod = J8e("");
17
17
  }
18
18
  if (!props.meta.BATI.has("vue")) {
19
19
  mod.imports.$prepend({
20
20
  from: "../sentry.browser.config",
21
21
  imported: "sentryBrowserConfig"
22
22
  });
23
- const e = hse.functionCall("sentryBrowserConfig");
24
- const c = yV(e).code;
23
+ const e = _se.functionCall("sentryBrowserConfig");
24
+ const c = gV(e).code;
25
25
  mod.$ast.body.splice(mod.$ast.body.length - 1, 0, c);
26
26
  }
27
27
  return mod.generate().code;
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- FJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ GJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shadcn-ui/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await FJs(props);
9
+ const content = await GJs(props);
10
10
  const about = `
11
11
 
12
12
  ## shadcn/ui
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shadcn-ui/dist/files/$package.json.js
@@ -51,9 +51,9 @@ var require_package = __commonJS({
51
51
  "@types/node": "^18.19.55",
52
52
  "class-variance-authority": "^0.7.0",
53
53
  clsx: "^2.1.1",
54
- "lucide-react": "^0.452.0",
55
- "tailwind-merge": "^2.5.3",
56
- tailwindcss: "^3.4.13",
54
+ "lucide-react": "^0.453.0",
55
+ "tailwind-merge": "^2.5.4",
56
+ tailwindcss: "^3.4.14",
57
57
  "tailwindcss-animate": "^1.0.7"
58
58
  },
59
59
  dependencies: {
@@ -89,7 +89,7 @@ var require_package = __commonJS({
89
89
  }
90
90
  });
91
91
  async function getPackageJson(props) {
92
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
92
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
93
93
  return packageJson.setScript("shadcn", {
94
94
  value: "npx shadcn@latest",
95
95
  precedence: 1,
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- MJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ KJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shadcn-ui/dist/files/$tsconfig.json.js
8
8
  async function getTsConfig(props) {
9
- const tsConfig = await MJs(props);
9
+ const tsConfig = await KJs(props);
10
10
  tsConfig.compilerOptions.paths = {
11
11
  ...tsConfig.compilerOptions?.paths ?? {},
12
12
  "@/*": ["./*"]
@@ -1,20 +1,20 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- jJs,
4
- zKr
5
- } from "../../../../chunk-SHECMR3J.js";
3
+ GKr,
4
+ XJs
5
+ } from "../../../../chunk-ZZTH5CWB.js";
6
6
  import "../../../../chunk-LU7IBQI7.js";
7
7
 
8
8
  // ../../boilerplates/shadcn-ui/dist/files/$vite.config.ts.js
9
9
  async function getViteConfig(props) {
10
- const mod = await jJs(props);
10
+ const mod = await XJs(props);
11
11
  const replacement = `new URL("./", import.meta.url).pathname`;
12
12
  addResolveAlias(mod, "@", replacement);
13
13
  return mod.generate().code.replace(`"{{PLACEHOLDER_ALIAS}}"`, replacement);
14
14
  }
15
15
  function addResolveAlias(mod, find, replacement) {
16
16
  const alias = mod.exports.default.$args[0]?.resolve?.alias ?? {};
17
- const warnMsg = `${zKr("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
17
+ const warnMsg = `${GKr("WARN")}: new resolve.alias: \`"${find}":${replacement}\` replaced existing in vite.config.ts.`;
18
18
  if (alias?.length === void 0) {
19
19
  if (alias[find]) {
20
20
  console.warn(warnMsg);
@@ -1,21 +1,21 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- FJs,
4
- c$s,
5
- l$s,
6
- q9s
7
- } from "../../../../chunk-SHECMR3J.js";
3
+ GJs,
4
+ S$s,
5
+ ejs,
6
+ v$s
7
+ } from "../../../../chunk-ZZTH5CWB.js";
8
8
  import "../../../../chunk-LU7IBQI7.js";
9
9
 
10
10
  // ../../boilerplates/shared/dist/files/$README.md.js
11
11
  async function getReadme(props) {
12
- const content = await FJs(props);
12
+ const content = await GJs(props);
13
13
  const flags = Array.from(props.meta.BATI).filter((f) => f !== "force").map((f) => `--${f}`).join(" ");
14
- const v = l$s();
15
- const intro = `Generated with [Bati](https://batijs.dev) ${`(${q9s.link("https://www.npmjs.com/package/create-bati/v/" + v.version, "version " + v.semver.at(-1))})`} using this command:
14
+ const v = S$s();
15
+ const intro = `Generated with [Bati](https://batijs.dev) ${`(${ejs.link("https://www.npmjs.com/package/create-bati/v/" + v.version, "version " + v.semver.at(-1))})`} using this command:
16
16
 
17
17
  \`\`\`sh
18
- ${c$s()} ${flags}
18
+ ${v$s()} ${flags}
19
19
  \`\`\`
20
20
  `;
21
21
  content.addMarkdown(intro, {
@@ -8,7 +8,7 @@
8
8
  "devDependencies": {
9
9
  "typescript": "^5.6.3",
10
10
  "vike": "^0.4.199",
11
- "vite": "^5.4.8"
11
+ "vite": "^5.4.9"
12
12
  },
13
13
  "type": "module"
14
14
  }
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/shared-server/dist/files/$package.json.js
@@ -48,11 +48,11 @@ var require_package = __commonJS({
48
48
  license: "MIT",
49
49
  devDependencies: {
50
50
  "@batijs/compile": "workspace:*",
51
- "@cloudflare/workers-types": "^4.20241011.0",
51
+ "@cloudflare/workers-types": "^4.20241018.0",
52
52
  "@types/node": "^18.19.55",
53
53
  "@universal-middleware/core": "^0.2.13",
54
54
  vike: "^0.4.199",
55
- vite: "^5.4.8"
55
+ vite: "^5.4.9"
56
56
  },
57
57
  files: [
58
58
  "dist/"
@@ -92,7 +92,7 @@ var require_package = __commonJS({
92
92
  }
93
93
  });
94
94
  async function getPackageJson(props) {
95
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
95
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
96
96
  return packageJson.addDependencies(["@universal-middleware/core"]);
97
97
  }
98
98
  export {
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- FJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ GJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/solid/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await FJs(props);
9
+ const content = await GJs(props);
10
10
  const about = `
11
11
 
12
12
  This app is ready to start. It's powered by [Vike](https://vike.dev) and [SolidJS](https://www.solidjs.com/guides/getting-started).
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/solid/dist/files/$package.json.js
@@ -49,11 +49,11 @@ var require_package = __commonJS({
49
49
  "@batijs/compile": "workspace:*",
50
50
  "@types/node": "^18.19.55",
51
51
  "solid-js": "^1.9.2",
52
- tailwindcss: "^3.4.13",
52
+ tailwindcss: "^3.4.14",
53
53
  typescript: "^5.6.3",
54
54
  vike: "^0.4.199",
55
55
  "vike-solid": "^0.7.6",
56
- vite: "^5.4.8",
56
+ vite: "^5.4.9",
57
57
  "vite-plugin-solid": "^2.10.2"
58
58
  },
59
59
  dependencies: {
@@ -173,7 +173,7 @@ var require_package = __commonJS({
173
173
  }
174
174
  });
175
175
  async function getPackageJson(props) {
176
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
176
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
177
177
  return packageJson.addDevDependencies(["vite"]).addDependencies(["solid-js", "vike-solid", "vike"]);
178
178
  }
179
179
  export {
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- MJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ KJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/solid/dist/files/$tsconfig.json.js
8
8
  async function getTsConfig(props) {
9
- const tsConfig = await MJs(props);
9
+ const tsConfig = await KJs(props);
10
10
  tsConfig.compilerOptions.jsx = "preserve";
11
11
  tsConfig.compilerOptions.jsxImportSource = "solid-js";
12
12
  tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "vike-solid/client"];
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- Jgs,
4
- jJs
5
- } from "../../../../chunk-SHECMR3J.js";
3
+ XJs,
4
+ sys
5
+ } from "../../../../chunk-ZZTH5CWB.js";
6
6
  import "../../../../chunk-LU7IBQI7.js";
7
7
 
8
8
  // ../../boilerplates/solid/dist/files/$vite.config.ts.js
9
9
  async function getViteConfig(props) {
10
- const mod = await jJs(props);
11
- Jgs(mod, {
10
+ const mod = await XJs(props);
11
+ sys(mod, {
12
12
  from: "vike-solid/vite",
13
13
  constructor: "vikeSolid"
14
14
  });
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/solid-sentry/dist/files/$package.json.js
@@ -51,7 +51,7 @@ var require_package = __commonJS({
51
51
  "@types/node": "^18.19.55",
52
52
  "solid-js": "^1.9.2",
53
53
  "vike-solid": "^0.7.6",
54
- vite: "^5.4.8"
54
+ vite: "^5.4.9"
55
55
  },
56
56
  dependencies: {
57
57
  "@batijs/core": "workspace:*"
@@ -91,7 +91,7 @@ var require_package = __commonJS({
91
91
  }
92
92
  });
93
93
  async function getPackageJson(props) {
94
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
94
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
95
95
  return packageJson.addDependencies(["@sentry/solid"]);
96
96
  }
97
97
  export {
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- KJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ c$s
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sqlite/dist/files/$.env.js
8
8
  async function getEnv(props) {
9
9
  if (props.meta.BATI.hasD1) return;
10
10
  const envContent = await props.readfile?.();
11
- return KJs(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
11
+ return c$s(envContent, "DATABASE_URL", "sqlite.db", "Path to the sqlite database");
12
12
  }
13
13
  export {
14
14
  getEnv as default
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- FJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ GJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sqlite/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await FJs(props);
9
+ const content = await GJs(props);
10
10
  const todo = `
11
11
  ## *Sqlite*
12
12
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/sqlite/dist/files/$package.json.js
@@ -49,7 +49,7 @@ var require_package = __commonJS({
49
49
  "@batijs/compile": "workspace:*",
50
50
  "@types/better-sqlite3": "^7.6.11",
51
51
  "@types/node": "^18.19.55",
52
- "better-sqlite3": "^11.3.0",
52
+ "better-sqlite3": "^11.4.0",
53
53
  dotenv: "^16.4.5",
54
54
  tsx: "^4.19.1"
55
55
  },
@@ -119,7 +119,7 @@ var require_package = __commonJS({
119
119
  }
120
120
  });
121
121
  async function getPackageJson(props) {
122
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
122
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
123
123
  return packageJson.setScript("sqlite:migrate", {
124
124
  value: "tsx ./database/sqlite/schema/all.ts",
125
125
  precedence: 1
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/tailwindcss/dist/files/$package.json.js
@@ -51,9 +51,9 @@ var require_package = __commonJS({
51
51
  autoprefixer: "^10.4.20",
52
52
  daisyui: "^4.12.13",
53
53
  postcss: "^8.4.47",
54
- tailwindcss: "^3.4.13",
54
+ tailwindcss: "^3.4.14",
55
55
  vike: "^0.4.199",
56
- vite: "^5.4.8"
56
+ vite: "^5.4.9"
57
57
  },
58
58
  dependencies: {
59
59
  "@batijs/core": "workspace:*"
@@ -88,7 +88,7 @@ var require_package = __commonJS({
88
88
  }
89
89
  });
90
90
  async function getPackageJson(props) {
91
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
91
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
92
92
  return packageJson.addDevDependencies(["tailwindcss", "postcss", "autoprefixer"]).addDevDependencies(["daisyui"], props.meta.BATI.has("daisyui"));
93
93
  }
94
94
  export {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/telefunc/dist/files/$package.json.js
@@ -47,12 +47,12 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@cloudflare/workers-types": "^4.20241011.0",
50
+ "@cloudflare/workers-types": "^4.20241018.0",
51
51
  "@types/node": "^18.19.55",
52
52
  "@universal-middleware/core": "^0.2.13",
53
53
  telefunc: "^0.1.79",
54
54
  vike: "^0.4.199",
55
- vite: "^5.4.8"
55
+ vite: "^5.4.9"
56
56
  },
57
57
  dependencies: {
58
58
  "@batijs/core": "workspace:*"
@@ -87,7 +87,7 @@ var require_package = __commonJS({
87
87
  }
88
88
  });
89
89
  async function getPackageJson(props) {
90
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
90
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
91
91
  return packageJson.addDependencies(["telefunc", "@universal-middleware/core"]);
92
92
  }
93
93
  export {
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- Jgs,
4
- jJs
5
- } from "../../../../chunk-SHECMR3J.js";
3
+ XJs,
4
+ sys
5
+ } from "../../../../chunk-ZZTH5CWB.js";
6
6
  import "../../../../chunk-LU7IBQI7.js";
7
7
 
8
8
  // ../../boilerplates/telefunc/dist/files/$vite.config.ts.js
9
9
  async function getViteConfig(props) {
10
- const mod = await jJs(props);
11
- Jgs(mod, {
10
+ const mod = await XJs(props);
11
+ sys(mod, {
12
12
  from: "telefunc/vite",
13
13
  constructor: "telefunc",
14
14
  imported: "telefunc"
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- RJs
4
- } from "../../../../chunk-SHECMR3J.js";
3
+ HJs
4
+ } from "../../../../chunk-ZZTH5CWB.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/trpc/dist/files/$package.json.js
@@ -47,12 +47,12 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@cloudflare/workers-types": "^4.20241011.0",
50
+ "@cloudflare/workers-types": "^4.20241018.0",
51
51
  "@trpc/client": "^10.45.2",
52
52
  "@trpc/server": "^10.45.2",
53
53
  "@types/node": "^18.19.55",
54
54
  "@universal-middleware/core": "^0.2.13",
55
- vite: "^5.4.8"
55
+ vite: "^5.4.9"
56
56
  },
57
57
  dependencies: {
58
58
  "@batijs/core": "workspace:*"
@@ -93,7 +93,7 @@ var require_package = __commonJS({
93
93
  }
94
94
  });
95
95
  async function getPackageJson(props) {
96
- const packageJson = await RJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
96
+ const packageJson = await HJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
97
97
  return packageJson.addDependencies(["@trpc/server", "@trpc/client"]);
98
98
  }
99
99
  export {
@@ -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>;