@batijs/cli 0.0.293 → 0.0.295

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 (91) 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 +6 -6
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +9 -9
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +5 -5
  8. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +6 -6
  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 +5 -5
  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 +8 -8
  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 +7 -7
  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/types/database/drizzle/db.d.ts +7 -2
  22. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.ts +1 -1
  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 +8 -8
  26. package/dist/boilerplates/@batijs/express/files/$package.json.js +8 -8
  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 +9 -9
  31. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  32. package/dist/boilerplates/@batijs/h3/files/$package.json.js +8 -8
  33. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +8 -8
  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 +10 -10
  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 +7 -7
  42. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
  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 +4 -4
  46. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  47. package/dist/boilerplates/@batijs/react/files/$package.json.js +11 -11
  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 +5 -5
  54. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  55. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  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 +7 -7
  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 +6 -6
  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 +4 -4
  71. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +6 -6
  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/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 +6 -6
  78. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +6 -6
  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-VJJDTBIT.js → chunk-IQ3PY4ZR.js} +69816 -69579
  87. package/dist/index.js +19 -19
  88. package/dist/jiti-47QGSKUN-GAWDFARE.js +30243 -0
  89. package/dist/src-ZXRHWERC-5GKONSS7.js +406 -0
  90. package/package.json +7 -7
  91. package/dist/lib-NAFETZUN-TE4QDL3A.js +0 -28258
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/express/dist/files/$package.json.js
@@ -46,18 +46,18 @@ var require_package = __commonJS({
46
46
  author: "",
47
47
  license: "MIT",
48
48
  devDependencies: {
49
- "@auth/core": "^0.35.3",
49
+ "@auth/core": "^0.37.0",
50
50
  "@batijs/compile": "workspace:*",
51
51
  "@trpc/server": "^10.45.2",
52
52
  "@types/express": "^4.17.21",
53
- "@types/node": "^18.19.54",
54
- "@universal-middleware/express": "^0.2.6",
53
+ "@types/node": "^18.19.55",
54
+ "@universal-middleware/express": "^0.2.7",
55
55
  "cross-env": "^7.0.3",
56
56
  dotenv: "^16.4.5",
57
- express: "^4.21.0",
57
+ express: "^4.21.1",
58
58
  telefunc: "^0.1.79",
59
59
  tsx: "^4.19.1",
60
- vike: "^0.4.197",
60
+ vike: "^0.4.198",
61
61
  vite: "^5.4.8"
62
62
  },
63
63
  dependencies: {
@@ -87,7 +87,7 @@ var require_package = __commonJS({
87
87
  }
88
88
  });
89
89
  async function getPackageJson(props) {
90
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
90
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
91
91
  return packageJson.setScript("dev", {
92
92
  value: "tsx ./express-entry.ts",
93
93
  precedence: 20,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/fastify/dist/files/$package.json.js
@@ -46,20 +46,20 @@ var require_package = __commonJS({
46
46
  author: "",
47
47
  license: "MIT",
48
48
  devDependencies: {
49
- "@auth/core": "^0.35.3",
49
+ "@auth/core": "^0.37.0",
50
50
  "@batijs/compile": "workspace:*",
51
51
  "@fastify/middie": "^9.0.2",
52
52
  "@fastify/static": "^8.0.1",
53
53
  "@trpc/server": "^10.45.2",
54
54
  "@types/express": "^4.17.21",
55
- "@types/node": "^18.19.54",
56
- "@universal-middleware/fastify": "^0.3.3",
55
+ "@types/node": "^18.19.55",
56
+ "@universal-middleware/fastify": "^0.3.4",
57
57
  "cross-env": "^7.0.3",
58
58
  dotenv: "^16.4.5",
59
59
  fastify: "^5.0.0",
60
60
  telefunc: "^0.1.79",
61
61
  tsx: "^4.19.1",
62
- vike: "^0.4.197",
62
+ vike: "^0.4.198",
63
63
  vite: "^5.4.8"
64
64
  },
65
65
  dependencies: {
@@ -89,7 +89,7 @@ var require_package = __commonJS({
89
89
  }
90
90
  });
91
91
  async function getPackageJson(props) {
92
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
92
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
93
93
  return packageJson.setScript("dev", {
94
94
  value: "tsx ./fastify-entry.ts",
95
95
  precedence: 20,
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- vWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ jJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/firebase-auth/dist/files/$.env.js
8
8
  async function getEnv(props) {
9
9
  const envContent = await props.readfile?.();
10
- return vWs(
10
+ return jJs(
11
11
  envContent,
12
12
  "GOOGLE_APPLICATION_CREDENTIALS",
13
13
  "firebase/service-account.json",
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- oWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ EJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/firebase-auth/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await oWs(props);
9
+ const content = await EJs(props);
10
10
  const todo = `
11
11
  ## *Firebase*
12
12
  - You first need to **[Create a Firebase project](https://firebase.google.com/docs/web/setup#create-project)**.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/firebase-auth/dist/files/$package.json.js
@@ -48,14 +48,14 @@ var require_package = __commonJS({
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
50
  "@types/cookie": "^0.6.0",
51
- "@types/node": "^18.19.54",
52
- "@universal-middleware/core": "^0.2.11",
53
- cookie: "^0.6.0",
51
+ "@types/node": "^18.19.55",
52
+ "@universal-middleware/core": "^0.2.12",
53
+ cookie: "^1.0.0",
54
54
  dotenv: "^16.4.5",
55
- firebase: "^10.13.2",
56
- "firebase-admin": "^12.5.0",
55
+ firebase: "^10.14.0",
56
+ "firebase-admin": "^12.6.0",
57
57
  firebaseui: "^6.1.0",
58
- vike: "^0.4.197",
58
+ vike: "^0.4.198",
59
59
  vite: "^5.4.8"
60
60
  },
61
61
  dependencies: {
@@ -115,7 +115,7 @@ var require_package = __commonJS({
115
115
  }
116
116
  });
117
117
  async function getPackageJson(props) {
118
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
118
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
119
119
  return packageJson.addDevDependencies(["@types/cookie"]).addDependencies(["firebase", "firebase-admin", "firebaseui", "cookie", "@universal-middleware/core", "dotenv"]);
120
120
  }
121
121
  export {
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- vWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ jJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/google-analytics/dist/files/$.env.js
8
8
  async function getEnv(props) {
9
9
  const envContent = await props.readfile?.();
10
- return vWs(
10
+ return jJs(
11
11
  envContent,
12
12
  "PUBLIC_ENV__GOOGLE_ANALYTICS",
13
13
  "G-XXXXXXXXXX",
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/h3/dist/files/$package.json.js
@@ -46,21 +46,21 @@ var require_package = __commonJS({
46
46
  author: "",
47
47
  license: "MIT",
48
48
  devDependencies: {
49
- "@auth/core": "^0.35.3",
49
+ "@auth/core": "^0.37.0",
50
50
  "@batijs/compile": "workspace:*",
51
51
  "@hattip/polyfills": "^0.0.48",
52
52
  "@trpc/server": "^10.45.2",
53
53
  "@types/express": "^4.17.21",
54
- "@types/node": "^18.19.54",
54
+ "@types/node": "^18.19.55",
55
55
  "@types/serve-static": "^1.15.7",
56
- "@universal-middleware/h3": "^0.2.4",
56
+ "@universal-middleware/h3": "^0.2.5",
57
57
  "cross-env": "^7.0.3",
58
58
  dotenv: "^16.4.5",
59
- h3: "~1.12.0",
59
+ h3: "~1.13.0",
60
60
  "serve-static": "^1.16.2",
61
61
  telefunc: "^0.1.79",
62
62
  tsx: "^4.19.1",
63
- vike: "^0.4.197",
63
+ vike: "^0.4.198",
64
64
  vite: "^5.4.8"
65
65
  },
66
66
  dependencies: {
@@ -90,7 +90,7 @@ var require_package = __commonJS({
90
90
  }
91
91
  });
92
92
  async function getPackageJson(props) {
93
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
93
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
94
94
  return packageJson.setScript("dev", {
95
95
  value: "tsx ./h3-entry.ts",
96
96
  precedence: 20,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/hattip/dist/files/$package.json.js
@@ -46,9 +46,9 @@ var require_package = __commonJS({
46
46
  author: "",
47
47
  license: "MIT",
48
48
  devDependencies: {
49
- "@auth/core": "^0.35.3",
49
+ "@auth/core": "^0.37.0",
50
50
  "@batijs/compile": "workspace:*",
51
- "@cloudflare/workers-types": "^4.20240925.0",
51
+ "@cloudflare/workers-types": "^4.20241004.0",
52
52
  "@hattip/adapter-aws-lambda": "^0.0.48",
53
53
  "@hattip/adapter-node": "^0.0.48",
54
54
  "@hattip/adapter-vercel-edge": "^0.0.48",
@@ -59,13 +59,13 @@ var require_package = __commonJS({
59
59
  "@hattip/walk": "^0.0.48",
60
60
  "@trpc/server": "^10.45.2",
61
61
  "@types/aws-lambda": "^8.10.145",
62
- "@types/node": "^18.19.54",
63
- "@universal-middleware/hattip": "^0.2.7",
62
+ "@types/node": "^18.19.55",
63
+ "@universal-middleware/hattip": "^0.2.8",
64
64
  "cross-env": "^7.0.3",
65
65
  dotenv: "^16.4.5",
66
66
  hattip: "^0.0.33",
67
67
  telefunc: "^0.1.79",
68
- vike: "^0.4.197",
68
+ vike: "^0.4.198",
69
69
  vite: "^5.4.8"
70
70
  },
71
71
  dependencies: {
@@ -101,7 +101,7 @@ var require_package = __commonJS({
101
101
  }
102
102
  });
103
103
  async function getPackageJson(props) {
104
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
104
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
105
105
  return packageJson.setScript("dev", {
106
106
  value: "hattip serve ./hattip-entry.ts --client",
107
107
  precedence: 20,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/hono/dist/files/$package.json.js
@@ -46,21 +46,21 @@ var require_package = __commonJS({
46
46
  author: "",
47
47
  license: "MIT",
48
48
  devDependencies: {
49
- "@auth/core": "^0.35.3",
49
+ "@auth/core": "^0.37.0",
50
50
  "@batijs/compile": "workspace:*",
51
- "@cloudflare/workers-types": "^4.20240925.0",
51
+ "@cloudflare/workers-types": "^4.20241004.0",
52
52
  "@hono/node-server": "^1.13.1",
53
53
  "@hono/vite-dev-server": "^0.16.0",
54
54
  "@trpc/server": "^10.45.2",
55
55
  "@types/aws-lambda": "^8.10.145",
56
- "@types/node": "^18.19.54",
57
- "@universal-middleware/hono": "^0.2.8",
56
+ "@types/node": "^18.19.55",
57
+ "@universal-middleware/hono": "^0.2.9",
58
58
  "cross-env": "^7.0.3",
59
59
  dotenv: "^16.4.5",
60
60
  hono: "^4.6.3",
61
61
  telefunc: "^0.1.79",
62
62
  tsx: "^4.19.1",
63
- vike: "^0.4.197",
63
+ vike: "^0.4.198",
64
64
  vite: "^5.4.8"
65
65
  },
66
66
  dependencies: {
@@ -102,7 +102,7 @@ var require_package = __commonJS({
102
102
  }
103
103
  });
104
104
  async function getPackageJson(props) {
105
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
105
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
106
106
  return packageJson.setScript("dev", {
107
107
  value: "vite",
108
108
  precedence: 20,
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- Mhs,
4
- uWs
5
- } from "../../../../chunk-VJJDTBIT.js";
3
+ DJs,
4
+ Mgs
5
+ } from "../../../../chunk-IQ3PY4ZR.js";
6
6
  import "../../../../chunk-LU7IBQI7.js";
7
7
 
8
8
  // ../../boilerplates/hono/dist/files/$vite.config.ts.js
9
9
  async function getViteConfig(props) {
10
- const mod = await uWs(props);
11
- Mhs(mod, {
10
+ const mod = await DJs(props);
11
+ Mgs(mod, {
12
12
  from: "@hono/vite-dev-server",
13
13
  constructor: "devServer",
14
14
  options: {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- vWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ jJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/lucia-auth/dist/files/$.env.js
@@ -9,13 +9,13 @@ async function getEnv(props) {
9
9
  const githubClientId = process.env.TEST_GITHUB_CLIENT_ID;
10
10
  const githubClientSecret = process.env.TEST_GITHUB_CLIENT_SECRET;
11
11
  let envContent = await props.readfile?.();
12
- envContent = vWs(
12
+ envContent = jJs(
13
13
  envContent,
14
14
  "GITHUB_CLIENT_ID",
15
15
  githubClientId ?? "",
16
16
  "GitHub Client ID. Used for authentication"
17
17
  );
18
- envContent = vWs(
18
+ envContent = jJs(
19
19
  envContent,
20
20
  "GITHUB_CLIENT_SECRET",
21
21
  githubClientSecret ?? "",
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- oWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ EJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/lucia-auth/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await oWs(props);
9
+ const content = await EJs(props);
10
10
  const todo = `
11
11
  ## *Example: Lucia Auth with GitHub OAuth*
12
12
  - Create a [GitHub OAuth app](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app). Set the Authorization callback URL to \`http://localhost:3000/api/login/github/callback\`.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/lucia-auth/dist/files/$package.json.js
@@ -47,20 +47,20 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@cloudflare/workers-types": "^4.20240925.0",
50
+ "@cloudflare/workers-types": "^4.20241004.0",
51
51
  "@lucia-auth/adapter-drizzle": "^1.1.0",
52
52
  "@lucia-auth/adapter-sqlite": "^3.0.2",
53
53
  "@types/better-sqlite3": "^7.6.11",
54
54
  "@types/cookie": "^0.6.0",
55
- "@types/node": "^18.19.54",
56
- "@universal-middleware/core": "^0.2.11",
55
+ "@types/node": "^18.19.55",
56
+ "@universal-middleware/core": "^0.2.12",
57
57
  arctic: "^1.9.2",
58
58
  "better-sqlite3": "^11.3.0",
59
- cookie: "^0.6.0",
59
+ cookie: "^1.0.0",
60
60
  dotenv: "^16.4.5",
61
- "drizzle-orm": "^0.33.0",
62
- lucia: "^3.2.0",
63
- vike: "^0.4.197",
61
+ "drizzle-orm": "^0.34.1",
62
+ lucia: "^3.2.1",
63
+ vike: "^0.4.198",
64
64
  vite: "^5.4.8"
65
65
  },
66
66
  dependencies: {
@@ -102,7 +102,7 @@ var require_package = __commonJS({
102
102
  }
103
103
  });
104
104
  async function getPackageJson(props) {
105
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
105
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
106
106
  return packageJson.addDevDependencies(["@types/cookie"]).addDependencies(["arctic", "cookie", "lucia", "@universal-middleware/core", "dotenv"]).addDependencies(["@lucia-auth/adapter-drizzle"], props.meta.BATI.has("drizzle")).addDependencies(["@lucia-auth/adapter-sqlite"], !props.meta.BATI.has("drizzle")).addDevDependencies(["@types/better-sqlite3"], !props.meta.BATI.hasD1).addDependencies(["better-sqlite3"], !props.meta.BATI.hasD1);
107
107
  }
108
108
  export {
@@ -11,7 +11,7 @@ export declare const luciaDbMiddleware: Get<[], UniversalMiddleware>;
11
11
  *
12
12
  * @link {@see https://lucia-auth.com/guides/validate-session-cookies/}
13
13
  */
14
- export declare const luciaCsrfMiddleware: () => (request: Request) => Promise<Response | undefined>;
14
+ export declare const luciaCsrfMiddleware: () => (request: Request<unknown, CfProperties<unknown>>) => Promise<Response | undefined>;
15
15
  /**
16
16
  * Validate session cookies middleware and set context
17
17
  *
@@ -21,7 +21,7 @@ export declare const luciaAuthContextMiddleware: Get<[], UniversalMiddleware>;
21
21
  /**
22
22
  * Set Set-Cookie headers if in context
23
23
  */
24
- export declare const luciaAuthCookieMiddleware: () => (_request: Request, context: Universal.Context & {
24
+ export declare const luciaAuthCookieMiddleware: () => (_request: Request<unknown, CfProperties<unknown>>, context: Universal.Context & {
25
25
  session?: Session | null;
26
26
  user?: User | null;
27
27
  sessionId?: string | null;
@@ -31,17 +31,17 @@ export declare const luciaAuthCookieMiddleware: () => (_request: Request, contex
31
31
  *
32
32
  * @link {@see https://lucia-auth.com/guides/email-and-password/basics#register-user}
33
33
  */
34
- export declare const luciaAuthSignupHandler: () => (request: Request, context: Universal.Context, _runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
34
+ export declare const luciaAuthSignupHandler: () => (request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, _runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
35
35
  /**
36
36
  * Sign in user handler
37
37
  *
38
38
  * @link {@see https://lucia-auth.com/guides/email-and-password/basics#sign-in-user}
39
39
  */
40
- export declare const luciaAuthLoginHandler: () => (request: Request, context: Universal.Context, _runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
40
+ export declare const luciaAuthLoginHandler: () => (request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, _runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
41
41
  /**
42
42
  * Log out user handler
43
43
  */
44
- export declare const luciaAuthLogoutHandler: () => (_request: Request, context: Universal.Context & {
44
+ export declare const luciaAuthLogoutHandler: () => (_request: Request<unknown, CfProperties<unknown>>, context: Universal.Context & {
45
45
  session?: Session | null;
46
46
  }) => Promise<Response>;
47
47
  /**
@@ -55,7 +55,7 @@ export declare const luciaGithubLoginHandler: () => () => Promise<Response>;
55
55
  *
56
56
  * @link {@see https://lucia-auth.com/guides/oauth/basics#validate-callback}
57
57
  */
58
- export declare const luciaGithubCallbackHandler: () => (request: Request, context: Universal.Context, _runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
58
+ export declare const luciaGithubCallbackHandler: () => (request: Request<unknown, CfProperties<unknown>>, context: Universal.Context, _runtime: import("@universal-middleware/core").RuntimeAdapter) => Promise<Response>;
59
59
  export declare function validateInput(username: string | null, password: string | null): {
60
60
  error: {
61
61
  username: string | null;
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- oWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ EJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/mantine/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await oWs(props);
9
+ const content = await EJs(props);
10
10
  const todo = `
11
11
  ## Mantine
12
12
 
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/mantine/dist/files/$package.json.js
@@ -47,10 +47,10 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@mantine/core": "^7.13.0",
51
- "@mantine/hooks": "^7.13.0",
52
- "@types/node": "^18.19.54",
53
- "@types/react": "^18.3.10",
50
+ "@mantine/core": "^7.13.2",
51
+ "@mantine/hooks": "^7.13.2",
52
+ "@types/node": "^18.19.55",
53
+ "@types/react": "^18.3.11",
54
54
  "@types/react-dom": "^18.3.0",
55
55
  postcss: "^8.4.47",
56
56
  "postcss-preset-mantine": "^1.17.0",
@@ -112,7 +112,7 @@ var require_package = __commonJS({
112
112
  }
113
113
  });
114
114
  async function getPackageJson(props) {
115
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
115
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
116
116
  return packageJson.addDevDependencies(["postcss", "postcss-preset-mantine", "postcss-simple-vars"]).addDependencies(["@mantine/core", "@mantine/hooks"]);
117
117
  }
118
118
  export {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prettier/dist/files/$package.json.js
@@ -47,7 +47,7 @@ var require_package = __commonJS({
47
47
  license: "MIT",
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
- "@types/node": "^18.19.54",
50
+ "@types/node": "^18.19.55",
51
51
  prettier: "^3.3.3"
52
52
  },
53
53
  dependencies: {
@@ -65,7 +65,7 @@ var require_package = __commonJS({
65
65
  }
66
66
  });
67
67
  async function getPackageJson(props) {
68
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
68
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
69
69
  return packageJson.addDevDependencies(["prettier"]);
70
70
  }
71
71
  export {
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- vWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ jJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prisma/dist/files/$.env.js
8
8
  async function getEnv(props) {
9
9
  const envContent = await props.readfile?.();
10
- return vWs(
10
+ return jJs(
11
11
  envContent,
12
12
  "DATABASE_URL",
13
13
  "postgresql://johndoe:randompassword@localhost:5432/mydb?schema=public",
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- oWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ EJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prisma/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await oWs(props);
9
+ const content = await EJs(props);
10
10
  const todo = `
11
11
  ## *Prisma*
12
12
  ### Setup
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- lWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ AJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/prisma/dist/files/$package.json.js
@@ -48,7 +48,7 @@ var require_package = __commonJS({
48
48
  devDependencies: {
49
49
  "@batijs/compile": "workspace:*",
50
50
  "@prisma/client": "^5.20.0",
51
- "@types/node": "^18.19.54",
51
+ "@types/node": "^18.19.55",
52
52
  colorette: "^2.0.20",
53
53
  prisma: "^5.20.0"
54
54
  },
@@ -67,7 +67,7 @@ var require_package = __commonJS({
67
67
  }
68
68
  });
69
69
  async function getPackageJson(props) {
70
- const packageJson = await lWs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
70
+ const packageJson = await AJs(props, await Promise.resolve().then(() => __toESM(require_package(), 1)).then((x) => x.default));
71
71
  return packageJson.setScript("prisma:studio", {
72
72
  value: "prisma studio",
73
73
  precedence: 1
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
- oWs
4
- } from "../../../../chunk-VJJDTBIT.js";
3
+ EJs
4
+ } from "../../../../chunk-IQ3PY4ZR.js";
5
5
  import "../../../../chunk-LU7IBQI7.js";
6
6
 
7
7
  // ../../boilerplates/react/dist/files/$README.md.js
8
8
  async function getReadme(props) {
9
- const content = await oWs(props);
9
+ const content = await EJs(props);
10
10
  const about = `
11
11
  ## React
12
12