@batijs/cli 0.0.243 → 0.0.245

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 (84) hide show
  1. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +92 -0
  2. package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +14 -13
  3. package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.ts +4 -2
  4. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +2 -2
  5. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
  6. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +8 -8
  7. package/dist/boilerplates/@batijs/drizzle/files/database/{db.ts → drizzleDb.ts} +1 -2
  8. package/dist/boilerplates/@batijs/drizzle/files/database/seed.ts +4 -3
  9. package/dist/boilerplates/@batijs/drizzle/files/drizzle.config.ts +1 -1
  10. package/dist/boilerplates/@batijs/drizzle/types/database/drizzleDb.d.ts +1 -0
  11. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
  12. package/dist/boilerplates/@batijs/express/files/$package.json.js +4 -4
  13. package/dist/boilerplates/@batijs/express/files/express-entry.ts +31 -9
  14. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +6 -6
  15. package/dist/boilerplates/@batijs/fastify/files/fastify-entry.ts +33 -45
  16. package/dist/boilerplates/@batijs/fastify/types/fastify-entry.d.ts +0 -4
  17. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +5 -4
  18. package/dist/boilerplates/@batijs/firebase-auth/files/server/firebase-auth-middleware.ts +16 -18
  19. package/dist/boilerplates/@batijs/firebase-auth/types/server/firebase-auth-middleware.d.ts +8 -3
  20. package/dist/boilerplates/@batijs/h3/files/$package.json.js +5 -2
  21. package/dist/boilerplates/@batijs/h3/files/h3-entry.ts +33 -24
  22. package/dist/boilerplates/@batijs/h3/types/h3-entry.d.ts +0 -4
  23. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +5 -3
  24. package/dist/boilerplates/@batijs/hattip/files/hattip-entry.ts +33 -24
  25. package/dist/boilerplates/@batijs/hono/files/$package.json.js +7 -15
  26. package/dist/boilerplates/@batijs/hono/files/hono-entry.ts +31 -9
  27. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +23 -0
  28. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +29 -0
  29. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +135 -0
  30. package/dist/boilerplates/@batijs/lucia-auth/files/database/auth-actions.ts +54 -0
  31. package/dist/boilerplates/@batijs/lucia-auth/files/database/schema/auth.ts +41 -0
  32. package/dist/boilerplates/@batijs/lucia-auth/files/database/sqliteDb.ts +30 -0
  33. package/dist/boilerplates/@batijs/lucia-auth/files/lib/lucia-auth.ts +96 -0
  34. package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/+guard.ts +11 -0
  35. package/dist/boilerplates/@batijs/lucia-auth/files/pages/login/style.css +94 -0
  36. package/dist/boilerplates/@batijs/lucia-auth/files/server/lucia-auth-handlers.ts +340 -0
  37. package/dist/boilerplates/@batijs/lucia-auth/files/vike.d.ts +11 -0
  38. package/dist/boilerplates/@batijs/lucia-auth/types/database/auth-actions.d.ts +9 -0
  39. package/dist/boilerplates/@batijs/lucia-auth/types/database/schema/auth.d.ts +167 -0
  40. package/dist/boilerplates/@batijs/lucia-auth/types/database/sqliteDb.d.ts +2 -0
  41. package/dist/boilerplates/@batijs/lucia-auth/types/lib/lucia-auth.d.ts +43 -0
  42. package/dist/boilerplates/@batijs/lucia-auth/types/pages/login/+guard.d.ts +3 -0
  43. package/dist/boilerplates/@batijs/lucia-auth/types/server/lucia-auth-handlers.d.ts +58 -0
  44. package/dist/boilerplates/@batijs/react/files/$package.json.js +4 -4
  45. package/dist/boilerplates/@batijs/react/files/layouts/LayoutDefault.tsx +1 -0
  46. package/dist/boilerplates/@batijs/react/files/pages/+config.ts +1 -1
  47. package/dist/boilerplates/@batijs/react-lucia-auth/files/pages/login/+Page.tsx +96 -0
  48. package/dist/boilerplates/@batijs/react-lucia-auth/types/pages/login/+Page.d.ts +2 -0
  49. package/dist/boilerplates/@batijs/shared/files/package.json +2 -2
  50. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +103 -0
  51. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +6 -8
  52. package/dist/boilerplates/@batijs/shared-server/files/server/vike-handler.ts +3 -5
  53. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +2 -1
  54. package/dist/boilerplates/@batijs/shared-server/types/server/vike-handler.d.ts +2 -1
  55. package/dist/boilerplates/@batijs/shared-todo/files/pages/todo/+data.ts +3 -3
  56. package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
  57. package/dist/boilerplates/@batijs/solid/files/layouts/LayoutDefault.tsx +1 -0
  58. package/dist/boilerplates/@batijs/solid/files/pages/+config.ts +1 -1
  59. package/dist/boilerplates/@batijs/solid-lucia-auth/files/pages/login/+Page.tsx +96 -0
  60. package/dist/boilerplates/@batijs/solid-lucia-auth/types/pages/login/+Page.d.ts +2 -0
  61. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +3 -3
  62. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +4 -3
  63. package/dist/boilerplates/@batijs/telefunc/files/pages/todo/TodoList.telefunc.ts +3 -3
  64. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +3 -5
  65. package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.ts +2 -1
  66. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
  67. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +3 -3
  68. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -3
  69. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +6 -9
  70. package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.ts +2 -1
  71. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +4 -4
  72. package/dist/boilerplates/@batijs/vue/files/$package.json.js +7 -7
  73. package/dist/boilerplates/@batijs/vue/files/layouts/LayoutDefault.vue +2 -0
  74. package/dist/boilerplates/@batijs/vue/files/pages/+config.ts +1 -1
  75. package/dist/boilerplates/@batijs/vue/types/pages/+config.d.ts +6 -0
  76. package/dist/boilerplates/@batijs/vue-lucia-auth/files/pages/login/+Page.vue +87 -0
  77. package/dist/boilerplates/boilerplates.json +59 -0
  78. package/dist/{chunk-MFJ4ET44.js → chunk-FWD3UPBV.js} +5 -5
  79. package/dist/index.js +14 -14
  80. package/dist/{prompt-SUR66HP4.js → prompt-EYFUFJSI.js} +4 -4
  81. package/package.json +8 -8
  82. package/dist/boilerplates/@batijs/drizzle/types/database/db.d.ts +0 -2
  83. /package/dist/boilerplates/@batijs/drizzle/files/database/{schema.ts → schema/todos.ts} +0 -0
  84. /package/dist/boilerplates/@batijs/drizzle/types/database/{schema.d.ts → schema/todos.d.ts} +0 -0
@@ -5,6 +5,8 @@
5
5
  <Link href="/"> Welcome </Link>
6
6
  <Link href="/todo"> Todo </Link>
7
7
  <Link href="/star-wars"> Data Fetching </Link>
8
+ <!-- BATI.has("firebase-auth") || BATI.has("lucia-auth") -->
9
+ <Link href="/login">Login</Link>
8
10
  </Sidebar>
9
11
  <Content><slot /></Content>
10
12
  </div>
@@ -7,7 +7,7 @@ import Layout from "../layouts/LayoutDefault.vue";
7
7
  export default {
8
8
  Layout,
9
9
  Head,
10
- //# BATI.has("auth0") || BATI.has("firebase-auth") || BATI.has("authjs")
10
+ //# BATI.has("auth0") || BATI.has("firebase-auth") || BATI.has("authjs") || BATI.has("lucia-auth")
11
11
  passToClient: ["user"],
12
12
  // <title>
13
13
  title: "My Vike App",
@@ -79,6 +79,12 @@ declare const _default: {
79
79
  };
80
80
  cumulative: true;
81
81
  };
82
+ onBeforeRenderHtml: {
83
+ env: {
84
+ server: true;
85
+ };
86
+ cumulative: true;
87
+ };
82
88
  onAfterRenderHtml: {
83
89
  env: {
84
90
  server: true;
@@ -0,0 +1,87 @@
1
+ <template>
2
+ <div class="form">
3
+ <div class="form-content">
4
+ <header>Login / Sign Up</header>
5
+ <form>
6
+ <div class="field">
7
+ <input
8
+ id="username"
9
+ v-model="formData.username"
10
+ type="text"
11
+ name="username"
12
+ placeholder="Username"
13
+ autocomplete="username"
14
+ />
15
+ </div>
16
+ <span v-if="error.username" class="field-error">{{ error.username }}</span>
17
+
18
+ <div class="field">
19
+ <input id="password" v-model="formData.password" type="password" name="password" placeholder="Password" />
20
+ </div>
21
+ <span v-if="error.password" class="field-error">{{ error.password }}</span>
22
+ <span v-if="error.invalid" class="field-error">{{ error.invalid }}</span>
23
+
24
+ <div class="field button-group">
25
+ <button type="button" class="button-field signup-button" @click.prevent="handleOnSubmit('signup')">
26
+ Sign Up
27
+ </button>
28
+ <button type="submit" class="button-field login-button" @click.prevent="handleOnSubmit('login')">
29
+ Login
30
+ </button>
31
+ </div>
32
+ </form>
33
+ </div>
34
+
35
+ <div class="media-options">
36
+ <a href="/api/login/github" class="field github">
37
+ <img
38
+ src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA0OTYgNTEyJz48IS0tIUZvbnQgQXdlc29tZSBGcmVlIDYuNi4wIGJ5IEBmb250YXdlc29tZSAtIGh0dHBzOi8vZm9udGF3ZXNvbWUuY29tIExpY2Vuc2UgLSBodHRwczovL2ZvbnRhd2Vzb21lLmNvbS9saWNlbnNlL2ZyZWUgQ29weXJpZ2h0IDIwMjQgRm9udGljb25zLCBJbmMuLS0+PHBhdGggZD0nTTE2NS45IDM5Ny40YzAgMi0yLjMgMy42LTUuMiAzLjYtMy4zIC4zLTUuNi0xLjMtNS42LTMuNiAwLTIgMi4zLTMuNiA1LjItMy42IDMtLjMgNS42IDEuMyA1LjYgMy42em0tMzEuMS00LjVjLS43IDIgMS4zIDQuMyA0LjMgNC45IDIuNiAxIDUuNiAwIDYuMi0ycy0xLjMtNC4zLTQuMy01LjJjLTIuNi0uNy01LjUgLjMtNi4yIDIuM3ptNDQuMi0xLjdjLTIuOSAuNy00LjkgMi42LTQuNiA0LjkgLjMgMiAyLjkgMy4zIDUuOSAyLjYgMi45LS43IDQuOS0yLjYgNC42LTQuNi0uMy0xLjktMy0zLjItNS45LTIuOXpNMjQ0LjggOEMxMDYuMSA4IDAgMTEzLjMgMCAyNTJjMCAxMTAuOSA2OS44IDIwNS44IDE2OS41IDIzOS4yIDEyLjggMi4zIDE3LjMtNS42IDE3LjMtMTIuMSAwLTYuMi0uMy00MC40LS4zLTYxLjQgMCAwLTcwIDE1LTg0LjctMjkuOCAwIDAtMTEuNC0yOS4xLTI3LjgtMzYuNiAwIDAtMjIuOS0xNS43IDEuNi0xNS40IDAgMCAyNC45IDIgMzguNiAyNS44IDIxLjkgMzguNiA1OC42IDI3LjUgNzIuOSAyMC45IDIuMy0xNiA4LjgtMjcuMSAxNi0zMy43LTU1LjktNi4yLTExMi4zLTE0LjMtMTEyLjMtMTEwLjUgMC0yNy41IDcuNi00MS4zIDIzLjYtNTguOS0yLjYtNi41LTExLjEtMzMuMyAyLjYtNjcuOSAyMC45LTYuNSA2OSAyNyA2OSAyNyAyMC01LjYgNDEuNS04LjUgNjIuOC04LjVzNDIuOCAyLjkgNjIuOCA4LjVjMCAwIDQ4LjEtMzMuNiA2OS0yNyAxMy43IDM0LjcgNS4yIDYxLjQgMi42IDY3LjkgMTYgMTcuNyAyNS44IDMxLjUgMjUuOCA1OC45IDAgOTYuNS01OC45IDEwNC4yLTExNC44IDExMC41IDkuMiA3LjkgMTcgMjIuOSAxNyA0Ni40IDAgMzMuNy0uMyA3NS40LS4zIDgzLjYgMCA2LjUgNC42IDE0LjQgMTcuMyAxMi4xQzQyOC4yIDQ1Ny44IDQ5NiAzNjIuOSA0OTYgMjUyIDQ5NiAxMTMuMyAzODMuNSA4IDI0NC44IDh6TTk3LjIgMzUyLjljLTEuMyAxLTEgMy4zIC43IDUuMiAxLjYgMS42IDMuOSAyLjMgNS4yIDEgMS4zLTEgMS0zLjMtLjctNS4yLTEuNi0xLjYtMy45LTIuMy01LjItMXptLTEwLjgtOC4xYy0uNyAxLjMgLjMgMi45IDIuMyAzLjkgMS42IDEgMy42IC43IDQuMy0uNyAuNy0xLjMtLjMtMi45LTIuMy0zLjktMi0uNi0zLjYtLjMtNC4zIC43em0zMi40IDM1LjZjLTEuNiAxLjMtMSA0LjMgMS4zIDYuMiAyLjMgMi4zIDUuMiAyLjYgNi41IDEgMS4zLTEuMyAuNy00LjMtMS4zLTYuMi0yLjItMi4zLTUuMi0yLjYtNi41LTF6bS0xMS40LTE0LjdjLTEuNiAxLTEuNiAzLjYgMCA1LjkgMS42IDIuMyA0LjMgMy4zIDUuNiAyLjMgMS42LTEuMyAxLjYtMy45IDAtNi4yLTEuNC0yLjMtNC0zLjMtNS42LTJ6Jy8+PC9zdmc+"
39
+ class="github-icon"
40
+ alt=""
41
+ />
42
+ <span>Login with Github</span>
43
+ </a>
44
+ </div>
45
+ </div>
46
+ </template>
47
+
48
+ <script lang="ts" setup>
49
+ import "./style.css";
50
+ import { navigate } from "vike/client/router";
51
+ import { ref } from "vue";
52
+
53
+ type ValidationError = {
54
+ username: string | null;
55
+ password: string | null;
56
+ invalid?: string;
57
+ };
58
+
59
+ const formData = ref({
60
+ username: "",
61
+ password: "",
62
+ });
63
+
64
+ let error = ref<ValidationError>({
65
+ username: null,
66
+ password: null,
67
+ });
68
+
69
+ async function handleOnSubmit(action: "login" | "signup") {
70
+ try {
71
+ const response = await fetch(`/api/${action}`, {
72
+ method: "POST",
73
+ body: JSON.stringify(formData.value),
74
+ headers: { "Content-Type": "application/json" },
75
+ });
76
+ const result = await response.json();
77
+ if ("error" in result) {
78
+ console.error("A validation error has occurred :", result.error);
79
+ error.value = { ...result.error };
80
+ } else {
81
+ await navigate("/");
82
+ }
83
+ } catch (err) {
84
+ console.error("An unknown error has occurred :", err);
85
+ }
86
+ }
87
+ </script>
@@ -169,6 +169,17 @@
169
169
  "files"
170
170
  ]
171
171
  },
172
+ {
173
+ "config": {
174
+ "if": {
175
+ "flag": "lucia-auth"
176
+ }
177
+ },
178
+ "folder": "@batijs/lucia-auth",
179
+ "subfolders": [
180
+ "files"
181
+ ]
182
+ },
172
183
  {
173
184
  "config": {
174
185
  "if": {
@@ -218,6 +229,22 @@
218
229
  "files"
219
230
  ]
220
231
  },
232
+ {
233
+ "config": {
234
+ "if": {
235
+ "flag": {
236
+ "$all": [
237
+ "react",
238
+ "lucia-auth"
239
+ ]
240
+ }
241
+ }
242
+ },
243
+ "folder": "@batijs/react-lucia-auth",
244
+ "subfolders": [
245
+ "files"
246
+ ]
247
+ },
221
248
  {
222
249
  "config": {
223
250
  "enforce": "pre"
@@ -321,6 +348,22 @@
321
348
  "files"
322
349
  ]
323
350
  },
351
+ {
352
+ "config": {
353
+ "if": {
354
+ "flag": {
355
+ "$all": [
356
+ "solid",
357
+ "lucia-auth"
358
+ ]
359
+ }
360
+ }
361
+ },
362
+ "folder": "@batijs/solid-lucia-auth",
363
+ "subfolders": [
364
+ "files"
365
+ ]
366
+ },
324
367
  {
325
368
  "config": {
326
369
  "if": {
@@ -402,5 +445,21 @@
402
445
  "subfolders": [
403
446
  "files"
404
447
  ]
448
+ },
449
+ {
450
+ "config": {
451
+ "if": {
452
+ "flag": {
453
+ "$all": [
454
+ "vue",
455
+ "lucia-auth"
456
+ ]
457
+ }
458
+ }
459
+ },
460
+ "folder": "@batijs/vue-lucia-auth",
461
+ "subfolders": [
462
+ "files"
463
+ ]
405
464
  }
406
465
  ]
@@ -408,8 +408,8 @@ function createConsola(options = {}) {
408
408
  }
409
409
 
410
410
  // ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/shared/consola.06ad8a64.mjs
411
- import { formatWithOptions } from "util";
412
- import { sep } from "path";
411
+ import { formatWithOptions } from "node:util";
412
+ import { sep } from "node:path";
413
413
  function parseStack(stack) {
414
414
  const cwd = process.cwd() + sep;
415
415
  const lines = stack.split("\n").splice(1).map((l) => l.trim().replace("file://", "").replace(cwd, ""));
@@ -467,7 +467,7 @@ var BasicReporter = class {
467
467
  };
468
468
 
469
469
  // ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/utils.mjs
470
- import * as tty from "tty";
470
+ import * as tty from "node:tty";
471
471
  var {
472
472
  env = {},
473
473
  argv = [],
@@ -699,7 +699,7 @@ function box(text, _opts = {}) {
699
699
  }
700
700
 
701
701
  // ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/shared/consola.36c0034f.mjs
702
- import process$1 from "process";
702
+ import process$1 from "node:process";
703
703
  var providers = [
704
704
  ["APPVEYOR"],
705
705
  ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],
@@ -1037,7 +1037,7 @@ function createConsola2(options = {}) {
1037
1037
  defaults: { level },
1038
1038
  stdout: process.stdout,
1039
1039
  stderr: process.stderr,
1040
- prompt: (...args) => import("./prompt-SUR66HP4.js").then((m) => m.prompt(...args)),
1040
+ prompt: (...args) => import("./prompt-EYFUFJSI.js").then((m) => m.prompt(...args)),
1041
1041
  reporters: options.reporters || [
1042
1042
  options.fancy ?? !(isCI2 || isTest) ? new FancyReporter() : new BasicReporter()
1043
1043
  ],
package/dist/index.js CHANGED
@@ -2,21 +2,21 @@
2
2
  import {
3
3
  colors,
4
4
  consola
5
- } from "./chunk-MFJ4ET44.js";
5
+ } from "./chunk-FWD3UPBV.js";
6
6
 
7
7
  // index.ts
8
- import { existsSync as existsSync2, rmSync } from "fs";
9
- import { execSync } from "child_process";
10
- import { access, constants, lstat, readdir, readFile as readFile3 } from "fs/promises";
11
- import { dirname, join, parse } from "path";
12
- import { fileURLToPath } from "url";
8
+ import { existsSync as existsSync2, rmSync } from "node:fs";
9
+ import { execSync } from "node:child_process";
10
+ import { access, constants, lstat, readdir, readFile as readFile3 } from "node:fs/promises";
11
+ import { dirname, join, parse } from "node:path";
12
+ import { fileURLToPath } from "node:url";
13
13
 
14
14
  // ../build/dist/index.js
15
- import { existsSync } from "fs";
16
- import { mkdir, opendir, readFile as readFile2, writeFile } from "fs/promises";
17
- import path from "path";
15
+ import { existsSync } from "node:fs";
16
+ import { mkdir, opendir, readFile as readFile2, writeFile } from "node:fs/promises";
17
+ import path from "node:path";
18
18
  import { formatCode, transformAndFormat as transformAndFormat2 } from "@batijs/core";
19
- import { readFile } from "fs/promises";
19
+ import { readFile } from "node:fs/promises";
20
20
  import { parseModule, transformAndFormat } from "@batijs/core";
21
21
  async function mergeDts({
22
22
  target,
@@ -1591,7 +1591,7 @@ var createDefaultQueryTester = function(query, options) {
1591
1591
  // package.json
1592
1592
  var package_default = {
1593
1593
  name: "@batijs/cli",
1594
- version: "0.0.243",
1594
+ version: "0.0.245",
1595
1595
  type: "module",
1596
1596
  scripts: {
1597
1597
  "check-types": "tsc --noEmit",
@@ -1611,14 +1611,14 @@ var package_default = {
1611
1611
  "@types/which": "^3.0.4",
1612
1612
  citty: "^0.1.6",
1613
1613
  colorette: "^2.0.20",
1614
- esbuild: "^0.23.0",
1615
- execa: "^9.3.0",
1614
+ esbuild: "^0.23.1",
1615
+ execa: "^9.3.1",
1616
1616
  rimraf: "^6.0.1",
1617
1617
  sift: "^17.1.3",
1618
1618
  tsup: "^8.2.4",
1619
1619
  typescript: "^5.5.4",
1620
1620
  "unplugin-purge-polyfills": "^0.0.4",
1621
- vite: "^5.4.0"
1621
+ vite: "^5.4.1"
1622
1622
  },
1623
1623
  dependencies: {
1624
1624
  "@batijs/core": "workspace:*",
@@ -3,12 +3,12 @@ import {
3
3
  colors,
4
4
  getDefaultExportFromCjs,
5
5
  isUnicodeSupported
6
- } from "./chunk-MFJ4ET44.js";
6
+ } from "./chunk-FWD3UPBV.js";
7
7
 
8
8
  // ../../node_modules/.pnpm/consola@3.2.3/node_modules/consola/dist/chunks/prompt.mjs
9
- import { stdin, stdout } from "process";
10
- import f from "readline";
11
- import { WriteStream } from "tty";
9
+ import { stdin, stdout } from "node:process";
10
+ import f from "node:readline";
11
+ import { WriteStream } from "node:tty";
12
12
  import require$$0 from "tty";
13
13
  var ESC = "\x1B";
14
14
  var CSI = `${ESC}[`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.243",
3
+ "version": "0.0.245",
4
4
  "type": "module",
5
5
  "keywords": [],
6
6
  "description": "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want",
@@ -12,20 +12,20 @@
12
12
  "@types/which": "^3.0.4",
13
13
  "citty": "^0.1.6",
14
14
  "colorette": "^2.0.20",
15
- "esbuild": "^0.23.0",
16
- "execa": "^9.3.0",
15
+ "esbuild": "^0.23.1",
16
+ "execa": "^9.3.1",
17
17
  "rimraf": "^6.0.1",
18
18
  "sift": "^17.1.3",
19
19
  "tsup": "^8.2.4",
20
20
  "typescript": "^5.5.4",
21
21
  "unplugin-purge-polyfills": "^0.0.4",
22
- "vite": "^5.4.0",
23
- "@batijs/build": "0.0.243",
24
- "@batijs/compile": "0.0.243"
22
+ "vite": "^5.4.1",
23
+ "@batijs/build": "0.0.245",
24
+ "@batijs/compile": "0.0.245"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/core": "0.0.243",
28
- "@batijs/features": "0.0.243"
27
+ "@batijs/core": "0.0.245",
28
+ "@batijs/features": "0.0.245"
29
29
  },
30
30
  "bin": "./dist/index.js",
31
31
  "exports": {
@@ -1,2 +0,0 @@
1
- import * as schema from "./schema";
2
- export declare const db: import("drizzle-orm/better-sqlite3").BetterSQLite3Database<typeof schema>;