@batijs/cli 0.0.529 → 0.0.531

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 (150) hide show
  1. package/dist/boilerplates/@batijs/auth0/bati.config.js +9 -1
  2. package/dist/boilerplates/@batijs/auth0/files/$.env.js +2 -2
  3. package/dist/boilerplates/@batijs/auth0/files/$TODO.md.js +2 -2
  4. package/dist/boilerplates/@batijs/auth0/files/$wrangler.jsonc.js +2 -2
  5. package/dist/boilerplates/@batijs/authjs/bati.config.js +1 -1
  6. package/dist/boilerplates/@batijs/authjs/files/$package.json.js +2 -3
  7. package/dist/boilerplates/@batijs/authjs/files/server/authjs-handler.ts +2 -4
  8. package/dist/boilerplates/@batijs/aws/bati.config.js +9 -1
  9. package/dist/boilerplates/@batijs/aws/files/$README.md.js +2 -2
  10. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +2 -2
  11. package/dist/boilerplates/@batijs/aws/files/$package.json.js +2 -2
  12. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +2 -2
  13. package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +1 -1
  14. package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +1 -1
  15. package/dist/boilerplates/@batijs/biome/bati.config.js +1 -1
  16. package/dist/boilerplates/@batijs/biome/files/$biome.json.js +11 -4
  17. package/dist/boilerplates/@batijs/biome/files/$package.json.js +2 -2
  18. package/dist/boilerplates/@batijs/cloudflare/bati.config.js +9 -1
  19. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +2 -2
  20. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +5 -6
  21. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +2 -2
  22. package/dist/boilerplates/@batijs/compiled/bati.config.js +1 -1
  23. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +2 -2
  24. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +2 -2
  25. package/dist/boilerplates/@batijs/d1/bati.config.js +17 -1
  26. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +2 -2
  27. package/dist/boilerplates/@batijs/d1/files/$package.json.js +2 -3
  28. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +2 -2
  29. package/dist/boilerplates/@batijs/d1/files/database/d1/helpers.ts +0 -1
  30. package/dist/boilerplates/@batijs/d1/files/global.d.ts +3 -8
  31. package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.ts +0 -1
  32. package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +1 -1
  33. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +2 -3
  34. package/dist/boilerplates/@batijs/d1-sqlite/files/database/d1/queries/todos.ts +0 -2
  35. package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.ts +1 -2
  36. package/dist/boilerplates/@batijs/drizzle/bati.config.js +17 -1
  37. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +2 -2
  38. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +2 -2
  39. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +2 -2
  40. package/dist/boilerplates/@batijs/drizzle/files/database/drizzle/db.ts +0 -1
  41. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.ts +0 -1
  42. package/dist/boilerplates/@batijs/eslint/bati.config.js +1 -1
  43. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
  44. package/dist/boilerplates/@batijs/eslint/files/eslint.config.ts +2 -0
  45. package/dist/boilerplates/@batijs/express/bati.config.js +1 -1
  46. package/dist/boilerplates/@batijs/express/files/$package.json.js +2 -2
  47. package/dist/boilerplates/@batijs/fastify/bati.config.js +1 -1
  48. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +2 -2
  49. package/dist/boilerplates/@batijs/google-analytics/bati.config.js +1 -1
  50. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +2 -2
  51. package/dist/boilerplates/@batijs/h3/bati.config.js +1 -1
  52. package/dist/boilerplates/@batijs/h3/files/$package.json.js +2 -2
  53. package/dist/boilerplates/@batijs/hono/bati.config.js +1 -1
  54. package/dist/boilerplates/@batijs/hono/files/$package.json.js +2 -3
  55. package/dist/boilerplates/@batijs/mantine/bati.config.js +1 -1
  56. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +2 -2
  57. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +2 -2
  58. package/dist/boilerplates/@batijs/photon/bati.config.js +1 -1
  59. package/dist/boilerplates/@batijs/photon/files/$README.md.js +2 -2
  60. package/dist/boilerplates/@batijs/photon/files/$package.json.js +2 -2
  61. package/dist/boilerplates/@batijs/plausible.io/bati.config.js +1 -1
  62. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +2 -2
  63. package/dist/boilerplates/@batijs/pnpm/bati.config.js +1 -1
  64. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +2 -2
  65. package/dist/boilerplates/@batijs/prettier/bati.config.js +1 -1
  66. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +2 -2
  67. package/dist/boilerplates/@batijs/prisma/bati.config.js +13 -1
  68. package/dist/boilerplates/@batijs/prisma/files/$.env.js +2 -2
  69. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +7 -5
  70. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +2 -2
  71. package/dist/boilerplates/@batijs/react/bati.config.js +1 -1
  72. package/dist/boilerplates/@batijs/react/files/$README.md.js +2 -2
  73. package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
  74. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +2 -2
  75. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +2 -2
  76. package/dist/boilerplates/@batijs/react-sentry/bati.config.js +1 -1
  77. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +2 -2
  78. package/dist/boilerplates/@batijs/sentry/bati.config.js +9 -1
  79. package/dist/boilerplates/@batijs/sentry/files/$.env.js +2 -2
  80. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +2 -2
  81. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +2 -2
  82. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +2 -2
  83. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +2 -2
  84. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +2 -2
  85. package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +1 -1
  86. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +2 -2
  87. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +2 -2
  88. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +2 -2
  89. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +2 -2
  90. package/dist/boilerplates/@batijs/shared/bati.config.js +1 -1
  91. package/dist/boilerplates/@batijs/shared/files/$README.md.js +2 -2
  92. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +2 -2
  93. package/dist/boilerplates/@batijs/shared-db/bati.config.js +1 -1
  94. package/dist/boilerplates/@batijs/shared-db/files/server/db-middleware.ts +0 -1
  95. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.ts +0 -1
  96. package/dist/boilerplates/@batijs/shared-server/bati.config.js +1 -1
  97. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +2 -3
  98. package/dist/boilerplates/@batijs/shared-server/files/server/create-todo-handler.ts +0 -1
  99. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.ts +0 -1
  100. package/dist/boilerplates/@batijs/shared-todo/bati.config.js +1 -1
  101. package/dist/boilerplates/@batijs/shared-todo/files/global.d.ts +1 -2
  102. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.ts +1 -3
  103. package/dist/boilerplates/@batijs/solid/bati.config.js +1 -1
  104. package/dist/boilerplates/@batijs/solid/files/$README.md.js +2 -2
  105. package/dist/boilerplates/@batijs/solid/files/$package.json.js +2 -2
  106. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +2 -2
  107. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +2 -2
  108. package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +1 -1
  109. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +2 -2
  110. package/dist/boilerplates/@batijs/sqlite/bati.config.js +9 -1
  111. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +2 -2
  112. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +7 -5
  113. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +2 -2
  114. package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +1 -1
  115. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -2
  116. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +2 -2
  117. package/dist/boilerplates/@batijs/telefunc/bati.config.js +1 -1
  118. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +2 -3
  119. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +2 -2
  120. package/dist/boilerplates/@batijs/telefunc/files/global.d.ts +4 -1
  121. package/dist/boilerplates/@batijs/telefunc/files/server/telefunc-handler.ts +0 -1
  122. package/dist/boilerplates/@batijs/trpc/bati.config.js +1 -1
  123. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +2 -3
  124. package/dist/boilerplates/@batijs/trpc/files/server/trpc-handler.ts +0 -1
  125. package/dist/boilerplates/@batijs/trpc/files/trpc/server.ts +0 -1
  126. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.ts +1 -1
  127. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.ts +4 -4
  128. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.ts +0 -1
  129. package/dist/boilerplates/@batijs/ts-rest/bati.config.js +1 -1
  130. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +2 -3
  131. package/dist/boilerplates/@batijs/ts-rest/files/server/ts-rest-handler.ts +0 -1
  132. package/dist/boilerplates/@batijs/vercel/bati.config.js +1 -1
  133. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -2
  134. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +2 -2
  135. package/dist/boilerplates/@batijs/vue/bati.config.js +1 -1
  136. package/dist/boilerplates/@batijs/vue/files/$README.md.js +2 -2
  137. package/dist/boilerplates/@batijs/vue/files/$package.json.js +2 -2
  138. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +2 -2
  139. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +2 -2
  140. package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +1 -1
  141. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +2 -2
  142. package/dist/{chunk-DHZ7AZKP.js → chunk-IHX3I5SM.js} +5 -0
  143. package/dist/{chunk-F525H6YP.js → chunk-VIDUWABF.js} +6 -6
  144. package/dist/index.js +71 -15
  145. package/dist/{jiti-ZW3ADF2F-7XIEJQMO.js → jiti-ZW3ADF2F-2SLKRUEN.js} +1 -1
  146. package/dist/{prompt-HBAIF7ML.js → prompt-YBELZKBA.js} +1 -1
  147. package/dist/{src-5HGZFBZ3-KQZBBJSW.js → src-5HGZFBZ3-CGUDMVWF.js} +1 -1
  148. package/package.json +5 -5
  149. package/dist/boilerplates/@batijs/cloudflare/files/worker-configuration.d.ts +0 -1
  150. package/dist/boilerplates/@batijs/d1/files/$tsconfig.json.js +0 -19
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vercel/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  i1s
7
- } from "../../../../../chunk-F525H6YP.js";
7
+ } from "../../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../../chunk-IAWYWZSL.js";
9
- import "../../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vercel/dist/files/pages/$+config.ts.js
12
12
  async function getViteConfig(props) {
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  t1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vue/dist/files/$README.md.js
12
12
  async function getReadme(props) {
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vue/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  r1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vue/dist/files/$tsconfig.json.js
12
12
  async function getTsConfig(props) {
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  i1s,
7
7
  iQn
8
- } from "../../../../chunk-F525H6YP.js";
8
+ } from "../../../../chunk-VIDUWABF.js";
9
9
  import "../../../../chunk-IAWYWZSL.js";
10
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
11
11
 
12
12
  // ../../boilerplates/vue/dist/files/$vite.config.ts.js
13
13
  async function getViteConfig(props) {
@@ -3,7 +3,7 @@ function t(e, r) {
3
3
  if (!e) throw new Error(r);
4
4
  }
5
5
  function i(e) {
6
- return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), e;
6
+ return "enforce" in e && t(e.enforce === "pre" || e.enforce === "post", `'enforce' must be 'pre' or 'post', was ${e.enforce}`), "if" in e && t(typeof e.if == "function", "'if' must be a function"), "nextSteps" in e && t(typeof e.nextSteps == "function", "'nextSteps' must be a function"), e;
7
7
  }
8
8
 
9
9
  // bati.config.ts
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-F525H6YP.js";
7
+ } from "../../../../chunk-VIDUWABF.js";
8
8
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
9
+ import "../../../../chunk-IHX3I5SM.js";
10
10
 
11
11
  // ../../boilerplates/vue-sentry/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -17,6 +17,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
17
17
  var __commonJS = (cb, mod) => function __require2() {
18
18
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
19
  };
20
+ var __export = (target, all) => {
21
+ for (var name in all)
22
+ __defProp(target, name, { get: all[name], enumerable: true });
23
+ };
20
24
  var __copyProps = (to, from, except, desc) => {
21
25
  if (from && typeof from === "object" || typeof from === "function") {
22
26
  for (let key of __getOwnPropNames(from))
@@ -37,5 +41,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
37
41
  export {
38
42
  __require,
39
43
  __commonJS,
44
+ __export,
40
45
  __toESM
41
46
  };
@@ -41282,7 +41282,7 @@ var S_t = o((hAs, TAr) => {
41282
41282
  return c;
41283
41283
  }
41284
41284
  static async loadJiti() {
41285
- let { createJiti: e } = await import("./jiti-ZW3ADF2F-7XIEJQMO.js"), n2 = gAr().version;
41285
+ let { createJiti: e } = await import("./jiti-ZW3ADF2F-2SLKRUEN.js"), n2 = gAr().version;
41286
41286
  return { createJiti: e, version: n2 };
41287
41287
  }
41288
41288
  static async locateConfigFileToUse({ useConfigFile: e, cwd: n2, fromDirectory: i = n2 }) {
@@ -41368,7 +41368,7 @@ var IAr = o((yAs, NAr) => {
41368
41368
  return iTi(BT.sep === "\\" ? oge(t2) : t2);
41369
41369
  }
41370
41370
  async function hTi({ basePath: t2, pattern: e }) {
41371
- let n2 = false, { hfs: i } = await import("./src-5HGZFBZ3-KQZBBJSW.js"), a = oge(BT.relative(t2, e)), c = new xAr(a, CAr), p2 = { directoryFilter(f) {
41371
+ let n2 = false, { hfs: i } = await import("./src-5HGZFBZ3-CGUDMVWF.js"), a = oge(BT.relative(t2, e)), c = new xAr(a, CAr), p2 = { directoryFilter(f) {
41372
41372
  return !n2 && c.match(f.path, true);
41373
41373
  }, entryFilter(f) {
41374
41374
  return n2 || f.isDirectory ? false : c.match(f.path) ? (n2 = true, true) : false;
@@ -41380,7 +41380,7 @@ var IAr = o((yAs, NAr) => {
41380
41380
  let c = /* @__PURE__ */ new Map(), p2 = e.map((T, b) => {
41381
41381
  let E = oge(BT.relative(t2, T));
41382
41382
  return c.set(E, e[b]), new xAr(E, CAr);
41383
- }), f = /* @__PURE__ */ new Set([...c.keys()]), { hfs: _ } = await import("./src-5HGZFBZ3-KQZBBJSW.js"), g = _.walk(t2, { async directoryFilter(T) {
41383
+ }), f = /* @__PURE__ */ new Set([...c.keys()]), { hfs: _ } = await import("./src-5HGZFBZ3-CGUDMVWF.js"), g = _.walk(t2, { async directoryFilter(T) {
41384
41384
  if (!p2.some((C) => C.match(T.path, true))) return false;
41385
41385
  let b = BT.resolve(t2, T.path);
41386
41386
  return !(await i.loadConfigArrayForDirectory(b)).isDirectoryIgnored(b);
@@ -208790,7 +208790,7 @@ function d0t(t2, e, n2, i, a, c) {
208790
208790
  t2.report({ node: n2, message: "bati/as-expression-if", *fix(g) {
208791
208791
  let y, T = false;
208792
208792
  for (let b of _) {
208793
- if (b.type !== "TSPropertySignature" || b.key.type !== "Literal" && b.key.type !== "Identifier" || b.typeAnnotation?.type !== "TSTypeAnnotation") throw console.log(), new Error("Linter: Malformed BATI.If members type");
208793
+ if (b.type !== "TSPropertySignature" || b.key.type !== "Literal" && b.key.type !== "Identifier" || b.typeAnnotation?.type !== "TSTypeAnnotation") throw new Error("Linter: Malformed BATI.If members type");
208794
208794
  let E = "value" in b.key ? b.key.value : b.key.name, C = e.text.slice(b.typeAnnotation.typeAnnotation.range[0], b.typeAnnotation.typeAnnotation.range[1]);
208795
208795
  if (E === "_") {
208796
208796
  y = C;
@@ -208801,7 +208801,7 @@ function d0t(t2, e, n2, i, a, c) {
208801
208801
  break;
208802
208802
  }
208803
208803
  }
208804
- T || (y ? yield g.replaceTextRange(f, c(y, p2)) : yield g.removeRange(f));
208804
+ T || (y ? yield g.replaceTextRange(f, c(y, p2)) : n2.parent?.parent?.type === "Identifier" ? yield g.removeRange([f[0] - 2, f[1]]) : yield g.removeRange(f));
208805
208805
  } });
208806
208806
  } else throw new Error("Linter: Malformed BATI.If type");
208807
208807
  break;
@@ -209320,7 +209320,7 @@ async function Sas(t2, e, n2) {
209320
209320
  }
209321
209321
  return !e.BATI.has("eslint") && qzr.test(c) && (c = c.replace(qzr, ""), f = true), !e.BATI.has("biome") && Vzr.test(c) && (c = c.replace(Vzr, ""), f = true), { code: f ? await Unt(c, n2) : c, context: p2 };
209322
209322
  }
209323
- var SSt = { name: "@batijs/core", version: "0.0.529", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.25", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.48.0", "@typescript-eslint/utils": "^8.48.0", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.0", eslint: "^9.39.1", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^11.0.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.6.2", squirrelly: "^9.1.0", tsup: "^8.5.1", tsx: "^4.20.6", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.13", "vue-eslint-parser": "^10.2.0", which: "^6.0.0", yaml: "^2.8.1" }, exports: { ".": "./dist/index.js", "./config": "./dist/config.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { config: ["./dist/config.d.ts"], types: ["./global.d.ts"] } }, files: ["dist/"] };
209323
+ var SSt = { name: "@batijs/core", version: "0.0.531", description: "", type: "module", types: "./dist/index.d.ts", scripts: { "check-types": "tsc --noEmit", vue: "tsx src/parse/linters/vue.ts", test: "vitest run", "test:ci": "vitest run", build: "tsup" }, keywords: [], author: "Jo\xEBl Charles <joel.charles91@gmail.com>", repository: "https://github.com/vikejs/bati", license: "MIT", devDependencies: { "@batijs/features": "workspace:*", "@types/eslint": "^9.6.1", "@types/estree": "^1.0.8", "@types/node": "^20.19.25", "@types/which": "^3.0.4", "@typescript-eslint/parser": "^8.48.0", "@typescript-eslint/utils": "^8.48.0", "attributes-parser": "^2.2.3", colorette: "^2.0.20", esbuild: "^0.27.0", eslint: "^9.39.1", "eslint-plugin-solid": "^0.14.5", "eslint-rule-composer": "^0.3.0", espree: "^11.0.0", magicast: "^0.5.1", "mdast-builder": "^1.1.1", "mdast-util-from-markdown": "^2.0.2", "mdast-util-to-markdown": "^2.1.2", "mdast-util-to-string": "^4.0.0", "mdast-util-toc": "^7.1.0", prettier: "^3.6.2", squirrelly: "^9.1.0", tsup: "^8.5.1", tsx: "^4.20.6", typescript: "^5.9.3", "unplugin-purge-polyfills": "^0.1.0", vitest: "^4.0.13", "vue-eslint-parser": "^10.2.0", which: "^6.0.0", yaml: "^2.8.1" }, exports: { ".": "./dist/index.js", "./config": "./dist/config.js", "./types": { types: "./global.d.ts" } }, typesVersions: { "*": { config: ["./dist/config.d.ts"], types: ["./global.d.ts"] } }, files: ["dist/"] };
209324
209324
  function xas() {
209325
209325
  return process.env.npm_config_user_agent ? Cas(process.env.npm_config_user_agent) : { name: "npm", run: "npm run" };
209326
209326
  }
package/dist/index.js CHANGED
@@ -10,13 +10,14 @@ import {
10
10
  jMs,
11
11
  prr,
12
12
  xas
13
- } from "./chunk-F525H6YP.js";
13
+ } from "./chunk-VIDUWABF.js";
14
14
  import "./chunk-IAWYWZSL.js";
15
15
  import {
16
16
  __commonJS,
17
+ __export,
17
18
  __require,
18
19
  __toESM
19
- } from "./chunk-DHZ7AZKP.js";
20
+ } from "./chunk-IHX3I5SM.js";
20
21
 
21
22
  // ../../node_modules/.pnpm/cli-width@4.1.0/node_modules/cli-width/index.js
22
23
  var require_cli_width = __commonJS({
@@ -4061,7 +4062,7 @@ function createConsola2(options = {}) {
4061
4062
  defaults: { level },
4062
4063
  stdout: process.stdout,
4063
4064
  stderr: process.stderr,
4064
- prompt: (...args) => import("./prompt-HBAIF7ML.js").then((m) => m.prompt(...args)),
4065
+ prompt: (...args) => import("./prompt-YBELZKBA.js").then((m) => m.prompt(...args)),
4065
4066
  reporters: options.reporters || [
4066
4067
  options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
4067
4068
  ],
@@ -4535,6 +4536,52 @@ async function runMain(cmd, opts = {}) {
4535
4536
  }
4536
4537
 
4537
4538
  // ../../node_modules/.pnpm/colorette@2.0.20/node_modules/colorette/index.js
4539
+ var colorette_exports = {};
4540
+ __export(colorette_exports, {
4541
+ bgBlack: () => bgBlack,
4542
+ bgBlackBright: () => bgBlackBright,
4543
+ bgBlue: () => bgBlue,
4544
+ bgBlueBright: () => bgBlueBright,
4545
+ bgCyan: () => bgCyan,
4546
+ bgCyanBright: () => bgCyanBright,
4547
+ bgGreen: () => bgGreen,
4548
+ bgGreenBright: () => bgGreenBright,
4549
+ bgMagenta: () => bgMagenta,
4550
+ bgMagentaBright: () => bgMagentaBright,
4551
+ bgRed: () => bgRed,
4552
+ bgRedBright: () => bgRedBright,
4553
+ bgWhite: () => bgWhite,
4554
+ bgWhiteBright: () => bgWhiteBright,
4555
+ bgYellow: () => bgYellow,
4556
+ bgYellowBright: () => bgYellowBright,
4557
+ black: () => black,
4558
+ blackBright: () => blackBright,
4559
+ blue: () => blue,
4560
+ blueBright: () => blueBright,
4561
+ bold: () => bold,
4562
+ createColors: () => createColors2,
4563
+ cyan: () => cyan,
4564
+ cyanBright: () => cyanBright,
4565
+ dim: () => dim,
4566
+ gray: () => gray,
4567
+ green: () => green,
4568
+ greenBright: () => greenBright,
4569
+ hidden: () => hidden,
4570
+ inverse: () => inverse,
4571
+ isColorSupported: () => isColorSupported2,
4572
+ italic: () => italic,
4573
+ magenta: () => magenta,
4574
+ magentaBright: () => magentaBright,
4575
+ red: () => red,
4576
+ redBright: () => redBright,
4577
+ reset: () => reset,
4578
+ strikethrough: () => strikethrough,
4579
+ underline: () => underline,
4580
+ white: () => white,
4581
+ whiteBright: () => whiteBright,
4582
+ yellow: () => yellow,
4583
+ yellowBright: () => yellowBright
4584
+ });
4538
4585
  import * as tty2 from "tty";
4539
4586
  var {
4540
4587
  env: env2 = {},
@@ -4652,7 +4699,7 @@ var {
4652
4699
  // package.json
4653
4700
  var package_default = {
4654
4701
  name: "@batijs/cli",
4655
- version: "0.0.529",
4702
+ version: "0.0.531",
4656
4703
  type: "module",
4657
4704
  scripts: {
4658
4705
  "check-types": "tsc --noEmit",
@@ -4806,7 +4853,7 @@ function printInit() {
4806
4853
  \u{1F528} ${cyan("Vike Scaffolder")} \u{1F528} ${gray(`v${version}`)}
4807
4854
  `);
4808
4855
  }
4809
- async function printOK(dist, flags2) {
4856
+ async function printOK(dist, flags2, nextSteps) {
4810
4857
  const indent = 1;
4811
4858
  const list = prr("-", gray, indent);
4812
4859
  const cmd = prr("$", gray, indent);
@@ -4822,7 +4869,15 @@ async function printOK(dist, flags2) {
4822
4869
  ${bold("Next steps:")}`);
4823
4870
  console.log(cmd(`cd ${distPretty}`));
4824
4871
  console.log(cmd(`${pm.name} install`));
4825
- if (await hasRemainingSteps(dist)) {
4872
+ if (nextSteps.length > 0) {
4873
+ for (const step of nextSteps) {
4874
+ if (step.type === "command") {
4875
+ console.log(cmd(step.step));
4876
+ } else {
4877
+ console.log(prr("\u2022\uFE0F", gray, indent)(step.step));
4878
+ }
4879
+ }
4880
+ } else if (await hasRemainingSteps(dist)) {
4826
4881
  console.log(prr("\u2022\uFE0F", gray, indent)(`Check ${bold("TODO.md")} for remaining steps`));
4827
4882
  }
4828
4883
  console.log(cmd(`${pm.run} dev`));
@@ -5091,14 +5146,13 @@ async function run() {
5091
5146
  if (b2.config.enforce === "post") return -1;
5092
5147
  return 0;
5093
5148
  });
5094
- for (const bl of boilerplates) {
5095
- if (testFlags(meta, bl)) {
5096
- if (bl.subfolders.includes("files")) {
5097
- sources.push(join(dir, bl.folder, "files"));
5098
- }
5099
- if (bl.subfolders.includes("hooks")) {
5100
- hooks.push(join(dir, bl.folder, "hooks"));
5101
- }
5149
+ const filteredBoilerplates = boilerplates.filter((bl) => testFlags(meta, bl));
5150
+ for (const bl of filteredBoilerplates) {
5151
+ if (bl.subfolders.includes("files")) {
5152
+ sources.push(join(dir, bl.folder, "files"));
5153
+ }
5154
+ if (bl.subfolders.includes("hooks")) {
5155
+ hooks.push(join(dir, bl.folder, "hooks"));
5102
5156
  }
5103
5157
  }
5104
5158
  const hooksMap = await retrieveHooks(hooks);
@@ -5115,7 +5169,9 @@ async function run() {
5115
5169
  if (!args["skip-git"]) {
5116
5170
  gitInit(args.project);
5117
5171
  }
5118
- await printOK(args.project, flags2);
5172
+ const nextSteps = filteredBoilerplates.flatMap((b2) => b2.config.nextSteps?.(meta, pm.run, colorette_exports)).filter(Boolean);
5173
+ nextSteps.sort((s2) => s2.order ?? 0);
5174
+ await printOK(args.project, flags2, nextSteps);
5119
5175
  }
5120
5176
  });
5121
5177
  await runMain(main2);
@@ -8,7 +8,7 @@ import {
8
8
  o,
9
9
  q
10
10
  } from "./chunk-IAWYWZSL.js";
11
- import "./chunk-DHZ7AZKP.js";
11
+ import "./chunk-IHX3I5SM.js";
12
12
 
13
13
  // ../core/dist/jiti-ZW3ADF2F.js
14
14
  import { createRequire as BATI_core_createRequire } from "module";
@@ -2,7 +2,7 @@
2
2
  import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
- import "./chunk-DHZ7AZKP.js";
5
+ import "./chunk-IHX3I5SM.js";
6
6
 
7
7
  // ../../node_modules/.pnpm/consola@3.4.2/node_modules/consola/dist/chunks/prompt.mjs
8
8
  import "util";
@@ -5,7 +5,7 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  n
7
7
  } from "./chunk-IAWYWZSL.js";
8
- import "./chunk-DHZ7AZKP.js";
8
+ import "./chunk-IHX3I5SM.js";
9
9
 
10
10
  // ../core/dist/src-5HGZFBZ3.js
11
11
  import { createRequire as BATI_core_createRequire } from "module";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.529",
3
+ "version": "0.0.531",
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",
@@ -19,12 +19,12 @@
19
19
  "typescript": "^5.9.3",
20
20
  "unplugin-purge-polyfills": "^0.1.0",
21
21
  "vite": "^7.2.4",
22
- "@batijs/compile": "0.0.529",
23
- "@batijs/build": "0.0.529"
22
+ "@batijs/build": "0.0.531",
23
+ "@batijs/compile": "0.0.531"
24
24
  },
25
25
  "dependencies": {
26
- "@batijs/core": "0.0.529",
27
- "@batijs/features": "0.0.529"
26
+ "@batijs/features": "0.0.531",
27
+ "@batijs/core": "0.0.531"
28
28
  },
29
29
  "bin": "./cli.js",
30
30
  "exports": {
@@ -1 +0,0 @@
1
- // TODO: generate this file by running `$ wranger types` — see TODO.md
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env node
2
- import { createRequire as createRequire_BATI_CLI } from 'module';
3
- const require = createRequire_BATI_CLI(import.meta.url);
4
-
5
- import {
6
- r1s
7
- } from "../../../../chunk-F525H6YP.js";
8
- import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
10
-
11
- // ../../boilerplates/d1/dist/files/$tsconfig.json.js
12
- async function getTsConfig(props) {
13
- const tsConfig = await r1s(props);
14
- tsConfig.compilerOptions.types = [...tsConfig.compilerOptions.types ?? [], "@cloudflare/workers-types"];
15
- return tsConfig;
16
- }
17
- export {
18
- getTsConfig as default
19
- };