@batijs/cli 0.0.680 → 0.0.682

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 (265) hide show
  1. package/dist/{asset-package2.json-D6GL-ZXN.js → asset-package.json-4VVNMy83.js} +5 -5
  2. package/dist/{asset-package.json-BOjU7Woi.js → asset-package.json-4nKbxP28.js} +2 -2
  3. package/dist/{asset-package.json-C00xIdyh.js → asset-package.json-8f7FGjYF.js} +3 -3
  4. package/dist/{asset-package.json-B_TX8ee9.js → asset-package.json-B-Ng5ivx.js} +3 -3
  5. package/dist/{asset-package.json-DUxbWZtN.js → asset-package.json-BCG1ITok.js} +2 -2
  6. package/dist/{asset-package2.json-BlKSajuX.js → asset-package.json-BJ83YIzS.js} +3 -3
  7. package/dist/{asset-package.json-CruhfWMO.js → asset-package.json-BKA4O4pe.js} +4 -4
  8. package/dist/{asset-package.json-D8gWgpen.js → asset-package.json-BOEJE5Wg.js} +4 -4
  9. package/dist/{asset-package.json-B4wAsHrC.js → asset-package.json-BOo2zFRW.js} +9 -9
  10. package/dist/{asset-package.json-C5n7w3va.js → asset-package.json-BU9-a27h.js} +1 -1
  11. package/dist/{asset-package.json-fzwZahig.js → asset-package.json-BZoIwTx6.js} +5 -5
  12. package/dist/{asset-package.json-BvTc-g8r.js → asset-package.json-BbrOChk1.js} +6 -6
  13. package/dist/{asset-package.json-Cd8k1mrL.js → asset-package.json-BxAluOtt.js} +4 -4
  14. package/dist/{asset-package.json-4hHDvG5M.js → asset-package.json-ByK9pW92.js} +5 -5
  15. package/dist/{asset-package.json-DcFKh5ZX.js → asset-package.json-C-pRJQmK.js} +2 -2
  16. package/dist/{asset-package.json-CZMyNgM5.js → asset-package.json-C0Oi3CTx.js} +1 -1
  17. package/dist/{asset-package.json-vwvN2THl.js → asset-package.json-C0pjbm9Y.js} +1 -1
  18. package/dist/{asset-package.json-BcaaH1fT.js → asset-package.json-C5xxSFiN.js} +3 -3
  19. package/dist/{asset-package.json-Dxl0IXo3.js → asset-package.json-CAb3mWax.js} +5 -5
  20. package/dist/{asset-package.json-BxAQjnzK.js → asset-package.json-CWtMDcmz.js} +2 -2
  21. package/dist/{asset-package.json-C3wW5Zoi.js → asset-package.json-CX0WW__c.js} +10 -10
  22. package/dist/{asset-package.json-CRn7GwYA.js → asset-package.json-Cmhu0Zen.js} +6 -6
  23. package/dist/{asset-package.json-DnHh08nC.js → asset-package.json-CsPkf_Nf.js} +2 -2
  24. package/dist/{asset-package2.json-D-jfwOiL.js → asset-package.json-CtqaM0Wq.js} +2 -2
  25. package/dist/{asset-package.json-BeVxa-zt.js → asset-package.json-DDeIXLJn.js} +1 -1
  26. package/dist/{asset-package.json-CpAP220A.js → asset-package.json-DFq3NS2g.js} +2 -2
  27. package/dist/{asset-package.json-AOA9J6K5.js → asset-package.json-DIzfdvZS.js} +4 -4
  28. package/dist/{asset-package.json-BpbN9AfX.js → asset-package.json-Da_kvCXm.js} +2 -2
  29. package/dist/{asset-package.json-OIaoYz3d.js → asset-package.json-DpC4WSwY.js} +4 -4
  30. package/dist/{asset-package.json-Cp3HQi6n.js → asset-package.json-Ds_RZpAB.js} +4 -4
  31. package/dist/{asset-package.json-B44tqElU.js → asset-package.json-DxNnEz4u.js} +2 -2
  32. package/dist/{asset-package2.json-oYvHMynY.js → asset-package.json-QLEGE9Ft.js} +4 -4
  33. package/dist/{asset-package.json-CE51k3w7.js → asset-package.json-VkUXvqsr.js} +1 -1
  34. package/dist/{asset-package.json-BrErWJQ6.js → asset-package.json-XMh1pOtf.js} +4 -4
  35. package/dist/boilerplates/@batijs/authjs/types/server/authjs-handler.d.mts +4 -5
  36. package/dist/boilerplates/@batijs/aws/files/$package.json.js +1 -1
  37. package/dist/boilerplates/@batijs/aws/files/asset-package.json.mjs +5 -5
  38. package/dist/boilerplates/@batijs/aws/types/cdk/bin/infrastructure.d.mts +3 -4
  39. package/dist/boilerplates/@batijs/aws/types/cdk/lib/vike-stack.d.mts +3 -4
  40. package/dist/boilerplates/@batijs/better-auth/files/$package.json.js +1 -1
  41. package/dist/boilerplates/@batijs/better-auth/files/asset-package.json.mjs +4 -4
  42. package/dist/boilerplates/@batijs/better-auth/files/database/drizzle/schema/auth.ts +32 -44
  43. package/dist/boilerplates/@batijs/better-auth/files/database/migrations/$better-auth.sql.js +0 -3
  44. package/dist/boilerplates/@batijs/better-auth/types/database/drizzle/schema/auth.d.mts +5 -42
  45. package/dist/boilerplates/@batijs/better-auth/types/server/better-auth-handler.d.mts +3 -4
  46. package/dist/boilerplates/@batijs/better-auth/types/server/better-auth.d.mts +2 -3
  47. package/dist/boilerplates/@batijs/biome/files/$package.json.js +1 -1
  48. package/dist/boilerplates/@batijs/biome/files/asset-package.json.mjs +2 -2
  49. package/dist/boilerplates/@batijs/cloudflare/files/$package.json.js +1 -1
  50. package/dist/boilerplates/@batijs/cloudflare/files/asset-package.json.mjs +3 -3
  51. package/dist/boilerplates/@batijs/compiled/files/$package.json.js +1 -1
  52. package/dist/boilerplates/@batijs/compiled/files/asset-package.json.mjs +2 -2
  53. package/dist/boilerplates/@batijs/d1/files/$package.json.js +1 -1
  54. package/dist/boilerplates/@batijs/d1/files/asset-package.json.mjs +2 -2
  55. package/dist/boilerplates/@batijs/d1/types/database/d1/helpers.d.mts +2 -3
  56. package/dist/boilerplates/@batijs/d1-sqlite/files/$package.json.js +1 -1
  57. package/dist/boilerplates/@batijs/d1-sqlite/files/asset-package.json.mjs +1 -1
  58. package/dist/boilerplates/@batijs/d1-sqlite/types/database/d1/queries/todos.d.mts +3 -4
  59. package/dist/boilerplates/@batijs/docker-compose/files/$docker-compose.yml.js +2 -1
  60. package/dist/boilerplates/@batijs/docker-compose/files/$package.json.js +1 -1
  61. package/dist/boilerplates/@batijs/docker-compose/files/asset-package.json.mjs +1 -1
  62. package/dist/boilerplates/@batijs/drizzle/files/$package.json.js +1 -1
  63. package/dist/boilerplates/@batijs/drizzle/files/asset-package.json.mjs +2 -2
  64. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/db.d.mts +4 -5
  65. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/queries/todos.d.mts +3 -4
  66. package/dist/boilerplates/@batijs/drizzle/types/database/drizzle/schema/todos.d.mts +4 -5
  67. package/dist/boilerplates/@batijs/elysia/files/$package.json.js +1 -1
  68. package/dist/boilerplates/@batijs/elysia/files/asset-package.json.mjs +5 -5
  69. package/dist/boilerplates/@batijs/elysia/types/server/elysia.d.mts +2 -3
  70. package/dist/boilerplates/@batijs/eslint/files/$package.json.js +1 -1
  71. package/dist/boilerplates/@batijs/eslint/files/asset-package.json.mjs +4 -4
  72. package/dist/boilerplates/@batijs/express/files/$package.json.js +1 -1
  73. package/dist/boilerplates/@batijs/express/files/asset-package.json.mjs +4 -4
  74. package/dist/boilerplates/@batijs/fastify/files/$package.json.js +1 -1
  75. package/dist/boilerplates/@batijs/fastify/files/asset-package.json.mjs +5 -5
  76. package/dist/boilerplates/@batijs/hono/files/$package.json.js +1 -1
  77. package/dist/boilerplates/@batijs/hono/files/asset-package.json.mjs +6 -6
  78. package/dist/boilerplates/@batijs/hono/types/entry_aws_lambda.d.mts +3 -5
  79. package/dist/boilerplates/@batijs/hono/types/server/hono.d.mts +2 -3
  80. package/dist/boilerplates/@batijs/kysely/files/$package.json.js +1 -1
  81. package/dist/boilerplates/@batijs/kysely/files/asset-package.json.mjs +4 -4
  82. package/dist/boilerplates/@batijs/kysely/types/database/kysely/db.d.mts +4 -5
  83. package/dist/boilerplates/@batijs/kysely/types/database/kysely/migrations/001_create_todos_table.d.mts +3 -4
  84. package/dist/boilerplates/@batijs/kysely/types/database/kysely/queries/todos.d.mts +3 -4
  85. package/dist/boilerplates/@batijs/kysely/types/database/kysely/types.d.mts +5 -6
  86. package/dist/boilerplates/@batijs/kysely/types/vite-plugin-input.d.mts +2 -3
  87. package/dist/boilerplates/@batijs/mantine/files/$package.json.js +1 -1
  88. package/dist/boilerplates/@batijs/mantine/files/asset-package.json.mjs +9 -9
  89. package/dist/boilerplates/@batijs/mantine/types/components/Link.d.mts +2 -3
  90. package/dist/boilerplates/@batijs/mantine/types/pages/+Layout.d.mts +2 -3
  91. package/dist/boilerplates/@batijs/oxlint/files/$package.json.js +1 -1
  92. package/dist/boilerplates/@batijs/oxlint/files/asset-package.json.mjs +2 -2
  93. package/dist/boilerplates/@batijs/postgres/files/$package.json.js +1 -1
  94. package/dist/boilerplates/@batijs/postgres/files/asset-package.json.mjs +1 -1
  95. package/dist/boilerplates/@batijs/postgres/types/database/postgres/db.d.mts +2 -3
  96. package/dist/boilerplates/@batijs/postgres/types/database/postgres/queries/todos.d.mts +3 -4
  97. package/dist/boilerplates/@batijs/prettier/files/$package.json.js +1 -1
  98. package/dist/boilerplates/@batijs/prettier/files/asset-package.json.mjs +1 -1
  99. package/dist/boilerplates/@batijs/prisma/files/$package.json.js +1 -1
  100. package/dist/boilerplates/@batijs/prisma/files/asset-package.json.mjs +2 -2
  101. package/dist/boilerplates/@batijs/react/files/$package.json.js +1 -1
  102. package/dist/boilerplates/@batijs/react/files/asset-package.json.mjs +10 -10
  103. package/dist/boilerplates/@batijs/react/types/components/Link.d.mts +2 -3
  104. package/dist/boilerplates/@batijs/react/types/pages/+Head.d.mts +2 -3
  105. package/dist/boilerplates/@batijs/react/types/pages/+Layout.d.mts +2 -3
  106. package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionEnd.d.mts +2 -3
  107. package/dist/boilerplates/@batijs/react/types/pages/+onPageTransitionStart.d.mts +2 -3
  108. package/dist/boilerplates/@batijs/react/types/pages/_error/+Page.d.mts +2 -3
  109. package/dist/boilerplates/@batijs/react/types/pages/index/+Page.d.mts +2 -3
  110. package/dist/boilerplates/@batijs/react/types/pages/index/Counter.d.mts +2 -3
  111. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+Page.d.mts +2 -3
  112. package/dist/boilerplates/@batijs/react/types/pages/star-wars/@id/+data.d.mts +3 -4
  113. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+Page.d.mts +2 -3
  114. package/dist/boilerplates/@batijs/react/types/pages/star-wars/index/+data.d.mts +3 -4
  115. package/dist/boilerplates/@batijs/react/types/pages/star-wars/types.d.mts +3 -4
  116. package/dist/boilerplates/@batijs/react/types/pages/todo/+Page.d.mts +2 -3
  117. package/dist/boilerplates/@batijs/react/types/pages/todo/TodoList.d.mts +2 -3
  118. package/dist/boilerplates/@batijs/react-better-auth/types/components/AuthNav.d.mts +2 -3
  119. package/dist/boilerplates/@batijs/react-better-auth/types/pages/account/+Page.d.mts +2 -3
  120. package/dist/boilerplates/@batijs/react-better-auth/types/pages/account/+guard.d.mts +2 -3
  121. package/dist/boilerplates/@batijs/react-better-auth/types/pages/login/+Page.d.mts +2 -3
  122. package/dist/boilerplates/@batijs/react-better-auth/types/pages/signup/+Page.d.mts +2 -3
  123. package/dist/boilerplates/@batijs/react-sentry/files/$package.json.js +1 -1
  124. package/dist/boilerplates/@batijs/react-sentry/files/asset-package.json.mjs +6 -6
  125. package/dist/boilerplates/@batijs/react-sentry/types/pages/sentry/+Page.d.mts +2 -3
  126. package/dist/boilerplates/@batijs/react-sentry/types/sentry.browser.config.d.mts +2 -3
  127. package/dist/boilerplates/@batijs/sentry/files/$package.json.js +1 -1
  128. package/dist/boilerplates/@batijs/sentry/files/asset-package.json.mjs +2 -2
  129. package/dist/boilerplates/@batijs/shadcn-ui/files/$package.json.js +1 -1
  130. package/dist/boilerplates/@batijs/shadcn-ui/files/asset-package.json.mjs +3 -3
  131. package/dist/boilerplates/@batijs/shadcn-ui/types/lib/utils.d.mts +2 -3
  132. package/dist/boilerplates/@batijs/shared/files/$package.json.js +1 -1
  133. package/dist/boilerplates/@batijs/shared-db/types/server/db-middleware.d.mts +2 -3
  134. package/dist/boilerplates/@batijs/shared-env/types/server/env.d.mts +2 -3
  135. package/dist/boilerplates/@batijs/shared-env/types/server/load.d.mts +2 -3
  136. package/dist/boilerplates/@batijs/shared-server/files/$package.json.js +1 -1
  137. package/dist/boilerplates/@batijs/shared-server/files/asset-package.json.mjs +2 -2
  138. package/dist/boilerplates/@batijs/shared-server/types/server/create-todo-handler.d.mts +2 -3
  139. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+config.d.mts +2 -3
  140. package/dist/boilerplates/@batijs/shared-todo/types/pages/todo/+data.d.mts +3 -4
  141. package/dist/boilerplates/@batijs/solid/files/$package.json.js +1 -1
  142. package/dist/boilerplates/@batijs/solid/files/asset-package.json.mjs +4 -4
  143. package/dist/boilerplates/@batijs/solid/types/components/Link.d.mts +2 -3
  144. package/dist/boilerplates/@batijs/solid/types/pages/+Head.d.mts +2 -3
  145. package/dist/boilerplates/@batijs/solid/types/pages/+Layout.d.mts +2 -3
  146. package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionEnd.d.mts +2 -3
  147. package/dist/boilerplates/@batijs/solid/types/pages/+onPageTransitionStart.d.mts +2 -3
  148. package/dist/boilerplates/@batijs/solid/types/pages/_error/+Page.d.mts +2 -3
  149. package/dist/boilerplates/@batijs/solid/types/pages/index/+Page.d.mts +2 -3
  150. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+Page.d.mts +2 -3
  151. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/@id/+data.d.mts +3 -4
  152. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+Page.d.mts +2 -3
  153. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/index/+data.d.mts +3 -4
  154. package/dist/boilerplates/@batijs/solid/types/pages/star-wars/types.d.mts +3 -4
  155. package/dist/boilerplates/@batijs/solid/types/pages/todo/+Page.d.mts +2 -3
  156. package/dist/boilerplates/@batijs/solid/types/pages/todo/TodoList.d.mts +2 -3
  157. package/dist/boilerplates/@batijs/solid-better-auth/types/components/AuthNav.d.mts +2 -3
  158. package/dist/boilerplates/@batijs/solid-better-auth/types/pages/account/+Page.d.mts +2 -3
  159. package/dist/boilerplates/@batijs/solid-better-auth/types/pages/account/+guard.d.mts +2 -3
  160. package/dist/boilerplates/@batijs/solid-better-auth/types/pages/login/+Page.d.mts +2 -3
  161. package/dist/boilerplates/@batijs/solid-better-auth/types/pages/signup/+Page.d.mts +2 -3
  162. package/dist/boilerplates/@batijs/solid-sentry/files/$package.json.js +1 -1
  163. package/dist/boilerplates/@batijs/solid-sentry/files/asset-package.json.mjs +4 -4
  164. package/dist/boilerplates/@batijs/solid-sentry/types/pages/sentry/+Page.d.mts +2 -3
  165. package/dist/boilerplates/@batijs/solid-sentry/types/sentry.browser.config.d.mts +2 -3
  166. package/dist/boilerplates/@batijs/sqlite/files/$package.json.js +1 -1
  167. package/dist/boilerplates/@batijs/sqlite/files/asset-package.json.mjs +1 -1
  168. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/db.d.mts +2 -3
  169. package/dist/boilerplates/@batijs/sqlite/types/database/sqlite/queries/todos.d.mts +3 -4
  170. package/dist/boilerplates/@batijs/storybook/hooks/after.mjs +2 -1
  171. package/dist/boilerplates/@batijs/tailwindcss/files/$package.json.js +2 -1
  172. package/dist/boilerplates/@batijs/tailwindcss/files/asset-package.json.mjs +4 -4
  173. package/dist/boilerplates/@batijs/telefunc/files/$package.json.js +1 -1
  174. package/dist/boilerplates/@batijs/telefunc/files/asset-package.json.mjs +3 -3
  175. package/dist/boilerplates/@batijs/telefunc/types/pages/todo/TodoList.telefunc.d.mts +2 -3
  176. package/dist/boilerplates/@batijs/telefunc/types/server/telefunc-handler.d.mts +2 -3
  177. package/dist/boilerplates/@batijs/trpc/files/$package.json.js +1 -1
  178. package/dist/boilerplates/@batijs/trpc/files/asset-package.json.mjs +3 -3
  179. package/dist/boilerplates/@batijs/trpc/types/server/trpc-handler.d.mts +2 -3
  180. package/dist/boilerplates/@batijs/trpc/types/trpc/client.d.mts +2 -3
  181. package/dist/boilerplates/@batijs/trpc/types/trpc/server.d.mts +5 -6
  182. package/dist/boilerplates/@batijs/ts-rest/files/$package.json.js +1 -1
  183. package/dist/boilerplates/@batijs/ts-rest/types/server/ts-rest-handler.d.mts +2 -3
  184. package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/client.d.mts +2 -3
  185. package/dist/boilerplates/@batijs/ts-rest/types/ts-rest/contract.d.mts +2 -3
  186. package/dist/boilerplates/@batijs/universal-deploy/files/$package.json.js +1 -1
  187. package/dist/boilerplates/@batijs/vercel/files/$package.json.js +1 -1
  188. package/dist/boilerplates/@batijs/vercel/files/asset-package.json.mjs +2 -2
  189. package/dist/boilerplates/@batijs/vue/files/$package.json.js +1 -1
  190. package/dist/boilerplates/@batijs/vue/files/asset-package.json.mjs +5 -5
  191. package/dist/boilerplates/@batijs/vue/types/pages/+onCreateApp.d.mts +3 -5
  192. package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionEnd.d.mts +2 -3
  193. package/dist/boilerplates/@batijs/vue/types/pages/+onPageTransitionStart.d.mts +2 -3
  194. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/@id/+data.d.mts +3 -4
  195. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/index/+data.d.mts +3 -4
  196. package/dist/boilerplates/@batijs/vue/types/pages/star-wars/types.d.mts +3 -4
  197. package/dist/boilerplates/@batijs/vue-better-auth/types/pages/account/+guard.d.mts +2 -3
  198. package/dist/boilerplates/@batijs/vue-sentry/files/$package.json.js +1 -1
  199. package/dist/boilerplates/@batijs/vue-sentry/files/asset-package.json.mjs +4 -4
  200. package/dist/boilerplates/@batijs/vue-sentry/types/sentry.browser.config.d.mts +2 -3
  201. package/dist/index.js +163 -133
  202. package/package.json +10 -10
  203. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/handler.d.mts +0 -247
  204. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/index.d.mts +0 -44
  205. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/alb.d.mts +0 -1
  206. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/amplify-resolver.d.mts +0 -2
  207. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/api-gateway-authorizer.d.mts +0 -2
  208. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.mts +0 -1
  209. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/appsync-resolver.d.mts +0 -1
  210. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/autoscaling.d.mts +0 -1
  211. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cdk-custom-resource.d.mts +0 -2
  212. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cloudformation-custom-resource.d.mts +0 -1
  213. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cloudfront-request.d.mts +0 -1
  214. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cloudfront-response.d.mts +0 -1
  215. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cloudwatch-alarm.d.mts +0 -1
  216. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cloudwatch-events.d.mts +0 -1
  217. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cloudwatch-logs.d.mts +0 -1
  218. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/codebuild-cloudwatch-state.d.mts +0 -1
  219. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/codecommit.d.mts +0 -1
  220. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-action.d.mts +0 -1
  221. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-pipeline.d.mts +0 -1
  222. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch-stage.d.mts +0 -1
  223. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/codepipeline-cloudwatch.d.mts +0 -4
  224. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/codepipeline.d.mts +0 -1
  225. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/create-auth-challenge.d.mts +0 -1
  226. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-email-sender.d.mts +0 -1
  227. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-message.d.mts +0 -1
  228. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/custom-sms-sender.d.mts +0 -1
  229. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/define-auth-challenge.d.mts +0 -1
  230. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/inbound-federation.d.mts +0 -1
  231. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.mts +0 -16
  232. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-authentication.d.mts +0 -1
  233. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/post-confirmation.d.mts +0 -1
  234. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-authentication.d.mts +0 -1
  235. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-signup.d.mts +0 -1
  236. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v2.d.mts +0 -1
  237. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v3.d.mts +0 -1
  238. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation.d.mts +0 -1
  239. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/user-migration.d.mts +0 -1
  240. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/verify-auth-challenge-response.d.mts +0 -1
  241. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/connect-contact-flow.d.mts +0 -1
  242. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/dynamodb-stream.d.mts +0 -1
  243. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/eventbridge.d.mts +0 -1
  244. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/guard-duty-event-notification.d.mts +0 -1
  245. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/iot-authorizer.d.mts +0 -2
  246. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/iot.d.mts +0 -1
  247. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/kinesis-firehose-transformation.d.mts +0 -1
  248. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/kinesis-stream.d.mts +0 -1
  249. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/lambda-function-url.d.mts +0 -2
  250. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/lex-v2.d.mts +0 -1
  251. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/lex.d.mts +0 -1
  252. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/msk.d.mts +0 -1
  253. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/s3-batch.d.mts +0 -1
  254. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/s3-event-notification.d.mts +0 -2
  255. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/s3.d.mts +0 -1
  256. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/secretsmanager.d.mts +0 -1
  257. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/self-managed-kafka.d.mts +0 -1
  258. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/ses.d.mts +0 -1
  259. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/sns.d.mts +0 -1
  260. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/sqs.d.mts +0 -1
  261. package/dist/boilerplates/@batijs/hono/types/node_modules/.bun/@types+aws-lambda@8.10.162/node_modules/@types/aws-lambda/trigger/transfer-family-authorizer.d.mts +0 -1
  262. package/dist/boilerplates/@batijs/vue/types/node_modules/.bun/vike-vue@0.9.13+65a302fece80211b/node_modules/vike-vue/dist/types/VikeHooks.d.mts +0 -12
  263. package/dist/boilerplates/@batijs/vue/types/node_modules/.bun/vike-vue@0.9.13+65a302fece80211b/node_modules/vike-vue/dist/types/public.d.mts +0 -2
  264. /package/dist/{asset-package2.json-DND0OHll.js → asset-package.json-DND0OHll.js} +0 -0
  265. /package/dist/{asset-package2.json-KyL19vnl.js → asset-package.json-KyL19vnl.js} +0 -0
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ var __copyProps = (to, from, except, desc) => {
42
42
  }
43
43
  return to;
44
44
  };
45
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
45
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
46
46
  value: mod,
47
47
  enumerable: true
48
48
  }) : target, mod));
@@ -59,7 +59,8 @@ let emptyExportMarker;
59
59
  */
60
60
  async function mergeDts$1({ fileContent, previousContent, filepath, meta }) {
61
61
  merger ??= mergeDts.forTarget("tsx");
62
- return clearExports(await formatCode((await merger).transform(`${previousContent}\n${fileContent}`, {}), { filepath }), meta);
62
+ const merged = (await merger).transform(`${previousContent}\n${fileContent}`, {});
63
+ return clearExports(await formatCode(merged, { filepath }), meta);
63
64
  }
64
65
  async function clearExports(code, meta) {
65
66
  if (code.trim() === "export {};") return;
@@ -72,13 +73,15 @@ async function executeOperationFile(op, { meta, previousOperationSameDestination
72
73
  const filepath = relative(op.source, op.sourceAbsolute);
73
74
  const result = await transformAndFormat(code, meta, { filepath });
74
75
  let fileContent = result.code;
75
- if (op.sourceAbsolute.endsWith(".d.ts")) if (previousOperationSameDestination?.content) fileContent = await mergeDts$1({
76
- fileContent,
77
- previousContent: previousOperationSameDestination.content,
78
- filepath,
79
- meta
80
- });
81
- else fileContent = await clearExports(fileContent, meta);
76
+ if (op.sourceAbsolute.endsWith(".d.ts")) {
77
+ if (previousOperationSameDestination?.content) fileContent = await mergeDts$1({
78
+ fileContent,
79
+ previousContent: previousOperationSameDestination.content,
80
+ filepath,
81
+ meta
82
+ });
83
+ else fileContent = await clearExports(fileContent, meta);
84
+ }
82
85
  return {
83
86
  context: result.context,
84
87
  content: fileContent ? fileContent.trimStart() : void 0
@@ -253,7 +256,8 @@ function toDist(filepath, source, dist) {
253
256
  return split.join(path.sep).replace(source, dist);
254
257
  }
255
258
  async function safeWriteFile(destination, content) {
256
- await mkdir(path.dirname(destination), { recursive: true });
259
+ const destinationDir = path.dirname(destination);
260
+ await mkdir(destinationDir, { recursive: true });
257
261
  await writeFile(destination, content, { encoding: "utf-8" });
258
262
  }
259
263
  async function safeRmFile(destination, options) {
@@ -355,7 +359,7 @@ Please report this issue to https://github.com/vikejs/bati`);
355
359
  for (const target of RelationImport.computeUnimportedFiles()) await safeRmFile(target.pathAbsolute, { removeEmptyDir: true });
356
360
  }
357
361
  //#endregion
358
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/key.js
362
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/key.js
359
363
  const keybindingLookup = /* @__PURE__ */ new Set(["emacs", "vim"]);
360
364
  function isKeybinding(value) {
361
365
  return keybindingLookup.has(value);
@@ -371,7 +375,7 @@ const isBackspaceKey = (key) => key.name === "backspace";
371
375
  const isNumberKey = (key) => "1234567890".includes(key.name);
372
376
  const isEnterKey = (key) => key.name === "enter" || key.name === "return";
373
377
  //#endregion
374
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/errors.js
378
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/errors.js
375
379
  var AbortPromptError = class extends Error {
376
380
  name = "AbortPromptError";
377
381
  message = "Prompt was aborted";
@@ -394,7 +398,7 @@ var ValidationError = class extends Error {
394
398
  name = "ValidationError";
395
399
  };
396
400
  //#endregion
397
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/hook-engine.js
401
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/hook-engine.js
398
402
  const hookStorage = new AsyncLocalStorage();
399
403
  function createStore(rl) {
400
404
  return {
@@ -408,16 +412,14 @@ function createStore(rl) {
408
412
  }
409
413
  function withHooks(rl, cb) {
410
414
  const store = createStore(rl);
411
- return hookStorage.run(store, () => {
412
- function cycle(render) {
413
- store.handleChange = () => {
414
- store.index = 0;
415
- render();
416
- };
417
- store.handleChange();
418
- }
419
- return cb(cycle);
420
- });
415
+ function cycle(render) {
416
+ store.handleChange = () => {
417
+ store.index = 0;
418
+ render();
419
+ };
420
+ store.handleChange();
421
+ }
422
+ return hookStorage.run(store, () => cb(cycle));
421
423
  }
422
424
  function getStore() {
423
425
  const store = hookStorage.getStore();
@@ -490,15 +492,20 @@ const effectScheduler = {
490
492
  }
491
493
  };
492
494
  //#endregion
493
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-state.js
495
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-state.js
494
496
  function isFactory(value) {
495
497
  return typeof value === "function";
496
498
  }
499
+ function isReducer(value) {
500
+ return typeof value === "function";
501
+ }
497
502
  function useState(defaultValue) {
498
503
  return withPointer((pointer) => {
499
504
  const setState = AsyncResource.bind(function setState(newValue) {
500
- if (pointer.get() !== newValue) {
501
- pointer.set(newValue);
505
+ const currentValue = pointer.get();
506
+ const nextValue = isReducer(newValue) ? newValue(currentValue) : newValue;
507
+ if (!Object.is(currentValue, nextValue)) {
508
+ pointer.set(nextValue);
502
509
  handleChange();
503
510
  }
504
511
  });
@@ -509,7 +516,7 @@ function useState(defaultValue) {
509
516
  });
510
517
  }
511
518
  //#endregion
512
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-effect.js
519
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-effect.js
513
520
  function useEffect(cb, depArray) {
514
521
  withPointer((pointer) => {
515
522
  const oldDeps = pointer.get();
@@ -518,7 +525,7 @@ function useEffect(cb, depArray) {
518
525
  });
519
526
  }
520
527
  //#endregion
521
- //#region ../../node_modules/.bun/@inquirer+figures@2.0.7/node_modules/@inquirer/figures/dist/index.js
528
+ //#region ../../node_modules/.bun/@inquirer+figures@2.0.9/node_modules/@inquirer/figures/dist/index.js
522
529
  function isUnicodeSupported() {
523
530
  if (!process$1.platform.startsWith("win")) return process$1.env["TERM"] !== "linux";
524
531
  return Boolean(process$1.env["CI"]) || Boolean(process$1.env["WT_SESSION"]) || Boolean(process$1.env["TERMINUS_SUBLIME"]) || process$1.env["ConEmuTask"] === "{cmd::Cmder}" || process$1.env["TERM_PROGRAM"] === "Terminus-Sublime" || process$1.env["TERM_PROGRAM"] === "vscode" || process$1.env["TERM"] === "xterm-256color" || process$1.env["TERM"] === "alacritty" || process$1.env["TERMINAL_EMULATOR"] === "JetBrains-JediTerm";
@@ -802,7 +809,7 @@ const fallbackSymbols = {
802
809
  const figures = isUnicodeSupported() ? mainSymbols : fallbackSymbols;
803
810
  Object.entries(specialMainSymbols);
804
811
  //#endregion
805
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/theme.js
812
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/theme.js
806
813
  const defaultTheme = {
807
814
  prefix: {
808
815
  idle: styleText("blue", "?"),
@@ -841,7 +848,7 @@ function getDefaultTheme() {
841
848
  };
842
849
  }
843
850
  //#endregion
844
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/make-theme.js
851
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/make-theme.js
845
852
  function isPlainObject(value) {
846
853
  if (typeof value !== "object" || value === null) return false;
847
854
  let proto = value;
@@ -860,7 +867,7 @@ function makeTheme(...themes) {
860
867
  return deepMerge(...[getDefaultTheme(), ...themes.filter((theme) => theme != null)]);
861
868
  }
862
869
  //#endregion
863
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-prefix.js
870
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-prefix.js
864
871
  function usePrefix({ status = "idle", theme }) {
865
872
  const [showLoader, setShowLoader] = useState(false);
866
873
  const [tick, setTick] = useState(0);
@@ -886,11 +893,11 @@ function usePrefix({ status = "idle", theme }) {
886
893
  return typeof prefix === "string" ? prefix : prefix[status === "loading" ? "idle" : status] ?? prefix["idle"];
887
894
  }
888
895
  //#endregion
889
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-memo.js
896
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-memo.js
890
897
  function useMemo(fn, dependencies) {
891
898
  return withPointer((pointer) => {
892
899
  const prev = pointer.get();
893
- if (!prev || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
900
+ if (!pointer.initialized || prev.dependencies.length !== dependencies.length || prev.dependencies.some((dep, i) => dep !== dependencies[i])) {
894
901
  const value = fn();
895
902
  pointer.set({
896
903
  value,
@@ -902,12 +909,12 @@ function useMemo(fn, dependencies) {
902
909
  });
903
910
  }
904
911
  //#endregion
905
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-ref.js
912
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-ref.js
906
913
  function useRef(val) {
907
914
  return useState({ current: val })[0];
908
915
  }
909
916
  //#endregion
910
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-keypress.js
917
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/use-keypress.js
911
918
  function useKeypress(userHandler) {
912
919
  const signal = useRef(userHandler);
913
920
  signal.current = userHandler;
@@ -1235,7 +1242,7 @@ function wrapAnsi(string, columns, options) {
1235
1242
  return String(string).normalize().split(CRLF_OR_LF).map((line) => exec(line, columns, options)).join("\n");
1236
1243
  }
1237
1244
  //#endregion
1238
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/utils.js
1245
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/utils.js
1239
1246
  var import_cli_width = /* @__PURE__ */ __toESM(require_cli_width(), 1);
1240
1247
  /**
1241
1248
  * Force line returns at specific width. This function is ANSI code friendly and it'll
@@ -1261,7 +1268,7 @@ function readlineWidth() {
1261
1268
  });
1262
1269
  }
1263
1270
  //#endregion
1264
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js
1271
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js
1265
1272
  function usePointerPosition({ active, renderedItems, pageSize, loop }) {
1266
1273
  const state = useRef({
1267
1274
  lastPointer: active,
@@ -1272,27 +1279,29 @@ function usePointerPosition({ active, renderedItems, pageSize, loop }) {
1272
1279
  const renderedLength = renderedItems.reduce((acc, item) => acc + item.length, 0);
1273
1280
  const defaultPointerPosition = renderedItems.slice(0, active).reduce((acc, item) => acc + item.length, 0);
1274
1281
  let pointer = defaultPointerPosition;
1275
- if (renderedLength > pageSize) if (loop) {
1276
- /**
1277
- * Creates the next position for the pointer considering an infinitely
1278
- * looping list of items to be rendered on the page.
1279
- *
1280
- * The goal is to progressively move the cursor to the middle position as the user move down, and then keep
1281
- * the cursor there. When the user move up, maintain the cursor position.
1282
- */
1283
- pointer = lastPointer;
1284
- if (lastActive != null && lastActive < active && active - lastActive < pageSize) pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
1285
- } else {
1286
- /**
1287
- * Creates the next position for the pointer considering a finite list of
1288
- * items to be rendered on a page.
1289
- *
1290
- * The goal is to keep the pointer in the middle of the page whenever possible, until
1291
- * we reach the bounds of the list (top or bottom). In which case, the cursor moves progressively
1292
- * to the bottom or top of the list.
1293
- */
1294
- const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
1295
- pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
1282
+ if (renderedLength > pageSize) {
1283
+ if (loop) {
1284
+ /**
1285
+ * Creates the next position for the pointer considering an infinitely
1286
+ * looping list of items to be rendered on the page.
1287
+ *
1288
+ * The goal is to progressively move the cursor to the middle position as the user move down, and then keep
1289
+ * the cursor there. When the user move up, maintain the cursor position.
1290
+ */
1291
+ pointer = lastPointer;
1292
+ if (lastActive != null && lastActive < active && active - lastActive < pageSize) pointer = Math.min(middle, Math.abs(active - lastActive) === 1 ? Math.min(lastPointer + (renderedItems[lastActive]?.length ?? 0), Math.max(defaultPointerPosition, lastPointer)) : lastPointer + active - lastActive);
1293
+ } else {
1294
+ /**
1295
+ * Creates the next position for the pointer considering a finite list of
1296
+ * items to be rendered on a page.
1297
+ *
1298
+ * The goal is to keep the pointer in the middle of the page whenever possible, until
1299
+ * we reach the bounds of the list (top or bottom). In which case, the cursor moves progressively
1300
+ * to the bottom or top of the list.
1301
+ */
1302
+ const spaceUnderActive = renderedItems.slice(active).reduce((acc, item) => acc + item.length, 0);
1303
+ pointer = spaceUnderActive < pageSize - middle ? pageSize - spaceUnderActive : Math.min(defaultPointerPosition, middle);
1304
+ }
1296
1305
  }
1297
1306
  state.current.lastPointer = pointer;
1298
1307
  state.current.lastActive = active;
@@ -1344,6 +1353,26 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
1344
1353
  return pageBuffer.filter((line) => typeof line === "string").join("\n");
1345
1354
  }
1346
1355
  //#endregion
1356
+ //#region ../../node_modules/.bun/@inquirer+type@4.2.0+e721bbbb37b4b793/node_modules/@inquirer/type/dist/utils.js
1357
+ /**
1358
+ * Create a promise and get access to its `resolve` and `reject` functions.
1359
+ *
1360
+ * Mirrors `Promise.withResolvers()`, available starting from Node 22.
1361
+ * TODO: Remove once Node 22 becomes the minimum supported version.
1362
+ */
1363
+ function withResolver() {
1364
+ let resolve;
1365
+ let reject;
1366
+ return {
1367
+ promise: new Promise((res, rej) => {
1368
+ resolve = res;
1369
+ reject = rej;
1370
+ }),
1371
+ resolve,
1372
+ reject
1373
+ };
1374
+ }
1375
+ //#endregion
1347
1376
  //#region ../../node_modules/.bun/mute-stream@3.0.0/node_modules/mute-stream/lib/index.js
1348
1377
  var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1349
1378
  const Stream = __require("stream");
@@ -1422,8 +1451,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1422
1451
  this.emit("data", c);
1423
1452
  }
1424
1453
  end(c) {
1425
- if (this.muted) if (c && this.replace) c = c.toString().replace(/./g, this.replace);
1426
- else c = null;
1454
+ if (this.muted) {
1455
+ if (c && this.replace) c = c.toString().replace(/./g, this.replace);
1456
+ else c = null;
1457
+ }
1427
1458
  if (c) this.emit("data", c);
1428
1459
  this.emit("end");
1429
1460
  }
@@ -1639,7 +1670,7 @@ var SignalExit = class extends SignalExitBase {
1639
1670
  const process$2 = globalThis.process;
1640
1671
  const { onExit, load, unload } = signalExitWrap(processOk(process$2) ? new SignalExit(process$2) : new SignalExitFallback());
1641
1672
  //#endregion
1642
- //#region ../../node_modules/.bun/@inquirer+ansi@2.0.7/node_modules/@inquirer/ansi/dist/index.js
1673
+ //#region ../../node_modules/.bun/@inquirer+ansi@2.0.9/node_modules/@inquirer/ansi/dist/index.js
1643
1674
  const ESC = "\x1B[";
1644
1675
  /** Hide the cursor */
1645
1676
  const cursorHide = "\x1B[?25l";
@@ -1658,7 +1689,7 @@ const eraseLine = "\x1B[2K";
1658
1689
  /** Erase the specified number of lines above the cursor */
1659
1690
  const eraseLines = (lines) => lines > 0 ? (eraseLine + cursorUp(1)).repeat(lines - 1) + "\x1B[2K\x1B[G" : "";
1660
1691
  //#endregion
1661
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/screen-manager.js
1692
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/screen-manager.js
1662
1693
  const height = (content) => content.split("\n").length;
1663
1694
  const lastLine = (content) => content.split("\n").pop() ?? "";
1664
1695
  var ScreenManager = class {
@@ -1676,7 +1707,8 @@ var ScreenManager = class {
1676
1707
  this.rl.output.mute();
1677
1708
  }
1678
1709
  render(content, bottomContent = "") {
1679
- const rawPromptLine = stripVTControlCharacters(lastLine(content));
1710
+ const promptLine = lastLine(content);
1711
+ const rawPromptLine = stripVTControlCharacters(promptLine);
1680
1712
  let prompt = rawPromptLine;
1681
1713
  if (this.rl.line.length > 0) prompt = prompt.slice(0, -this.rl.line.length);
1682
1714
  this.rl.setPrompt(prompt);
@@ -1714,25 +1746,21 @@ var ScreenManager = class {
1714
1746
  }
1715
1747
  };
1716
1748
  //#endregion
1717
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/promise-polyfill.js
1718
- var PromisePolyfill = class extends Promise {
1719
- static withResolver() {
1720
- let resolve;
1721
- let reject;
1722
- return {
1723
- promise: new Promise((res, rej) => {
1724
- resolve = res;
1725
- reject = rej;
1726
- }),
1727
- resolve,
1728
- reject
1729
- };
1730
- }
1731
- };
1732
- //#endregion
1733
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/create-prompt.js
1749
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/create-prompt.js
1734
1750
  var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
1735
1751
  const nativeSetImmediate = globalThis.setImmediate;
1752
+ /**
1753
+ * Register an event listener and return its disposer, so registrations collapse
1754
+ * into a single statement: `cleanups.add(listenTo(rl, 'close', handler))`.
1755
+ */
1756
+ function listenTo(target, event, listener) {
1757
+ if ("on" in target) {
1758
+ target.on(event, listener);
1759
+ return () => target.removeListener(event, listener);
1760
+ }
1761
+ target.addEventListener(event, listener);
1762
+ return () => target.removeEventListener(event, listener);
1763
+ }
1736
1764
  function getCallSites() {
1737
1765
  const savedPrepareStackTrace = Error.prepareStackTrace;
1738
1766
  let result = [];
@@ -1763,37 +1791,45 @@ function createPrompt(view) {
1763
1791
  });
1764
1792
  output.mute();
1765
1793
  const screen = new ScreenManager(rl);
1766
- const { promise, resolve, reject } = PromisePolyfill.withResolver();
1767
- const cancel = () => reject(new CancelPromptError());
1768
- if (signal) {
1769
- const abort = () => reject(new AbortPromptError({ cause: signal.reason }));
1770
- if (signal.aborted) {
1771
- abort();
1772
- return Object.assign(promise, { cancel });
1773
- }
1774
- signal.addEventListener("abort", abort);
1775
- cleanups.add(() => signal.removeEventListener("abort", abort));
1776
- }
1777
- cleanups.add(onExit((code, signal) => {
1778
- reject(new ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
1779
- }));
1780
- const sigint = () => reject(new ExitPromptError(`User force closed the prompt with SIGINT`));
1781
- rl.on("SIGINT", sigint);
1782
- cleanups.add(() => rl.removeListener("SIGINT", sigint));
1794
+ const { promise, resolve, reject } = withResolver();
1783
1795
  return withHooks(rl, (cycle) => {
1784
- const hooksCleanup = AsyncResource.bind(() => effectScheduler.clearAll());
1785
- rl.on("close", hooksCleanup);
1786
- cleanups.add(() => rl.removeListener("close", hooksCleanup));
1796
+ const clearEffects = AsyncResource.bind(() => effectScheduler.clearAll());
1797
+ const settlePrompt = (settle) => {
1798
+ try {
1799
+ clearEffects();
1800
+ settle();
1801
+ } catch (error) {
1802
+ reject(error);
1803
+ }
1804
+ };
1805
+ const resolvePrompt = (value) => settlePrompt(() => resolve(value));
1806
+ const rejectPrompt = (error) => settlePrompt(() => reject(error));
1807
+ const promptPromise = Object.assign(promise.finally(() => {
1808
+ cleanups.forEach((cleanup) => cleanup());
1809
+ screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
1810
+ output.end();
1811
+ }).then(() => promise), { cancel: () => rejectPrompt(new CancelPromptError()) });
1812
+ if (signal) {
1813
+ const abort = () => rejectPrompt(new AbortPromptError({ cause: signal.reason }));
1814
+ if (signal.aborted) {
1815
+ abort();
1816
+ return promptPromise;
1817
+ }
1818
+ cleanups.add(listenTo(signal, "abort", abort));
1819
+ }
1820
+ cleanups.add(onExit((code, signal) => {
1821
+ rejectPrompt(new ExitPromptError(`User force closed the prompt with ${code} ${signal}`));
1822
+ }));
1823
+ cleanups.add(listenTo(rl, "SIGINT", () => rejectPrompt(new ExitPromptError(`User force closed the prompt with SIGINT`))));
1824
+ cleanups.add(listenTo(rl, "close", clearEffects));
1787
1825
  const startCycle = () => {
1788
- const checkCursorPos = () => screen.checkCursorPos();
1789
- rl.input.on("keypress", checkCursorPos);
1790
- cleanups.add(() => rl.input.removeListener("keypress", checkCursorPos));
1826
+ cleanups.add(listenTo(rl.input, "keypress", () => screen.checkCursorPos()));
1791
1827
  let pendingDone = null;
1792
1828
  cycle(() => {
1793
1829
  let effectsSettled = false;
1794
1830
  try {
1795
1831
  const nextView = view(config, (value) => {
1796
- if (effectsSettled) resolve(value);
1832
+ if (effectsSettled) resolvePrompt(value);
1797
1833
  else pendingDone = { value };
1798
1834
  });
1799
1835
  if (nextView === void 0) {
@@ -1805,35 +1841,25 @@ function createPrompt(view) {
1805
1841
  screen.render(content, bottomContent);
1806
1842
  effectScheduler.run();
1807
1843
  } catch (error) {
1808
- reject(error);
1844
+ rejectPrompt(error);
1809
1845
  }
1810
1846
  effectsSettled = true;
1811
1847
  if (pendingDone !== null) {
1812
1848
  const { value } = pendingDone;
1813
1849
  pendingDone = null;
1814
- resolve(value);
1850
+ resolvePrompt(value);
1815
1851
  }
1816
1852
  });
1817
1853
  };
1818
1854
  if ("readableFlowing" in input) nativeSetImmediate(startCycle);
1819
1855
  else startCycle();
1820
- return Object.assign(promise.then((answer) => {
1821
- effectScheduler.clearAll();
1822
- return answer;
1823
- }, (error) => {
1824
- effectScheduler.clearAll();
1825
- throw error;
1826
- }).finally(() => {
1827
- cleanups.forEach((cleanup) => cleanup());
1828
- screen.done({ clearContent: Boolean(context.clearPromptOnDone) });
1829
- output.end();
1830
- }).then(() => promise), { cancel });
1856
+ return promptPromise;
1831
1857
  });
1832
1858
  };
1833
1859
  return prompt;
1834
1860
  }
1835
1861
  //#endregion
1836
- //#region ../../node_modules/.bun/@inquirer+core@11.2.1+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/Separator.js
1862
+ //#region ../../node_modules/.bun/@inquirer+core@12.0.4+e721bbbb37b4b793/node_modules/@inquirer/core/dist/lib/Separator.js
1837
1863
  /**
1838
1864
  * Separator object
1839
1865
  * Used to space/separate choices group
@@ -1849,7 +1875,7 @@ var Separator = class {
1849
1875
  }
1850
1876
  };
1851
1877
  //#endregion
1852
- //#region ../../node_modules/.bun/@inquirer+select@5.2.1+e721bbbb37b4b793/node_modules/@inquirer/select/dist/index.js
1878
+ //#region ../../node_modules/.bun/@inquirer+select@5.2.6+e721bbbb37b4b793/node_modules/@inquirer/select/dist/index.js
1853
1879
  const selectTheme = {
1854
1880
  icon: { cursor: figures.pointer },
1855
1881
  style: {
@@ -1921,12 +1947,13 @@ var dist_default = createPrompt((config, done) => {
1921
1947
  useKeypress((key, rl) => {
1922
1948
  clearTimeout(searchTimeoutRef.current);
1923
1949
  if (errorMsg) setError(void 0);
1924
- if (isEnterKey(key)) if (selectedChoice.disabled) setError(theme.i18n.disabledError);
1925
- else {
1926
- setStatus("done");
1927
- done(selectedChoice.value);
1928
- }
1929
- else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
1950
+ if (isEnterKey(key)) {
1951
+ if (selectedChoice.disabled) setError(theme.i18n.disabledError);
1952
+ else {
1953
+ setStatus("done");
1954
+ done(selectedChoice.value);
1955
+ }
1956
+ } else if (isUpKey(key, keybindings) || isDownKey(key, keybindings)) {
1930
1957
  rl.clearLine(0);
1931
1958
  if (loop || isUpKey(key, keybindings) && active !== bounds.first || isDownKey(key, keybindings) && active !== bounds.last) {
1932
1959
  const offset = isUpKey(key, keybindings) ? -1 : 1;
@@ -2638,7 +2665,7 @@ function kebabCase(str, joiner) {
2638
2665
  //#endregion
2639
2666
  //#region package.json
2640
2667
  var name = "@batijs/cli";
2641
- var version = "0.0.680";
2668
+ var version = "0.0.682";
2642
2669
  var description = "Next-gen scaffolder. Get started with fully-functional apps, and choose any tool you want";
2643
2670
  //#endregion
2644
2671
  //#region rules.ts
@@ -2677,7 +2704,8 @@ Choose it or remove selected Server`),
2677
2704
  //#endregion
2678
2705
  //#region index.ts
2679
2706
  printInit();
2680
- const __dirname = dirname(fileURLToPath(import.meta.url));
2707
+ const __filename = fileURLToPath(import.meta.url);
2708
+ const __dirname = dirname(__filename);
2681
2709
  const isWin = process.platform === "win32";
2682
2710
  const pm = packageManager();
2683
2711
  function boilerplatesDir() {
@@ -2863,12 +2891,14 @@ async function checkArguments(args) {
2863
2891
  process.exit(3);
2864
2892
  }
2865
2893
  if (!newArgs.force) {
2866
- if (!((await readdir(newArgs.project)).length === 0)) if (!projectChosenByUser) {
2867
- newArgs.project = `my-app-${generateRandomFilename(5)}`;
2868
- return newArgs;
2869
- } else {
2870
- console.error(`${yellow("⚠")} Target folder ${cyan(newArgs.project)} already exists and is not empty.\n Continuing might erase existing files. ${yellow("Aborting")}.`);
2871
- process.exit(4);
2894
+ if (!((await readdir(newArgs.project)).length === 0)) {
2895
+ if (!projectChosenByUser) {
2896
+ newArgs.project = `my-app-${generateRandomFilename(5)}`;
2897
+ return newArgs;
2898
+ } else {
2899
+ console.error(`${yellow("⚠")} Target folder ${cyan(newArgs.project)} already exists and is not empty.\n Continuing might erase existing files. ${yellow("Aborting")}.`);
2900
+ process.exit(4);
2901
+ }
2872
2902
  }
2873
2903
  }
2874
2904
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@batijs/cli",
3
- "version": "0.0.680",
3
+ "version": "0.0.682",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check-types": "tsc --noEmit",
@@ -13,25 +13,25 @@
13
13
  "repository": "https://github.com/vikejs/bati",
14
14
  "license": "MIT",
15
15
  "devDependencies": {
16
- "@batijs/build": "0.0.680",
17
- "@batijs/compile": "0.0.680",
18
- "@inquirer/prompts": "^8.5.2",
16
+ "@batijs/build": "0.0.682",
17
+ "@batijs/compile": "0.0.682",
18
+ "@inquirer/prompts": "^8.7.3",
19
19
  "@types/node": "^20.19.37",
20
20
  "@types/which": "^3.0.4",
21
21
  "citty": "^0.2.2",
22
22
  "colorette": "^2.0.20",
23
23
  "esbuild": "^0.28.2",
24
- "execa": "^10.0.1",
25
- "rolldown": "^1.2.3",
24
+ "execa": "^10.1.0",
25
+ "rolldown": "^1.2.12",
26
26
  "scule": "^1.3.0",
27
- "tsdown": "^0.22.14",
27
+ "tsdown": "^0.23.0",
28
28
  "typescript": "^6.0.3",
29
29
  "unplugin-purge-polyfills": "^0.1.0",
30
- "vite": "^8.2.1"
30
+ "vite": "^8.3.3"
31
31
  },
32
32
  "dependencies": {
33
- "@batijs/core": "0.0.680",
34
- "@batijs/features": "0.0.680"
33
+ "@batijs/core": "0.0.682",
34
+ "@batijs/features": "0.0.682"
35
35
  },
36
36
  "bin": "./cli.js",
37
37
  "exports": {