@batijs/cli 0.0.301 → 0.0.303

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 (86) hide show
  1. package/dist/boilerplates/@batijs/auth0/files/$.env.js +5 -5
  2. package/dist/boilerplates/@batijs/auth0/files/$README.md.js +3 -3
  3. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +4 -4
  4. package/dist/boilerplates/@batijs/aws/files/$README.md.js +3 -3
  5. package/dist/boilerplates/@batijs/aws/files/$package.json.js +8 -8
  6. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +3 -3
  7. package/dist/boilerplates/@batijs/biome/files/$package.json.js +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 +6 -6
  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 +5 -5
  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/edgedb/files/$README.md.js +3 -3
  22. package/dist/boilerplates/@batijs/edgedb/files/$package.json.js +4 -4
  23. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +7 -7
  24. package/dist/boilerplates/@batijs/express/files/$package.json.js +6 -6
  25. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +7 -7
  26. package/dist/boilerplates/@batijs/firebase-auth/files/$.env.js +3 -3
  27. package/dist/boilerplates/@batijs/firebase-auth/files/$README.md.js +3 -3
  28. package/dist/boilerplates/@batijs/firebase-auth/files/$package.json.js +5 -5
  29. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +3 -3
  30. package/dist/boilerplates/@batijs/h3/files/$package.json.js +7 -7
  31. package/dist/boilerplates/@batijs/hattip/files/$package.json.js +14 -14
  32. package/dist/boilerplates/@batijs/hono/files/$package.json.js +8 -8
  33. package/dist/boilerplates/@batijs/hono/files/$vite.config.ts.js +5 -5
  34. package/dist/boilerplates/@batijs/lucia-auth/files/$.env.js +4 -4
  35. package/dist/boilerplates/@batijs/lucia-auth/files/$README.md.js +3 -3
  36. package/dist/boilerplates/@batijs/lucia-auth/files/$package.json.js +7 -7
  37. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +3 -3
  38. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +4 -4
  39. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +4 -4
  40. package/dist/boilerplates/@batijs/prisma/files/$.env.js +3 -3
  41. package/dist/boilerplates/@batijs/prisma/files/$README.md.js +3 -3
  42. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +4 -4
  43. package/dist/boilerplates/@batijs/react/files/$README.md.js +3 -3
  44. package/dist/boilerplates/@batijs/react/files/$package.json.js +5 -5
  45. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +3 -3
  46. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +5 -5
  47. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +5 -5
  48. package/dist/boilerplates/@batijs/sentry/files/$.env.js +4 -4
  49. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +3 -3
  50. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +4 -4
  51. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +7 -7
  52. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +9 -9
  53. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +3 -3
  54. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +6 -6
  55. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +3 -3
  56. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +5 -5
  57. package/dist/boilerplates/@batijs/shared/files/$README.md.js +9 -9
  58. package/dist/boilerplates/@batijs/shared/files/package.json +1 -1
  59. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +5 -5
  60. package/dist/boilerplates/@batijs/solid/files/$README.md.js +3 -3
  61. package/dist/boilerplates/@batijs/solid/files/$package.json.js +5 -5
  62. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +3 -3
  63. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +5 -5
  64. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +5 -5
  65. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +3 -3
  66. package/dist/boilerplates/@batijs/sqlite/files/$README.md.js +3 -3
  67. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +4 -4
  68. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +6 -6
  69. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +6 -6
  70. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +5 -5
  71. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +4 -4
  72. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +8 -8
  73. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +4 -4
  74. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +5 -5
  75. package/dist/boilerplates/@batijs/vercel/files/$tsconfig.json.js +3 -3
  76. package/dist/boilerplates/@batijs/vercel/files/$vite.config.ts.js +5 -5
  77. package/dist/boilerplates/@batijs/vue/files/$README.md.js +3 -3
  78. package/dist/boilerplates/@batijs/vue/files/$package.json.js +5 -5
  79. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +3 -3
  80. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +6 -6
  81. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +5 -5
  82. package/dist/{chunk-SZXNC2TZ.js → chunk-OEG6KKMD.js} +100989 -100076
  83. package/dist/index.js +19 -19
  84. package/dist/{jiti-47QGSKUN-GAWDFARE.js → jiti-GY3WFVF7-AVYYESPC.js} +13273 -13000
  85. package/dist/{src-ZXRHWERC-5GKONSS7.js → src-UC4KONXL-JRSBNWST.js} +56 -49
  86. package/package.json +7 -7
@@ -3,12 +3,12 @@ import {
3
3
  n
4
4
  } from "./chunk-LU7IBQI7.js";
5
5
 
6
- // ../core/dist/src-ZXRHWERC.js
6
+ // ../core/dist/src-UC4KONXL.js
7
7
  import { createRequire } from "module";
8
8
  import { fileURLToPath as BATI_fileURLToPath } from "node:url";
9
9
  import { dirname as BATI_dirname } from "node:path";
10
10
  import w from "node:path";
11
- import _ from "node:fs/promises";
11
+ import V from "node:fs/promises";
12
12
  import { fileURLToPath as d } from "node:url";
13
13
  var require2 = createRequire(import.meta.url);
14
14
  var __filename = BATI_fileURLToPath(import.meta.url);
@@ -16,12 +16,12 @@ var __dirname = BATI_dirname(__filename);
16
16
  function i(s) {
17
17
  if (!s || !(s instanceof URL) && typeof s != "string") throw new TypeError("Path must be a non-empty string or URL.");
18
18
  }
19
- function M(s) {
19
+ function U(s) {
20
20
  if (typeof s != "string" && !(s instanceof ArrayBuffer) && !ArrayBuffer.isView(s)) throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.");
21
21
  }
22
- function U(s) {
22
+ function N(s) {
23
23
  if (s instanceof Uint8Array) return s;
24
- if (typeof s == "string") return j.encode(s);
24
+ if (typeof s == "string") return z.encode(s);
25
25
  if (s instanceof ArrayBuffer) return new Uint8Array(s);
26
26
  if (ArrayBuffer.isView(s)) {
27
27
  let t = s.buffer.slice(s.byteOffset, s.byteOffset + s.byteLength);
@@ -29,16 +29,16 @@ function U(s) {
29
29
  }
30
30
  throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.");
31
31
  }
32
- var v;
33
- var j;
32
+ var M;
33
+ var z;
34
34
  var E;
35
35
  var T;
36
36
  var A;
37
37
  var g;
38
- var u;
39
- var F = n(() => {
38
+ var l;
39
+ var O = n(() => {
40
40
  "use strict";
41
- v = new TextDecoder(), j = new TextEncoder(), E = class extends Error {
41
+ M = new TextDecoder(), z = new TextEncoder(), E = class extends Error {
42
42
  constructor(t) {
43
43
  super(`Method "${t}" does not exist on impl.`);
44
44
  }
@@ -58,7 +58,7 @@ var F = n(() => {
58
58
  constructor(t, e) {
59
59
  this.type = t, this.data = e;
60
60
  }
61
- }, u = class {
61
+ }, l = class {
62
62
  #t;
63
63
  #e;
64
64
  #i = /* @__PURE__ */ new Map();
@@ -108,12 +108,12 @@ var F = n(() => {
108
108
  async text(t) {
109
109
  i(t);
110
110
  let e = await this.#a("bytes", "text", t);
111
- return e ? v.decode(e) : void 0;
111
+ return e ? M.decode(e) : void 0;
112
112
  }
113
113
  async json(t) {
114
114
  i(t);
115
115
  let e = await this.#a("bytes", "json", t);
116
- return e ? JSON.parse(v.decode(e)) : void 0;
116
+ return e ? JSON.parse(M.decode(e)) : void 0;
117
117
  }
118
118
  async arrayBuffer(t) {
119
119
  return i(t), (await this.#a("bytes", "arrayBuffer", t))?.buffer;
@@ -122,13 +122,13 @@ var F = n(() => {
122
122
  return i(t), this.#r("bytes", t);
123
123
  }
124
124
  async write(t, e) {
125
- i(t), M(e), this.#s("write", t, e);
126
- let r = U(e);
125
+ i(t), U(e), this.#s("write", t, e);
126
+ let r = N(e);
127
127
  return this.#c("write", t, r);
128
128
  }
129
129
  async append(t, e) {
130
- i(t), M(e), this.#s("append", t, e);
131
- let r = U(e);
130
+ i(t), U(e), this.#s("append", t, e);
131
+ let r = N(e);
132
132
  return this.#c("append", t, r);
133
133
  }
134
134
  async isFile(t) {
@@ -151,16 +151,23 @@ var F = n(() => {
151
151
  }
152
152
  async *walk(t, { directoryFilter: e = () => true, entryFilter: r = () => true } = {}) {
153
153
  i(t), this.#s("walk", t, { directoryFilter: e, entryFilter: r });
154
- let n2 = async function* (o, { directoryFilter: c, entryFilter: l, parentPath: L = "", depth: S = 1 }) {
155
- for await (let f of this.#c("list", o)) {
156
- let h = { path: f.name, depth: S, ...f };
157
- L && (h.path = `${L}/${h.path}`);
158
- let p = l(h);
159
- if (p.then && (p = await p), p && (yield h), f.isDirectory) {
160
- let y = c(h);
154
+ let n2 = async function* (o, { directoryFilter: c, entryFilter: f, parentPath: L = "", depth: S = 1 }) {
155
+ let v;
156
+ try {
157
+ v = await this.#c("list", o);
158
+ } catch (a) {
159
+ if (a.code === "ENOENT") return;
160
+ throw a;
161
+ }
162
+ for await (let a of v) {
163
+ let u = { path: a.name, depth: S, ...a };
164
+ L && (u.path = `${L}/${u.path}`);
165
+ let p = f(u);
166
+ if (p.then && (p = await p), p && (yield u), a.isDirectory) {
167
+ let y = c(u);
161
168
  if (y.then && (y = await y), !y) continue;
162
- let k = o instanceof URL ? new URL(f.name, o.href.endsWith("/") ? o.href : `${o.href}/`) : `${o.endsWith("/") ? o : `${o}/`}${f.name}`;
163
- yield* n2(k, { directoryFilter: c, entryFilter: l, parentPath: h.path, depth: S + 1 });
169
+ let j = o instanceof URL ? new URL(a.name, o.href.endsWith("/") ? o.href : `${o.href}/`) : `${o.endsWith("/") ? o : `${o}/`}${a.name}`;
170
+ yield* n2(j, { directoryFilter: c, entryFilter: f, parentPath: u.path, depth: S + 1 });
164
171
  }
165
172
  }
166
173
  }.bind(this);
@@ -186,7 +193,7 @@ var F = n(() => {
186
193
  }
187
194
  };
188
195
  });
189
- var O = n(() => {
196
+ var F = n(() => {
190
197
  "use strict";
191
198
  });
192
199
  var $ = n(() => {
@@ -194,20 +201,20 @@ var $ = n(() => {
194
201
  });
195
202
  var x = n(() => {
196
203
  "use strict";
197
- F();
198
204
  O();
205
+ F();
199
206
  $();
200
207
  });
201
- function z(s, t) {
208
+ function W(s, t) {
202
209
  let e = Date.now() - s.lastAttempt, r = Math.max(s.lastAttempt - s.timestamp, 1), n2 = Math.min(r * 1.2, t);
203
210
  return e >= n2;
204
211
  }
205
- function W(s, t) {
212
+ function _(s, t) {
206
213
  return s.age > t;
207
214
  }
208
215
  var b;
209
216
  var m;
210
- var N = n(() => {
217
+ var B = n(() => {
211
218
  "use strict";
212
219
  b = class {
213
220
  id = Math.random().toString(36).slice(2);
@@ -258,11 +265,11 @@ var N = n(() => {
258
265
  let e = () => {
259
266
  this.#s = setTimeout(() => this.#o(), 0);
260
267
  };
261
- if (W(t, this.#e)) {
268
+ if (_(t, this.#e)) {
262
269
  t.reject(t.error), e();
263
270
  return;
264
271
  }
265
- if (!z(t, this.#i)) {
272
+ if (!W(t, this.#i)) {
266
273
  this.#t.push(t), e();
267
274
  return;
268
275
  }
@@ -276,16 +283,16 @@ var N = n(() => {
276
283
  }
277
284
  };
278
285
  });
279
- var V;
286
+ var Y;
280
287
  var D;
281
288
  var R;
282
289
  var I;
283
- var it;
284
- var B = n(() => {
290
+ var nt;
291
+ var k = n(() => {
285
292
  "use strict";
286
293
  x();
287
- N();
288
- V = /* @__PURE__ */ new Set(["ENFILE", "EMFILE"]), D = class {
294
+ B();
295
+ Y = /* @__PURE__ */ new Set(["ENFILE", "EMFILE"]), D = class {
289
296
  name;
290
297
  isFile;
291
298
  isDirectory;
@@ -296,8 +303,8 @@ var B = n(() => {
296
303
  }, R = class {
297
304
  #t;
298
305
  #e;
299
- constructor({ fsp: t = _ } = {}) {
300
- this.#t = t, this.#e = new m((e) => V.has(e.code));
306
+ constructor({ fsp: t = V } = {}) {
307
+ this.#t = t, this.#e = new m((e) => Y.has(e.code));
301
308
  }
302
309
  bytes(t) {
303
310
  return this.#e.retry(() => this.#t.readFile(t)).then((e) => new Uint8Array(e.buffer)).catch((e) => {
@@ -374,8 +381,8 @@ var B = n(() => {
374
381
  let r = t instanceof URL ? d(t) : t, n2 = e instanceof URL ? d(e) : e;
375
382
  await this.createDirectory(e);
376
383
  for await (let o of this.list(t)) {
377
- let c = w.join(r, o.name), l = w.join(n2, o.name);
378
- o.isDirectory ? await this.copyAll(c, l) : await this.copy(c, l);
384
+ let c = w.join(r, o.name), f = w.join(n2, o.name);
385
+ o.isDirectory ? await this.copyAll(c, f) : await this.copy(c, f);
379
386
  }
380
387
  }
381
388
  move(t, e) {
@@ -387,20 +394,20 @@ var B = n(() => {
387
394
  async moveAll(t, e) {
388
395
  return this.#t.rename(t, e);
389
396
  }
390
- }, I = class extends u {
397
+ }, I = class extends l {
391
398
  constructor({ fsp: t } = {}) {
392
399
  super({ impl: new R({ fsp: t }) });
393
400
  }
394
- }, it = new I();
401
+ }, nt = new I();
395
402
  });
396
- var Y = n(() => {
397
- B();
403
+ var K = n(() => {
404
+ k();
398
405
  x();
399
406
  });
400
- Y();
407
+ K();
401
408
  export {
402
- u as Hfs,
409
+ l as Hfs,
403
410
  I as NodeHfs,
404
411
  R as NodeHfsImpl,
405
- it as hfs
412
+ nt as hfs
406
413
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.301",
3
+ "version": "0.0.303",
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",
@@ -8,24 +8,24 @@
8
8
  "repository": "https://github.com/vikejs/bati",
9
9
  "license": "MIT",
10
10
  "devDependencies": {
11
- "@types/node": "^18.19.59",
11
+ "@types/node": "^18.19.64",
12
12
  "@types/which": "^3.0.4",
13
13
  "citty": "^0.1.6",
14
14
  "colorette": "^2.0.20",
15
15
  "esbuild": "^0.24.0",
16
- "execa": "^9.5.0",
16
+ "execa": "^9.5.1",
17
17
  "rimraf": "^6.0.1",
18
18
  "sift": "^17.1.3",
19
19
  "tsup": "^8.3.5",
20
20
  "typescript": "^5.6.3",
21
21
  "unplugin-purge-polyfills": "^0.0.7",
22
22
  "vite": "^5.4.10",
23
- "@batijs/compile": "0.0.301",
24
- "@batijs/build": "0.0.301"
23
+ "@batijs/build": "0.0.303",
24
+ "@batijs/compile": "0.0.303"
25
25
  },
26
26
  "dependencies": {
27
- "@batijs/core": "0.0.301",
28
- "@batijs/features": "0.0.301"
27
+ "@batijs/core": "0.0.303",
28
+ "@batijs/features": "0.0.303"
29
29
  },
30
30
  "bin": "./dist/index.js",
31
31
  "exports": {