@batijs/cli 0.0.530 → 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 (125) 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 -2
  7. package/dist/boilerplates/@batijs/aws/bati.config.js +9 -1
  8. package/dist/boilerplates/@batijs/aws/files/$README.md.js +2 -2
  9. package/dist/boilerplates/@batijs/aws/files/$TODO.md.js +2 -2
  10. package/dist/boilerplates/@batijs/aws/files/$package.json.js +2 -2
  11. package/dist/boilerplates/@batijs/aws/files/$tsconfig.json.js +2 -2
  12. package/dist/boilerplates/@batijs/aws/files/$vite.config.ts.js +1 -1
  13. package/dist/boilerplates/@batijs/aws/files/cdk/$stack-name-suffix.json.js +1 -1
  14. package/dist/boilerplates/@batijs/biome/bati.config.js +1 -1
  15. package/dist/boilerplates/@batijs/biome/files/$biome.json.js +1 -1
  16. package/dist/boilerplates/@batijs/biome/files/$package.json.js +2 -2
  17. package/dist/boilerplates/@batijs/cloudflare/bati.config.js +9 -1
  18. package/dist/boilerplates/@batijs/cloudflare/files/$TODO.md.js +2 -2
  19. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +2 -2
  20. package/dist/boilerplates/@batijs/cloudflare/files/$tsconfig.json.js +2 -2
  21. package/dist/boilerplates/@batijs/compiled/bati.config.js +1 -1
  22. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +2 -2
  23. package/dist/boilerplates/@batijs/compiled/files/$vite.config.ts.js +2 -2
  24. package/dist/boilerplates/@batijs/d1/bati.config.js +17 -1
  25. package/dist/boilerplates/@batijs/d1/files/$TODO.md.js +2 -2
  26. package/dist/boilerplates/@batijs/d1/files/$package.json.js +2 -2
  27. package/dist/boilerplates/@batijs/d1/files/$wrangler.jsonc.js +2 -2
  28. package/dist/boilerplates/@batijs/d1-sqlite/bati.config.js +1 -1
  29. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +2 -2
  30. package/dist/boilerplates/@batijs/drizzle/bati.config.js +17 -1
  31. package/dist/boilerplates/@batijs/drizzle/files/$.env.js +2 -2
  32. package/dist/boilerplates/@batijs/drizzle/files/$TODO.md.js +2 -2
  33. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +2 -2
  34. package/dist/boilerplates/@batijs/eslint/bati.config.js +1 -1
  35. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +2 -2
  36. package/dist/boilerplates/@batijs/express/bati.config.js +1 -1
  37. package/dist/boilerplates/@batijs/express/files/$package.json.js +2 -2
  38. package/dist/boilerplates/@batijs/fastify/bati.config.js +1 -1
  39. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +2 -2
  40. package/dist/boilerplates/@batijs/google-analytics/bati.config.js +1 -1
  41. package/dist/boilerplates/@batijs/google-analytics/files/$.env.js +2 -2
  42. package/dist/boilerplates/@batijs/h3/bati.config.js +1 -1
  43. package/dist/boilerplates/@batijs/h3/files/$package.json.js +2 -2
  44. package/dist/boilerplates/@batijs/hono/bati.config.js +1 -1
  45. package/dist/boilerplates/@batijs/hono/files/$package.json.js +2 -2
  46. package/dist/boilerplates/@batijs/mantine/bati.config.js +1 -1
  47. package/dist/boilerplates/@batijs/mantine/files/$README.md.js +2 -2
  48. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +2 -2
  49. package/dist/boilerplates/@batijs/photon/bati.config.js +1 -1
  50. package/dist/boilerplates/@batijs/photon/files/$README.md.js +2 -2
  51. package/dist/boilerplates/@batijs/photon/files/$package.json.js +2 -2
  52. package/dist/boilerplates/@batijs/plausible.io/bati.config.js +1 -1
  53. package/dist/boilerplates/@batijs/plausible.io/files/$TODO.md.js +2 -2
  54. package/dist/boilerplates/@batijs/pnpm/bati.config.js +1 -1
  55. package/dist/boilerplates/@batijs/pnpm/files/$pnpm-workspace.yaml.js +2 -2
  56. package/dist/boilerplates/@batijs/prettier/bati.config.js +1 -1
  57. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +2 -2
  58. package/dist/boilerplates/@batijs/prisma/bati.config.js +13 -1
  59. package/dist/boilerplates/@batijs/prisma/files/$.env.js +2 -2
  60. package/dist/boilerplates/@batijs/prisma/files/$TODO.md.js +7 -5
  61. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +2 -2
  62. package/dist/boilerplates/@batijs/react/bati.config.js +1 -1
  63. package/dist/boilerplates/@batijs/react/files/$README.md.js +2 -2
  64. package/dist/boilerplates/@batijs/react/files/$package.json.js +2 -2
  65. package/dist/boilerplates/@batijs/react/files/$tsconfig.json.js +2 -2
  66. package/dist/boilerplates/@batijs/react/files/$vite.config.ts.js +2 -2
  67. package/dist/boilerplates/@batijs/react-sentry/bati.config.js +1 -1
  68. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +2 -2
  69. package/dist/boilerplates/@batijs/sentry/bati.config.js +9 -1
  70. package/dist/boilerplates/@batijs/sentry/files/$.env.js +2 -2
  71. package/dist/boilerplates/@batijs/sentry/files/$README.md.js +2 -2
  72. package/dist/boilerplates/@batijs/sentry/files/$TODO.md.js +2 -2
  73. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +2 -2
  74. package/dist/boilerplates/@batijs/sentry/files/$vite.config.ts.js +2 -2
  75. package/dist/boilerplates/@batijs/sentry/files/pages/$+client.ts.js +2 -2
  76. package/dist/boilerplates/@batijs/shadcn-ui/bati.config.js +1 -1
  77. package/dist/boilerplates/@batijs/shadcn-ui/files/$README.md.js +2 -2
  78. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +2 -2
  79. package/dist/boilerplates/@batijs/shadcn-ui/files/$tsconfig.json.js +2 -2
  80. package/dist/boilerplates/@batijs/shadcn-ui/files/$vite.config.ts.js +2 -2
  81. package/dist/boilerplates/@batijs/shared/bati.config.js +1 -1
  82. package/dist/boilerplates/@batijs/shared/files/$README.md.js +2 -2
  83. package/dist/boilerplates/@batijs/shared/files/$TODO.md.js +2 -2
  84. package/dist/boilerplates/@batijs/shared-db/bati.config.js +1 -1
  85. package/dist/boilerplates/@batijs/shared-server/bati.config.js +1 -1
  86. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +2 -2
  87. package/dist/boilerplates/@batijs/shared-todo/bati.config.js +1 -1
  88. package/dist/boilerplates/@batijs/solid/bati.config.js +1 -1
  89. package/dist/boilerplates/@batijs/solid/files/$README.md.js +2 -2
  90. package/dist/boilerplates/@batijs/solid/files/$package.json.js +2 -2
  91. package/dist/boilerplates/@batijs/solid/files/$tsconfig.json.js +2 -2
  92. package/dist/boilerplates/@batijs/solid/files/$vite.config.ts.js +2 -2
  93. package/dist/boilerplates/@batijs/solid-sentry/bati.config.js +1 -1
  94. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +2 -2
  95. package/dist/boilerplates/@batijs/sqlite/bati.config.js +9 -1
  96. package/dist/boilerplates/@batijs/sqlite/files/$.env.js +2 -2
  97. package/dist/boilerplates/@batijs/sqlite/files/$TODO.md.js +7 -5
  98. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +2 -2
  99. package/dist/boilerplates/@batijs/tailwindcss/bati.config.js +1 -1
  100. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -2
  101. package/dist/boilerplates/@batijs/tailwindcss/files/$vite.config.ts.js +2 -2
  102. package/dist/boilerplates/@batijs/telefunc/bati.config.js +1 -1
  103. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +2 -2
  104. package/dist/boilerplates/@batijs/telefunc/files/$vite.config.ts.js +2 -2
  105. package/dist/boilerplates/@batijs/trpc/bati.config.js +1 -1
  106. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +2 -2
  107. package/dist/boilerplates/@batijs/ts-rest/bati.config.js +1 -1
  108. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +2 -2
  109. package/dist/boilerplates/@batijs/vercel/bati.config.js +1 -1
  110. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +2 -2
  111. package/dist/boilerplates/@batijs/vercel/files/pages/$+config.ts.js +2 -2
  112. package/dist/boilerplates/@batijs/vue/bati.config.js +1 -1
  113. package/dist/boilerplates/@batijs/vue/files/$README.md.js +2 -2
  114. package/dist/boilerplates/@batijs/vue/files/$package.json.js +2 -2
  115. package/dist/boilerplates/@batijs/vue/files/$tsconfig.json.js +2 -2
  116. package/dist/boilerplates/@batijs/vue/files/$vite.config.ts.js +2 -2
  117. package/dist/boilerplates/@batijs/vue-sentry/bati.config.js +1 -1
  118. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +2 -2
  119. package/dist/{chunk-DHZ7AZKP.js → chunk-IHX3I5SM.js} +5 -0
  120. package/dist/{chunk-L2AHUKWS.js → chunk-VIDUWABF.js} +4 -4
  121. package/dist/index.js +71 -22
  122. package/dist/{jiti-ZW3ADF2F-7XIEJQMO.js → jiti-ZW3ADF2F-2SLKRUEN.js} +1 -1
  123. package/dist/{prompt-HBAIF7ML.js → prompt-YBELZKBA.js} +1 -1
  124. package/dist/{src-5HGZFBZ3-KQZBBJSW.js → src-5HGZFBZ3-CGUDMVWF.js} +1 -1
  125. package/package.json +5 -5
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  r1s
7
- } from "../../../../chunk-L2AHUKWS.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/solid/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-L2AHUKWS.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/solid/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-L2AHUKWS.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/solid-sentry/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -3,13 +3,21 @@ 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
10
10
  var bati_config_default = i({
11
11
  if(meta) {
12
12
  return meta.BATI.has("sqlite") && !meta.BATI.has("cloudflare");
13
+ },
14
+ nextSteps(_meta, packageManager) {
15
+ return [
16
+ {
17
+ type: "command",
18
+ step: `${packageManager} sqlite:migrate`
19
+ }
20
+ ];
13
21
  }
14
22
  });
15
23
  export {
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  UMs
7
- } from "../../../../chunk-L2AHUKWS.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/sqlite/dist/files/$.env.js
12
12
  async function getEnv(props) {
@@ -3,21 +3,23 @@ import { createRequire as createRequire_BATI_CLI } from 'module';
3
3
  const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
- t1s
7
- } from "../../../../chunk-L2AHUKWS.js";
6
+ t1s,
7
+ xas
8
+ } from "../../../../chunk-VIDUWABF.js";
8
9
  import "../../../../chunk-IAWYWZSL.js";
9
- import "../../../../chunk-DHZ7AZKP.js";
10
+ import "../../../../chunk-IHX3I5SM.js";
10
11
 
11
12
  // ../../boilerplates/sqlite/dist/files/$TODO.md.js
12
13
  async function getTodo(props) {
13
14
  if (props.meta.BATI.hasD1) return;
14
15
  const content = await t1s(props);
16
+ const pmCmd = xas().run;
15
17
  const todo = `
16
18
  ## Sqlite
17
19
 
18
- Ensure that \`DATABASE_URL\` is configured in \`.env\` file, then create the database:
20
+ Ensure that \`DATABASE_URL\` is configured as desired in \`.env\` file, then create the database:
19
21
  \`\`\`bash
20
- pnpm sqlite:migrate # creates sqlite tables
22
+ ${pmCmd} sqlite:migrate # creates sqlite tables
21
23
  \`\`\`
22
24
  `;
23
25
  content.addMarkdownFeature(todo, "sqlite");
@@ -4,9 +4,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
4
4
 
5
5
  import {
6
6
  n1s
7
- } from "../../../../chunk-L2AHUKWS.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/sqlite/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -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-L2AHUKWS.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/tailwindcss/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  i1s,
7
7
  iQn
8
- } from "../../../../chunk-L2AHUKWS.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/tailwindcss/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-L2AHUKWS.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/telefunc/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -5,9 +5,9 @@ const require = createRequire_BATI_CLI(import.meta.url);
5
5
  import {
6
6
  i1s,
7
7
  iQn
8
- } from "../../../../chunk-L2AHUKWS.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/telefunc/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-L2AHUKWS.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/trpc/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -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-L2AHUKWS.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/ts-rest/dist/files/$package.json.js
12
12
  var __create = Object.create;
@@ -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-L2AHUKWS.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-L2AHUKWS.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-L2AHUKWS.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-L2AHUKWS.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-L2AHUKWS.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-L2AHUKWS.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-L2AHUKWS.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);
@@ -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.530", 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-L2AHUKWS.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({
@@ -226,13 +227,6 @@ async function mergeDts({
226
227
  const res = await Sas(currentAst.generate().code, meta, {
227
228
  filepath
228
229
  });
229
- console.log({
230
- filepath,
231
- code: currentAst.generate().code,
232
- clean: res.code,
233
- previousContent,
234
- fileContent
235
- });
236
230
  return clearExports(res.code, meta);
237
231
  }
238
232
  function clearExports(code, meta) {
@@ -4068,7 +4062,7 @@ function createConsola2(options = {}) {
4068
4062
  defaults: { level },
4069
4063
  stdout: process.stdout,
4070
4064
  stderr: process.stderr,
4071
- prompt: (...args) => import("./prompt-HBAIF7ML.js").then((m) => m.prompt(...args)),
4065
+ prompt: (...args) => import("./prompt-YBELZKBA.js").then((m) => m.prompt(...args)),
4072
4066
  reporters: options.reporters || [
4073
4067
  options.fancy ?? !(T || R) ? new FancyReporter() : new BasicReporter()
4074
4068
  ],
@@ -4542,6 +4536,52 @@ async function runMain(cmd, opts = {}) {
4542
4536
  }
4543
4537
 
4544
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
+ });
4545
4585
  import * as tty2 from "tty";
4546
4586
  var {
4547
4587
  env: env2 = {},
@@ -4659,7 +4699,7 @@ var {
4659
4699
  // package.json
4660
4700
  var package_default = {
4661
4701
  name: "@batijs/cli",
4662
- version: "0.0.530",
4702
+ version: "0.0.531",
4663
4703
  type: "module",
4664
4704
  scripts: {
4665
4705
  "check-types": "tsc --noEmit",
@@ -4813,7 +4853,7 @@ function printInit() {
4813
4853
  \u{1F528} ${cyan("Vike Scaffolder")} \u{1F528} ${gray(`v${version}`)}
4814
4854
  `);
4815
4855
  }
4816
- async function printOK(dist, flags2) {
4856
+ async function printOK(dist, flags2, nextSteps) {
4817
4857
  const indent = 1;
4818
4858
  const list = prr("-", gray, indent);
4819
4859
  const cmd = prr("$", gray, indent);
@@ -4829,7 +4869,15 @@ async function printOK(dist, flags2) {
4829
4869
  ${bold("Next steps:")}`);
4830
4870
  console.log(cmd(`cd ${distPretty}`));
4831
4871
  console.log(cmd(`${pm.name} install`));
4832
- 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)) {
4833
4881
  console.log(prr("\u2022\uFE0F", gray, indent)(`Check ${bold("TODO.md")} for remaining steps`));
4834
4882
  }
4835
4883
  console.log(cmd(`${pm.run} dev`));
@@ -5098,14 +5146,13 @@ async function run() {
5098
5146
  if (b2.config.enforce === "post") return -1;
5099
5147
  return 0;
5100
5148
  });
5101
- for (const bl of boilerplates) {
5102
- if (testFlags(meta, bl)) {
5103
- if (bl.subfolders.includes("files")) {
5104
- sources.push(join(dir, bl.folder, "files"));
5105
- }
5106
- if (bl.subfolders.includes("hooks")) {
5107
- hooks.push(join(dir, bl.folder, "hooks"));
5108
- }
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"));
5109
5156
  }
5110
5157
  }
5111
5158
  const hooksMap = await retrieveHooks(hooks);
@@ -5122,7 +5169,9 @@ async function run() {
5122
5169
  if (!args["skip-git"]) {
5123
5170
  gitInit(args.project);
5124
5171
  }
5125
- 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);
5126
5175
  }
5127
5176
  });
5128
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";