@reliverse/dler 1.7.91 → 1.7.93

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 (1020) hide show
  1. package/LICENSES +4 -1
  2. package/README.md +25 -1213
  3. package/bin/app/add/add-global/install-impl.d.ts +9 -0
  4. package/bin/app/add/add-global/install-impl.js +138 -0
  5. package/bin/app/add/add-local/api/orpc.d.ts +1 -0
  6. package/bin/app/add/add-local/api/orpc.js +4 -0
  7. package/bin/app/add/add-local/api/trpc.d.ts +1 -0
  8. package/bin/app/add/add-local/api/trpc.js +4 -0
  9. package/bin/app/add/add-local/auth/better-auth.d.ts +1 -0
  10. package/bin/app/add/add-local/auth/better-auth.js +4 -0
  11. package/bin/app/add/add-local/auth/clerk-auth.d.ts +1 -0
  12. package/bin/app/add/add-local/auth/clerk-auth.js +4 -0
  13. package/bin/app/add/add-local/auth/next-auth.d.ts +1 -0
  14. package/bin/app/add/add-local/auth/next-auth.js +4 -0
  15. package/bin/app/add/add-local/core/deps.d.ts +8 -0
  16. package/bin/app/add/add-local/core/deps.js +19 -0
  17. package/bin/app/add/add-local/core/prompts.d.ts +4 -0
  18. package/bin/app/add/add-local/core/prompts.js +12 -0
  19. package/bin/app/add/add-local/core/templates.d.ts +29 -0
  20. package/bin/app/add/add-local/core/templates.js +85 -0
  21. package/bin/app/add/add-local/core/types.d.ts +6 -0
  22. package/bin/app/add/add-local/db/drizzle.d.ts +1 -0
  23. package/bin/app/add/add-local/db/drizzle.js +4 -0
  24. package/bin/app/add/add-local/db/prisma.d.ts +1 -0
  25. package/bin/app/add/add-local/db/prisma.js +4 -0
  26. package/bin/app/add/add-local/files/uploadthing.d.ts +1 -0
  27. package/bin/app/add/add-local/files/uploadthing.js +4 -0
  28. package/bin/app/add/add-local/form/react-hook-form.d.ts +1 -0
  29. package/bin/app/add/add-local/form/react-hook-form.js +4 -0
  30. package/bin/app/add/add-local/form/tanstack-form.d.ts +1 -0
  31. package/bin/app/add/add-local/form/tanstack-form.js +4 -0
  32. package/bin/app/add/add-local/fws/browser/plasmo.d.ts +1 -0
  33. package/bin/app/add/add-local/fws/browser/plasmo.js +4 -0
  34. package/bin/app/add/add-local/fws/browser/wxt.d.ts +1 -0
  35. package/bin/app/add/add-local/fws/browser/wxt.js +4 -0
  36. package/bin/app/add/add-local/fws/configs/eslint-config.d.ts +1 -0
  37. package/bin/app/add/add-local/fws/configs/eslint-config.js +4 -0
  38. package/bin/app/add/add-local/fws/native/lynx.d.ts +1 -0
  39. package/bin/app/add/add-local/fws/native/lynx.js +4 -0
  40. package/bin/app/add/add-local/fws/native/react.d.ts +1 -0
  41. package/bin/app/add/add-local/fws/native/react.js +4 -0
  42. package/bin/app/add/add-local/fws/plugins/eslint-plugin.d.ts +1 -0
  43. package/bin/app/add/add-local/fws/plugins/eslint-plugin.js +4 -0
  44. package/bin/app/add/add-local/fws/vscode/vscode-ext.d.ts +1 -0
  45. package/bin/app/add/add-local/fws/vscode/vscode-ext.js +4 -0
  46. package/bin/app/add/add-local/fws/web/astro.d.ts +1 -0
  47. package/bin/app/add/add-local/fws/web/astro.js +4 -0
  48. package/bin/app/add/add-local/fws/web/jstack.d.ts +1 -0
  49. package/bin/app/add/add-local/fws/web/jstack.js +4 -0
  50. package/bin/app/add/add-local/fws/web/next.d.ts +1 -0
  51. package/bin/app/add/add-local/fws/web/next.js +4 -0
  52. package/bin/app/add/add-local/fws/web/start.d.ts +1 -0
  53. package/bin/app/add/add-local/fws/web/start.js +4 -0
  54. package/bin/app/add/add-local/fws/web/vite.d.ts +1 -0
  55. package/bin/app/add/add-local/fws/web/vite.js +4 -0
  56. package/bin/app/add/add-local/i18n/gt-libs.d.ts +1 -0
  57. package/bin/app/add/add-local/i18n/gt-libs.js +4 -0
  58. package/bin/app/add/add-local/i18n/languine.d.ts +1 -0
  59. package/bin/app/add/add-local/i18n/languine.js +19 -0
  60. package/bin/app/add/add-local/i18n/next-intl.d.ts +1 -0
  61. package/bin/app/add/add-local/i18n/next-intl.js +4 -0
  62. package/bin/app/add/add-local/llm/vercel.d.ts +1 -0
  63. package/bin/app/add/add-local/llm/vercel.js +4 -0
  64. package/bin/app/add/add-local/mail/resend.d.ts +1 -0
  65. package/bin/app/add/add-local/mail/resend.js +4 -0
  66. package/bin/app/add/add-local/pay/polar.d.ts +1 -0
  67. package/bin/app/add/add-local/pay/polar.js +4 -0
  68. package/bin/app/add/add-local/pay/stripe.d.ts +1 -0
  69. package/bin/app/add/add-local/pay/stripe.js +4 -0
  70. package/bin/app/add/add-local/tool/biome.d.ts +1 -0
  71. package/bin/app/add/add-local/tool/biome.js +4 -0
  72. package/bin/app/add/add-local/tool/eslint.d.ts +1 -0
  73. package/bin/app/add/add-local/tool/eslint.js +4 -0
  74. package/bin/app/add/add-local/tool/oxlint.d.ts +4 -0
  75. package/bin/app/add/add-local/tool/oxlint.js +4 -0
  76. package/bin/app/add/add-local/ui/21st.d.ts +4 -0
  77. package/bin/app/add/add-local/ui/21st.js +4 -0
  78. package/bin/app/add/add-local/ui/shadcn.d.ts +1 -0
  79. package/bin/app/add/add-local/ui/shadcn.js +4 -0
  80. package/bin/app/add/add-local/ui/tailwind.d.ts +1 -0
  81. package/bin/app/add/add-local/ui/tailwind.js +4 -0
  82. package/bin/app/add/add-rule/add-rule-const.d.ts +11 -0
  83. package/bin/app/add/add-rule/add-rule-const.js +32 -0
  84. package/bin/app/add/add-rule/add-rule-impl.d.ts +21 -0
  85. package/bin/app/add/add-rule/add-rule-impl.js +300 -0
  86. package/bin/app/add/add-rule/add-rule-mod.d.ts +19 -0
  87. package/bin/app/add/add-rule/add-rule-mod.js +55 -0
  88. package/bin/app/add/add-rule/add-rule-types.d.ts +18 -0
  89. package/bin/app/add/add-rule/add-rule-utils.d.ts +61 -0
  90. package/bin/app/add/add-rule/add-rule-utils.js +324 -0
  91. package/bin/app/add/cmd.d.ts +19 -0
  92. package/bin/app/add/cmd.js +55 -0
  93. package/bin/app/agg/cmd.js +2 -2
  94. package/bin/app/ai/ai-impl/ai-auth.d.ts +10 -0
  95. package/bin/app/ai/ai-impl/ai-auth.js +61 -0
  96. package/bin/app/ai/ai-impl/ai-chat.d.ts +5 -0
  97. package/bin/app/ai/ai-impl/ai-chat.js +93 -0
  98. package/bin/app/ai/ai-impl/ai-const.d.ts +7 -0
  99. package/bin/app/ai/ai-impl/ai-const.js +14 -0
  100. package/bin/app/ai/ai-impl/ai-tools.d.ts +5 -0
  101. package/bin/app/ai/ai-impl/ai-tools.js +32 -0
  102. package/bin/app/ai/ai-impl/ai-types.d.ts +12 -0
  103. package/bin/app/ai/ai-impl/code/code-mod.d.ts +6 -0
  104. package/bin/app/ai/ai-impl/code/code-mod.js +164 -0
  105. package/bin/app/ai/ai-impl/gen/image.d.ts +29 -0
  106. package/bin/app/ai/ai-impl/gen/image.js +77 -0
  107. package/bin/app/ai/ai-impl/mcp/mcp-mod.d.ts +5 -0
  108. package/bin/app/ai/ai-impl/mcp/mcp-mod.js +127 -0
  109. package/bin/app/ai/ai-impl/relinter/relinter.d.ts +27 -0
  110. package/bin/app/ai/ai-impl/relinter/relinter.js +310 -0
  111. package/bin/app/ai/ai-menu.d.ts +3 -0
  112. package/bin/app/ai/ai-menu.js +40 -0
  113. package/bin/app/ai/cmd.d.ts +19 -0
  114. package/bin/app/ai/cmd.js +63 -0
  115. package/bin/app/better/auth/(generators)/auth-config.d.ts +44 -0
  116. package/bin/app/better/auth/(generators)/auth-config.js +537 -0
  117. package/bin/app/better/auth/(generators)/drizzle.d.ts +3 -0
  118. package/bin/app/better/auth/(generators)/drizzle.js +137 -0
  119. package/bin/app/better/auth/(generators)/index.d.ts +16 -0
  120. package/bin/app/better/auth/(generators)/index.js +18 -0
  121. package/bin/app/better/auth/(generators)/kysely.d.ts +2 -0
  122. package/bin/app/better/auth/(generators)/kysely.js +9 -0
  123. package/bin/app/better/auth/(generators)/prisma.d.ts +2 -0
  124. package/bin/app/better/auth/(generators)/prisma.js +154 -0
  125. package/bin/app/better/auth/(generators)/types.d.ts +11 -0
  126. package/bin/app/better/auth/(utils)/add-svelte-kit-env-modules.d.ts +3 -0
  127. package/bin/app/better/auth/(utils)/add-svelte-kit-env-modules.js +91 -0
  128. package/bin/app/better/auth/(utils)/check-package-managers.d.ts +4 -0
  129. package/bin/app/better/auth/(utils)/check-package-managers.js +20 -0
  130. package/bin/app/better/auth/(utils)/format-ms.d.ts +4 -0
  131. package/bin/app/better/auth/(utils)/format-ms.js +11 -0
  132. package/bin/app/better/auth/(utils)/generate-secret.d.ts +1 -0
  133. package/bin/app/better/auth/(utils)/generate-secret.js +4 -0
  134. package/bin/app/better/auth/(utils)/get-config.d.ts +8 -0
  135. package/bin/app/better/auth/(utils)/get-config.js +168 -0
  136. package/bin/app/better/auth/(utils)/get-package-info.d.ts +1 -0
  137. package/bin/app/better/auth/(utils)/get-package-info.js +6 -0
  138. package/bin/app/better/auth/(utils)/get-tsconfig-info.d.ts +2 -0
  139. package/bin/app/better/auth/(utils)/get-tsconfig-info.js +15 -0
  140. package/bin/app/better/auth/(utils)/install-dependencies.d.ts +5 -0
  141. package/bin/app/better/auth/(utils)/install-dependencies.js +34 -0
  142. package/bin/app/better/auth/cmd.d.ts +13 -0
  143. package/bin/app/better/auth/cmd.js +72 -0
  144. package/bin/app/better/auth/consts.d.ts +2 -0
  145. package/bin/app/better/auth/consts.js +2 -0
  146. package/bin/app/better/auth/generate/cmd.d.ts +23 -0
  147. package/bin/app/better/auth/generate/cmd.js +127 -0
  148. package/bin/app/better/auth/generateSecret/cmd.d.ts +2 -0
  149. package/bin/app/better/auth/generateSecret/cmd.js +21 -0
  150. package/bin/app/better/auth/init/cmd.d.ts +160 -0
  151. package/bin/app/better/auth/init/cmd.js +979 -0
  152. package/bin/app/better/auth/migrate/cmd.d.ts +24 -0
  153. package/bin/app/better/auth/migrate/cmd.js +115 -0
  154. package/bin/app/build/binary/cmd.d.ts +12 -5
  155. package/bin/app/build/binary/cmd.js +34 -9
  156. package/bin/app/build/build-library.d.ts +42 -0
  157. package/bin/app/build/build-library.js +632 -0
  158. package/bin/app/build/build-regular.d.ts +19 -0
  159. package/bin/app/build/build-regular.js +400 -0
  160. package/bin/app/build/cmd.js +2 -2
  161. package/bin/app/build/impl.d.ts +1 -1
  162. package/bin/app/build/impl.js +8 -8
  163. package/bin/app/build/library-flow.d.ts +25 -0
  164. package/bin/app/build/library-flow.js +203 -0
  165. package/bin/app/build/postbuild.d.ts +1 -1
  166. package/bin/app/build/postbuild.js +5 -5
  167. package/bin/app/build/prebuild.d.ts +1 -1
  168. package/bin/app/build/prebuild.js +2 -2
  169. package/bin/app/build/providers/auto.d.ts +3 -0
  170. package/bin/app/build/providers/auto.js +105 -0
  171. package/bin/app/build/providers/build.d.ts +8 -0
  172. package/bin/app/build/providers/build.js +351 -0
  173. package/bin/app/build/providers/bun/single-file.js +146 -0
  174. package/bin/app/build/providers/copy/copy-mod.d.ts +2 -0
  175. package/bin/app/build/providers/copy/copy-mod.js +49 -0
  176. package/bin/app/build/providers/mkdist/mkdist-impl/loader.d.ts +4 -0
  177. package/bin/app/build/providers/mkdist/mkdist-impl/loaders/js.d.ts +2 -0
  178. package/bin/app/build/providers/mkdist/mkdist-impl/loaders/loaders-mod.d.ts +12 -0
  179. package/bin/app/build/providers/mkdist/mkdist-impl/loaders/postcss.d.ts +3 -0
  180. package/bin/app/build/providers/mkdist/mkdist-impl/loaders/sass.d.ts +2 -0
  181. package/bin/app/build/providers/mkdist/mkdist-impl/loaders/sass.js +31 -0
  182. package/bin/app/build/providers/mkdist/mkdist-impl/loaders/vue.d.ts +17 -0
  183. package/bin/app/build/providers/mkdist/mkdist-impl/loaders/vue.js +145 -0
  184. package/bin/app/build/providers/mkdist/mkdist-impl/make.d.ts +11 -0
  185. package/bin/app/build/providers/mkdist/mkdist-impl/make.js +192 -0
  186. package/bin/app/build/providers/mkdist/mkdist-impl/utils/dts.d.ts +11 -0
  187. package/bin/app/build/providers/mkdist/mkdist-impl/utils/dts.js +94 -0
  188. package/bin/app/build/providers/mkdist/mkdist-impl/utils/vue-dts.d.ts +3 -0
  189. package/bin/app/build/providers/mkdist/mkdist-impl/utils/vue-dts.js +175 -0
  190. package/bin/app/build/providers/mkdist/mkdist-mod.d.ts +2 -0
  191. package/bin/app/build/providers/mkdist/mkdist-mod.js +92 -0
  192. package/bin/app/build/providers/rollup/build.d.ts +2 -0
  193. package/bin/app/build/providers/rollup/config.d.ts +2 -0
  194. package/bin/app/build/providers/rollup/config.js +112 -0
  195. package/bin/app/build/providers/rollup/plugins/cjs.d.ts +4 -0
  196. package/bin/app/build/providers/rollup/plugins/esbuild.d.ts +3 -0
  197. package/bin/app/build/providers/rollup/plugins/shebang.js +42 -0
  198. package/bin/app/build/providers/rollup/stub.d.ts +2 -0
  199. package/bin/app/build/providers/rollup/stub.js +125 -0
  200. package/bin/app/build/providers/rollup/utils.d.ts +5 -0
  201. package/bin/app/build/providers/rollup/watch.d.ts +2 -0
  202. package/bin/app/build/providers/untyped/untyped-mod.d.ts +2 -0
  203. package/bin/app/build/providers/untyped/untyped-mod.js +111 -0
  204. package/bin/app/build/providers/utils.d.ts +19 -0
  205. package/bin/app/build/providers/utils.js +148 -0
  206. package/bin/app/build/providers/validate.d.ts +4 -0
  207. package/bin/app/build/providers/validate.js +52 -0
  208. package/bin/app/build/regular-flow.d.ts +9 -0
  209. package/bin/app/build/regular-flow.js +173 -0
  210. package/bin/app/catalog/cmd.js +2 -2
  211. package/bin/app/check/cmd.js +14 -14
  212. package/bin/app/cli/cmd.d.ts +12 -0
  213. package/bin/app/cli/cmd.js +56 -0
  214. package/bin/app/cli/impl.d.ts +5 -0
  215. package/bin/app/cli/impl.js +88 -0
  216. package/bin/app/clone/cmd.d.ts +43 -0
  217. package/bin/app/clone/cmd.js +112 -0
  218. package/bin/app/clone/firecrawl/firecrawl-mod.d.ts +1 -0
  219. package/bin/app/clone/firecrawl/firecrawl-mod.js +14 -0
  220. package/bin/app/cmds/inject/inject-impl-mod.js +724 -0
  221. package/bin/app/cmds/transform/transform-impl-mod.js +178 -0
  222. package/bin/app/cmds.d.ts +3 -0
  223. package/bin/app/cmds.js +4 -1
  224. package/bin/app/cmod/cmd.d.ts +31 -0
  225. package/bin/app/cmod/cmd.js +66 -0
  226. package/bin/app/cmod/cmod-impl.d.ts +9 -0
  227. package/bin/app/cmod/cmod-impl.js +21 -0
  228. package/bin/app/config/cfg-biome.d.ts +2 -0
  229. package/bin/app/config/cfg-biome.js +34 -0
  230. package/bin/app/config/cfg-comments.d.ts +1 -0
  231. package/bin/app/config/cfg-comments.js +57 -0
  232. package/bin/app/config/cfg-content.d.ts +14 -0
  233. package/bin/app/config/cfg-content.js +15 -0
  234. package/bin/app/config/cfg-core.d.ts +14 -0
  235. package/bin/app/config/cfg-core.js +63 -0
  236. package/bin/app/config/cfg-create.d.ts +35 -0
  237. package/bin/app/config/cfg-create.js +281 -0
  238. package/bin/app/config/cfg-def-utils.d.ts +6 -0
  239. package/bin/app/config/cfg-def-utils.js +229 -0
  240. package/bin/app/config/cfg-default.d.ts +3 -0
  241. package/bin/app/config/cfg-default.js +155 -0
  242. package/bin/app/config/cfg-detect.d.ts +22 -0
  243. package/bin/app/config/cfg-detect.js +347 -0
  244. package/bin/app/config/cfg-gen-cfg.d.ts +3 -0
  245. package/bin/app/config/cfg-gen-cfg.js +185 -0
  246. package/bin/app/config/cfg-migrate.d.ts +5 -0
  247. package/bin/app/config/cfg-migrate.js +56 -0
  248. package/bin/app/config/cfg-path.d.ts +11 -0
  249. package/bin/app/config/cfg-path.js +33 -0
  250. package/bin/app/config/cfg-prepare.d.ts +2 -0
  251. package/bin/app/config/cfg-prepare.js +302 -0
  252. package/bin/app/config/cfg-prompts.d.ts +5 -0
  253. package/bin/app/config/cfg-prompts.js +12 -0
  254. package/bin/app/config/cfg-read.d.ts +11 -0
  255. package/bin/app/config/cfg-read.js +84 -0
  256. package/bin/app/config/cfg-repair.d.ts +16 -0
  257. package/bin/app/config/cfg-repair.js +137 -0
  258. package/bin/app/config/cfg-schema.d.ts +130 -0
  259. package/bin/app/config/cfg-schema.js +443 -0
  260. package/bin/app/config/cfg-unstable.d.ts +11 -0
  261. package/bin/app/config/cfg-unstable.js +41 -0
  262. package/bin/app/config/cfg-update.d.ts +10 -0
  263. package/bin/app/config/cfg-update.js +152 -0
  264. package/bin/app/config/cfg-utils.d.ts +17 -0
  265. package/bin/app/config/cfg-utils.js +85 -0
  266. package/bin/app/config/cmd.js +1 -1
  267. package/bin/app/config/constants.d.ts +44 -0
  268. package/bin/app/config/constants.js +59 -0
  269. package/bin/app/config/core.js +231 -0
  270. package/bin/app/config/default.d.ts +6 -0
  271. package/bin/app/config/default.js +159 -0
  272. package/bin/app/config/load.d.ts +15 -0
  273. package/bin/app/config/load.js +87 -0
  274. package/bin/app/config/prepare.js +338 -0
  275. package/bin/app/conv/cmd.js +1 -1
  276. package/bin/app/create/cmd.js +4 -4
  277. package/bin/app/cross/mod.js +27 -0
  278. package/bin/app/db/client.d.ts +4 -0
  279. package/bin/app/db/client.js +32 -0
  280. package/bin/app/db/config.d.ts +2 -0
  281. package/bin/app/db/config.js +59 -0
  282. package/bin/app/db/messages.d.ts +13 -0
  283. package/bin/app/db/messages.js +83 -0
  284. package/bin/app/db/schema.d.ts +90 -0
  285. package/bin/app/db/schema.js +9 -0
  286. package/bin/app/env/cmd.d.ts +7 -0
  287. package/bin/app/env/cmd.js +19 -0
  288. package/bin/app/env/env-impl.d.ts +1 -0
  289. package/bin/app/env/env-impl.js +28 -0
  290. package/bin/app/fs/cmd.js +3 -3
  291. package/bin/app/get/cmd.d.ts +1 -1
  292. package/bin/app/get/cmd.js +1 -1
  293. package/bin/app/get/get-impl/get-core.js +453 -0
  294. package/bin/app/get/get-mod.js +68 -0
  295. package/bin/app/help/cmd.d.ts +7 -0
  296. package/bin/app/help/cmd.js +23 -0
  297. package/bin/app/help/help-impl.d.ts +7 -0
  298. package/bin/app/help/help-impl.js +23 -0
  299. package/bin/app/init/cmd-2.d.ts +13 -0
  300. package/bin/app/init/cmd-2.js +68 -0
  301. package/bin/app/init/init-utils/init-impl.d.ts +6 -0
  302. package/bin/app/init/init-utils/init-impl.js +31 -0
  303. package/bin/app/init/init-utils/init-utils.d.ts +35 -0
  304. package/bin/app/init/init-utils/init-utils.js +255 -0
  305. package/bin/app/init/init-utils/mm-deprecated/editor-menu.d.ts +3 -0
  306. package/bin/app/init/init-utils/mm-deprecated/editor-menu.js +404 -0
  307. package/bin/app/init/mm-deprecated/drizzle/manageDrizzleConstants.d.ts +2 -0
  308. package/bin/app/init/mm-deprecated/drizzle/manageDrizzleConstants.js +36 -0
  309. package/bin/app/init/mm-deprecated/drizzle/manageDrizzleSchema.d.ts +1 -0
  310. package/bin/app/init/mm-deprecated/drizzle/manageDrizzleSchema.js +81 -0
  311. package/bin/app/init/mm-deprecated/drizzle/manageDrizzleSchemaUtils.d.ts +16 -0
  312. package/bin/app/init/mm-deprecated/drizzle/manageDrizzleSchemaUtils.js +474 -0
  313. package/bin/app/init/mm-deprecated/editor-impl.d.ts +1 -0
  314. package/bin/app/init/mm-deprecated/editor-impl.js +153 -0
  315. package/bin/app/init/mm-deprecated/editor-mod.d.ts +18 -0
  316. package/bin/app/init/mm-deprecated/editor-mod.js +184 -0
  317. package/bin/app/init/mm-deprecated/feature-add.d.ts +2 -0
  318. package/bin/app/init/mm-deprecated/feature-add.js +591 -0
  319. package/bin/app/init/mm-deprecated/feature-rm.d.ts +2 -0
  320. package/bin/app/init/mm-deprecated/feature-rm.js +98 -0
  321. package/bin/app/init/mm-deprecated/shadcn/shadcn-mod.d.ts +1 -0
  322. package/bin/app/init/mm-deprecated/shadcn/shadcn-mod.js +87 -0
  323. package/bin/app/init/use-template/cp-impl.d.ts +38 -0
  324. package/bin/app/init/use-template/cp-impl.js +286 -0
  325. package/bin/app/init/use-template/cp-mod.d.ts +31 -0
  326. package/bin/app/init/use-template/cp-mod.js +233 -0
  327. package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.d.ts +12 -0
  328. package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/getMainMenuOptions.js +69 -0
  329. package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.d.ts +11 -0
  330. package/bin/app/init/use-template/cp-modules/cli-main-modules/cli-menu-items/showCloneProjectMenu.js +206 -0
  331. package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showAnykeyPrompt.d.ts +1 -0
  332. package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showAnykeyPrompt.js +9 -0
  333. package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.d.ts +2 -0
  334. package/bin/app/init/use-template/cp-modules/cli-main-modules/modules/showStartEndPrompt.js +26 -0
  335. package/bin/app/init/use-template/cp-modules/compose-env-file/cef-impl.d.ts +16 -0
  336. package/bin/app/init/use-template/cp-modules/compose-env-file/cef-impl.js +400 -0
  337. package/bin/app/init/use-template/cp-modules/compose-env-file/cef-keys.d.ts +26 -0
  338. package/bin/app/init/use-template/cp-modules/compose-env-file/cef-keys.js +202 -0
  339. package/bin/app/init/use-template/cp-modules/compose-env-file/cef-mod.d.ts +2 -0
  340. package/bin/app/init/use-template/cp-modules/compose-env-file/cef-mod.js +167 -0
  341. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/deploy.d.ts +11 -0
  342. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/deploy.js +91 -0
  343. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/gdp-mod.d.ts +54 -0
  344. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/gdp-mod.js +449 -0
  345. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/git.d.ts +50 -0
  346. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/git.js +313 -0
  347. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/github.d.ts +8 -0
  348. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/github.js +113 -0
  349. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/helpers/domainHelpers.d.ts +1 -0
  350. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/helpers/domainHelpers.js +25 -0
  351. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/helpers/handlePkgJsonScripts.d.ts +1 -0
  352. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/helpers/handlePkgJsonScripts.js +52 -0
  353. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/helpers/promptForDomain.d.ts +4 -0
  354. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/helpers/promptForDomain.js +39 -0
  355. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-git-github.d.ts +8 -0
  356. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-git-github.js +75 -0
  357. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.d.ts +12 -0
  358. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-private-repo.js +165 -0
  359. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.d.ts +9 -0
  360. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/utils-repo-exists.js +62 -0
  361. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-api.d.ts +10 -0
  362. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-api.js +36 -0
  363. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-check.d.ts +14 -0
  364. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-check.js +29 -0
  365. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-config.d.ts +27 -0
  366. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-config.js +104 -0
  367. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-create.d.ts +17 -0
  368. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-create.js +129 -0
  369. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-deploy.d.ts +20 -0
  370. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-deploy.js +151 -0
  371. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-domain.d.ts +5 -0
  372. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-domain.js +44 -0
  373. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-env.d.ts +3 -0
  374. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-env.js +58 -0
  375. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-team.d.ts +15 -0
  376. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-team.js +74 -0
  377. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-types.d.ts +28 -0
  378. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-utils.d.ts +26 -0
  379. package/bin/app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-utils.js +134 -0
  380. package/bin/app/install/cmd.js +3 -7
  381. package/bin/app/invoke/cmd.d.ts +59 -0
  382. package/bin/app/invoke/cmd.js +353 -0
  383. package/bin/app/libs/cmd.js +3 -3
  384. package/bin/app/login/cmd.d.ts +7 -0
  385. package/bin/app/login/cmd.js +41 -0
  386. package/bin/app/login/login-impl.d.ts +7 -0
  387. package/bin/app/login/login-impl.js +182 -0
  388. package/bin/app/logout/cmd.d.ts +7 -0
  389. package/bin/app/logout/cmd.js +47 -0
  390. package/bin/app/logout/logout-impl.d.ts +1 -0
  391. package/bin/app/logout/logout-impl.js +20 -0
  392. package/bin/app/magic/cmd.js +2 -2
  393. package/bin/app/magic/magic-apply.js +669 -0
  394. package/bin/app/memory/cmd.d.ts +2 -0
  395. package/bin/app/memory/cmd.js +26 -0
  396. package/bin/app/memory/memory-impl.d.ts +2 -0
  397. package/bin/app/memory/memory-impl.js +26 -0
  398. package/bin/app/merge/cmd.js +17 -18
  399. package/bin/app/migrate/codemods/anything-bun.js +2 -2
  400. package/bin/app/migrate/codemods/commander-rempts.js +3 -3
  401. package/bin/app/migrate/codemods/console-relinka.js +1 -1
  402. package/bin/app/migrate/codemods/fs-relifso.js +2 -2
  403. package/bin/app/migrate/codemods/nodenext-bundler.js +2 -3
  404. package/bin/app/migrate/codemods/path-pathkit.js +2 -2
  405. package/bin/app/migrate/codemods/readdir-glob.js +2 -2
  406. package/bin/app/mkdist/cmd.js +2 -2
  407. package/bin/app/mrse/cmd.d.ts +41 -0
  408. package/bin/app/mrse/cmd.js +395 -0
  409. package/bin/app/mrse/mrse-impl.d.ts +53 -0
  410. package/bin/app/mrse/mrse-impl.js +132 -0
  411. package/bin/app/pack/cmd.js +4 -4
  412. package/bin/app/providers/better-t-stack/better-t-stack-mod.d.ts +14 -0
  413. package/bin/app/providers/better-t-stack/better-t-stack-mod.js +35 -0
  414. package/bin/app/providers/better-t-stack/better-t-stack-types.d.ts +21 -0
  415. package/bin/app/providers/better-t-stack/better-t-stack-types.js +0 -0
  416. package/bin/app/providers/better-t-stack/constants.d.ts +61 -0
  417. package/bin/app/providers/better-t-stack/constants.js +81 -0
  418. package/bin/app/providers/better-t-stack/helpers/database-providers/mongodb-atlas-setup.d.ts +2 -0
  419. package/bin/app/providers/better-t-stack/helpers/database-providers/mongodb-atlas-setup.js +132 -0
  420. package/bin/app/providers/better-t-stack/helpers/database-providers/neon-setup.d.ts +2 -0
  421. package/bin/app/providers/better-t-stack/helpers/database-providers/neon-setup.js +167 -0
  422. package/bin/app/providers/better-t-stack/helpers/database-providers/prisma-postgres-setup.d.ts +2 -0
  423. package/bin/app/providers/better-t-stack/helpers/database-providers/prisma-postgres-setup.js +161 -0
  424. package/bin/app/providers/better-t-stack/helpers/database-providers/supabase-setup.d.ts +2 -0
  425. package/bin/app/providers/better-t-stack/helpers/database-providers/supabase-setup.js +162 -0
  426. package/bin/app/providers/better-t-stack/helpers/database-providers/turso-setup.d.ts +2 -0
  427. package/bin/app/providers/better-t-stack/helpers/database-providers/turso-setup.js +250 -0
  428. package/bin/app/providers/better-t-stack/helpers/project-generation/create-project.d.ts +2 -0
  429. package/bin/app/providers/better-t-stack/helpers/project-generation/create-project.js +82 -0
  430. package/bin/app/providers/better-t-stack/helpers/project-generation/create-readme.d.ts +2 -0
  431. package/bin/app/providers/better-t-stack/helpers/project-generation/create-readme.js +245 -0
  432. package/bin/app/providers/better-t-stack/helpers/project-generation/env-setup.d.ts +8 -0
  433. package/bin/app/providers/better-t-stack/helpers/project-generation/env-setup.js +193 -0
  434. package/bin/app/providers/better-t-stack/helpers/project-generation/install-dependencies.d.ts +6 -0
  435. package/bin/app/providers/better-t-stack/helpers/project-generation/install-dependencies.js +25 -0
  436. package/bin/app/providers/better-t-stack/helpers/project-generation/post-installation.d.ts +4 -0
  437. package/bin/app/providers/better-t-stack/helpers/project-generation/post-installation.js +228 -0
  438. package/bin/app/providers/better-t-stack/helpers/project-generation/project-config.d.ts +3 -0
  439. package/bin/app/providers/better-t-stack/helpers/project-generation/project-config.js +224 -0
  440. package/bin/app/providers/better-t-stack/helpers/project-generation/template-manager.d.ts +9 -0
  441. package/bin/app/providers/better-t-stack/helpers/project-generation/template-manager.js +484 -0
  442. package/bin/app/providers/better-t-stack/helpers/setup/addons-setup.d.ts +2 -0
  443. package/bin/app/providers/better-t-stack/helpers/setup/addons-setup.js +99 -0
  444. package/bin/app/providers/better-t-stack/helpers/setup/api-setup.d.ts +2 -0
  445. package/bin/app/providers/better-t-stack/helpers/setup/api-setup.js +236 -0
  446. package/bin/app/providers/better-t-stack/helpers/setup/auth-setup.d.ts +3 -0
  447. package/bin/app/providers/better-t-stack/helpers/setup/auth-setup.js +67 -0
  448. package/bin/app/providers/better-t-stack/helpers/setup/backend-setup.d.ts +2 -0
  449. package/bin/app/providers/better-t-stack/helpers/setup/backend-setup.js +52 -0
  450. package/bin/app/providers/better-t-stack/helpers/setup/db-setup.d.ts +2 -0
  451. package/bin/app/providers/better-t-stack/helpers/setup/db-setup.js +84 -0
  452. package/bin/app/providers/better-t-stack/helpers/setup/examples-setup.d.ts +2 -0
  453. package/bin/app/providers/better-t-stack/helpers/setup/examples-setup.js +38 -0
  454. package/bin/app/providers/better-t-stack/helpers/setup/runtime-setup.d.ts +2 -0
  455. package/bin/app/providers/better-t-stack/helpers/setup/runtime-setup.js +79 -0
  456. package/bin/app/providers/better-t-stack/helpers/setup/starlight-setup.d.ts +2 -0
  457. package/bin/app/providers/better-t-stack/helpers/setup/starlight-setup.js +41 -0
  458. package/bin/app/providers/better-t-stack/helpers/setup/tauri-setup.d.ts +2 -0
  459. package/bin/app/providers/better-t-stack/helpers/setup/tauri-setup.js +67 -0
  460. package/bin/app/providers/better-t-stack/index.d.ts +2 -0
  461. package/bin/app/providers/better-t-stack/index.js +282 -0
  462. package/bin/app/providers/better-t-stack/packed/addons.d.ts +2 -0
  463. package/bin/app/providers/better-t-stack/packed/addons.js +263 -0
  464. package/bin/app/providers/better-t-stack/packed/api.d.ts +2 -0
  465. package/bin/app/providers/better-t-stack/packed/api.js +678 -0
  466. package/bin/app/providers/better-t-stack/packed/auth.d.ts +2 -0
  467. package/bin/app/providers/better-t-stack/packed/auth.js +4277 -0
  468. package/bin/app/providers/better-t-stack/packed/backend.d.ts +2 -0
  469. package/bin/app/providers/better-t-stack/packed/backend.js +996 -0
  470. package/bin/app/providers/better-t-stack/packed/base.d.ts +2 -0
  471. package/bin/app/providers/better-t-stack/packed/base.js +32 -0
  472. package/bin/app/providers/better-t-stack/packed/binaries/01dad80fc2.png +0 -0
  473. package/bin/app/providers/better-t-stack/packed/binaries/0ba5eb8b0a.png +0 -0
  474. package/bin/app/providers/better-t-stack/packed/binaries/19b53640a9.png +0 -0
  475. package/bin/app/providers/better-t-stack/packed/binaries/206a875d5d.png +0 -0
  476. package/bin/app/providers/better-t-stack/packed/binaries/2dc8b34485.png +0 -0
  477. package/bin/app/providers/better-t-stack/packed/binaries/3f71f5a845.png +0 -0
  478. package/bin/app/providers/better-t-stack/packed/binaries/6eda863d14.ico +0 -0
  479. package/bin/app/providers/better-t-stack/packed/binaries/70aadde45a.png +0 -0
  480. package/bin/app/providers/better-t-stack/packed/binaries/9ecfcc8f0e.ico +0 -0
  481. package/bin/app/providers/better-t-stack/packed/binaries/9fc7a0c84f.ico +0 -0
  482. package/bin/app/providers/better-t-stack/packed/binaries/b72f6b7339.png +0 -0
  483. package/bin/app/providers/better-t-stack/packed/binaries/cb25ca74dd.png +0 -0
  484. package/bin/app/providers/better-t-stack/packed/binaries/dee83fc2fb.png +0 -0
  485. package/bin/app/providers/better-t-stack/packed/binaries/eda53e30fe.svg +6 -0
  486. package/bin/app/providers/better-t-stack/packed/db.d.ts +2 -0
  487. package/bin/app/providers/better-t-stack/packed/db.js +329 -0
  488. package/bin/app/providers/better-t-stack/packed/examples.d.ts +2 -0
  489. package/bin/app/providers/better-t-stack/packed/examples.js +3470 -0
  490. package/bin/app/providers/better-t-stack/packed/extras.d.ts +2 -0
  491. package/bin/app/providers/better-t-stack/packed/extras.js +33 -0
  492. package/bin/app/providers/better-t-stack/packed/frontend.d.ts +2 -0
  493. package/bin/app/providers/better-t-stack/packed/frontend.js +6116 -0
  494. package/bin/app/providers/better-t-stack/packed/runtime.d.ts +2 -0
  495. package/bin/app/providers/better-t-stack/packed/runtime.js +35 -0
  496. package/bin/app/providers/better-t-stack/prompts/addons.d.ts +2 -0
  497. package/bin/app/providers/better-t-stack/prompts/addons.js +62 -0
  498. package/bin/app/providers/better-t-stack/prompts/api.d.ts +2 -0
  499. package/bin/app/providers/better-t-stack/prompts/api.js +52 -0
  500. package/bin/app/providers/better-t-stack/prompts/auth.d.ts +2 -0
  501. package/bin/app/providers/better-t-stack/prompts/auth.js +19 -0
  502. package/bin/app/providers/better-t-stack/prompts/backend.d.ts +2 -0
  503. package/bin/app/providers/better-t-stack/prompts/backend.js +60 -0
  504. package/bin/app/providers/better-t-stack/prompts/config-prompts.d.ts +2 -0
  505. package/bin/app/providers/better-t-stack/prompts/config-prompts.js +88 -0
  506. package/bin/app/providers/better-t-stack/prompts/database-setup.d.ts +2 -0
  507. package/bin/app/providers/better-t-stack/prompts/database-setup.js +67 -0
  508. package/bin/app/providers/better-t-stack/prompts/database.d.ts +2 -0
  509. package/bin/app/providers/better-t-stack/prompts/database.js +48 -0
  510. package/bin/app/providers/better-t-stack/prompts/examples.d.ts +2 -0
  511. package/bin/app/providers/better-t-stack/prompts/examples.js +44 -0
  512. package/bin/app/providers/better-t-stack/prompts/frontend.d.ts +2 -0
  513. package/bin/app/providers/better-t-stack/prompts/frontend.js +107 -0
  514. package/bin/app/providers/better-t-stack/prompts/git.d.ts +1 -0
  515. package/bin/app/providers/better-t-stack/prompts/git.js +15 -0
  516. package/bin/app/providers/better-t-stack/prompts/install.d.ts +1 -0
  517. package/bin/app/providers/better-t-stack/prompts/install.js +15 -0
  518. package/bin/app/providers/better-t-stack/prompts/orm.d.ts +2 -0
  519. package/bin/app/providers/better-t-stack/prompts/orm.js +43 -0
  520. package/bin/app/providers/better-t-stack/prompts/package-manager.d.ts +2 -0
  521. package/bin/app/providers/better-t-stack/prompts/package-manager.js +29 -0
  522. package/bin/app/providers/better-t-stack/prompts/project-name.d.ts +1 -0
  523. package/bin/app/providers/better-t-stack/prompts/project-name.js +62 -0
  524. package/bin/app/providers/better-t-stack/prompts/runtime.d.ts +2 -0
  525. package/bin/app/providers/better-t-stack/prompts/runtime.js +41 -0
  526. package/bin/app/providers/better-t-stack/types.d.ts +124 -0
  527. package/bin/app/providers/better-t-stack/types.js +29 -0
  528. package/bin/app/providers/better-t-stack/utils/add-package-deps.d.ts +6 -0
  529. package/bin/app/providers/better-t-stack/utils/add-package-deps.js +31 -0
  530. package/bin/app/providers/better-t-stack/utils/analytics.d.ts +2 -0
  531. package/bin/app/providers/better-t-stack/utils/analytics.js +32 -0
  532. package/bin/app/providers/better-t-stack/utils/command-exists.d.ts +1 -0
  533. package/bin/app/providers/better-t-stack/utils/command-exists.js +14 -0
  534. package/bin/app/providers/better-t-stack/utils/display-config.d.ts +2 -0
  535. package/bin/app/providers/better-t-stack/utils/display-config.js +59 -0
  536. package/bin/app/providers/better-t-stack/utils/generate-reproducible-command.d.ts +2 -0
  537. package/bin/app/providers/better-t-stack/utils/generate-reproducible-command.js +39 -0
  538. package/bin/app/providers/better-t-stack/utils/get-latest-cli-version.d.ts +1 -0
  539. package/bin/app/providers/better-t-stack/utils/get-latest-cli-version.js +8 -0
  540. package/bin/app/providers/better-t-stack/utils/get-package-execution-command.d.ts +10 -0
  541. package/bin/app/providers/better-t-stack/utils/get-package-execution-command.js +10 -0
  542. package/bin/app/providers/better-t-stack/utils/get-package-manager.d.ts +2 -0
  543. package/bin/app/providers/better-t-stack/utils/get-package-manager.js +10 -0
  544. package/bin/app/providers/better-t-stack/utils/open-url.d.ts +1 -0
  545. package/bin/app/providers/better-t-stack/utils/open-url.js +22 -0
  546. package/bin/app/providers/better-t-stack/utils/render-title.d.ts +2 -0
  547. package/bin/app/providers/better-t-stack/utils/render-title.js +43 -0
  548. package/bin/app/providers/better-t-stack/utils/sponsors.d.ts +16 -0
  549. package/bin/app/providers/better-t-stack/utils/sponsors.js +37 -0
  550. package/bin/app/providers/better-t-stack/utils/template-processor.d.ts +8 -0
  551. package/bin/app/providers/better-t-stack/utils/template-processor.js +23 -0
  552. package/bin/app/providers/better-t-stack/validation.d.ts +4 -0
  553. package/bin/app/providers/better-t-stack/validation.js +436 -0
  554. package/bin/app/providers/reliverse-stack/reliverse-stack-mod.d.ts +6 -0
  555. package/bin/app/providers/reliverse-stack/reliverse-stack-mod.js +146 -0
  556. package/bin/app/providers/reliverse-stack/rs-impl.d.ts +37 -0
  557. package/bin/app/providers/reliverse-stack/rs-impl.js +367 -0
  558. package/bin/app/pub/cmd.js +2 -2
  559. package/bin/app/pub/impl.d.ts +1 -1
  560. package/bin/app/pub/impl.js +7 -7
  561. package/bin/app/pub/pub-library.d.ts +5 -0
  562. package/bin/app/pub/pub-library.js +122 -0
  563. package/bin/app/pub/pub-regular.d.ts +9 -0
  564. package/bin/app/pub/pub-regular.js +78 -0
  565. package/bin/app/remdn/cmd.js +4 -6
  566. package/bin/app/remove/cmd.js +4 -4
  567. package/bin/app/rempts/cmd.js +2 -2
  568. package/bin/app/rules/reliverse/dler-config-health/dler-config-health.d.ts +2 -0
  569. package/bin/app/rules/reliverse/dler-config-health/dler-config-health.js +37 -0
  570. package/bin/app/rules/reliverse/file-extensions/file-extensions.d.ts +2 -0
  571. package/bin/app/rules/reliverse/file-extensions/file-extensions.js +62 -0
  572. package/bin/app/rules/reliverse/missing-deps/analyzer.js +49 -0
  573. package/bin/app/rules/reliverse/missing-deps/deps-mod.d.ts +2 -0
  574. package/bin/app/rules/reliverse/missing-deps/deps-mod.js +57 -0
  575. package/bin/app/rules/reliverse/missing-deps/deps-types.js +0 -0
  576. package/bin/app/rules/reliverse/missing-deps/formatter.js +101 -0
  577. package/bin/app/rules/reliverse/no-dynamic-imports/no-dynamic-imports.d.ts +7 -0
  578. package/bin/app/rules/reliverse/no-dynamic-imports/no-dynamic-imports.js +89 -0
  579. package/bin/app/rules/reliverse/no-index-files/no-index-files.d.ts +2 -0
  580. package/bin/app/rules/reliverse/package-json-health/package-json-health.d.ts +2 -0
  581. package/bin/app/rules/reliverse/path-extensions/path-extensions.d.ts +2 -0
  582. package/bin/app/rules/reliverse/path-extensions/path-extensions.js +87 -0
  583. package/bin/app/rules/reliverse/self-include/self-include.d.ts +2 -0
  584. package/bin/app/rules/reliverse/self-include/self-include.js +93 -0
  585. package/bin/app/rules/reliverse/tsconfig-health/tsconfig-health.d.ts +2 -0
  586. package/bin/app/rules/rules-mod.d.ts +2 -0
  587. package/bin/app/rules/rules-utils.js +49 -0
  588. package/bin/app/schema/cmd.d.ts +2 -0
  589. package/bin/app/schema/cmd.js +24 -0
  590. package/bin/app/schema/schema-impl.d.ts +2 -0
  591. package/bin/app/schema/schema-impl.js +24 -0
  592. package/bin/app/studio/cmd.d.ts +2 -0
  593. package/bin/app/studio/cmd.js +20 -0
  594. package/bin/app/studio/studio-impl.d.ts +2 -0
  595. package/bin/app/studio/studio-impl.js +20 -0
  596. package/bin/app/toolbox/cmd.d.ts +7 -0
  597. package/bin/app/toolbox/cmd.js +37 -0
  598. package/bin/app/toolbox/toolbox-impl.d.ts +6 -0
  599. package/bin/app/toolbox/toolbox-impl.js +127 -0
  600. package/bin/app/toolbox/toolbox-vercel.d.ts +6 -0
  601. package/bin/app/toolbox/toolbox-vercel.js +105 -0
  602. package/bin/app/types/mod.d.ts +2165 -0
  603. package/bin/app/types/mod.js +162 -0
  604. package/bin/app/update/cmd-2.d.ts +2 -0
  605. package/bin/app/update/cmd-2.js +50 -0
  606. package/bin/app/update/cmd.js +14 -10
  607. package/bin/app/update/migrate/cmd.d.ts +23 -0
  608. package/bin/app/update/migrate/cmd.js +605 -0
  609. package/bin/app/update/update-impl.d.ts +2 -0
  610. package/bin/app/update/update-impl.js +50 -0
  611. package/bin/app/upgrade/cmd.js +2 -2
  612. package/bin/app/upload/cmd.d.ts +17 -0
  613. package/bin/app/upload/cmd.js +67 -0
  614. package/bin/app/upload/providers/providers-mod.d.ts +20 -0
  615. package/bin/app/upload/providers/providers-mod.js +40 -0
  616. package/bin/app/upload/providers/uploadcare.d.ts +13 -0
  617. package/bin/app/upload/providers/uploadcare.js +26 -0
  618. package/bin/app/upload/providers/uploadthing.d.ts +11 -0
  619. package/bin/app/upload/providers/uploadthing.js +31 -0
  620. package/bin/app/upload/upload-utils.d.ts +1 -0
  621. package/bin/app/upload/upload-utils.js +7 -0
  622. package/bin/app/utils/agg/agg-1.js +196 -0
  623. package/bin/app/utils/agg/agg-3.js +197 -0
  624. package/bin/app/utils/agg/agg-5.js +10 -0
  625. package/bin/app/utils/badgeNotifiers.d.ts +2 -0
  626. package/bin/app/utils/badgeNotifiers.js +3 -0
  627. package/bin/app/utils/codemods/convertCjsToEsm.d.ts +1 -0
  628. package/bin/app/utils/codemods/convertCjsToEsm.js +27 -0
  629. package/bin/app/utils/codemods/convertDatabase.d.ts +2 -0
  630. package/bin/app/utils/codemods/convertDatabase.js +229 -0
  631. package/bin/app/utils/codemods/convertDefinitions.d.ts +1 -0
  632. package/bin/app/utils/codemods/convertDefinitions.js +42 -0
  633. package/bin/app/utils/codemods/convertImportStyle.d.ts +1 -0
  634. package/bin/app/utils/codemods/convertImportStyle.js +30 -0
  635. package/bin/app/utils/codemods/convertJsToTs.d.ts +1 -0
  636. package/bin/app/utils/codemods/convertJsToTs.js +99 -0
  637. package/bin/app/utils/codemods/convertQuoteStyle.d.ts +1 -0
  638. package/bin/app/utils/codemods/convertQuoteStyle.js +31 -0
  639. package/bin/app/utils/codemods/convertRuntime.d.ts +1 -0
  640. package/bin/app/utils/codemods/convertRuntime.js +116 -0
  641. package/bin/app/utils/codemods/convertToMonorepo.d.ts +2 -0
  642. package/bin/app/utils/codemods/convertToMonorepo.js +137 -0
  643. package/bin/app/utils/codemods/removeComments.d.ts +1 -0
  644. package/bin/app/utils/codemods/removeComments.js +13 -0
  645. package/bin/app/utils/codemods/removeUnusedDeps.d.ts +1 -0
  646. package/bin/app/utils/codemods/removeUnusedDeps.js +29 -0
  647. package/bin/app/utils/codemods/replaceImportSymbol.d.ts +1 -0
  648. package/bin/app/utils/codemods/replaceImportSymbol.js +57 -0
  649. package/bin/app/utils/codemods/replaceWithModern.d.ts +1 -0
  650. package/bin/app/utils/codemods/replaceWithModern.js +122 -0
  651. package/bin/app/utils/createPackageJSON.d.ts +6 -0
  652. package/bin/app/utils/createPackageJSON.js +20 -0
  653. package/bin/app/utils/decideHelper.d.ts +12 -0
  654. package/bin/app/utils/decideHelper.js +32 -0
  655. package/bin/app/utils/dependencies/getUserPkgManager.d.ts +13 -0
  656. package/bin/app/utils/dependencies/getUserPkgManager.js +178 -0
  657. package/bin/app/utils/downloading/downloadI18nFiles.d.ts +1 -0
  658. package/bin/app/utils/downloading/downloadI18nFiles.js +98 -0
  659. package/bin/app/utils/downloading/downloadRepo.d.ts +41 -0
  660. package/bin/app/utils/downloading/downloadRepo.js +362 -0
  661. package/bin/app/utils/downloading/handleDownload.d.ts +17 -0
  662. package/bin/app/utils/downloading/handleDownload.js +160 -0
  663. package/bin/app/utils/exec/exec-env.js +34 -0
  664. package/bin/app/utils/exec/exec-error.d.ts +7 -0
  665. package/bin/app/utils/exec/exec-error.js +15 -0
  666. package/bin/app/utils/exec/exec-mod.d.ts +58 -0
  667. package/bin/app/utils/exec/exec-mod.js +224 -0
  668. package/bin/app/utils/exec/exec-parse.js +71 -0
  669. package/bin/app/utils/exec/exec-resolve.js +39 -0
  670. package/bin/app/utils/file-type.js +78 -0
  671. package/bin/app/utils/finalize.d.ts +9 -0
  672. package/bin/app/utils/finalize.js +34 -0
  673. package/bin/app/utils/fs-rename.js +108 -0
  674. package/bin/app/utils/getEffectiveDir.d.ts +5 -0
  675. package/bin/app/utils/getEffectiveDir.js +4 -0
  676. package/bin/app/utils/getPackageManager.d.ts +3 -0
  677. package/bin/app/utils/getPackageManager.js +14 -0
  678. package/bin/app/utils/handlers/dependencies.d.ts +1 -0
  679. package/bin/app/utils/handlers/dependencies.js +19 -0
  680. package/bin/app/utils/handlers/handleCleanup.d.ts +1 -0
  681. package/bin/app/utils/handlers/handleCleanup.js +84 -0
  682. package/bin/app/utils/handlers/handleCodemods.d.ts +2 -0
  683. package/bin/app/utils/handlers/handleCodemods.js +203 -0
  684. package/bin/app/utils/handlers/isAppInstalled.d.ts +1 -0
  685. package/bin/app/utils/handlers/isAppInstalled.js +17 -0
  686. package/bin/app/utils/handlers/promptPackageJsonScripts.d.ts +8 -0
  687. package/bin/app/utils/handlers/promptPackageJsonScripts.js +128 -0
  688. package/bin/app/utils/handlers/shadcn.d.ts +19 -0
  689. package/bin/app/utils/handlers/shadcn.js +299 -0
  690. package/bin/app/utils/hasOnlyRseConfig.d.ts +6 -0
  691. package/bin/app/utils/hasOnlyRseConfig.js +15 -0
  692. package/bin/app/utils/init/init-const.d.ts +34 -0
  693. package/bin/app/utils/init/init-const.js +17 -0
  694. package/bin/app/utils/init/init-types.js +0 -0
  695. package/bin/app/utils/instanceGithub.d.ts +29 -0
  696. package/bin/app/utils/instanceGithub.js +50 -0
  697. package/bin/app/utils/instanceVercel.d.ts +16 -0
  698. package/bin/app/utils/instanceVercel.js +39 -0
  699. package/bin/app/utils/microHelpers.d.ts +11 -0
  700. package/bin/app/utils/microHelpers.js +8 -0
  701. package/bin/app/utils/mrseHelpers.d.ts +6 -0
  702. package/bin/app/utils/mrseHelpers.js +21 -0
  703. package/bin/app/utils/native-cli/nc-impl.d.ts +15 -0
  704. package/bin/app/utils/native-cli/nc-impl.js +154 -0
  705. package/bin/app/utils/native-cli/nc-mod.d.ts +3 -0
  706. package/bin/app/utils/native-cli/nc-mod.js +44 -0
  707. package/bin/app/utils/pkgJsonHelpers.d.ts +7 -0
  708. package/bin/app/utils/pkgJsonHelpers.js +15 -0
  709. package/bin/app/utils/pm/pm-api.js +170 -0
  710. package/bin/app/utils/pm/pm-meta.js +86 -0
  711. package/bin/app/utils/pm/pm-types.js +0 -0
  712. package/bin/app/utils/pm/pm-utils.js +115 -0
  713. package/bin/app/utils/projectRepository.d.ts +59 -0
  714. package/bin/app/utils/projectRepository.js +229 -0
  715. package/bin/app/utils/prompts/askAppOrLib.d.ts +1 -0
  716. package/bin/app/utils/prompts/askAppOrLib.js +30 -0
  717. package/bin/app/utils/prompts/askInstallDeps.d.ts +7 -0
  718. package/bin/app/utils/prompts/askInstallDeps.js +40 -0
  719. package/bin/app/utils/prompts/askOpenInIDE.d.ts +5 -0
  720. package/bin/app/utils/prompts/askOpenInIDE.js +43 -0
  721. package/bin/app/utils/prompts/askProjectName.d.ts +3 -0
  722. package/bin/app/utils/prompts/askProjectName.js +21 -0
  723. package/bin/app/utils/prompts/askUsernameFrontend.d.ts +2 -0
  724. package/bin/app/utils/prompts/askUsernameFrontend.js +29 -0
  725. package/bin/app/utils/prompts/askUsernameGithub.d.ts +2 -0
  726. package/bin/app/utils/prompts/askUsernameGithub.js +29 -0
  727. package/bin/app/utils/prompts/shouldInitGit.d.ts +1 -0
  728. package/bin/app/utils/prompts/shouldInitGit.js +8 -0
  729. package/bin/app/utils/reliverseMemory.d.ts +3 -0
  730. package/bin/app/utils/reliverseMemory.js +122 -0
  731. package/bin/app/utils/replacements/reps-impl.d.ts +35 -0
  732. package/bin/app/utils/replacements/reps-impl.js +216 -0
  733. package/bin/app/utils/replacements/reps-keys.d.ts +19 -0
  734. package/bin/app/utils/replacements/reps-keys.js +31 -0
  735. package/bin/app/utils/replacements/reps-mod.d.ts +5 -0
  736. package/bin/app/utils/replacements/reps-mod.js +211 -0
  737. package/bin/app/utils/replacements.d.ts +0 -0
  738. package/bin/app/utils/replacements.js +0 -0
  739. package/bin/app/utils/resolve-cross-libs.js +641 -0
  740. package/bin/app/utils/schemaMemory.d.ts +31 -0
  741. package/bin/app/utils/schemaMemory.js +16 -0
  742. package/bin/app/utils/schemaTemplate.d.ts +52 -0
  743. package/bin/app/utils/schemaTemplate.js +117 -0
  744. package/bin/app/utils/spinner.d.ts +17 -0
  745. package/bin/app/utils/spinner.js +54 -0
  746. package/bin/app/utils/startEndPrompts.d.ts +2 -0
  747. package/bin/app/utils/startEndPrompts.js +14 -0
  748. package/bin/app/utils/terminalHelpers.d.ts +19 -0
  749. package/bin/app/utils/terminalHelpers.js +43 -0
  750. package/bin/app/utils/testsRuntime.d.ts +5 -0
  751. package/bin/app/utils/testsRuntime.js +11 -0
  752. package/bin/app/utils/tsconfigHelpers.d.ts +5 -0
  753. package/bin/app/utils/tsconfigHelpers.js +14 -0
  754. package/bin/app/utils/utils-build.d.ts +33 -0
  755. package/bin/app/utils/utils-clean.d.ts +11 -0
  756. package/bin/app/utils/utils-clean.js +70 -0
  757. package/bin/app/utils/utils-deps.d.ts +5 -0
  758. package/bin/app/utils/utils-determine.d.ts +12 -0
  759. package/bin/app/utils/utils-fs.js +183 -0
  760. package/bin/app/utils/utils-jsr-json.d.ts +9 -0
  761. package/bin/app/utils/utils-jsr-json.js +75 -0
  762. package/bin/app/utils/utils-package-json-libraries.d.ts +10 -0
  763. package/bin/app/utils/utils-package-json-regular.d.ts +8 -0
  764. package/bin/app/utils/utils-package-json-regular.js +165 -0
  765. package/bin/app/utils/utils-perf.d.ts +5 -0
  766. package/bin/app/utils/utils-security.d.ts +12 -0
  767. package/bin/app/utils/utils-security.js +95 -0
  768. package/bin/app/utils/utils-tsconfig.d.ts +10 -0
  769. package/bin/app/utils/utils-tsconfig.js +81 -0
  770. package/bin/app/web/README.md +149 -0
  771. package/bin/app/web/cmd.d.ts +2 -0
  772. package/bin/app/web/cmd.js +11 -0
  773. package/bin/app/x/cmd.js +3 -3
  774. package/bin/dler-go +4 -0
  775. package/bin/dler-rust +4 -0
  776. package/bin/dler.d.ts +1 -0
  777. package/bin/dler.js +98 -0
  778. package/bin/mod.d.ts +294 -1
  779. package/bin/mod.js +734 -4
  780. package/package.json +65 -7
  781. package/bin/cli.js +0 -89
  782. package/bin/libs/cfg/cfg-impl/cfg-dler.d.ts +0 -812
  783. package/bin/libs/cfg/cfg-impl/cfg-dler.js +0 -161
  784. package/bin/libs/cfg/cfg-mod.d.ts +0 -2
  785. package/bin/libs/cfg/cfg-mod.js +0 -1
  786. package/bin/libs/get/get-impl/get-core.js +0 -453
  787. package/bin/libs/get/get-mod.js +0 -88
  788. package/bin/libs/sdk/sdk-impl/build/build-library.d.ts +0 -43
  789. package/bin/libs/sdk/sdk-impl/build/build-library.js +0 -639
  790. package/bin/libs/sdk/sdk-impl/build/build-regular.d.ts +0 -20
  791. package/bin/libs/sdk/sdk-impl/build/build-regular.js +0 -407
  792. package/bin/libs/sdk/sdk-impl/build/providers/auto.d.ts +0 -3
  793. package/bin/libs/sdk/sdk-impl/build/providers/auto.js +0 -105
  794. package/bin/libs/sdk/sdk-impl/build/providers/build.d.ts +0 -8
  795. package/bin/libs/sdk/sdk-impl/build/providers/build.js +0 -351
  796. package/bin/libs/sdk/sdk-impl/build/providers/bun/single-file.js +0 -133
  797. package/bin/libs/sdk/sdk-impl/build/providers/copy/copy-mod.d.ts +0 -2
  798. package/bin/libs/sdk/sdk-impl/build/providers/copy/copy-mod.js +0 -49
  799. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loader.d.ts +0 -4
  800. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loaders/js.d.ts +0 -2
  801. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loaders/loaders-mod.d.ts +0 -12
  802. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loaders/postcss.d.ts +0 -3
  803. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loaders/sass.d.ts +0 -2
  804. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loaders/sass.js +0 -31
  805. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loaders/vue.d.ts +0 -17
  806. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/loaders/vue.js +0 -145
  807. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/make.d.ts +0 -11
  808. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/make.js +0 -192
  809. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/utils/dts.d.ts +0 -11
  810. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/utils/dts.js +0 -94
  811. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/utils/vue-dts.d.ts +0 -3
  812. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-impl/utils/vue-dts.js +0 -174
  813. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-mod.d.ts +0 -2
  814. package/bin/libs/sdk/sdk-impl/build/providers/mkdist/mkdist-mod.js +0 -92
  815. package/bin/libs/sdk/sdk-impl/build/providers/rollup/build.d.ts +0 -2
  816. package/bin/libs/sdk/sdk-impl/build/providers/rollup/config.d.ts +0 -2
  817. package/bin/libs/sdk/sdk-impl/build/providers/rollup/config.js +0 -113
  818. package/bin/libs/sdk/sdk-impl/build/providers/rollup/plugins/cjs.d.ts +0 -4
  819. package/bin/libs/sdk/sdk-impl/build/providers/rollup/plugins/esbuild.d.ts +0 -3
  820. package/bin/libs/sdk/sdk-impl/build/providers/rollup/plugins/shebang.js +0 -42
  821. package/bin/libs/sdk/sdk-impl/build/providers/rollup/stub.d.ts +0 -2
  822. package/bin/libs/sdk/sdk-impl/build/providers/rollup/stub.js +0 -125
  823. package/bin/libs/sdk/sdk-impl/build/providers/rollup/utils.d.ts +0 -5
  824. package/bin/libs/sdk/sdk-impl/build/providers/rollup/watch.d.ts +0 -2
  825. package/bin/libs/sdk/sdk-impl/build/providers/untyped/untyped-mod.d.ts +0 -2
  826. package/bin/libs/sdk/sdk-impl/build/providers/untyped/untyped-mod.js +0 -111
  827. package/bin/libs/sdk/sdk-impl/build/providers/utils.d.ts +0 -19
  828. package/bin/libs/sdk/sdk-impl/build/providers/utils.js +0 -148
  829. package/bin/libs/sdk/sdk-impl/build/providers/validate.d.ts +0 -4
  830. package/bin/libs/sdk/sdk-impl/build/providers/validate.js +0 -52
  831. package/bin/libs/sdk/sdk-impl/cmds/inject/inject-impl-mod.js +0 -724
  832. package/bin/libs/sdk/sdk-impl/cmds/transform/transform-impl-mod.js +0 -178
  833. package/bin/libs/sdk/sdk-impl/config/core.js +0 -231
  834. package/bin/libs/sdk/sdk-impl/config/default.d.ts +0 -6
  835. package/bin/libs/sdk/sdk-impl/config/default.js +0 -159
  836. package/bin/libs/sdk/sdk-impl/config/info.d.ts +0 -2
  837. package/bin/libs/sdk/sdk-impl/config/info.js +0 -20
  838. package/bin/libs/sdk/sdk-impl/config/load.d.ts +0 -15
  839. package/bin/libs/sdk/sdk-impl/config/load.js +0 -87
  840. package/bin/libs/sdk/sdk-impl/config/prepare.js +0 -338
  841. package/bin/libs/sdk/sdk-impl/config/types.d.ts +0 -734
  842. package/bin/libs/sdk/sdk-impl/constants.d.ts +0 -1
  843. package/bin/libs/sdk/sdk-impl/constants.js +0 -13
  844. package/bin/libs/sdk/sdk-impl/library-flow.d.ts +0 -26
  845. package/bin/libs/sdk/sdk-impl/library-flow.js +0 -203
  846. package/bin/libs/sdk/sdk-impl/magic/magic-apply.js +0 -669
  847. package/bin/libs/sdk/sdk-impl/pub/pub-library.d.ts +0 -5
  848. package/bin/libs/sdk/sdk-impl/pub/pub-library.js +0 -122
  849. package/bin/libs/sdk/sdk-impl/pub/pub-regular.d.ts +0 -9
  850. package/bin/libs/sdk/sdk-impl/pub/pub-regular.js +0 -78
  851. package/bin/libs/sdk/sdk-impl/regular-flow.d.ts +0 -10
  852. package/bin/libs/sdk/sdk-impl/regular-flow.js +0 -173
  853. package/bin/libs/sdk/sdk-impl/rules/reliverse/dler-config-health/dler-config-health.d.ts +0 -2
  854. package/bin/libs/sdk/sdk-impl/rules/reliverse/dler-config-health/dler-config-health.js +0 -37
  855. package/bin/libs/sdk/sdk-impl/rules/reliverse/file-extensions/file-extensions.d.ts +0 -2
  856. package/bin/libs/sdk/sdk-impl/rules/reliverse/file-extensions/file-extensions.js +0 -65
  857. package/bin/libs/sdk/sdk-impl/rules/reliverse/missing-deps/analyzer.js +0 -49
  858. package/bin/libs/sdk/sdk-impl/rules/reliverse/missing-deps/deps-mod.d.ts +0 -2
  859. package/bin/libs/sdk/sdk-impl/rules/reliverse/missing-deps/deps-mod.js +0 -57
  860. package/bin/libs/sdk/sdk-impl/rules/reliverse/missing-deps/formatter.js +0 -101
  861. package/bin/libs/sdk/sdk-impl/rules/reliverse/no-dynamic-imports/no-dynamic-imports.d.ts +0 -8
  862. package/bin/libs/sdk/sdk-impl/rules/reliverse/no-dynamic-imports/no-dynamic-imports.js +0 -89
  863. package/bin/libs/sdk/sdk-impl/rules/reliverse/no-index-files/no-index-files.d.ts +0 -2
  864. package/bin/libs/sdk/sdk-impl/rules/reliverse/package-json-health/package-json-health.d.ts +0 -2
  865. package/bin/libs/sdk/sdk-impl/rules/reliverse/path-extensions/path-extensions.d.ts +0 -2
  866. package/bin/libs/sdk/sdk-impl/rules/reliverse/path-extensions/path-extensions.js +0 -90
  867. package/bin/libs/sdk/sdk-impl/rules/reliverse/self-include/self-include.d.ts +0 -2
  868. package/bin/libs/sdk/sdk-impl/rules/reliverse/self-include/self-include.js +0 -93
  869. package/bin/libs/sdk/sdk-impl/rules/reliverse/tsconfig-health/tsconfig-health.d.ts +0 -2
  870. package/bin/libs/sdk/sdk-impl/rules/rules-mod.d.ts +0 -2
  871. package/bin/libs/sdk/sdk-impl/rules/rules-utils.js +0 -49
  872. package/bin/libs/sdk/sdk-impl/sdk-types.d.ts +0 -415
  873. package/bin/libs/sdk/sdk-impl/utils/agg/agg-1.js +0 -196
  874. package/bin/libs/sdk/sdk-impl/utils/agg/agg-3.js +0 -197
  875. package/bin/libs/sdk/sdk-impl/utils/agg/agg-5.js +0 -17
  876. package/bin/libs/sdk/sdk-impl/utils/exec/exec-env.js +0 -34
  877. package/bin/libs/sdk/sdk-impl/utils/exec/exec-error.d.ts +0 -7
  878. package/bin/libs/sdk/sdk-impl/utils/exec/exec-error.js +0 -15
  879. package/bin/libs/sdk/sdk-impl/utils/exec/exec-mod.d.ts +0 -58
  880. package/bin/libs/sdk/sdk-impl/utils/exec/exec-mod.js +0 -224
  881. package/bin/libs/sdk/sdk-impl/utils/exec/exec-parse.js +0 -71
  882. package/bin/libs/sdk/sdk-impl/utils/exec/exec-resolve.js +0 -39
  883. package/bin/libs/sdk/sdk-impl/utils/file-type.js +0 -78
  884. package/bin/libs/sdk/sdk-impl/utils/finalize.d.ts +0 -10
  885. package/bin/libs/sdk/sdk-impl/utils/finalize.js +0 -34
  886. package/bin/libs/sdk/sdk-impl/utils/fs-rename.js +0 -108
  887. package/bin/libs/sdk/sdk-impl/utils/init/init-const.d.ts +0 -34
  888. package/bin/libs/sdk/sdk-impl/utils/init/init-const.js +0 -17
  889. package/bin/libs/sdk/sdk-impl/utils/pm/pm-api.js +0 -170
  890. package/bin/libs/sdk/sdk-impl/utils/pm/pm-meta.js +0 -86
  891. package/bin/libs/sdk/sdk-impl/utils/pm/pm-utils.js +0 -115
  892. package/bin/libs/sdk/sdk-impl/utils/resolve-cross-libs.js +0 -641
  893. package/bin/libs/sdk/sdk-impl/utils/spinner.d.ts +0 -17
  894. package/bin/libs/sdk/sdk-impl/utils/spinner.js +0 -53
  895. package/bin/libs/sdk/sdk-impl/utils/utils-build.d.ts +0 -33
  896. package/bin/libs/sdk/sdk-impl/utils/utils-clean.d.ts +0 -11
  897. package/bin/libs/sdk/sdk-impl/utils/utils-clean.js +0 -70
  898. package/bin/libs/sdk/sdk-impl/utils/utils-consts.d.ts +0 -9
  899. package/bin/libs/sdk/sdk-impl/utils/utils-consts.js +0 -10
  900. package/bin/libs/sdk/sdk-impl/utils/utils-deps.d.ts +0 -5
  901. package/bin/libs/sdk/sdk-impl/utils/utils-determine.d.ts +0 -12
  902. package/bin/libs/sdk/sdk-impl/utils/utils-fs.js +0 -183
  903. package/bin/libs/sdk/sdk-impl/utils/utils-jsr-json.d.ts +0 -9
  904. package/bin/libs/sdk/sdk-impl/utils/utils-jsr-json.js +0 -75
  905. package/bin/libs/sdk/sdk-impl/utils/utils-package-json-libraries.d.ts +0 -10
  906. package/bin/libs/sdk/sdk-impl/utils/utils-package-json-regular.d.ts +0 -8
  907. package/bin/libs/sdk/sdk-impl/utils/utils-package-json-regular.js +0 -165
  908. package/bin/libs/sdk/sdk-impl/utils/utils-perf.d.ts +0 -5
  909. package/bin/libs/sdk/sdk-impl/utils/utils-security.d.ts +0 -12
  910. package/bin/libs/sdk/sdk-impl/utils/utils-security.js +0 -95
  911. package/bin/libs/sdk/sdk-impl/utils/utils-tsconfig.d.ts +0 -4
  912. package/bin/libs/sdk/sdk-impl/utils/utils-tsconfig.js +0 -44
  913. package/bin/libs/sdk/sdk-mod.d.ts +0 -125
  914. package/bin/libs/sdk/sdk-mod.js +0 -303
  915. /package/bin/{libs/sdk/sdk-impl/build/providers/bun/bun-build.d.ts → app/add/add-global/install-mod.d.ts} +0 -0
  916. /package/bin/{libs/sdk/sdk-impl/build/providers/bun/bun-build.js → app/add/add-global/install-mod.js} +0 -0
  917. /package/bin/{libs/sdk/sdk-impl/config → app/add/add-local/core}/types.js +0 -0
  918. /package/bin/{libs/sdk/sdk-impl/rules/reliverse/missing-deps/deps-types.js → app/add/add-rule/add-rule-types.js} +0 -0
  919. /package/bin/{libs/sdk/sdk-impl/sdk-types.js → app/ai/ai-impl/ai-types.js} +0 -0
  920. /package/bin/{libs/sdk/sdk-impl/utils/init/init-types.js → app/better/auth/(generators)/types.js} +0 -0
  921. /package/bin/{libs/sdk/sdk-impl/utils/pm/pm-types.js → app/build/providers/bun/bun-build.d.ts} +0 -0
  922. /package/bin/{libs/sdk/sdk-impl/utils/replacements.d.ts → app/build/providers/bun/bun-build.js} +0 -0
  923. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/bun/single-file.d.ts +0 -0
  924. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/mkdist/mkdist-impl/loader.js +0 -0
  925. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/mkdist/mkdist-impl/loaders/js.js +0 -0
  926. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/mkdist/mkdist-impl/loaders/loaders-mod.js +0 -0
  927. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/mkdist/mkdist-impl/loaders/postcss.js +0 -0
  928. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/mkdist/mkdist-impl/utils/fs.d.ts +0 -0
  929. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/mkdist/mkdist-impl/utils/fs.js +0 -0
  930. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/build.js +0 -0
  931. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/plugins/cjs.js +0 -0
  932. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/plugins/esbuild.js +0 -0
  933. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/plugins/json.d.ts +0 -0
  934. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/plugins/json.js +0 -0
  935. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/plugins/raw.d.ts +0 -0
  936. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/plugins/raw.js +0 -0
  937. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/plugins/shebang.d.ts +0 -0
  938. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/utils.js +0 -0
  939. /package/bin/{libs/sdk/sdk-impl → app}/build/providers/rollup/watch.js +0 -0
  940. /package/bin/{libs/sdk/sdk-impl → app}/cmds/inject/inject-impl-mod.d.ts +0 -0
  941. /package/bin/{libs/sdk/sdk-impl → app}/cmds/transform/transform-impl-mod.d.ts +0 -0
  942. /package/bin/{libs/sdk/sdk-impl → app}/config/core.d.ts +0 -0
  943. /package/bin/{libs/sdk/sdk-impl → app}/config/prepare.d.ts +0 -0
  944. /package/bin/{cli.d.ts → app/cross/mod.d.ts} +0 -0
  945. /package/bin/{libs → app}/get/get-impl/get-core.d.ts +0 -0
  946. /package/bin/{libs → app}/get/get-mod.d.ts +0 -0
  947. /package/bin/{libs/sdk/sdk-impl/utils/replacements.js → app/init/use-template/cp-modules/git-deploy-prompts/vercel/vercel-types.js} +0 -0
  948. /package/bin/{libs/sdk/sdk-impl → app}/magic/magic-apply.d.ts +0 -0
  949. /package/bin/{libs/sdk/sdk-impl → app}/magic/magic-spells.d.ts +0 -0
  950. /package/bin/{libs/sdk/sdk-impl → app}/magic/magic-spells.js +0 -0
  951. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/missing-deps/analyzer.d.ts +0 -0
  952. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/missing-deps/deps-types.d.ts +0 -0
  953. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/missing-deps/filesystem.d.ts +0 -0
  954. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/missing-deps/filesystem.js +0 -0
  955. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/missing-deps/formatter.d.ts +0 -0
  956. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/missing-deps/parser.d.ts +0 -0
  957. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/missing-deps/parser.js +0 -0
  958. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/no-index-files/no-index-files.js +0 -0
  959. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/package-json-health/package-json-health.js +0 -0
  960. /package/bin/{libs/sdk/sdk-impl → app}/rules/reliverse/tsconfig-health/tsconfig-health.js +0 -0
  961. /package/bin/{libs/sdk/sdk-impl → app}/rules/rules-consts.d.ts +0 -0
  962. /package/bin/{libs/sdk/sdk-impl → app}/rules/rules-consts.js +0 -0
  963. /package/bin/{libs/sdk/sdk-impl → app}/rules/rules-mod.js +0 -0
  964. /package/bin/{libs/sdk/sdk-impl → app}/rules/rules-utils.d.ts +0 -0
  965. /package/bin/{libs/sdk/sdk-impl → app}/utils/agg/agg-1.d.ts +0 -0
  966. /package/bin/{libs/sdk/sdk-impl → app}/utils/agg/agg-2.d.ts +0 -0
  967. /package/bin/{libs/sdk/sdk-impl → app}/utils/agg/agg-2.js +0 -0
  968. /package/bin/{libs/sdk/sdk-impl → app}/utils/agg/agg-3.d.ts +0 -0
  969. /package/bin/{libs/sdk/sdk-impl → app}/utils/agg/agg-4.d.ts +0 -0
  970. /package/bin/{libs/sdk/sdk-impl → app}/utils/agg/agg-4.js +0 -0
  971. /package/bin/{libs/sdk/sdk-impl → app}/utils/agg/agg-5.d.ts +0 -0
  972. /package/bin/{libs/sdk/sdk-impl → app}/utils/b-exts.d.ts +0 -0
  973. /package/bin/{libs/sdk/sdk-impl → app}/utils/b-exts.js +0 -0
  974. /package/bin/{libs/sdk/sdk-impl → app}/utils/binary.d.ts +0 -0
  975. /package/bin/{libs/sdk/sdk-impl → app}/utils/binary.js +0 -0
  976. /package/bin/{libs/sdk/sdk-impl → app}/utils/comments.d.ts +0 -0
  977. /package/bin/{libs/sdk/sdk-impl → app}/utils/comments.js +0 -0
  978. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-enoent.d.ts +0 -0
  979. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-enoent.js +0 -0
  980. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-env.d.ts +0 -0
  981. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-escape.d.ts +0 -0
  982. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-escape.js +0 -0
  983. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-parse.d.ts +0 -0
  984. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-resolve.d.ts +0 -0
  985. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-shebang.d.ts +0 -0
  986. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-shebang.js +0 -0
  987. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-spawn.d.ts +0 -0
  988. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-spawn.js +0 -0
  989. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-stream.d.ts +0 -0
  990. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-stream.js +0 -0
  991. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-types.d.ts +0 -0
  992. /package/bin/{libs/sdk/sdk-impl → app}/utils/exec/exec-types.js +0 -0
  993. /package/bin/{libs/sdk/sdk-impl → app}/utils/file-type.d.ts +0 -0
  994. /package/bin/{libs/sdk/sdk-impl → app}/utils/fs-rename.d.ts +0 -0
  995. /package/bin/{libs/sdk/sdk-impl → app}/utils/init/init-impl.d.ts +0 -0
  996. /package/bin/{libs/sdk/sdk-impl → app}/utils/init/init-impl.js +0 -0
  997. /package/bin/{libs/sdk/sdk-impl → app}/utils/init/init-tmpl.d.ts +0 -0
  998. /package/bin/{libs/sdk/sdk-impl → app}/utils/init/init-tmpl.js +0 -0
  999. /package/bin/{libs/sdk/sdk-impl → app}/utils/init/init-types.d.ts +0 -0
  1000. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-api.d.ts +0 -0
  1001. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-catalog.d.ts +0 -0
  1002. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-catalog.js +0 -0
  1003. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-detect.d.ts +0 -0
  1004. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-detect.js +0 -0
  1005. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-meta.d.ts +0 -0
  1006. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-parse.d.ts +0 -0
  1007. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-parse.js +0 -0
  1008. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-types.d.ts +0 -0
  1009. /package/bin/{libs/sdk/sdk-impl → app}/utils/pm/pm-utils.d.ts +0 -0
  1010. /package/bin/{libs/sdk/sdk-impl → app}/utils/resolve-cross-libs.d.ts +0 -0
  1011. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-build.js +0 -0
  1012. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-deps.js +0 -0
  1013. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-determine.js +0 -0
  1014. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-error-cwd.d.ts +0 -0
  1015. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-error-cwd.js +0 -0
  1016. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-fs.d.ts +0 -0
  1017. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-misc.d.ts +0 -0
  1018. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-misc.js +0 -0
  1019. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-package-json-libraries.js +0 -0
  1020. /package/bin/{libs/sdk/sdk-impl → app}/utils/utils-perf.js +0 -0
package/README.md CHANGED
@@ -1,1213 +1,25 @@
1
- # 🧬 dler extend your bun/pnpm/yarn/npm usage
2
-
3
- [sponsor](https://github.com/sponsors/blefnk) [discord](https://discord.gg/pb8ukbwpsj) [github](https://github.com/reliverse/dler) [npm](https://npmjs.com/@reliverse/dler)
4
-
5
- > @reliverse/dler (formerly relidler; `/ˈdiː.lər/`, dealer) is both a unified package manager for typescript/javascript projects and a flexible framework for creating, building, and publishing js/ts libraries to npm and jsr.
6
- >
7
- > dler is your package manager’s best friend — it extends bun, deno (🔜), pnpm, yarn, and npm with powerful and modern features.
8
- >
9
- > at its core, dler is a flexible and fully automated bundler that also doubles as an npm/jsr publishing tool. beyond bundling, dler provides a rich codemod toolkit designed for modern typescript/javascript development.
10
-
11
- ## features
12
-
13
- - **drop-in `unjs/unbuild` support** with extended capabilities like publishing
14
- - **automated publishing** to npm and jsr with smart workflow orchestration
15
- - **reliable builds** with robust typescript/javascript support and error handling
16
- - **smart versioning** with semantic release and automatic version bumping
17
- - **zero-config setup** — forget about `package.json` maintenance
18
- - **built-in bun environment** when used as a standalone cli app
19
- - **performance-optimized** using fast build pipelines and aggressive caching
20
- - **17 built-in commands** see [dler commands](#dler-commands) for everything it can do
21
- - **path alias resolution** automatically rewrites tsconfig aliases to relative imports
22
- - **configurable by design** — dedicated config files with sane defaults
23
- - **dual interface** — use via cli or import as sdk for programmatic use
24
- - **clean dist output** — strips internal logs and debug code automatically
25
- - **monorepo support** with experimental `libs` mode for multi-library setups
26
- - **magic spells** — plugin system for custom build logic and extensions
27
- - **codemod toolkit** — powerful code transformation utilities out of the box
28
- - **full monorepo system** with optimized cross-package dependency handling
29
- - **esp. designed for** cli tool creators, project bootstrappers (like [rse](https://github.com/reliverse/rse))
30
- - **perfect for** anyone who wants their package manager to have *sweet powers*
31
-
32
- ## getting started
33
-
34
- before using dler, make sure you have [git](https://git-scm.com/downloads), [node.js](https://nodejs.org/en/download), and a supported package manager installed — **[bun](https://bun.sh/get) is highly recommended** for the best experience.
35
-
36
- ### 0. try the playground
37
-
38
- > 💡 **tip**
39
- > curious to see dler in action before integrating it into your project?
40
- > clone the repo and try e.g. `bun dler build` to build dler using... dler itself!
41
-
42
- ```sh
43
- git clone https://github.com/reliverse/dler.git
44
- cd dler
45
- bun i
46
- bun dler build # runs dler from source (cli entry: src/cli.ts)
47
- ```
48
-
49
- ### 1. install dler
50
-
51
- it is recommended to install dler both globally and as a dev dependency:
52
-
53
- - **global install** — `bun add -g @reliverse/dler` — lets you use dler anywhere, like a system-level cli.
54
- - **dev dependency** — `bun add -D @reliverse/dler` — pins the version per project, so all contributors use the same version.
55
-
56
- instead of global install, you can alternatively install dler as a standalone binary: `bunx @reliverse/dler`
57
-
58
- > usage depends on how dler is installed:
59
- >
60
- > - `dler` → if installed globally (or as standalone binary)
61
- > - `bun dler` → if installed as a dev dependency
62
-
63
- ### 2. initialize dler config
64
-
65
- first-time dler run initializes config, repeatable runs launches dler interactive menu.
66
-
67
- ```sh
68
- bun dler # if installed locally
69
- dler # if installed globally
70
- ```
71
-
72
- this creates a starter config file: `.config/dler.ts`
73
-
74
- - it is recommended to tweak the config to match your project structure
75
- - example config: [.config/dler.ts →](https://github.com/reliverse/dler/blob/main/.config/dler.ts)
76
- - useful options:
77
-
78
- - `buildPreExtensions`: support additional file types like `["ts", "js", "vue", "tsx", "jsx"]`
79
- - `buildTemplatesDir`: exclude a directory from being built; it will be copied as-is (e.g. `src/foo/templates → dist-*/bin/foo/templates`)
80
-
81
- ### 3. run and enjoy
82
-
83
- ```sh
84
- bun dler [build|pub|--help] # if local
85
- dler [build|pub|--help] # if global
86
- ```
87
-
88
- > 💡 run `dler` for an interactive menu, or `dler --help` for full command list.
89
-
90
- ### 4. upgrade your dev tools
91
-
92
- keeping your tools fresh is always a good practice.
93
-
94
- the command below **upgrades not just dler**, but also your local setup — including `git`, `node.js`, `bun`, `npm`, `yarn`, `pnpm`, and more.
95
-
96
- just run:
97
-
98
- ```sh
99
- bun dler upgrade
100
- ```
101
-
102
- > ⚠️ don’t confuse this with `dler update`, which upgrades your **project dependencies** and **global packages**, not your system tools.
103
- > 👉 *note:* both `upgrade` and `update` will update **dler** itself — globally and in your `dependencies` or `devDependencies` if run inside a project with a `package.json` — depends on how dler is installed.
104
-
105
- ## dler commands
106
-
107
- dler ships with a flexible command system (prev. plugins) and **17 built-in commands** (from [reliverse addons](https://reliverse.org/addons) collection).
108
-
109
- feel free to create your own commands. commands can be implemented as built-in directly in `src/app/<command>/impl/*` and then imported from `src/app/<command>/cmd.ts`; or implemented in your own library and then imported from `src/app/<command>/cmd.ts`.
110
-
111
- if you run just `dler` — it will display a list of commands which you can launch interactively.
112
-
113
- ## **available commands**
114
-
115
- [build](#1-build) — [pub](#2-pub) — [agg](#3-agg) — [check](#4-check) — [conv](#5-conv) — [fs](#6-fs) — [init](#7-init) — [inject](#8-inject) — [libs](#9-libs) — [merge](#10-merge) — [migrate](#11-migrate) — [rempts](#12-rempts) — [x](#13-x) — [spell](#14-magic) — [split](#15-split) — [pack](#16-pack)
116
-
117
- ### 0. `core`
118
-
119
- #### `install`
120
-
121
- ```bash
122
- # Install all dependencies
123
- dler install
124
-
125
- # Install with workspace filtering
126
- dler install --filter "pkg-*" --filter "!pkg-c"
127
- dler install --filter "./packages/pkg-*"
128
-
129
- # Install specific package in filtered workspaces
130
- dler install lodash --filter "pkg-*"
131
- ```
132
-
133
- #### `remove`
134
-
135
- ```bash
136
- # Remove package from all workspaces
137
- dler remove lodash
138
-
139
- # Remove from specific workspaces
140
- dler remove lodash --filter "pkg-*" --filter "!pkg-c"
141
- ```
142
-
143
- #### `update`
144
-
145
- when dler detects that you are in a monorepo, it will uses linked dependencies (`--linker`).
146
-
147
- ```bash
148
- # Update all dependencies
149
- dler update
150
-
151
- # Update with workspace filtering
152
- dler update --filter "pkg-*" --filter "!pkg-c"
153
-
154
- # Update specific packages in filtered workspaces
155
- dler update lodash --filter "pkg-*"
156
- ```
157
-
158
- ### 1. `build`
159
-
160
- since dler is fully modular, build command is separated for its own build-in plugin as well.
161
-
162
- ```bash
163
- bun dler build ...
164
- ```
165
-
166
- ### supported bundlers
167
-
168
- - ✅ [mkdist](https://github.com/unjs/mkdist#readme)
169
- - ✅ jsr
170
- - 🏗️ copy
171
- - 🏗️ [bun](https://bun.sh/docs/bundler)
172
- - 🏗️ [rollup](https://rollupjs.org)
173
- - 🏗️ [untyped](https://untyped.unjs.io)
174
- - 🔜 [tsdown](https://rolldown.rs)
175
- - 🔜 copy (prev. jsr)
176
-
177
- **legend**:
178
-
179
- - ✅ well tested with big projects
180
- - 🏗️ not well tested yet
181
- - 🔜 coming soon
182
-
183
- #### 1.1. `build binary` - Standalone Executable Builder
184
-
185
- creates standalone executables for different platforms using bun's `--compile` feature.
186
-
187
- ```bash
188
- # build for default targets (linux x64, windows x64, macos arm64)
189
- bun dler build binary
190
-
191
- # build for all supported platforms
192
- bun dler build binary --targets=all
193
-
194
- # build for specific platforms
195
- bun dler build binary --targets=bun-linux-x64,bun-windows-x64
196
-
197
- # build with optimization
198
- bun dler build binary --bytecode --minify --sourcemap
199
-
200
- # windows-specific options
201
- bun dler build binary --windows-icon=icon.ico --windows-hide-console
202
-
203
- # debugging options
204
- bun dler build binary --no-compile --external=c12,terminal-kit,problematic-package
205
-
206
- # list all available targets
207
- bun dler build binary --targets=list
208
- ```
209
-
210
- **supported platforms:**
211
-
212
- - linux: x64, x64-baseline, x64-modern, arm64 (with glibc/musl variants)
213
- - windows: x64, x64-baseline, x64-modern (with .exe extension)
214
- - macos: x64, arm64
215
-
216
- **output files:**
217
-
218
- - executables: `mycli-linux`, `mycli-windows.exe`, `mycli-darwin-arm64`
219
- - bundled scripts: `mycli-linux.js`, `mycli-windows.js`, `mycli-darwin-arm64.js`
220
-
221
- **typical file sizes:** 60-120mb per executable (includes bun runtime and dependencies)
222
-
223
- ### 2. `pub`
224
-
225
- it already calls build command by itself, so you don't need to run `dler build` separately.
226
-
227
- ```bash
228
- bun dler pub ...
229
- ```
230
-
231
- ### 3. `agg`
232
-
233
- generates aggregator file with content like `import { getsomething } from "./utils.js"`.
234
-
235
- ```bash
236
- # interactively:
237
- dler > "agg"
238
- # non-interactively:
239
- dler agg --input <dir> --out <file> [options]
240
- ```
241
-
242
- **usage example**: if you're exploring the example [playground](#0-try-the-playground), you can try the following:
243
-
244
- 1. open [src/libs/sdk/sdk-mod.ts](https://github.com/reliverse/dler/blob/main/src/libs/sdk/sdk-mod.ts) in your ide.
245
- 2. press `ctrl+a`, then `backspace`. run the command below and watch the magic happen:
246
-
247
- ```bash
248
- bun tools:agg # shortcut for:
249
- bun src/cli.ts tools --dev --tool agg --input src/libs/sdk/sdk-impl --out src/libs/sdk/sdk-mod.ts --recursive --named --strip src/libs/sdk
250
- ```
251
-
252
- ### 4. `check`
253
-
254
- checks your project for common issues and potential improvements. This command performs several types of checks (aka rules of dler):
255
-
256
- - **File Extensions**: Validates that files have the correct extensions based on their location and module resolution strategy
257
- - Enforces `.ts` files in source and JSR distributions
258
- - Enforces `.js` files in NPM distributions
259
- - Supports `.css` and `.json` files in all environments
260
- - Adapts to your module resolution strategy (bundler/nodenext)
261
-
262
- - **Path Extensions**: Ensures import statements use the correct file extensions
263
- - Validates import paths match your module resolution strategy
264
- - Checks for proper extension usage in import statements
265
- - Supports both relative and absolute imports
266
-
267
- - **Dependencies**: Identifies missing dependencies in your project
268
- - Scans all source files for imports
269
- - Compares against package.json
270
- - Reports missing dependencies
271
-
272
- - **Self-Include**: Prevents circular dependencies and self-imports
273
- - Checks for imports from the main package in dist directories
274
- - Prevents libraries from importing themselves
275
- - Allows libraries to import from other libraries
276
-
277
- - **Module Resolution**: Validates TypeScript module resolution settings
278
- - Ensures proper moduleResolution in tsconfig.json
279
- - Supports both "bundler" and "nodenext" strategies
280
- - Reports configuration issues
281
-
282
- - **Dler Config Health**: Validates your dler configuration
283
- - Checks libs main file format
284
- - Ensures proper configuration structure
285
- - Reports configuration issues
286
-
287
- - **Package.json Validation**: Ensures your package.json follows best practices
288
- - Requires: name, version, type=module, keywords
289
- - Forbids: bin, exports, files, main, module (they are auto-generated by dler)
290
- - Helps maintain consistent package configuration
291
-
292
- ```bash
293
- # Fully interactive mode (when no args provided)
294
- dler check
295
-
296
- # Mixed mode (some args provided, prompts for the rest)
297
- dler check --directory src
298
- dler check --checks file-extensions,path-extensions
299
- dler check --strict
300
-
301
- # Fully automated mode (all args provided)
302
- dler check --directory src --checks file-extensions,path-extensions --strict
303
-
304
- # Output in JSON format
305
- dler check --json
306
- ```
307
-
308
- **arguments:**
309
-
310
- - `--directory`: directory to check (src, dist-npm, dist-jsr, dist-libs/npm, dist-libs/jsr, or all)
311
- - `--checks`: comma-separated list of checks to run (missing-deps, file-extensions, path-extensions, dler-config-health, self-include, tsconfig-health, package-json-health)
312
- - `--strict`: enable strict mode (requires explicit extensions)
313
- - `--json`: output results in JSON format
314
-
315
- **pro tip:**
316
- the command will prompt you only for the arguments you haven't provided. for example, if you specify `--directory` but not `--checks`, it will only prompt you to select which checks to run.
317
-
318
- **how deps check works**:
319
-
320
- finds missing dependencies in your project by scanning your code for imports and comparing them to your `package.json`. This command is particularly useful for maintaining clean dependency lists and preventing runtime errors.
321
-
322
- **what it does:**
323
-
324
- - traverses all `.js`, `.jsx`, `.ts`, and `.tsx` files in your project (by default, in the current directory)
325
- - detects all used packages, including scoped ones (`@org/dep-name`)
326
- - supports both es modules (`import ... from "dep"`) and commonjs (`require("dep")`)
327
- - normalizes deep imports like `dep/some/file` to just `dep`
328
- - ignores local/relative imports (`./foo`, `../bar`)
329
- - skips `node_modules`, `.git`, and common build folders
330
- - compares all used packages to those listed in your `package.json`
331
- - shows you which dependencies are missing (not listed)
332
- - can also show all used dependencies (listed and missing)
333
- - optionally includes node.js built-in modules in the report
334
- - outputs results in a readable format or as json
335
- - exits with error code 1 if missing dependencies are found
336
- - detects packages that are only in `devDependencies` but used in production code
337
- - identifies packages listed in both `dependencies` and `devDependencies`
338
-
339
- **usage examples:**
340
-
341
- ```bash
342
- # basic usage - scan current directory
343
- dler deps
344
-
345
- # scan a specific directory
346
- dler deps --directory ./my-project
347
-
348
- # show all dependencies (both listed and missing)
349
- dler deps --all
350
-
351
- # ignore specific patterns
352
- dler deps --ignore "test/**,example/**"
353
-
354
- # output in json format
355
- dler deps --json
356
-
357
- # include node.js built-in modules
358
- dler deps --include-builtins
359
-
360
- # combine options
361
- dler deps --all --directory ./src --include-builtins
362
- ```
363
-
364
- missing dependencies are shown only once, even if used in multiple files.
365
- deep imports like `dep/some/file` or `@org/dep/some/thing` are always resolved to their root package.
366
-
367
- **warning types:**
368
-
369
- - **Missing Dependencies**: Packages that are imported but not listed in `package.json`
370
- - **Dev-only Dependencies**: Packages that are only in `devDependencies` but imported in production code
371
- - **Duplicate Dependencies**: Packages listed in both `dependencies` and `devDependencies`
372
-
373
- ### 5. `conv`
374
-
375
- not yet documented.
376
-
377
- ### 6. `fs`
378
-
379
- ```bash
380
- # simple example:
381
- bun dler fs --mode copy --s "src/**/*.ts" --d "dist"
382
- bun dler fs --mode rm --target "node_modules"
383
- bun dler fs --mode rename --source "index.ts" --destination "index.ts.bak"
384
-
385
- # advanced example:
386
- bun dler fs --mode copy --s ".temp/packages/*/lib/**/*" --d "src/libs/sdk/sdk-impl/rules/external"
387
- bun dler fs --mode rm --target "**/node_modules"
388
- ```
389
-
390
- ### 7. `init`
391
-
392
- not yet documented.
393
-
394
- ### 8. `inject`
395
-
396
- not yet documented.
397
-
398
- ### 9. `libs`
399
-
400
- builds and publishes specific subdirectories of your main project as standalone packages.
401
-
402
- **usage example**:
403
- using `dler` to package [src/libs/sdk](https://github.com/reliverse/dler/tree/main/src/libs/sdk):
404
-
405
- ```ts
406
- // .config/dler.ts
407
- libsactmode: "main-and-libs",
408
- libsdirdist: "dist-libs",
409
- libsdirsrc: "src/libs",
410
- libslist: {
411
- "@reliverse/dler-sdk": {
412
- libdeclarations: true,
413
- libdescription: "@reliverse/dler without cli",
414
- libdirname: "sdk",
415
- libmainfile: "sdk-mod.ts",
416
- libpkgkeepdeps: false,
417
- libtranspileminify: true,
418
- },
419
- },
420
- ```
421
-
422
- **dler task commands**:
423
-
424
- - `// dler-replace-line` tells dler to grab the contents of `../../types.ts` and inject them directly in place of your command definition.
425
-
426
- ```ts
427
- export * from "../../types"; // dler-replace-line
428
- // or:
429
- export type { specificTypeName1, specificTypeName2 } from "../../types"; // dler-replace-line
430
- ```
431
-
432
- - more magic commands coming soon...
433
-
434
- ### 10. `merge`
435
-
436
- merges multiple files into a single file. The command is built for both CI and interactive use, with support for glob patterns and advanced options.
437
-
438
- **key features:**
439
-
440
- - merges text files with optional commented path headers/footers
441
- - skips binary/media files by default
442
- - supports both glob patterns and simple paths
443
- - preserves directory structure when merging to a directory
444
- - generates source maps for merged output
445
- - handles file deduplication
446
- - supports custom separators and comment styles
447
- - provides interactive mode with prompts
448
- - includes backup functionality
449
- - validates file permissions and sizes
450
- - enforces output path conflict detection
451
- - handles both single file and directory output modes
452
- - implements interactive prompts via `@reliverse/rempts`
453
- - provides reporting with logging via `@reliverse/relinka`
454
-
455
- **usage examples:**
456
-
457
- ```bash
458
- # simple example:
459
- bun dler merge --s "src/**/*.ts" --d "dist/merged.ts"
460
-
461
- # advanced example:
462
- bun dler merge --s ".temp1/packages/*/lib/**/*" --d ".temp2/merged.ts" --sort "mtime" --header "// Header" --footer "// Footer" --dedupe
463
- ```
464
-
465
- **arguments:**
466
-
467
- - `--s`: Input glob patterns (array)
468
- - `--d`: Output file path or directory
469
- - `--ignore`: Extra ignore patterns (array)
470
- - `--format`: Fallback extension when output path is omitted (default: "txt")
471
- - `--stdout`: Print to stdout
472
- - `--noPath`: Don't inject relative path below each file
473
- - `--pathAbove`: Print file path above each file's content (default: true)
474
- - `--separator`: Custom separator (default: "\n\n")
475
- - `--comment`: Custom comment prefix (e.g. '# ')
476
- - `--forceComment`: Force custom comment prefix for all file types
477
- - `--batch`: Disable interactive prompts (CI/non-interactive mode)
478
- - `--recursive`: Recursively process all files in subdirectories (default: true)
479
- - `--preserveStructure`: Preserve source directory structure in output (default: true)
480
- - `--increment`: Attach an incrementing index to each output filename
481
- - `--concurrency`: Number of concurrent file operations (default: 8)
482
- - `--sort`: Sort files by: name, path, mtime, none (default: path)
483
- - `--dryRun`: Show what would be done, but don't write files
484
- - `--backup`: Backup output files before overwriting
485
- - `--dedupe`: Remove duplicate file contents in merge
486
- - `--header`: Header text to add at the start of merged output
487
- - `--footer`: Footer text to add at the end of merged output
488
- - `--select-files`: Prompt for file selection before merging
489
- - `--interactive`: Enable interactive mode with prompts
490
- - `--depth`: Depth level to start processing from (default: 0)
491
- - `--sourcemap`: Generate source map for the merged output
492
-
493
- **implementation details:**
494
-
495
- - uses `magic-string` for efficient string manipulation and source map generation
496
- - leverages `@reliverse/reglob` for glob pattern matching
497
- - implements concurrent file operations with `p-map`
498
- - provides file type detection and appropriate comment styles
499
- - includes safety checks for file sizes and permissions
500
- - handles both single file and directory output modes
501
- - implements interactive prompts via `@reliverse/rempts`
502
- - provides reporting with logging via `@reliverse/relinka`
503
-
504
- ### 11. `migrate`
505
-
506
- helps migrate between different libraries and module resolution strategies. currently supports:
507
-
508
- - `anything-bun`: migrate Node.js projects to Bun runtime
509
- - `path-pathkit`: migrate from node:path and unjs/pathe to pathkit library
510
- - `fs-relifso`: migrate from node:fs and fs-extra to relifso library
511
- - `nodenext-bundler`: migrate between module resolution strategies
512
- - `readdir-glob`: migrate from fs.readdir to globby for better file system operations
513
-
514
- **path-pathkit features:**
515
-
516
- - Migrates from both `pathe` and `node:path` to `@reliverse/pathkit`
517
- - Handles both default and named exports
518
- - Supports multi-line imports
519
- - Converts require statements
520
- - Updates package.json dependencies
521
-
522
- **fs-relifso features:**
523
-
524
- - Migrates from both `node:fs` and `fs-extra` to `@reliverse/relifso`
525
- - Handles both default and named exports
526
- - Supports multi-line imports
527
- - Converts require statements
528
- - Updates package.json dependencies
529
- - Preserves import structure and formatting
530
-
531
- **anything-bun features:**
532
-
533
- - Migrates Node.js imports to use `node:` prefix
534
- - Replaces npm/yarn/pnpm features with bun equivalents
535
- - Converts to Bun-native APIs:
536
- - Database: `pg`/`postgres` → `Bun.sql`, `sqlite3` → `bun:sqlite`
537
- - Redis: `redis`/`ioredis` → `Bun.redis`
538
- - Utilities: `glob` → `Bun.Glob`, `bcrypt`/`argon2` → `Bun.password`
539
- - Testing: `jest`/`vitest` → `bun:test`
540
- - FFI: `node-ffi` → `bun:ffi`
541
- - Transforms file operations to `Bun.file` API
542
- - Converts Express apps to `Bun.serve`
543
- - Updates package.json scripts and dependencies
544
- - Generates Bun configuration files
545
- - Creates Dockerfile for Bun deployment
546
-
547
- **readdir-glob features:**
548
-
549
- - Migrates from `fs.readdir` and `fs.readdirSync` to `globby`
550
- - Handles both synchronous and asynchronous readdir operations
551
- - Supports `fs.promises.readdir` migration
552
- - Adds globby import if not present
553
- - Updates package.json with globby dependency
554
- - Preserves target directory paths
555
- - Maintains async/await usage
556
-
557
- **usage examples:**
558
-
559
- ```bash
560
- # Preview changes without applying them
561
- dler migrate --lib readdir-glob --dryRun
562
-
563
- # Apply changes
564
- dler migrate --lib readdir-glob
565
-
566
- # Migrate specific project
567
- dler migrate --lib readdir-glob --project ./my-app
568
- ```
569
-
570
- **module resolution targets:**
571
-
572
- - `nodenext`: adds `.js` extensions to imports and updates tsconfig
573
- - `bundler`: removes extensions from imports and updates tsconfig
574
-
575
- **usage examples:**
576
-
577
- ```bash
578
- # Migrate from node:path and/or pathe to pathkit
579
- dler migrate --lib path-pathkit
580
-
581
- # Migrate from node:fs and/or fs-extra to relifso
582
- dler migrate --lib fs-relifso
583
-
584
- # Migrate to nodenext module resolution
585
- dler migrate --lib nodenext-bundler --target nodenext
586
-
587
- # Migrate to bundler module resolution
588
- dler migrate --lib nodenext-bundler --target bundler
589
-
590
- # Preview changes without applying them
591
- dler migrate --lib nodenext-bundler --target nodenext --dryRun
592
- ```
593
-
594
- **what it does:**
595
-
596
- - updates import statements in your code
597
- - modifies tsconfig.json settings
598
- - updates package.json type field
599
- - provides a dry run option to preview changes
600
- - handles both relative and alias imports
601
- - supports both .ts and .tsx files
602
-
603
- **`console-relinka`**:
604
-
605
- [@reliverse/relinka](https://github.com/reliverse/relinka)'s best friend. Converts between different logging formats (console, consola method/object, and relinka's function/method/object styles).
606
-
607
- ```bash
608
- # Basic usage
609
- dler relinka --input <file> --from <source> --to <target>
610
-
611
- # Examples:
612
- # Convert console.log to relinka function style
613
- dler relinka --input src/app.ts --from console --to relinkaFunction
614
-
615
- # Convert consola method to relinka method style
616
- dler relinka --input src/app.ts --from consolaMethod --to relinkaMethod
617
-
618
- # Convert between relinka styles
619
- dler relinka --input src/app.ts --from relinkaMethod --to relinkaObject
620
-
621
- # Convert to consola object style
622
- dler relinka --input src/app.ts --from relinkaFunction --to consolaObject
623
- ```
624
-
625
- **Supported formats**:
626
-
627
- - `console`: Standard console logging (`console.log(message, ...args)`)
628
- - `consolaMethod`: Consola method style (`consola.log(message, ...args)`)
629
- - `consolaObject`: Consola object style (`consola({ level, message, title?, args? })`)
630
- - `relinkaFunction`: Relinka function style (`relinka("level", message, ...args)`)
631
- - `relinkaMethod`: Relinka method style (`relinka.level(message, ...args)`)
632
- - `relinkaObject`: Relinka object style (`relinka({ level, message, title?, args? })`)
633
-
634
- **Special features**:
635
-
636
- - Preserves additional arguments in all formats
637
- - Handles special box format with title and message
638
- - Maintains proper escaping and formatting
639
- - Supports conversion between any combination of formats
640
- - Supports both consola method and object styles
641
-
642
- **next steps after migration**:
643
-
644
- - for path-pathkit:
645
- 1. run 'bun install' to install @reliverse/pathkit
646
- 2. test your application
647
- 3. consider using advanced pathkit features
648
-
649
- - for fs-relifso:
650
- 1. run 'bun install' to install @reliverse/relifso
651
- 2. test your application
652
- 3. review any file system operations that might need manual updates
653
-
654
- - for nodenext-bundler:
655
- 1. test your application
656
- 2. ensure your build tools support the new module resolution
657
- 3. review any warnings in the migration output
658
-
659
- - for anything-bun:
660
- 1. run 'bun install' to install dependencies with Bun
661
- 2. test your application thoroughly
662
- 3. review async/await usage in converted file operations
663
- 4. update any custom database queries to use Bun.sql syntax
664
- 5. review and update any custom middleware in Express apps
665
-
666
- - for readdir-glob:
667
- 1. run 'bun install' to install globby
668
- 2. test your application
669
- 3. review any file system operations that might need manual updates
670
- 4. consider using globby's advanced features like pattern matching and recursive searching
671
-
672
- ### 12. `rempts`
673
-
674
- @reliverse/rempts's best friend. learn more in its [docs](https://github.com/reliverse/rempts).
675
-
676
- ```bash
677
- bun dler rempts
678
- bun dler rempts --init cmd1 cmd2
679
- ```
680
-
681
- ### 13. `x`
682
-
683
- `dler x` — your package manager — refined.
684
-
685
- ```bash
686
- bun dler x ...
687
- ```
688
-
689
- ### 14. `magic`
690
-
691
- **programmatic usage:**
692
-
693
- ```ts
694
- function main() {
695
- // may be useful when your cli is a project bootstrapper tool like @reliverse/rse
696
- // so you can apply spells to each bootstrapped by you cli project's file
697
- await applyMagicSpells(["my-target-dir"]);
698
- }
699
- await main();
700
- ```
701
-
702
- **or, call it from dler config's hook**:
703
-
704
- ```ts
705
- {
706
- hooksAfterBuild: [
707
- async () => {
708
- // useful when you want to apply spells right after dler's build
709
- await applyMagicSpells(["dist-jsr", "dist-npm", "dist-libs"]);
710
- }
711
- ],
712
- }
713
- ```
714
-
715
- **or, use `dler magic`**:
716
-
717
- ```bash
718
- dler magic --targets "my-target-dir"
719
- ```
720
-
721
- **available spell types:**
722
-
723
- - `replace-line` — injects contents from one file into another
724
- - `replace-range` — replaces a range of lines with content from another file
725
- - `rename-file` — renames the current file
726
- - `remove-comment` — removes a specific comment from code
727
- - `remove-line` — removes a specific line from code
728
- - `remove-file` — deletes the current file
729
- - `transform-content` — applies a transformation to the file content
730
- - `transform-line` — applies a transformation to a specific line
731
- - `copy-file` — copies the current file to a new location
732
- - `move-file` — moves the current file to a new location
733
- - `insert-at` — inserts content at a specific position in the file
734
- - `insert-before` — inserts content before a specific line
735
- - `insert-after` — inserts content after a specific line
736
- - `conditional-execute` — executes spells conditionally
737
-
738
- **params:**
739
-
740
- params are optional and comma-separated.
741
-
742
- - `hooked` (boolean, default: `true`)
743
- - `true`: disables default behavior, so you can trigger the spell yourself (e.g. from your own cli function)
744
- - `false`: dler handles the spell automatically at postbuild
745
- - `startLine` (number) — line number to start the operation (for range operations)
746
- - `endLine` (number) — line number to end the operation (for range operations)
747
- - `condition` (string) — condition to check before executing the spell
748
- - `skipIfMissing` (boolean) — whether to skip the spell if the target file doesn't exist
749
- - `createDir` (boolean) — whether to create the target directory if it doesn't exist
750
-
751
- **usage examples:**
752
-
753
- - `export * from "../../types"; // dler-replace-line` — injects file contents at this line (hooked=true by default)
754
- - `// @ts-expect-error dler-remove-comment` — removes just this comment (hooked=true by default)
755
- - `// dler-remove-line` — removes this line (hooked=true by default)
756
- - `// dler-remove-file` — deletes this file (hooked=true by default)
757
- - `// dler-rename-file-"tsconfig.json"-{hooked=false}` — renames this file (runs at postbuild because `hooked=false`)
758
- - `// dler-replace-range-"../../types.js"-{startLine=1,endLine=5}` — replaces lines 1-5 with content from types.js
759
- - `// dler-transform-line-"return line.toUpperCase()"` — transforms the line to uppercase
760
- - `// dler-insert-before-"import { x } from 'y';"` — inserts import statement before this line
761
- - `// dler-insert-after-"export { x };"` — inserts export statement after this line
762
- - `// dler-conditional-execute-{condition="content.includes('TODO')"}` — executes spells only if file contains TODO
763
-
764
- **using `hooked=false`:**
765
-
766
- - `// dler-rename-file-"tsconfig.json"-{hooked=false}` — renames the file immediately at postbuild (not hooked)
767
-
768
- **triggering spells:**
769
-
770
- from dler's cli:
771
-
772
- - `dler spell --trigger rename-file,... --files tsconfig.json,...`
773
- - `dler spell --trigger all`
774
- - `dler spell`
775
-
776
- from your own code:
777
-
778
- ```ts
779
- await dler.spell({ spells: ["rename-file"], files: [] });
780
- await dler.spell({}) // all spells, all files
781
- spells: ["all"] // means all spells
782
- spells: [] // also means all spells
783
- files: [] // means all files
784
- ```
785
-
786
- p.s. [see how rse cli uses hooked=true](https://github.com/reliverse/rse/blob/main/src/postbuild.ts)
787
-
788
- > Contributors: Please check the [docs/cmds/SPELLS.md](./docs/cmds/SPELLS.md) file for more technical details.
789
-
790
- ### 15. `split`
791
-
792
- splits your code/text file into multiple files.
793
-
794
- ```bash
795
- bun dler split ...
796
- ```
797
-
798
- ### 16. `pack`
799
-
800
- packs a directory of templates into TypeScript modules. This command is useful for creating reusable template packages that can be distributed and used by other projects.
801
-
802
- **key features:**
803
-
804
- - Converts directory structure into TypeScript modules
805
- - Handles binary files with automatic hashing and storage
806
- - Preserves JSON comments and formatting
807
- - Supports custom whitelabeling
808
- - Generates type-safe template definitions
809
- - Creates an aggregator module for easy imports
810
- - Tracks file metadata (update time and content hash)
811
- - Supports selective file updates
812
- - Handles file conflicts gracefully
813
- - Preserves JSON type information for package.json and tsconfig.json
814
-
815
- **usage examples:**
816
-
817
- ```bash
818
- # Basic usage
819
- dler pack --dir ./templates --output ./dist-templates
820
-
821
- # With custom whitelabel
822
- dler pack --dir ./templates --output ./dist-templates --whitelabel MYAPP
823
-
824
- # Update specific files only
825
- dler pack --dir ./templates --output ./dist-templates --files "src/index.ts,src/config.ts"
826
-
827
- # Force overwrite existing files
828
- dler pack --dir ./templates --output ./dist-templates --force
829
-
830
- # Update mode (default: true)
831
- dler pack --dir ./templates --output ./dist-templates --update
832
- ```
833
-
834
- **arguments:**
835
-
836
- - `--dir`: Directory containing templates to process (required)
837
- - `--output`: Output directory for generated modules (default: "my-templates")
838
- - `--whitelabel`: Custom prefix to use instead of 'DLER' (default: "DLER")
839
- - `--cdn`: Remote CDN for binary assets upload (not yet implemented)
840
- - `--force`: Force overwrite existing files (default: false)
841
- - `--update`: Update existing templates and add new ones (default: true)
842
- - `--files`: Comma-separated list of specific files to update
843
- - `--lastUpdate`: Override lastUpdate timestamp
844
-
845
- **output structure:**
846
-
847
- ```bash
848
- output/
849
- ├── impl/
850
- │ ├── binaries/ # binary files stored with hash-based names (dler reads/writes this dir when --cdn is not used)
851
- │ │ └── [hashed-files]
852
- │ ├── template1.ts
853
- │ └── template2.ts
854
- ├── types.ts
855
- └── mod.ts
856
- ```
857
-
858
- **--unpack**:
859
-
860
- creates file structure from packed templates. This command is the counterpart to `pack` and is used to extract and restore template files from a packed template package.
861
-
862
- **key features:**
863
-
864
- - Restores complete directory structure from packed templates
865
- - Handles binary files with automatic lookup
866
- - Preserves JSON comments and formatting
867
- - Supports custom output locations
868
- - Maintains file permissions and structure
869
- - Validates template integrity
870
- - Supports cleanup of existing template files
871
- - Provides dry-run mode for previewing changes
872
- - Handles empty directory cleanup
873
-
874
- **usage examples:**
875
-
876
- ```bash
877
- # Basic usage
878
- dler pack ./dist-templates --output ./my-project --unpack
879
-
880
- # With custom output directory
881
- dler pack ./dist-templates --output ./custom-location --unpack
882
-
883
- # Preview changes without applying
884
- dler pack ./dist-templates --output ./my-project --dry-run --unpack
885
-
886
- # Clean up existing template files before unpacking
887
- dler pack ./dist-templates --output ./my-project --cleanup --unpack
888
- ```
889
-
890
- **arguments:**
891
-
892
- - `templatesDir`: Directory containing mod.ts (required)
893
- - `--output`: Where to write files (default: "unpacked")
894
- - `--cdn`: Remote CDN base for binary assets download (not yet implemented)
895
- - `--cleanup`: Clean up template files before unpacking (default: false)
896
- - `--dry-run`: Preview changes without applying them (default: false)
897
-
898
- **implementation details:**
899
-
900
- - Uses `jiti` for dynamic template file loading
901
- - Implements template validation and type checking
902
- - Provides detailed error handling and reporting
903
- - Handles file system operations safely
904
- - Preserves JSON comments and formatting
905
- - Supports binary file restoration
906
- - Cleans up empty directories after unpacking
907
- - Validates template structure before unpacking
908
-
909
- ## api (for advanced usage)
910
-
911
- the sdk lets you build custom dler cli plugins or even extend your own cli tools.
912
-
913
- ```sh
914
- bun add @reliverse/dler-sdk
915
- ```
916
-
917
- **usage example**: [@reliverse/rse](https://github.com/reliverse/rse-website-builder) leverages this sdk to extend its functionality.
918
-
919
- ### 17. `update`
920
-
921
- updates your project's dependencies to the latest version.
922
-
923
- updates not only `dependencies`/`devDependencies`/`peerDependencies`/`optionalDependencies`, but also [monorepo catalogs](https://bun.sh/docs/install/catalogs).
924
-
925
- ```bash
926
- bun dler update
927
- ```
928
-
929
- **params:**
930
-
931
- - `--with-check-script` (boolean) — runs `bun check` after updating (exclusive for bun environment at the moment)
932
-
933
- **example package.json:**
934
-
935
- ```json
936
- {
937
- "scripts": {
938
- "latest": "bun dler update --with-check-script",
939
- "check": "tsc --noEmit && eslint --cache --fix . && biome check --fix --unsafe . && knip"
940
- }
941
- }
942
- ```
943
-
944
- **coming soon:**
945
-
946
- - recursive lookup for deps in multiple package.json files (e.g. monorepo; or case when you have `C:/foo/bar1/package.json` and `C:/foo/bar2/package.json` and using `dler update` in `C:/foo`).
947
-
948
- ## workspaces and catalogs
949
-
950
- dler has full workspaces and catalogs support for the package management commands. Catalog logic is similar to Bun across all package management commands.
951
-
952
- ### **Catalog Features:**
953
-
954
- #### **1. Install Dependencies as Catalogs**
955
-
956
- ```bash
957
- # Add to default catalog
958
- dler install react react-dom --as-catalog default
959
-
960
- # Add to named catalog
961
- dler install jest testing-library --as-catalog testing
962
- dler install webpack babel --as-catalog build --catalog-name build
963
-
964
- # With workspace filtering
965
- dler install lodash --as-catalog default --filter "pkg-*"
966
- ```
967
-
968
- #### **2. Remove Dependencies from Catalogs**
969
-
970
- ```bash
971
- # Remove from default catalog
972
- dler remove react react-dom --from-catalog default
973
-
974
- # Remove from named catalog
975
- dler remove jest --from-catalog testing
976
- dler remove webpack --from-catalog build --catalog-name build
977
- ```
978
-
979
- #### **3. List Catalogs**
980
-
981
- ```bash
982
- # List all catalogs and their dependencies
983
- dler catalog list
984
- dler catalog ls
985
- ```
986
-
987
- #### **4. Update Catalogs**
988
-
989
- ```bash
990
- # Update all catalog dependencies to latest versions
991
- dler update --update-catalogs
992
- ```
993
-
994
- ### **Technical Implementation:**
995
-
996
- #### **Smart Version Management**
997
-
998
- - Dler automatically fetches latest versions from npm registry
999
- - Uses `^` and `~` prefixes for semver compatibility
1000
- - Handles scoped packages correctly
1001
-
1002
- ### **Catalog Structure Support:**
1003
-
1004
- #### **Default Catalog**
1005
-
1006
- ```json
1007
- {
1008
- "workspaces": {
1009
- "packages": ["packages/*"],
1010
- "catalog": {
1011
- "react": "^19.0.0",
1012
- "react-dom": "^19.0.0"
1013
- }
1014
- }
1015
- }
1016
- ```
1017
-
1018
- #### **Named Catalogs**
1019
-
1020
- ```json
1021
- {
1022
- "workspaces": {
1023
- "packages": ["packages/*"],
1024
- "catalogs": {
1025
- "testing": {
1026
- "jest": "^30.0.0",
1027
- "testing-library": "^14.0.0"
1028
- },
1029
- "build": {
1030
- "webpack": "^5.88.2",
1031
- "babel": "^7.22.10"
1032
- }
1033
- }
1034
- }
1035
- }
1036
- ```
1037
-
1038
- ### **Usage Examples:**
1039
-
1040
- #### **Setting up a React Monorepo with Catalogs:**
1041
-
1042
- ```bash
1043
- # 1. Add core React dependencies to default catalog
1044
- dler install react react-dom react-router-dom --as-catalog default
1045
-
1046
- # 2. Add build tools to named catalog
1047
- dler install webpack babel --as-catalog build
1048
-
1049
- # 3. Add testing tools to named catalog
1050
- dler install jest react-testing-library --as-catalog testing
1051
-
1052
- # 4. List all catalogs
1053
- dler catalog list
1054
-
1055
- # 5. Update all catalogs to latest versions
1056
- dler update --update-catalogs
1057
- ```
1058
-
1059
- #### **Workspace Package Usage:**
1060
-
1061
- ```json
1062
- // packages/app/package.json
1063
- {
1064
- "dependencies": {
1065
- "react": "catalog:",
1066
- "react-dom": "catalog:",
1067
- "react-router-dom": "catalog:"
1068
- },
1069
- "devDependencies": {
1070
- "webpack": "catalog:build",
1071
- "jest": "catalog:testing"
1072
- }
1073
- }
1074
- ```
1075
-
1076
- #### **Advanced Operations:**
1077
-
1078
- ```bash
1079
- # Add dependencies to specific workspaces as catalogs
1080
- dler install lodash --as-catalog default --filter "pkg-*" --filter "!pkg-c"
1081
-
1082
- # Remove dependencies from catalogs in filtered workspaces
1083
- dler remove typescript --from-catalog default --filter "pkg-*"
1084
-
1085
- # Update catalogs and then install
1086
- dler update --update-catalogs
1087
- dler install
1088
- ```
1089
-
1090
- ### **Benefits:**
1091
-
1092
- 1. **Consistency**: Ensures all packages use the same version of critical dependencies
1093
- 2. **Maintenance**: Update a dependency version in one place instead of across multiple package.json files
1094
- 3. **Clarity**: Makes it obvious which dependencies are standardized across your monorepo
1095
- 4. **Simplicity**: No need for complex version resolution strategies or external tools
1096
- 5. **Workspace Integration**: Seamlessly works with workspace filtering
1097
- 6. **Cross-Package Manager**: Works with Bun (full support) and provides helpful messages for others
1098
-
1099
- ## contributors
1100
-
1101
- ### helper scripts
1102
-
1103
- - `libs:pack`: Creates two templates, `cfg` and `sdk`, based on dist-libs directory structure (using **dler pack** command).
1104
- - `libs:unpack`: Creates a project structure using all templates from the `cfg` and `sdk` templates (using **dler unpack** command).
1105
- - `libs:example`: Since `libs:unpack`'s serves as a dist-libs mock, then `libs:example` helps easily test dler's features like `resolveAllCrossLibs()`.
1106
-
1107
- ### notes
1108
-
1109
- - `<src | dist-npm | dist-jsr>/libs/<lib-name>/<files live here>` === `dist-libs/<lib-name>/<jsr | npm>/bin/<files live here>`
1110
-
1111
- ### todo
1112
-
1113
- - [ ] `dist-*`-> `dist/dist-*`
1114
- - [x] implement stable `regular` build and publish
1115
- - [ ] implement stable `library` build and publish
1116
- - [ ] achieve full drop-in replacement for `unbuild`
1117
- - [ ] support auto migration from `build.config.ts`
1118
- - [ ] support configuration via `.config/rse.{ts,jsonc}` 🤔
1119
- - [ ] make config file fully optional with sensible defaults
1120
- - [ ] use `dler remdn` ([@reliverse/remdn](https://github.com/reliverse/remdn)) to generate npm/jsr specific readme and a single `docs` dir for a whole project (only readmes will be published, docs are only stored in project's source cpde and can be deployed to user's website)
1121
- - [x] allow plugins to extend dler's `defineconfig` (`hooksBeforeBuild` and `hooksAfterBuild` are now available, plugin's options can be passed directly to plugin's params, e.g. `hooksBeforeBuild: [ async () => { await myCoolPlugin({ /* plugin's options */ }); } ],`)
1122
- - [ ] at the moment any bundler like `mkdist` can be called using `bun`, but bun's own bundler is not yet fully supported
1123
- - [ ] support all well-known package managers (currently only bun is fully supported)
1124
- - [ ] `dler <command> [...flags] [...args]` usage should support both `bun` and `dler` own commands and flags
1125
- - [ ] fully support deno and jsr
1126
-
1127
- ### todo: commands
1128
-
1129
- - [ ] run ./my-script.ts Execute a file with Bun
1130
- - [ ] lint Run a package.json script
1131
- - [ ] test Run unit tests with Bun
1132
- - [ ] x nuxi Execute a package binary (CLI), installing if needed (dler x)
1133
- - [ ] repl Start a REPL session with Bun
1134
- - [ ] exec Run a shell script directly with Bun
1135
- - [ ] install Install dependencies for a package.json (dler i)
1136
- - [ ] add elysia Add a dependency to package.json (dler a)
1137
- - [ ] remove backbone Remove a dependency from package.json (dler rm)
1138
- - [ ] update @shumai/shumai Update outdated dependencies
1139
- - [ ] audit Check installed packages for vulnerabilities
1140
- - [ ] outdated Display latest versions of outdated dependencies
1141
- - [ ] link [<package>] Register or link a local npm package
1142
- - [ ] unlink Unregister a local npm package
1143
- - [ ] publish Publish a package(s) to the npm/jsr registry
1144
- - [ ] patch <pkg> Prepare a package for patching
1145
- - [ ] pm <subcommand> Additional package management utilities
1146
- - [ ] info hono Display package metadata from the registry
1147
- - [ ] build ./a.ts ./b.jsx Bundle TypeScript & JavaScript into a single file
1148
- - [ ] init Start an empty project from a built-in template
1149
- - [ ] create next-app Create a new project from a template (bun c)
1150
- - [ ] upgrade Upgrade to latest version both of dler and your package manager.
1151
- - [x] <command> --help Print help text for command.
1152
-
1153
- ### todo: flag
1154
-
1155
- - [ ] --watch Automatically restart the process on file change
1156
- - [ ] --hot Enable auto reload in the Bun runtime, test runner, or bundler
1157
- - [ ] --no-clear-screen Disable clearing the terminal screen on reload when --hot or --watch is enabled
1158
- - [ ] --smol Use less memory, but run garbage collection more often
1159
- - [ ] -r, --preload=<val> Import a module before other modules are loaded
1160
- - [ ] --require=<val> Alias of --preload, for Node.js compatibility
1161
- - [ ] --import=<val> Alias of --preload, for Node.js compatibility
1162
- - [ ] --inspect=<val> Activate Bun's debugger
1163
- - [ ] --inspect-wait=<val> Activate Bun's debugger, wait for a connection before executing
1164
- - [ ] --inspect-brk=<val> Activate Bun's debugger, set breakpoint on first line of code and wait
1165
- - [ ] --if-present Exit without an error if the entrypoint does not exist
1166
- - [ ] --no-install Disable auto install in the Bun runtime
1167
- - [ ] --install=<val> Configure auto-install behavior. One of "auto" (default, auto-installs when no node_modules), "fallback" (missing packages only), "force" (always).
1168
- - [ ] -i Auto-install dependencies during execution. Equivalent to --install=fallback.
1169
- - [ ] -e, --eval=<val> Evaluate argument as a script
1170
- - [ ] -p, --print=<val> Evaluate argument as a script and print the result
1171
- - [ ] --prefer-offline Skip staleness checks for packages in the Bun runtime and resolve from disk
1172
- - [ ] --prefer-latest Use the latest matching versions of packages in the Bun runtime, always checking npm
1173
- - [ ] --port=<val> Set the default port for Bun.serve
1174
- - [ ] --conditions=<val> Pass custom conditions to resolve
1175
- - [ ] --fetch-preconnect=<val> Preconnect to a URL while code is loading
1176
- - [ ] --max-http-header-size=<val> Set the maximum size of HTTP headers in bytes. Default is 16KiB
1177
- - [ ] --dns-result-order=<val> Set the default order of DNS lookup results. Valid orders: verbatim (default), ipv4first, ipv6first
1178
- - [ ] --expose-gc Expose gc() on the global object. Has no effect on Bun.gc().
1179
- - [ ] --no-deprecation Suppress all reporting of the custom deprecation.
1180
- - [ ] --throw-deprecation Determine whether or not deprecation warnings result in errors.
1181
- - [ ] --title=<val> Set the process title
1182
- - [ ] --zero-fill-buffers Boolean to force Buffer.allocUnsafe(size) to be zero-filled.
1183
- - [ ] --redis-preconnect Preconnect to $REDIS_URL at startup
1184
- - [ ] --sql-preconnect Preconnect to PostgreSQL at startup
1185
- - [ ] --no-addons Throw an error if process.dlopen is called, and disable export condition "node-addons"
1186
- - [ ] --unhandled-rejections=<val> One of "strict", "throw", "warn", "none", or "warn-with-error-code"
1187
- - [ ] --console-depth=<val> Set the default depth for console.log object inspection (default: 2)
1188
- - [ ] --silent Don't print the script command
1189
- - [ ] --elide-lines=<val> Number of lines of script output shown when using --filter (default: 10). Set to 0 to show all lines.
1190
- - [ ] -v, --version Print version and exit
1191
- - [ ] --revision Print version with revision and exit
1192
- - [ ] -F, --filter=<val> Run a script in all workspace packages matching the pattern
1193
- - [ ] -b, --bun Force a script or package to use Bun's runtime instead of Node.js (via symlinking node)
1194
- - [ ] --shell=<val> Control the shell used for package.json scripts. Supports either 'bun' or 'system'
1195
- - [ ] --env-file=<val> Load environment variables from the specified file(s)
1196
- - [ ] --cwd=<val> Absolute path to resolve files & entry points from. This just changes the process' cwd.
1197
- - [ ] -c, --config=<val> Specify path to Bun config file. Default $cwd/bunfig.toml
1198
- - [ ] -h, --help Display this menu and exit
1199
-
1200
- ## related
1201
-
1202
- special thanks to the project that inspired `@reliverse/dler`:
1203
-
1204
- - [unjs/unbuild](https://github.com/unjs/unbuild#readme)
1205
-
1206
- ## support
1207
-
1208
- - if dler saves you time and effort, please consider supporting its development: [github sponsors](https://github.com/sponsors/blefnk);
1209
- - even a simple star on [github](https://github.com/reliverse/dler) shows your love. thank you!
1210
-
1211
- ## license
1212
-
1213
- 🩷 [mit](./license) © 2025 [blefnk nazar kornienko](https://github.com/blefnk)
1
+ # Dler (prev. Reliverse Relidler) [reliverse.org](https://reliverse.org)
2
+
3
+ > **@reliverse/dler** is an open-source framework which helps developers build their TypeScript/JavaScript libraries and CLI tools with ease. It provides ready-to-use primitives, so you don't have to write them from scratch.
4
+
5
+ [Sponsor](https://github.com/sponsors/blefnk) [Discord](https://discord.gg/Pb8uKbwpsJ) [GitHub](https://github.com/reliverse/dler) [NPM](https://npmjs.com/@reliverse/dler)
6
+
7
+ ## Documentation
8
+
9
+ 📚 **Please visit [docs.reliverse.org/libraries/dler](https://docs.reliverse.org/libraries/dler) to learn how to use `@reliverse/dler` library.**
10
+
11
+ ## Stand With Reliverse
12
+
13
+ - [Star the project repo](https://github.com/reliverse/dler) to help Reliverse community grow.
14
+ - Follow this project's author, [Nazar Kornienko](https://github.com/blefnk) & [Reliverse](https://github.com/reliverse), to get updates about new projects.
15
+ - [Become a sponsor](https://github.com/sponsors/blefnk) and power the next wave of tools that _just feel right_.
16
+ - Every bit of support helps keep the dream alive: dev tools that don't suck.
17
+
18
+ ## Stand With Ukraine
19
+
20
+ - 💙 Help fund drones, medkits, and victory. [Donate now](https://u24.gov.ua), it matters.
21
+ - 💛 Every dollar helps stop [russia's war crimes](https://war.ukraine.ua/russia-war-crimes) and saves lives.
22
+
23
+ ## License
24
+
25
+ [MIT](LICENSES) © [Nazar Kornienko (blefnk)](https://github.com/blefnk), [Reliverse](https://github.com/reliverse)