create-nuclo 0.1.1 → 0.3.35

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 (531) hide show
  1. package/README.md +5 -6
  2. package/package.json +3 -3
  3. package/src/create-nuclo.mjs +49 -169
  4. package/templates/basic/index.html +2 -14
  5. package/templates/basic/package.json +3 -3
  6. package/templates/basic/public/favicon.ico +0 -0
  7. package/templates/basic/public/nuclo-logo.svg +1 -24
  8. package/templates/basic/src/app.ts +33 -27
  9. package/templates/basic/src/main.ts +2 -3
  10. package/templates/basic/src/styles.ts +124 -72
  11. package/templates/basic/node_modules/.package-lock.json +0 -348
  12. package/templates/basic/node_modules/.vite/deps/_metadata.json +0 -15
  13. package/templates/basic/node_modules/.vite/deps/nuclo.js +0 -1665
  14. package/templates/basic/node_modules/.vite/deps/nuclo.js.map +0 -1
  15. package/templates/basic/node_modules/.vite/deps/package.json +0 -3
  16. package/templates/basic/node_modules/@oxc-project/types/LICENSE +0 -22
  17. package/templates/basic/node_modules/@oxc-project/types/README.md +0 -3
  18. package/templates/basic/node_modules/@oxc-project/types/package.json +0 -26
  19. package/templates/basic/node_modules/@oxc-project/types/types.d.ts +0 -1912
  20. package/templates/basic/node_modules/@rolldown/binding-darwin-arm64/README.md +0 -3
  21. package/templates/basic/node_modules/@rolldown/binding-darwin-arm64/package.json +0 -37
  22. package/templates/basic/node_modules/@rolldown/binding-darwin-arm64/rolldown-binding.darwin-arm64.node +0 -0
  23. package/templates/basic/node_modules/@rolldown/pluginutils/LICENSE +0 -21
  24. package/templates/basic/node_modules/@rolldown/pluginutils/README.md +0 -145
  25. package/templates/basic/node_modules/@rolldown/pluginutils/dist/filter/index.d.mts +0 -194
  26. package/templates/basic/node_modules/@rolldown/pluginutils/dist/filter/index.mjs +0 -2
  27. package/templates/basic/node_modules/@rolldown/pluginutils/dist/filter-B_mD-HGz.mjs +0 -323
  28. package/templates/basic/node_modules/@rolldown/pluginutils/dist/index.d.mts +0 -2
  29. package/templates/basic/node_modules/@rolldown/pluginutils/dist/index.mjs +0 -2
  30. package/templates/basic/node_modules/@rolldown/pluginutils/package.json +0 -40
  31. package/templates/basic/node_modules/detect-libc/LICENSE +0 -201
  32. package/templates/basic/node_modules/detect-libc/README.md +0 -163
  33. package/templates/basic/node_modules/detect-libc/index.d.ts +0 -14
  34. package/templates/basic/node_modules/detect-libc/lib/detect-libc.js +0 -313
  35. package/templates/basic/node_modules/detect-libc/lib/elf.js +0 -39
  36. package/templates/basic/node_modules/detect-libc/lib/filesystem.js +0 -51
  37. package/templates/basic/node_modules/detect-libc/lib/process.js +0 -24
  38. package/templates/basic/node_modules/detect-libc/package.json +0 -44
  39. package/templates/basic/node_modules/fdir/LICENSE +0 -7
  40. package/templates/basic/node_modules/fdir/README.md +0 -91
  41. package/templates/basic/node_modules/fdir/dist/index.cjs +0 -588
  42. package/templates/basic/node_modules/fdir/dist/index.d.cts +0 -155
  43. package/templates/basic/node_modules/fdir/dist/index.d.mts +0 -155
  44. package/templates/basic/node_modules/fdir/dist/index.mjs +0 -570
  45. package/templates/basic/node_modules/fdir/package.json +0 -103
  46. package/templates/basic/node_modules/lightningcss/LICENSE +0 -373
  47. package/templates/basic/node_modules/lightningcss/README.md +0 -105
  48. package/templates/basic/node_modules/lightningcss/node/ast.d.ts +0 -9892
  49. package/templates/basic/node_modules/lightningcss/node/ast.js.flow +0 -10539
  50. package/templates/basic/node_modules/lightningcss/node/browserslistToTargets.js +0 -48
  51. package/templates/basic/node_modules/lightningcss/node/composeVisitors.js +0 -450
  52. package/templates/basic/node_modules/lightningcss/node/flags.js +0 -28
  53. package/templates/basic/node_modules/lightningcss/node/index.d.ts +0 -494
  54. package/templates/basic/node_modules/lightningcss/node/index.js +0 -59
  55. package/templates/basic/node_modules/lightningcss/node/index.js.flow +0 -843
  56. package/templates/basic/node_modules/lightningcss/node/index.mjs +0 -4
  57. package/templates/basic/node_modules/lightningcss/node/targets.d.ts +0 -40
  58. package/templates/basic/node_modules/lightningcss/node/targets.js.flow +0 -39
  59. package/templates/basic/node_modules/lightningcss/package.json +0 -110
  60. package/templates/basic/node_modules/lightningcss-darwin-arm64/LICENSE +0 -373
  61. package/templates/basic/node_modules/lightningcss-darwin-arm64/README.md +0 -1
  62. package/templates/basic/node_modules/lightningcss-darwin-arm64/lightningcss.darwin-arm64.node +0 -0
  63. package/templates/basic/node_modules/lightningcss-darwin-arm64/package.json +0 -34
  64. package/templates/basic/node_modules/nanoid/LICENSE +0 -20
  65. package/templates/basic/node_modules/nanoid/README.md +0 -36
  66. package/templates/basic/node_modules/nanoid/async/index.browser.cjs +0 -42
  67. package/templates/basic/node_modules/nanoid/async/index.browser.js +0 -42
  68. package/templates/basic/node_modules/nanoid/async/index.cjs +0 -44
  69. package/templates/basic/node_modules/nanoid/async/index.d.ts +0 -56
  70. package/templates/basic/node_modules/nanoid/async/index.js +0 -44
  71. package/templates/basic/node_modules/nanoid/async/index.native.js +0 -35
  72. package/templates/basic/node_modules/nanoid/async/package.json +0 -12
  73. package/templates/basic/node_modules/nanoid/bin/nanoid.cjs +0 -55
  74. package/templates/basic/node_modules/nanoid/index.browser.cjs +0 -44
  75. package/templates/basic/node_modules/nanoid/index.browser.js +0 -44
  76. package/templates/basic/node_modules/nanoid/index.cjs +0 -57
  77. package/templates/basic/node_modules/nanoid/index.d.cts +0 -91
  78. package/templates/basic/node_modules/nanoid/index.d.ts +0 -91
  79. package/templates/basic/node_modules/nanoid/index.js +0 -62
  80. package/templates/basic/node_modules/nanoid/nanoid.js +0 -1
  81. package/templates/basic/node_modules/nanoid/non-secure/index.cjs +0 -24
  82. package/templates/basic/node_modules/nanoid/non-secure/index.d.ts +0 -33
  83. package/templates/basic/node_modules/nanoid/non-secure/index.js +0 -24
  84. package/templates/basic/node_modules/nanoid/non-secure/package.json +0 -6
  85. package/templates/basic/node_modules/nanoid/package.json +0 -89
  86. package/templates/basic/node_modules/nanoid/url-alphabet/index.cjs +0 -4
  87. package/templates/basic/node_modules/nanoid/url-alphabet/index.js +0 -4
  88. package/templates/basic/node_modules/nanoid/url-alphabet/package.json +0 -6
  89. package/templates/basic/node_modules/nuclo/LICENSE.md +0 -45
  90. package/templates/basic/node_modules/nuclo/README.md +0 -727
  91. package/templates/basic/node_modules/nuclo/dist/bootstrap.d.ts +0 -5
  92. package/templates/basic/node_modules/nuclo/dist/bootstrap.d.ts.map +0 -1
  93. package/templates/basic/node_modules/nuclo/dist/element/attributes.d.ts +0 -3
  94. package/templates/basic/node_modules/nuclo/dist/element/attributes.d.ts.map +0 -1
  95. package/templates/basic/node_modules/nuclo/dist/element/class-name.d.ts +0 -6
  96. package/templates/basic/node_modules/nuclo/dist/element/class-name.d.ts.map +0 -1
  97. package/templates/basic/node_modules/nuclo/dist/element/events.d.ts +0 -35
  98. package/templates/basic/node_modules/nuclo/dist/element/events.d.ts.map +0 -1
  99. package/templates/basic/node_modules/nuclo/dist/element/factory.d.ts +0 -32
  100. package/templates/basic/node_modules/nuclo/dist/element/factory.d.ts.map +0 -1
  101. package/templates/basic/node_modules/nuclo/dist/element/inline-style.d.ts +0 -9
  102. package/templates/basic/node_modules/nuclo/dist/element/inline-style.d.ts.map +0 -1
  103. package/templates/basic/node_modules/nuclo/dist/element/modifiers.d.ts +0 -11
  104. package/templates/basic/node_modules/nuclo/dist/element/modifiers.d.ts.map +0 -1
  105. package/templates/basic/node_modules/nuclo/dist/element/tags.d.ts +0 -5
  106. package/templates/basic/node_modules/nuclo/dist/element/tags.d.ts.map +0 -1
  107. package/templates/basic/node_modules/nuclo/dist/hydration.d.ts +0 -73
  108. package/templates/basic/node_modules/nuclo/dist/hydration.d.ts.map +0 -1
  109. package/templates/basic/node_modules/nuclo/dist/index.d.ts +0 -17
  110. package/templates/basic/node_modules/nuclo/dist/index.d.ts.map +0 -1
  111. package/templates/basic/node_modules/nuclo/dist/list/index.d.ts +0 -7
  112. package/templates/basic/node_modules/nuclo/dist/list/index.d.ts.map +0 -1
  113. package/templates/basic/node_modules/nuclo/dist/list/runtime.d.ts +0 -6
  114. package/templates/basic/node_modules/nuclo/dist/list/runtime.d.ts.map +0 -1
  115. package/templates/basic/node_modules/nuclo/dist/list/types.d.ts +0 -18
  116. package/templates/basic/node_modules/nuclo/dist/list/types.d.ts.map +0 -1
  117. package/templates/basic/node_modules/nuclo/dist/nuclo.cjs +0 -2
  118. package/templates/basic/node_modules/nuclo/dist/nuclo.cjs.map +0 -1
  119. package/templates/basic/node_modules/nuclo/dist/nuclo.mjs +0 -2
  120. package/templates/basic/node_modules/nuclo/dist/nuclo.mjs.map +0 -1
  121. package/templates/basic/node_modules/nuclo/dist/nuclo.umd.js +0 -2
  122. package/templates/basic/node_modules/nuclo/dist/nuclo.umd.js.map +0 -1
  123. package/templates/basic/node_modules/nuclo/dist/polyfill/Document.d.ts +0 -19
  124. package/templates/basic/node_modules/nuclo/dist/polyfill/Document.d.ts.map +0 -1
  125. package/templates/basic/node_modules/nuclo/dist/polyfill/Element.d.ts +0 -48
  126. package/templates/basic/node_modules/nuclo/dist/polyfill/Element.d.ts.map +0 -1
  127. package/templates/basic/node_modules/nuclo/dist/polyfill/Event.d.ts +0 -43
  128. package/templates/basic/node_modules/nuclo/dist/polyfill/Event.d.ts.map +0 -1
  129. package/templates/basic/node_modules/nuclo/dist/polyfill/Node.d.ts +0 -13
  130. package/templates/basic/node_modules/nuclo/dist/polyfill/Node.d.ts.map +0 -1
  131. package/templates/basic/node_modules/nuclo/dist/polyfill/Text.d.ts +0 -11
  132. package/templates/basic/node_modules/nuclo/dist/polyfill/Text.d.ts.map +0 -1
  133. package/templates/basic/node_modules/nuclo/dist/polyfill/index.d.ts +0 -24
  134. package/templates/basic/node_modules/nuclo/dist/polyfill/index.d.ts.map +0 -1
  135. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.cjs +0 -2
  136. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.cjs.map +0 -1
  137. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.mjs +0 -2
  138. package/templates/basic/node_modules/nuclo/dist/polyfill/nuclo.polyfill.mjs.map +0 -1
  139. package/templates/basic/node_modules/nuclo/dist/render.d.ts +0 -33
  140. package/templates/basic/node_modules/nuclo/dist/render.d.ts.map +0 -1
  141. package/templates/basic/node_modules/nuclo/dist/shared/conditions.d.ts +0 -4
  142. package/templates/basic/node_modules/nuclo/dist/shared/conditions.d.ts.map +0 -1
  143. package/templates/basic/node_modules/nuclo/dist/shared/dom.d.ts +0 -69
  144. package/templates/basic/node_modules/nuclo/dist/shared/dom.d.ts.map +0 -1
  145. package/templates/basic/node_modules/nuclo/dist/shared/environment.d.ts +0 -5
  146. package/templates/basic/node_modules/nuclo/dist/shared/environment.d.ts.map +0 -1
  147. package/templates/basic/node_modules/nuclo/dist/shared/errors.d.ts +0 -2
  148. package/templates/basic/node_modules/nuclo/dist/shared/errors.d.ts.map +0 -1
  149. package/templates/basic/node_modules/nuclo/dist/shared/renderables.d.ts +0 -4
  150. package/templates/basic/node_modules/nuclo/dist/shared/renderables.d.ts.map +0 -1
  151. package/templates/basic/node_modules/nuclo/dist/shared/strings.d.ts +0 -19
  152. package/templates/basic/node_modules/nuclo/dist/shared/strings.d.ts.map +0 -1
  153. package/templates/basic/node_modules/nuclo/dist/shared/type-guards.d.ts +0 -16
  154. package/templates/basic/node_modules/nuclo/dist/shared/type-guards.d.ts.map +0 -1
  155. package/templates/basic/node_modules/nuclo/dist/ssr/index.d.ts +0 -19
  156. package/templates/basic/node_modules/nuclo/dist/ssr/index.d.ts.map +0 -1
  157. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.cjs +0 -2
  158. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.cjs.map +0 -1
  159. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.mjs +0 -2
  160. package/templates/basic/node_modules/nuclo/dist/ssr/nuclo.ssr.mjs.map +0 -1
  161. package/templates/basic/node_modules/nuclo/dist/ssr/render-to-string.d.ts +0 -41
  162. package/templates/basic/node_modules/nuclo/dist/ssr/render-to-string.d.ts.map +0 -1
  163. package/templates/basic/node_modules/nuclo/dist/style/css.d.ts +0 -19
  164. package/templates/basic/node_modules/nuclo/dist/style/css.d.ts.map +0 -1
  165. package/templates/basic/node_modules/nuclo/dist/style/engine.d.ts +0 -34
  166. package/templates/basic/node_modules/nuclo/dist/style/engine.d.ts.map +0 -1
  167. package/templates/basic/node_modules/nuclo/dist/style/index.d.ts +0 -3
  168. package/templates/basic/node_modules/nuclo/dist/style/index.d.ts.map +0 -1
  169. package/templates/basic/node_modules/nuclo/dist/update/conditional.d.ts +0 -3
  170. package/templates/basic/node_modules/nuclo/dist/update/conditional.d.ts.map +0 -1
  171. package/templates/basic/node_modules/nuclo/dist/update/reactive-attributes.d.ts +0 -45
  172. package/templates/basic/node_modules/nuclo/dist/update/reactive-attributes.d.ts.map +0 -1
  173. package/templates/basic/node_modules/nuclo/dist/update/reactive-text.d.ts +0 -38
  174. package/templates/basic/node_modules/nuclo/dist/update/reactive-text.d.ts.map +0 -1
  175. package/templates/basic/node_modules/nuclo/dist/update/registry.d.ts +0 -97
  176. package/templates/basic/node_modules/nuclo/dist/update/registry.d.ts.map +0 -1
  177. package/templates/basic/node_modules/nuclo/dist/update/scope.d.ts +0 -7
  178. package/templates/basic/node_modules/nuclo/dist/update/scope.d.ts.map +0 -1
  179. package/templates/basic/node_modules/nuclo/dist/update/update.d.ts +0 -4
  180. package/templates/basic/node_modules/nuclo/dist/update/update.d.ts.map +0 -1
  181. package/templates/basic/node_modules/nuclo/dist/when/builder.d.ts +0 -16
  182. package/templates/basic/node_modules/nuclo/dist/when/builder.d.ts.map +0 -1
  183. package/templates/basic/node_modules/nuclo/dist/when/index.d.ts +0 -44
  184. package/templates/basic/node_modules/nuclo/dist/when/index.d.ts.map +0 -1
  185. package/templates/basic/node_modules/nuclo/dist/when/runtime.d.ts +0 -59
  186. package/templates/basic/node_modules/nuclo/dist/when/runtime.d.ts.map +0 -1
  187. package/templates/basic/node_modules/nuclo/package.json +0 -88
  188. package/templates/basic/node_modules/nuclo/types/core/base.d.ts +0 -113
  189. package/templates/basic/node_modules/nuclo/types/features/list.d.ts +0 -38
  190. package/templates/basic/node_modules/nuclo/types/features/on.d.ts +0 -59
  191. package/templates/basic/node_modules/nuclo/types/features/render.d.ts +0 -49
  192. package/templates/basic/node_modules/nuclo/types/features/scope.d.ts +0 -6
  193. package/templates/basic/node_modules/nuclo/types/features/style.d.ts +0 -77
  194. package/templates/basic/node_modules/nuclo/types/features/update.d.ts +0 -6
  195. package/templates/basic/node_modules/nuclo/types/features/when.d.ts +0 -18
  196. package/templates/basic/node_modules/nuclo/types/html/tags.d.ts +0 -119
  197. package/templates/basic/node_modules/nuclo/types/index.d.ts +0 -137
  198. package/templates/basic/node_modules/nuclo/types/polyfill.d.ts +0 -131
  199. package/templates/basic/node_modules/nuclo/types/ssr.d.ts +0 -45
  200. package/templates/basic/node_modules/nuclo/types/style.d.ts +0 -404
  201. package/templates/basic/node_modules/nuclo/types/svg/base.d.ts +0 -118
  202. package/templates/basic/node_modules/nuclo/types/svg/tags.d.ts +0 -68
  203. package/templates/basic/node_modules/picocolors/LICENSE +0 -15
  204. package/templates/basic/node_modules/picocolors/README.md +0 -21
  205. package/templates/basic/node_modules/picocolors/package.json +0 -25
  206. package/templates/basic/node_modules/picocolors/picocolors.browser.js +0 -4
  207. package/templates/basic/node_modules/picocolors/picocolors.d.ts +0 -5
  208. package/templates/basic/node_modules/picocolors/picocolors.js +0 -75
  209. package/templates/basic/node_modules/picocolors/types.d.ts +0 -51
  210. package/templates/basic/node_modules/picomatch/LICENSE +0 -21
  211. package/templates/basic/node_modules/picomatch/README.md +0 -743
  212. package/templates/basic/node_modules/picomatch/index.js +0 -17
  213. package/templates/basic/node_modules/picomatch/lib/constants.js +0 -184
  214. package/templates/basic/node_modules/picomatch/lib/parse.js +0 -1416
  215. package/templates/basic/node_modules/picomatch/lib/picomatch.js +0 -361
  216. package/templates/basic/node_modules/picomatch/lib/scan.js +0 -391
  217. package/templates/basic/node_modules/picomatch/lib/utils.js +0 -72
  218. package/templates/basic/node_modules/picomatch/package.json +0 -83
  219. package/templates/basic/node_modules/picomatch/posix.js +0 -3
  220. package/templates/basic/node_modules/postcss/LICENSE +0 -20
  221. package/templates/basic/node_modules/postcss/README.md +0 -25
  222. package/templates/basic/node_modules/postcss/lib/at-rule.d.ts +0 -139
  223. package/templates/basic/node_modules/postcss/lib/at-rule.js +0 -25
  224. package/templates/basic/node_modules/postcss/lib/comment.d.ts +0 -67
  225. package/templates/basic/node_modules/postcss/lib/comment.js +0 -13
  226. package/templates/basic/node_modules/postcss/lib/container.d.ts +0 -478
  227. package/templates/basic/node_modules/postcss/lib/container.js +0 -447
  228. package/templates/basic/node_modules/postcss/lib/css-syntax-error.d.ts +0 -247
  229. package/templates/basic/node_modules/postcss/lib/css-syntax-error.js +0 -133
  230. package/templates/basic/node_modules/postcss/lib/declaration.d.ts +0 -150
  231. package/templates/basic/node_modules/postcss/lib/declaration.js +0 -24
  232. package/templates/basic/node_modules/postcss/lib/document.d.ts +0 -68
  233. package/templates/basic/node_modules/postcss/lib/document.js +0 -33
  234. package/templates/basic/node_modules/postcss/lib/fromJSON.d.ts +0 -9
  235. package/templates/basic/node_modules/postcss/lib/fromJSON.js +0 -68
  236. package/templates/basic/node_modules/postcss/lib/input.d.ts +0 -226
  237. package/templates/basic/node_modules/postcss/lib/input.js +0 -276
  238. package/templates/basic/node_modules/postcss/lib/lazy-result.d.ts +0 -189
  239. package/templates/basic/node_modules/postcss/lib/lazy-result.js +0 -563
  240. package/templates/basic/node_modules/postcss/lib/list.d.ts +0 -60
  241. package/templates/basic/node_modules/postcss/lib/list.js +0 -58
  242. package/templates/basic/node_modules/postcss/lib/map-generator.js +0 -376
  243. package/templates/basic/node_modules/postcss/lib/no-work-result.d.ts +0 -45
  244. package/templates/basic/node_modules/postcss/lib/no-work-result.js +0 -137
  245. package/templates/basic/node_modules/postcss/lib/node.d.ts +0 -555
  246. package/templates/basic/node_modules/postcss/lib/node.js +0 -456
  247. package/templates/basic/node_modules/postcss/lib/parse.d.ts +0 -9
  248. package/templates/basic/node_modules/postcss/lib/parse.js +0 -42
  249. package/templates/basic/node_modules/postcss/lib/parser.js +0 -618
  250. package/templates/basic/node_modules/postcss/lib/postcss.d.mts +0 -66
  251. package/templates/basic/node_modules/postcss/lib/postcss.d.ts +0 -461
  252. package/templates/basic/node_modules/postcss/lib/postcss.js +0 -101
  253. package/templates/basic/node_modules/postcss/lib/postcss.mjs +0 -30
  254. package/templates/basic/node_modules/postcss/lib/previous-map.d.ts +0 -80
  255. package/templates/basic/node_modules/postcss/lib/previous-map.js +0 -161
  256. package/templates/basic/node_modules/postcss/lib/processor.d.ts +0 -114
  257. package/templates/basic/node_modules/postcss/lib/processor.js +0 -67
  258. package/templates/basic/node_modules/postcss/lib/result.d.ts +0 -204
  259. package/templates/basic/node_modules/postcss/lib/result.js +0 -42
  260. package/templates/basic/node_modules/postcss/lib/root.d.ts +0 -86
  261. package/templates/basic/node_modules/postcss/lib/root.js +0 -61
  262. package/templates/basic/node_modules/postcss/lib/rule.d.ts +0 -126
  263. package/templates/basic/node_modules/postcss/lib/rule.js +0 -27
  264. package/templates/basic/node_modules/postcss/lib/stringifier.d.ts +0 -45
  265. package/templates/basic/node_modules/postcss/lib/stringifier.js +0 -374
  266. package/templates/basic/node_modules/postcss/lib/stringify.d.ts +0 -9
  267. package/templates/basic/node_modules/postcss/lib/stringify.js +0 -11
  268. package/templates/basic/node_modules/postcss/lib/symbols.js +0 -5
  269. package/templates/basic/node_modules/postcss/lib/terminal-highlight.js +0 -70
  270. package/templates/basic/node_modules/postcss/lib/tokenize.js +0 -270
  271. package/templates/basic/node_modules/postcss/lib/warn-once.js +0 -13
  272. package/templates/basic/node_modules/postcss/lib/warning.d.ts +0 -146
  273. package/templates/basic/node_modules/postcss/lib/warning.js +0 -37
  274. package/templates/basic/node_modules/postcss/package.json +0 -88
  275. package/templates/basic/node_modules/rolldown/LICENSE +0 -25
  276. package/templates/basic/node_modules/rolldown/README.md +0 -11
  277. package/templates/basic/node_modules/rolldown/bin/cli.mjs +0 -2
  278. package/templates/basic/node_modules/rolldown/dist/cli.d.mts +0 -1
  279. package/templates/basic/node_modules/rolldown/dist/cli.mjs +0 -1202
  280. package/templates/basic/node_modules/rolldown/dist/config.d.mts +0 -14
  281. package/templates/basic/node_modules/rolldown/dist/config.mjs +0 -4
  282. package/templates/basic/node_modules/rolldown/dist/experimental-index.d.mts +0 -280
  283. package/templates/basic/node_modules/rolldown/dist/experimental-index.mjs +0 -331
  284. package/templates/basic/node_modules/rolldown/dist/experimental-runtime-types.d.ts +0 -107
  285. package/templates/basic/node_modules/rolldown/dist/filter-index.d.mts +0 -195
  286. package/templates/basic/node_modules/rolldown/dist/filter-index.mjs +0 -380
  287. package/templates/basic/node_modules/rolldown/dist/get-log-filter.d.mts +0 -3
  288. package/templates/basic/node_modules/rolldown/dist/get-log-filter.mjs +0 -68
  289. package/templates/basic/node_modules/rolldown/dist/index.d.mts +0 -4
  290. package/templates/basic/node_modules/rolldown/dist/index.mjs +0 -50
  291. package/templates/basic/node_modules/rolldown/dist/parallel-plugin-worker.d.mts +0 -1
  292. package/templates/basic/node_modules/rolldown/dist/parallel-plugin-worker.mjs +0 -29
  293. package/templates/basic/node_modules/rolldown/dist/parallel-plugin.d.mts +0 -13
  294. package/templates/basic/node_modules/rolldown/dist/parallel-plugin.mjs +0 -6
  295. package/templates/basic/node_modules/rolldown/dist/parse-ast-index.d.mts +0 -32
  296. package/templates/basic/node_modules/rolldown/dist/parse-ast-index.mjs +0 -60
  297. package/templates/basic/node_modules/rolldown/dist/plugins-index.d.mts +0 -33
  298. package/templates/basic/node_modules/rolldown/dist/plugins-index.mjs +0 -40
  299. package/templates/basic/node_modules/rolldown/dist/shared/binding-B1q9aYT-.d.mts +0 -1947
  300. package/templates/basic/node_modules/rolldown/dist/shared/binding-BmkJW3Wy.mjs +0 -588
  301. package/templates/basic/node_modules/rolldown/dist/shared/bindingify-input-options-BsDhfYrS.mjs +0 -2240
  302. package/templates/basic/node_modules/rolldown/dist/shared/constructors-2i1T9YcF.d.mts +0 -36
  303. package/templates/basic/node_modules/rolldown/dist/shared/constructors-CE6zZSUt.mjs +0 -65
  304. package/templates/basic/node_modules/rolldown/dist/shared/define-config-BBz954-q.d.mts +0 -3901
  305. package/templates/basic/node_modules/rolldown/dist/shared/define-config-Demdg3_4.mjs +0 -6
  306. package/templates/basic/node_modules/rolldown/dist/shared/error-BlQ0-ek7.mjs +0 -85
  307. package/templates/basic/node_modules/rolldown/dist/shared/get-log-filter-BpNVNJ5-.d.mts +0 -35
  308. package/templates/basic/node_modules/rolldown/dist/shared/load-config-FRmAU9xl.mjs +0 -120
  309. package/templates/basic/node_modules/rolldown/dist/shared/logging-BSNejiLS.d.mts +0 -50
  310. package/templates/basic/node_modules/rolldown/dist/shared/logs-aMKUxRpj.mjs +0 -180
  311. package/templates/basic/node_modules/rolldown/dist/shared/misc-CoQm4NHO.mjs +0 -21
  312. package/templates/basic/node_modules/rolldown/dist/shared/normalize-string-or-regex-BYkbbGqQ.mjs +0 -68
  313. package/templates/basic/node_modules/rolldown/dist/shared/parse-DVMnkavl.mjs +0 -74
  314. package/templates/basic/node_modules/rolldown/dist/shared/prompt-B1Yc1NPt.mjs +0 -847
  315. package/templates/basic/node_modules/rolldown/dist/shared/resolve-tsconfig-CdIAR1Eb.mjs +0 -124
  316. package/templates/basic/node_modules/rolldown/dist/shared/rolldown-build-aV0QeeTW.mjs +0 -3264
  317. package/templates/basic/node_modules/rolldown/dist/shared/rolldown-tbHvKzVl.mjs +0 -40
  318. package/templates/basic/node_modules/rolldown/dist/shared/transform-CEmFsvJW.d.mts +0 -149
  319. package/templates/basic/node_modules/rolldown/dist/shared/watch-DIhJ-T1s.mjs +0 -374
  320. package/templates/basic/node_modules/rolldown/dist/utils-index.d.mts +0 -376
  321. package/templates/basic/node_modules/rolldown/dist/utils-index.mjs +0 -2414
  322. package/templates/basic/node_modules/rolldown/package.json +0 -153
  323. package/templates/basic/node_modules/source-map-js/LICENSE +0 -28
  324. package/templates/basic/node_modules/source-map-js/README.md +0 -765
  325. package/templates/basic/node_modules/source-map-js/lib/array-set.js +0 -121
  326. package/templates/basic/node_modules/source-map-js/lib/base64-vlq.js +0 -140
  327. package/templates/basic/node_modules/source-map-js/lib/base64.js +0 -67
  328. package/templates/basic/node_modules/source-map-js/lib/binary-search.js +0 -111
  329. package/templates/basic/node_modules/source-map-js/lib/mapping-list.js +0 -79
  330. package/templates/basic/node_modules/source-map-js/lib/quick-sort.js +0 -132
  331. package/templates/basic/node_modules/source-map-js/lib/source-map-consumer.d.ts +0 -1
  332. package/templates/basic/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
  333. package/templates/basic/node_modules/source-map-js/lib/source-map-generator.d.ts +0 -1
  334. package/templates/basic/node_modules/source-map-js/lib/source-map-generator.js +0 -444
  335. package/templates/basic/node_modules/source-map-js/lib/source-node.d.ts +0 -1
  336. package/templates/basic/node_modules/source-map-js/lib/source-node.js +0 -413
  337. package/templates/basic/node_modules/source-map-js/lib/util.js +0 -594
  338. package/templates/basic/node_modules/source-map-js/package.json +0 -71
  339. package/templates/basic/node_modules/source-map-js/source-map.d.ts +0 -104
  340. package/templates/basic/node_modules/source-map-js/source-map.js +0 -8
  341. package/templates/basic/node_modules/tinyglobby/LICENSE +0 -21
  342. package/templates/basic/node_modules/tinyglobby/README.md +0 -25
  343. package/templates/basic/node_modules/tinyglobby/dist/index.cjs +0 -335
  344. package/templates/basic/node_modules/tinyglobby/dist/index.d.cts +0 -148
  345. package/templates/basic/node_modules/tinyglobby/dist/index.d.mts +0 -148
  346. package/templates/basic/node_modules/tinyglobby/dist/index.mjs +0 -307
  347. package/templates/basic/node_modules/tinyglobby/package.json +0 -70
  348. package/templates/basic/node_modules/typescript/LICENSE.txt +0 -55
  349. package/templates/basic/node_modules/typescript/README.md +0 -50
  350. package/templates/basic/node_modules/typescript/SECURITY.md +0 -39
  351. package/templates/basic/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
  352. package/templates/basic/node_modules/typescript/bin/tsc +0 -2
  353. package/templates/basic/node_modules/typescript/bin/tsserver +0 -2
  354. package/templates/basic/node_modules/typescript/lib/_tsc.js +0 -134465
  355. package/templates/basic/node_modules/typescript/lib/_tsserver.js +0 -659
  356. package/templates/basic/node_modules/typescript/lib/_typingsInstaller.js +0 -222
  357. package/templates/basic/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2129
  358. package/templates/basic/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2125
  359. package/templates/basic/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2129
  360. package/templates/basic/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2129
  361. package/templates/basic/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2125
  362. package/templates/basic/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2129
  363. package/templates/basic/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2129
  364. package/templates/basic/node_modules/typescript/lib/lib.d.ts +0 -20
  365. package/templates/basic/node_modules/typescript/lib/lib.decorators.d.ts +0 -382
  366. package/templates/basic/node_modules/typescript/lib/lib.decorators.legacy.d.ts +0 -20
  367. package/templates/basic/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +0 -18
  368. package/templates/basic/node_modules/typescript/lib/lib.dom.d.ts +0 -45125
  369. package/templates/basic/node_modules/typescript/lib/lib.dom.iterable.d.ts +0 -18
  370. package/templates/basic/node_modules/typescript/lib/lib.es2015.collection.d.ts +0 -150
  371. package/templates/basic/node_modules/typescript/lib/lib.es2015.core.d.ts +0 -595
  372. package/templates/basic/node_modules/typescript/lib/lib.es2015.d.ts +0 -26
  373. package/templates/basic/node_modules/typescript/lib/lib.es2015.generator.d.ts +0 -75
  374. package/templates/basic/node_modules/typescript/lib/lib.es2015.iterable.d.ts +0 -603
  375. package/templates/basic/node_modules/typescript/lib/lib.es2015.promise.d.ts +0 -79
  376. package/templates/basic/node_modules/typescript/lib/lib.es2015.proxy.d.ts +0 -126
  377. package/templates/basic/node_modules/typescript/lib/lib.es2015.reflect.d.ts +0 -142
  378. package/templates/basic/node_modules/typescript/lib/lib.es2015.symbol.d.ts +0 -44
  379. package/templates/basic/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +0 -324
  380. package/templates/basic/node_modules/typescript/lib/lib.es2016.array.include.d.ts +0 -114
  381. package/templates/basic/node_modules/typescript/lib/lib.es2016.d.ts +0 -19
  382. package/templates/basic/node_modules/typescript/lib/lib.es2016.full.d.ts +0 -21
  383. package/templates/basic/node_modules/typescript/lib/lib.es2016.intl.d.ts +0 -29
  384. package/templates/basic/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +0 -19
  385. package/templates/basic/node_modules/typescript/lib/lib.es2017.d.ts +0 -24
  386. package/templates/basic/node_modules/typescript/lib/lib.es2017.date.d.ts +0 -29
  387. package/templates/basic/node_modules/typescript/lib/lib.es2017.full.d.ts +0 -21
  388. package/templates/basic/node_modules/typescript/lib/lib.es2017.intl.d.ts +0 -42
  389. package/templates/basic/node_modules/typescript/lib/lib.es2017.object.d.ts +0 -47
  390. package/templates/basic/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +0 -133
  391. package/templates/basic/node_modules/typescript/lib/lib.es2017.string.d.ts +0 -43
  392. package/templates/basic/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +0 -51
  393. package/templates/basic/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +0 -75
  394. package/templates/basic/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +0 -51
  395. package/templates/basic/node_modules/typescript/lib/lib.es2018.d.ts +0 -22
  396. package/templates/basic/node_modules/typescript/lib/lib.es2018.full.d.ts +0 -22
  397. package/templates/basic/node_modules/typescript/lib/lib.es2018.intl.d.ts +0 -81
  398. package/templates/basic/node_modules/typescript/lib/lib.es2018.promise.d.ts +0 -28
  399. package/templates/basic/node_modules/typescript/lib/lib.es2018.regexp.d.ts +0 -35
  400. package/templates/basic/node_modules/typescript/lib/lib.es2019.array.d.ts +0 -77
  401. package/templates/basic/node_modules/typescript/lib/lib.es2019.d.ts +0 -22
  402. package/templates/basic/node_modules/typescript/lib/lib.es2019.full.d.ts +0 -22
  403. package/templates/basic/node_modules/typescript/lib/lib.es2019.intl.d.ts +0 -21
  404. package/templates/basic/node_modules/typescript/lib/lib.es2019.object.d.ts +0 -31
  405. package/templates/basic/node_modules/typescript/lib/lib.es2019.string.d.ts +0 -35
  406. package/templates/basic/node_modules/typescript/lib/lib.es2019.symbol.d.ts +0 -22
  407. package/templates/basic/node_modules/typescript/lib/lib.es2020.bigint.d.ts +0 -763
  408. package/templates/basic/node_modules/typescript/lib/lib.es2020.d.ts +0 -25
  409. package/templates/basic/node_modules/typescript/lib/lib.es2020.date.d.ts +0 -40
  410. package/templates/basic/node_modules/typescript/lib/lib.es2020.full.d.ts +0 -22
  411. package/templates/basic/node_modules/typescript/lib/lib.es2020.intl.d.ts +0 -472
  412. package/templates/basic/node_modules/typescript/lib/lib.es2020.number.d.ts +0 -26
  413. package/templates/basic/node_modules/typescript/lib/lib.es2020.promise.d.ts +0 -45
  414. package/templates/basic/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +0 -97
  415. package/templates/basic/node_modules/typescript/lib/lib.es2020.string.d.ts +0 -42
  416. package/templates/basic/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +0 -39
  417. package/templates/basic/node_modules/typescript/lib/lib.es2021.d.ts +0 -21
  418. package/templates/basic/node_modules/typescript/lib/lib.es2021.full.d.ts +0 -22
  419. package/templates/basic/node_modules/typescript/lib/lib.es2021.intl.d.ts +0 -164
  420. package/templates/basic/node_modules/typescript/lib/lib.es2021.promise.d.ts +0 -46
  421. package/templates/basic/node_modules/typescript/lib/lib.es2021.string.d.ts +0 -31
  422. package/templates/basic/node_modules/typescript/lib/lib.es2021.weakref.d.ts +0 -76
  423. package/templates/basic/node_modules/typescript/lib/lib.es2022.array.d.ts +0 -119
  424. package/templates/basic/node_modules/typescript/lib/lib.es2022.d.ts +0 -23
  425. package/templates/basic/node_modules/typescript/lib/lib.es2022.error.d.ts +0 -73
  426. package/templates/basic/node_modules/typescript/lib/lib.es2022.full.d.ts +0 -22
  427. package/templates/basic/node_modules/typescript/lib/lib.es2022.intl.d.ts +0 -143
  428. package/templates/basic/node_modules/typescript/lib/lib.es2022.object.d.ts +0 -24
  429. package/templates/basic/node_modules/typescript/lib/lib.es2022.regexp.d.ts +0 -37
  430. package/templates/basic/node_modules/typescript/lib/lib.es2022.string.d.ts +0 -23
  431. package/templates/basic/node_modules/typescript/lib/lib.es2023.array.d.ts +0 -922
  432. package/templates/basic/node_modules/typescript/lib/lib.es2023.collection.d.ts +0 -19
  433. package/templates/basic/node_modules/typescript/lib/lib.es2023.d.ts +0 -20
  434. package/templates/basic/node_modules/typescript/lib/lib.es2023.full.d.ts +0 -22
  435. package/templates/basic/node_modules/typescript/lib/lib.es2023.intl.d.ts +0 -62
  436. package/templates/basic/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +0 -63
  437. package/templates/basic/node_modules/typescript/lib/lib.es2024.collection.d.ts +0 -27
  438. package/templates/basic/node_modules/typescript/lib/lib.es2024.d.ts +0 -24
  439. package/templates/basic/node_modules/typescript/lib/lib.es2024.full.d.ts +0 -22
  440. package/templates/basic/node_modules/typescript/lib/lib.es2024.object.d.ts +0 -27
  441. package/templates/basic/node_modules/typescript/lib/lib.es2024.promise.d.ts +0 -33
  442. package/templates/basic/node_modules/typescript/lib/lib.es2024.regexp.d.ts +0 -23
  443. package/templates/basic/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +0 -66
  444. package/templates/basic/node_modules/typescript/lib/lib.es2024.string.d.ts +0 -27
  445. package/templates/basic/node_modules/typescript/lib/lib.es2025.collection.d.ts +0 -94
  446. package/templates/basic/node_modules/typescript/lib/lib.es2025.d.ts +0 -23
  447. package/templates/basic/node_modules/typescript/lib/lib.es2025.float16.d.ts +0 -443
  448. package/templates/basic/node_modules/typescript/lib/lib.es2025.full.d.ts +0 -22
  449. package/templates/basic/node_modules/typescript/lib/lib.es2025.intl.d.ts +0 -200
  450. package/templates/basic/node_modules/typescript/lib/lib.es2025.iterator.d.ts +0 -146
  451. package/templates/basic/node_modules/typescript/lib/lib.es2025.promise.d.ts +0 -32
  452. package/templates/basic/node_modules/typescript/lib/lib.es2025.regexp.d.ts +0 -30
  453. package/templates/basic/node_modules/typescript/lib/lib.es5.d.ts +0 -4599
  454. package/templates/basic/node_modules/typescript/lib/lib.es6.d.ts +0 -21
  455. package/templates/basic/node_modules/typescript/lib/lib.esnext.array.d.ts +0 -33
  456. package/templates/basic/node_modules/typescript/lib/lib.esnext.collection.d.ts +0 -47
  457. package/templates/basic/node_modules/typescript/lib/lib.esnext.d.ts +0 -27
  458. package/templates/basic/node_modules/typescript/lib/lib.esnext.date.d.ts +0 -21
  459. package/templates/basic/node_modules/typescript/lib/lib.esnext.decorators.d.ts +0 -26
  460. package/templates/basic/node_modules/typescript/lib/lib.esnext.disposable.d.ts +0 -191
  461. package/templates/basic/node_modules/typescript/lib/lib.esnext.error.d.ts +0 -22
  462. package/templates/basic/node_modules/typescript/lib/lib.esnext.full.d.ts +0 -22
  463. package/templates/basic/node_modules/typescript/lib/lib.esnext.intl.d.ts +0 -107
  464. package/templates/basic/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +0 -23
  465. package/templates/basic/node_modules/typescript/lib/lib.esnext.temporal.d.ts +0 -485
  466. package/templates/basic/node_modules/typescript/lib/lib.esnext.typedarrays.d.ts +0 -90
  467. package/templates/basic/node_modules/typescript/lib/lib.scripthost.d.ts +0 -320
  468. package/templates/basic/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +0 -18
  469. package/templates/basic/node_modules/typescript/lib/lib.webworker.d.ts +0 -15606
  470. package/templates/basic/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +0 -21
  471. package/templates/basic/node_modules/typescript/lib/lib.webworker.iterable.d.ts +0 -18
  472. package/templates/basic/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2129
  473. package/templates/basic/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2129
  474. package/templates/basic/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2125
  475. package/templates/basic/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2129
  476. package/templates/basic/node_modules/typescript/lib/tsc.js +0 -8
  477. package/templates/basic/node_modules/typescript/lib/tsserver.js +0 -8
  478. package/templates/basic/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -17
  479. package/templates/basic/node_modules/typescript/lib/tsserverlibrary.js +0 -21
  480. package/templates/basic/node_modules/typescript/lib/typesMap.json +0 -497
  481. package/templates/basic/node_modules/typescript/lib/typescript.d.ts +0 -11448
  482. package/templates/basic/node_modules/typescript/lib/typescript.js +0 -201039
  483. package/templates/basic/node_modules/typescript/lib/typingsInstaller.js +0 -8
  484. package/templates/basic/node_modules/typescript/lib/watchGuard.js +0 -53
  485. package/templates/basic/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2129
  486. package/templates/basic/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2125
  487. package/templates/basic/node_modules/typescript/package.json +0 -118
  488. package/templates/basic/node_modules/vite/LICENSE.md +0 -2287
  489. package/templates/basic/node_modules/vite/README.md +0 -20
  490. package/templates/basic/node_modules/vite/bin/openChrome.js +0 -68
  491. package/templates/basic/node_modules/vite/bin/vite.js +0 -79
  492. package/templates/basic/node_modules/vite/client.d.ts +0 -285
  493. package/templates/basic/node_modules/vite/dist/client/client.mjs +0 -1269
  494. package/templates/basic/node_modules/vite/dist/client/env.mjs +0 -18
  495. package/templates/basic/node_modules/vite/dist/node/chunks/build.js +0 -5371
  496. package/templates/basic/node_modules/vite/dist/node/chunks/dist.js +0 -6784
  497. package/templates/basic/node_modules/vite/dist/node/chunks/lib.js +0 -371
  498. package/templates/basic/node_modules/vite/dist/node/chunks/logger.js +0 -364
  499. package/templates/basic/node_modules/vite/dist/node/chunks/moduleRunnerTransport.d.ts +0 -96
  500. package/templates/basic/node_modules/vite/dist/node/chunks/node.js +0 -35836
  501. package/templates/basic/node_modules/vite/dist/node/chunks/postcss-import.js +0 -467
  502. package/templates/basic/node_modules/vite/dist/node/cli.js +0 -836
  503. package/templates/basic/node_modules/vite/dist/node/index.d.ts +0 -4011
  504. package/templates/basic/node_modules/vite/dist/node/index.js +0 -3
  505. package/templates/basic/node_modules/vite/dist/node/internal.d.ts +0 -2
  506. package/templates/basic/node_modules/vite/dist/node/internal.js +0 -2
  507. package/templates/basic/node_modules/vite/dist/node/module-runner.d.ts +0 -314
  508. package/templates/basic/node_modules/vite/dist/node/module-runner.js +0 -1274
  509. package/templates/basic/node_modules/vite/misc/false.js +0 -1
  510. package/templates/basic/node_modules/vite/misc/true.js +0 -1
  511. package/templates/basic/node_modules/vite/package.json +0 -194
  512. package/templates/basic/node_modules/vite/types/customEvent.d.ts +0 -79
  513. package/templates/basic/node_modules/vite/types/hmrPayload.d.ts +0 -80
  514. package/templates/basic/node_modules/vite/types/hot.d.ts +0 -39
  515. package/templates/basic/node_modules/vite/types/import-meta.d.ts +0 -5
  516. package/templates/basic/node_modules/vite/types/importGlob.d.ts +0 -131
  517. package/templates/basic/node_modules/vite/types/importMeta.d.ts +0 -30
  518. package/templates/basic/node_modules/vite/types/internal/cssPreprocessorOptions.d.ts +0 -44
  519. package/templates/basic/node_modules/vite/types/internal/esbuildOptions.d.ts +0 -28
  520. package/templates/basic/node_modules/vite/types/internal/lightningcssOptions.d.ts +0 -18
  521. package/templates/basic/node_modules/vite/types/internal/rollupTypeCompat.d.ts +0 -24
  522. package/templates/basic/node_modules/vite/types/internal/terserOptions.d.ts +0 -11
  523. package/templates/basic/node_modules/vite/types/metadata.d.ts +0 -47
  524. package/templates/basic/package-lock.json +0 -926
  525. package/templates/basic/public/apple-touch-icon.png +0 -0
  526. package/templates/basic/public/favicon-16x16.png +0 -0
  527. package/templates/basic/public/favicon-32x32.png +0 -0
  528. package/templates/basic/public/icon-192.png +0 -0
  529. package/templates/basic/public/icon-512.png +0 -0
  530. package/templates/basic/public/site.webmanifest +0 -23
  531. package/templates/basic/vite.config.ts +0 -3
@@ -1,1202 +0,0 @@
1
- import { n as onExit, t as watch } from "./shared/watch-DIhJ-T1s.mjs";
2
- import { C as version, S as description } from "./shared/bindingify-input-options-BsDhfYrS.mjs";
3
- import { t as arraify } from "./shared/misc-CoQm4NHO.mjs";
4
- import { a as getInputCliKeys, i as getCliSchemaInfo, l as styleText, o as getOutputCliKeys, r as logger, s as validateCliOptions } from "./shared/rolldown-build-aV0QeeTW.mjs";
5
- import { t as rolldown } from "./shared/rolldown-tbHvKzVl.mjs";
6
- import { t as loadConfig } from "./shared/load-config-FRmAU9xl.mjs";
7
- import path from "node:path";
8
- import g$1 from "node:process";
9
- import { performance } from "node:perf_hooks";
10
- //#region ../../node_modules/.pnpm/cac@7.0.0/node_modules/cac/dist/index.js
11
- function toArr(any) {
12
- return any == null ? [] : Array.isArray(any) ? any : [any];
13
- }
14
- function toVal(out, key, val, opts) {
15
- var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? "" : String(val) : typeof val === "boolean" ? val : !!~opts.boolean.indexOf(key) ? val === "false" ? false : val === "true" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;
16
- out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
17
- }
18
- function lib_default(args, opts) {
19
- args = args || [];
20
- opts = opts || {};
21
- var k, arr, arg, name, val, out = { _: [] };
22
- var i = 0, j = 0, idx = 0, len = args.length;
23
- const alibi = opts.alias !== void 0;
24
- const strict = opts.unknown !== void 0;
25
- const defaults = opts.default !== void 0;
26
- opts.alias = opts.alias || {};
27
- opts.string = toArr(opts.string);
28
- opts.boolean = toArr(opts.boolean);
29
- if (alibi) for (k in opts.alias) {
30
- arr = opts.alias[k] = toArr(opts.alias[k]);
31
- for (i = 0; i < arr.length; i++) (opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);
32
- }
33
- for (i = opts.boolean.length; i-- > 0;) {
34
- arr = opts.alias[opts.boolean[i]] || [];
35
- for (j = arr.length; j-- > 0;) opts.boolean.push(arr[j]);
36
- }
37
- for (i = opts.string.length; i-- > 0;) {
38
- arr = opts.alias[opts.string[i]] || [];
39
- for (j = arr.length; j-- > 0;) opts.string.push(arr[j]);
40
- }
41
- if (defaults) for (k in opts.default) {
42
- name = typeof opts.default[k];
43
- arr = opts.alias[k] = opts.alias[k] || [];
44
- if (opts[name] !== void 0) {
45
- opts[name].push(k);
46
- for (i = 0; i < arr.length; i++) opts[name].push(arr[i]);
47
- }
48
- }
49
- const keys = strict ? Object.keys(opts.alias) : [];
50
- for (i = 0; i < len; i++) {
51
- arg = args[i];
52
- if (arg === "--") {
53
- out._ = out._.concat(args.slice(++i));
54
- break;
55
- }
56
- for (j = 0; j < arg.length; j++) if (arg.charCodeAt(j) !== 45) break;
57
- if (j === 0) out._.push(arg);
58
- else if (arg.substring(j, j + 3) === "no-") {
59
- name = arg.substring(j + 3);
60
- if (strict && !~keys.indexOf(name)) return opts.unknown(arg);
61
- out[name] = false;
62
- } else {
63
- for (idx = j + 1; idx < arg.length; idx++) if (arg.charCodeAt(idx) === 61) break;
64
- name = arg.substring(j, idx);
65
- val = arg.substring(++idx) || i + 1 === len || ("" + args[i + 1]).charCodeAt(0) === 45 || args[++i];
66
- arr = j === 2 ? [name] : name;
67
- for (idx = 0; idx < arr.length; idx++) {
68
- name = arr[idx];
69
- if (strict && !~keys.indexOf(name)) return opts.unknown("-".repeat(j) + name);
70
- toVal(out, name, idx + 1 < arr.length || val, opts);
71
- }
72
- }
73
- }
74
- if (defaults) {
75
- for (k in opts.default) if (out[k] === void 0) out[k] = opts.default[k];
76
- }
77
- if (alibi) for (k in out) {
78
- arr = opts.alias[k] || [];
79
- while (arr.length > 0) out[arr.shift()] = out[k];
80
- }
81
- return out;
82
- }
83
- function removeBrackets(v) {
84
- return v.replace(/[<[].+/, "").trim();
85
- }
86
- function findAllBrackets(v) {
87
- const ANGLED_BRACKET_RE_GLOBAL = /<([^>]+)>/g;
88
- const SQUARE_BRACKET_RE_GLOBAL = /\[([^\]]+)\]/g;
89
- const res = [];
90
- const parse = (match) => {
91
- let variadic = false;
92
- let value = match[1];
93
- if (value.startsWith("...")) {
94
- value = value.slice(3);
95
- variadic = true;
96
- }
97
- return {
98
- required: match[0].startsWith("<"),
99
- value,
100
- variadic
101
- };
102
- };
103
- let angledMatch;
104
- while (angledMatch = ANGLED_BRACKET_RE_GLOBAL.exec(v)) res.push(parse(angledMatch));
105
- let squareMatch;
106
- while (squareMatch = SQUARE_BRACKET_RE_GLOBAL.exec(v)) res.push(parse(squareMatch));
107
- return res;
108
- }
109
- function getMriOptions(options) {
110
- const result = {
111
- alias: {},
112
- boolean: []
113
- };
114
- for (const [index, option] of options.entries()) {
115
- if (option.names.length > 1) result.alias[option.names[0]] = option.names.slice(1);
116
- if (option.isBoolean) if (option.negated) {
117
- if (!options.some((o, i) => {
118
- return i !== index && o.names.some((name) => option.names.includes(name)) && typeof o.required === "boolean";
119
- })) result.boolean.push(option.names[0]);
120
- } else result.boolean.push(option.names[0]);
121
- }
122
- return result;
123
- }
124
- function findLongest(arr) {
125
- return arr.sort((a, b) => {
126
- return a.length > b.length ? -1 : 1;
127
- })[0];
128
- }
129
- function padRight(str, length) {
130
- return str.length >= length ? str : `${str}${" ".repeat(length - str.length)}`;
131
- }
132
- function camelcase(input) {
133
- return input.replaceAll(/([a-z])-([a-z])/g, (_, p1, p2) => {
134
- return p1 + p2.toUpperCase();
135
- });
136
- }
137
- function setDotProp(obj, keys, val) {
138
- let current = obj;
139
- for (let i = 0; i < keys.length; i++) {
140
- const key = keys[i];
141
- if (i === keys.length - 1) {
142
- current[key] = val;
143
- return;
144
- }
145
- if (current[key] == null) {
146
- const nextKeyIsArrayIndex = +keys[i + 1] > -1;
147
- current[key] = nextKeyIsArrayIndex ? [] : {};
148
- }
149
- current = current[key];
150
- }
151
- }
152
- function setByType(obj, transforms) {
153
- for (const key of Object.keys(transforms)) {
154
- const transform = transforms[key];
155
- if (transform.shouldTransform) {
156
- obj[key] = [obj[key]].flat();
157
- if (typeof transform.transformFunction === "function") obj[key] = obj[key].map(transform.transformFunction);
158
- }
159
- }
160
- }
161
- function getFileName(input) {
162
- const m = /([^\\/]+)$/.exec(input);
163
- return m ? m[1] : "";
164
- }
165
- function camelcaseOptionName(name) {
166
- return name.split(".").map((v, i) => {
167
- return i === 0 ? camelcase(v) : v;
168
- }).join(".");
169
- }
170
- var CACError = class extends Error {
171
- constructor(message) {
172
- super(message);
173
- this.name = "CACError";
174
- if (typeof Error.captureStackTrace !== "function") this.stack = new Error(message).stack;
175
- }
176
- };
177
- var Option = class {
178
- rawName;
179
- description;
180
- /** Option name */
181
- name;
182
- /** Option name and aliases */
183
- names;
184
- isBoolean;
185
- required;
186
- config;
187
- negated;
188
- constructor(rawName, description, config) {
189
- this.rawName = rawName;
190
- this.description = description;
191
- this.config = Object.assign({}, config);
192
- rawName = rawName.replaceAll(".*", "");
193
- this.negated = false;
194
- this.names = removeBrackets(rawName).split(",").map((v) => {
195
- let name = v.trim().replace(/^-{1,2}/, "");
196
- if (name.startsWith("no-")) {
197
- this.negated = true;
198
- name = name.replace(/^no-/, "");
199
- }
200
- return camelcaseOptionName(name);
201
- }).sort((a, b) => a.length > b.length ? 1 : -1);
202
- this.name = this.names.at(-1);
203
- if (this.negated && this.config.default == null) this.config.default = true;
204
- if (rawName.includes("<")) this.required = true;
205
- else if (rawName.includes("[")) this.required = false;
206
- else this.isBoolean = true;
207
- }
208
- };
209
- let runtimeProcessArgs;
210
- let runtimeInfo;
211
- if (typeof process !== "undefined") {
212
- let runtimeName;
213
- if (typeof Deno !== "undefined" && typeof Deno.version?.deno === "string") runtimeName = "deno";
214
- else if (typeof Bun !== "undefined" && typeof Bun.version === "string") runtimeName = "bun";
215
- else runtimeName = "node";
216
- runtimeInfo = `${process.platform}-${process.arch} ${runtimeName}-${process.version}`;
217
- runtimeProcessArgs = process.argv;
218
- } else if (typeof navigator === "undefined") runtimeInfo = `unknown`;
219
- else runtimeInfo = `${navigator.platform} ${navigator.userAgent}`;
220
- var Command = class {
221
- rawName;
222
- description;
223
- config;
224
- cli;
225
- options;
226
- aliasNames;
227
- name;
228
- args;
229
- commandAction;
230
- usageText;
231
- versionNumber;
232
- examples;
233
- helpCallback;
234
- globalCommand;
235
- constructor(rawName, description, config = {}, cli) {
236
- this.rawName = rawName;
237
- this.description = description;
238
- this.config = config;
239
- this.cli = cli;
240
- this.options = [];
241
- this.aliasNames = [];
242
- this.name = removeBrackets(rawName);
243
- this.args = findAllBrackets(rawName);
244
- this.examples = [];
245
- }
246
- usage(text) {
247
- this.usageText = text;
248
- return this;
249
- }
250
- allowUnknownOptions() {
251
- this.config.allowUnknownOptions = true;
252
- return this;
253
- }
254
- ignoreOptionDefaultValue() {
255
- this.config.ignoreOptionDefaultValue = true;
256
- return this;
257
- }
258
- version(version, customFlags = "-v, --version") {
259
- this.versionNumber = version;
260
- this.option(customFlags, "Display version number");
261
- return this;
262
- }
263
- example(example) {
264
- this.examples.push(example);
265
- return this;
266
- }
267
- /**
268
- * Add a option for this command
269
- * @param rawName Raw option name(s)
270
- * @param description Option description
271
- * @param config Option config
272
- */
273
- option(rawName, description, config) {
274
- const option = new Option(rawName, description, config);
275
- this.options.push(option);
276
- return this;
277
- }
278
- alias(name) {
279
- this.aliasNames.push(name);
280
- return this;
281
- }
282
- action(callback) {
283
- this.commandAction = callback;
284
- return this;
285
- }
286
- /**
287
- * Check if a command name is matched by this command
288
- * @param name Command name
289
- */
290
- isMatched(name) {
291
- return this.name === name || this.aliasNames.includes(name);
292
- }
293
- get isDefaultCommand() {
294
- return this.name === "" || this.aliasNames.includes("!");
295
- }
296
- get isGlobalCommand() {
297
- return this instanceof GlobalCommand;
298
- }
299
- /**
300
- * Check if an option is registered in this command
301
- * @param name Option name
302
- */
303
- hasOption(name) {
304
- name = name.split(".")[0];
305
- return this.options.find((option) => {
306
- return option.names.includes(name);
307
- });
308
- }
309
- outputHelp() {
310
- const { name, commands } = this.cli;
311
- const { versionNumber, options: globalOptions, helpCallback } = this.cli.globalCommand;
312
- let sections = [{ body: `${name}${versionNumber ? `/${versionNumber}` : ""}` }];
313
- sections.push({
314
- title: "Usage",
315
- body: ` $ ${name} ${this.usageText || this.rawName}`
316
- });
317
- if ((this.isGlobalCommand || this.isDefaultCommand) && commands.length > 0) {
318
- const longestCommandName = findLongest(commands.map((command) => command.rawName));
319
- sections.push({
320
- title: "Commands",
321
- body: commands.map((command) => {
322
- return ` ${padRight(command.rawName, longestCommandName.length)} ${command.description}`;
323
- }).join("\n")
324
- }, {
325
- title: `For more info, run any command with the \`--help\` flag`,
326
- body: commands.map((command) => ` $ ${name}${command.name === "" ? "" : ` ${command.name}`} --help`).join("\n")
327
- });
328
- }
329
- let options = this.isGlobalCommand ? globalOptions : [...this.options, ...globalOptions || []];
330
- if (!this.isGlobalCommand && !this.isDefaultCommand) options = options.filter((option) => option.name !== "version");
331
- if (options.length > 0) {
332
- const longestOptionName = findLongest(options.map((option) => option.rawName));
333
- sections.push({
334
- title: "Options",
335
- body: options.map((option) => {
336
- return ` ${padRight(option.rawName, longestOptionName.length)} ${option.description} ${option.config.default === void 0 ? "" : `(default: ${option.config.default})`}`;
337
- }).join("\n")
338
- });
339
- }
340
- if (this.examples.length > 0) sections.push({
341
- title: "Examples",
342
- body: this.examples.map((example) => {
343
- if (typeof example === "function") return example(name);
344
- return example;
345
- }).join("\n")
346
- });
347
- if (helpCallback) sections = helpCallback(sections) || sections;
348
- console.info(sections.map((section) => {
349
- return section.title ? `${section.title}:\n${section.body}` : section.body;
350
- }).join("\n\n"));
351
- }
352
- outputVersion() {
353
- const { name } = this.cli;
354
- const { versionNumber } = this.cli.globalCommand;
355
- if (versionNumber) console.info(`${name}/${versionNumber} ${runtimeInfo}`);
356
- }
357
- checkRequiredArgs() {
358
- const minimalArgsCount = this.args.filter((arg) => arg.required).length;
359
- if (this.cli.args.length < minimalArgsCount) throw new CACError(`missing required args for command \`${this.rawName}\``);
360
- }
361
- /**
362
- * Check if the parsed options contain any unknown options
363
- *
364
- * Exit and output error when true
365
- */
366
- checkUnknownOptions() {
367
- const { options, globalCommand } = this.cli;
368
- if (!this.config.allowUnknownOptions) {
369
- for (const name of Object.keys(options)) if (name !== "--" && !this.hasOption(name) && !globalCommand.hasOption(name)) throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);
370
- }
371
- }
372
- /**
373
- * Check if the required string-type options exist
374
- */
375
- checkOptionValue() {
376
- const { options: parsedOptions, globalCommand } = this.cli;
377
- const options = [...globalCommand.options, ...this.options];
378
- for (const option of options) {
379
- const value = parsedOptions[option.name.split(".")[0]];
380
- if (option.required) {
381
- const hasNegated = options.some((o) => o.negated && o.names.includes(option.name));
382
- if (value === true || value === false && !hasNegated) throw new CACError(`option \`${option.rawName}\` value is missing`);
383
- }
384
- }
385
- }
386
- /**
387
- * Check if the number of args is more than expected
388
- */
389
- checkUnusedArgs() {
390
- const maximumArgsCount = this.args.some((arg) => arg.variadic) ? Infinity : this.args.length;
391
- if (maximumArgsCount < this.cli.args.length) throw new CACError(`Unused args: ${this.cli.args.slice(maximumArgsCount).map((arg) => `\`${arg}\``).join(", ")}`);
392
- }
393
- };
394
- var GlobalCommand = class extends Command {
395
- constructor(cli) {
396
- super("@@global@@", "", {}, cli);
397
- }
398
- };
399
- var CAC = class extends EventTarget {
400
- /** The program name to display in help and version message */
401
- name;
402
- commands;
403
- globalCommand;
404
- matchedCommand;
405
- matchedCommandName;
406
- /**
407
- * Raw CLI arguments
408
- */
409
- rawArgs;
410
- /**
411
- * Parsed CLI arguments
412
- */
413
- args;
414
- /**
415
- * Parsed CLI options, camelCased
416
- */
417
- options;
418
- showHelpOnExit;
419
- showVersionOnExit;
420
- /**
421
- * @param name The program name to display in help and version message
422
- */
423
- constructor(name = "") {
424
- super();
425
- this.name = name;
426
- this.commands = [];
427
- this.rawArgs = [];
428
- this.args = [];
429
- this.options = {};
430
- this.globalCommand = new GlobalCommand(this);
431
- this.globalCommand.usage("<command> [options]");
432
- }
433
- /**
434
- * Add a global usage text.
435
- *
436
- * This is not used by sub-commands.
437
- */
438
- usage(text) {
439
- this.globalCommand.usage(text);
440
- return this;
441
- }
442
- /**
443
- * Add a sub-command
444
- */
445
- command(rawName, description, config) {
446
- const command = new Command(rawName, description || "", config, this);
447
- command.globalCommand = this.globalCommand;
448
- this.commands.push(command);
449
- return command;
450
- }
451
- /**
452
- * Add a global CLI option.
453
- *
454
- * Which is also applied to sub-commands.
455
- */
456
- option(rawName, description, config) {
457
- this.globalCommand.option(rawName, description, config);
458
- return this;
459
- }
460
- /**
461
- * Show help message when `-h, --help` flags appear.
462
- *
463
- */
464
- help(callback) {
465
- this.globalCommand.option("-h, --help", "Display this message");
466
- this.globalCommand.helpCallback = callback;
467
- this.showHelpOnExit = true;
468
- return this;
469
- }
470
- /**
471
- * Show version number when `-v, --version` flags appear.
472
- *
473
- */
474
- version(version, customFlags = "-v, --version") {
475
- this.globalCommand.version(version, customFlags);
476
- this.showVersionOnExit = true;
477
- return this;
478
- }
479
- /**
480
- * Add a global example.
481
- *
482
- * This example added here will not be used by sub-commands.
483
- */
484
- example(example) {
485
- this.globalCommand.example(example);
486
- return this;
487
- }
488
- /**
489
- * Output the corresponding help message
490
- * When a sub-command is matched, output the help message for the command
491
- * Otherwise output the global one.
492
- *
493
- */
494
- outputHelp() {
495
- if (this.matchedCommand) this.matchedCommand.outputHelp();
496
- else this.globalCommand.outputHelp();
497
- }
498
- /**
499
- * Output the version number.
500
- *
501
- */
502
- outputVersion() {
503
- this.globalCommand.outputVersion();
504
- }
505
- setParsedInfo({ args, options }, matchedCommand, matchedCommandName) {
506
- this.args = args;
507
- this.options = options;
508
- if (matchedCommand) this.matchedCommand = matchedCommand;
509
- if (matchedCommandName) this.matchedCommandName = matchedCommandName;
510
- return this;
511
- }
512
- unsetMatchedCommand() {
513
- this.matchedCommand = void 0;
514
- this.matchedCommandName = void 0;
515
- }
516
- /**
517
- * Parse argv
518
- */
519
- parse(argv, { run = true } = {}) {
520
- if (!argv) {
521
- if (!runtimeProcessArgs) throw new Error("No argv provided and runtime process argv is not available.");
522
- argv = runtimeProcessArgs;
523
- }
524
- this.rawArgs = argv;
525
- if (!this.name) this.name = argv[1] ? getFileName(argv[1]) : "cli";
526
- let shouldParse = true;
527
- for (const command of this.commands) {
528
- const parsed = this.mri(argv.slice(2), command);
529
- const commandName = parsed.args[0];
530
- if (command.isMatched(commandName)) {
531
- shouldParse = false;
532
- const parsedInfo = {
533
- ...parsed,
534
- args: parsed.args.slice(1)
535
- };
536
- this.setParsedInfo(parsedInfo, command, commandName);
537
- this.dispatchEvent(new CustomEvent(`command:${commandName}`, { detail: command }));
538
- }
539
- }
540
- if (shouldParse) {
541
- for (const command of this.commands) if (command.isDefaultCommand) {
542
- shouldParse = false;
543
- const parsed = this.mri(argv.slice(2), command);
544
- this.setParsedInfo(parsed, command);
545
- this.dispatchEvent(new CustomEvent("command:!", { detail: command }));
546
- }
547
- }
548
- if (shouldParse) {
549
- const parsed = this.mri(argv.slice(2));
550
- this.setParsedInfo(parsed);
551
- }
552
- if (this.options.help && this.showHelpOnExit) {
553
- this.outputHelp();
554
- run = false;
555
- this.unsetMatchedCommand();
556
- }
557
- if (this.options.version && this.showVersionOnExit && this.matchedCommandName == null) {
558
- this.outputVersion();
559
- run = false;
560
- this.unsetMatchedCommand();
561
- }
562
- const parsedArgv = {
563
- args: this.args,
564
- options: this.options
565
- };
566
- if (run) this.runMatchedCommand();
567
- if (!this.matchedCommand && this.args[0]) this.dispatchEvent(new CustomEvent("command:*", { detail: this.args[0] }));
568
- return parsedArgv;
569
- }
570
- mri(argv, command) {
571
- const cliOptions = [...this.globalCommand.options, ...command ? command.options : []];
572
- const mriOptions = getMriOptions(cliOptions);
573
- let argsAfterDoubleDashes = [];
574
- const doubleDashesIndex = argv.indexOf("--");
575
- if (doubleDashesIndex !== -1) {
576
- argsAfterDoubleDashes = argv.slice(doubleDashesIndex + 1);
577
- argv = argv.slice(0, doubleDashesIndex);
578
- }
579
- let parsed = lib_default(argv, mriOptions);
580
- parsed = Object.keys(parsed).reduce((res, name) => {
581
- return {
582
- ...res,
583
- [camelcaseOptionName(name)]: parsed[name]
584
- };
585
- }, { _: [] });
586
- const args = parsed._;
587
- const options = { "--": argsAfterDoubleDashes };
588
- const ignoreDefault = command && command.config.ignoreOptionDefaultValue ? command.config.ignoreOptionDefaultValue : this.globalCommand.config.ignoreOptionDefaultValue;
589
- const transforms = Object.create(null);
590
- for (const cliOption of cliOptions) {
591
- if (!ignoreDefault && cliOption.config.default !== void 0) for (const name of cliOption.names) options[name] = cliOption.config.default;
592
- if (Array.isArray(cliOption.config.type) && transforms[cliOption.name] === void 0) {
593
- transforms[cliOption.name] = Object.create(null);
594
- transforms[cliOption.name].shouldTransform = true;
595
- transforms[cliOption.name].transformFunction = cliOption.config.type[0];
596
- }
597
- }
598
- for (const key of Object.keys(parsed)) if (key !== "_") {
599
- setDotProp(options, key.split("."), parsed[key]);
600
- setByType(options, transforms);
601
- }
602
- return {
603
- args,
604
- options
605
- };
606
- }
607
- runMatchedCommand() {
608
- const { args, options, matchedCommand: command } = this;
609
- if (!command || !command.commandAction) return;
610
- command.checkUnknownOptions();
611
- command.checkOptionValue();
612
- command.checkRequiredArgs();
613
- command.checkUnusedArgs();
614
- const actionArgs = [];
615
- command.args.forEach((arg, index) => {
616
- if (arg.variadic) actionArgs.push(args.slice(index));
617
- else actionArgs.push(args[index]);
618
- });
619
- actionArgs.push(options);
620
- return command.commandAction.apply(this, actionArgs);
621
- }
622
- };
623
- /**
624
- * @param name The program name to display in help and version message
625
- */
626
- const cac = (name = "") => new CAC(name);
627
- //#endregion
628
- //#region src/cli/arguments/alias.ts
629
- const alias = {
630
- config: {
631
- abbreviation: "c",
632
- hint: "filename"
633
- },
634
- help: { abbreviation: "h" },
635
- version: { abbreviation: "v" },
636
- watch: { abbreviation: "w" },
637
- dir: {
638
- abbreviation: "d",
639
- requireValue: true
640
- },
641
- file: {
642
- abbreviation: "o",
643
- requireValue: true
644
- },
645
- external: { abbreviation: "e" },
646
- format: { abbreviation: "f" },
647
- name: { abbreviation: "n" },
648
- globals: { abbreviation: "g" },
649
- sourcemap: { abbreviation: "s" },
650
- minify: { abbreviation: "m" },
651
- platform: { abbreviation: "p" },
652
- assetFileNames: { hint: "name" },
653
- chunkFileNames: { hint: "name" },
654
- entryFileNames: { hint: "name" },
655
- externalLiveBindings: { reverse: true },
656
- treeshake: { reverse: true },
657
- preserveEntrySignatures: { reverse: true },
658
- moduleTypes: { hint: "types" }
659
- };
660
- //#endregion
661
- //#region src/cli/arguments/utils.ts
662
- function setNestedProperty(obj, path, value) {
663
- const keys = path.split(".");
664
- let current = obj;
665
- for (let i = 0; i < keys.length - 1; i++) {
666
- if (!current[keys[i]]) current[keys[i]] = {};
667
- current = current[keys[i]];
668
- }
669
- const finalKey = keys[keys.length - 1];
670
- Object.defineProperty(current, finalKey, {
671
- value,
672
- writable: true,
673
- enumerable: true,
674
- configurable: true
675
- });
676
- }
677
- function camelCaseToKebabCase(str) {
678
- return str.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
679
- }
680
- //#endregion
681
- //#region src/cli/arguments/normalize.ts
682
- const reservedKeys = /* @__PURE__ */ new Set([
683
- "help",
684
- "version",
685
- "config",
686
- "watch",
687
- "environment"
688
- ]);
689
- function normalizeCliOptions(cliOptions, positionals) {
690
- const [data, errors] = validateCliOptions(cliOptions);
691
- if (errors?.length) {
692
- errors.forEach((error) => {
693
- logger.error(`${error}. You can use \`rolldown -h\` to see the help.`);
694
- });
695
- process.exit(1);
696
- }
697
- const options = data ?? {};
698
- const result = {
699
- input: {},
700
- output: {},
701
- help: options.help ?? false,
702
- version: options.version ?? false,
703
- watch: options.watch ?? false
704
- };
705
- if (typeof options.config === "string") result.config = options.config;
706
- else if (options.config === true) result.config = "";
707
- if (options.environment !== void 0) result.environment = options.environment;
708
- const keysOfInput = new Set(getInputCliKeys());
709
- const keysOfOutput = new Set(getOutputCliKeys());
710
- for (let [key, value] of Object.entries(options)) {
711
- const [primary] = key.split(".");
712
- if (keysOfInput.has(primary)) setNestedProperty(result.input, key, value);
713
- else if (keysOfOutput.has(primary)) setNestedProperty(result.output, key, value);
714
- else if (!reservedKeys.has(key)) {
715
- logger.error(`Unknown option: ${key}`);
716
- process.exit(1);
717
- }
718
- }
719
- if (!result.config && positionals.length > 0) if (Array.isArray(result.input.input)) result.input.input.push(...positionals);
720
- else result.input.input = positionals;
721
- return result;
722
- }
723
- //#endregion
724
- //#region src/cli/arguments/index.ts
725
- const schemaInfo = getCliSchemaInfo();
726
- const options = Object.fromEntries(Object.entries(schemaInfo).filter(([_key, info]) => info.type !== "never").map(([key, info]) => {
727
- const config = alias[key];
728
- let description = info?.description ?? config?.description ?? "";
729
- if (config?.reverse) {
730
- if (description.startsWith("enable")) description = description.replace("enable", "disable");
731
- else if (!description.startsWith("Avoid")) description = `disable ${description}`;
732
- }
733
- const result = {
734
- type: info.type === "boolean" ? "boolean" : "string",
735
- description
736
- };
737
- if (config?.abbreviation) result.short = config.abbreviation;
738
- if (config?.hint) result.hint = config.hint;
739
- return [config?.reverse ? `no-${key}` : key, result];
740
- }));
741
- const knownKeys = new Set(Object.keys(schemaInfo));
742
- for (const key of Object.keys(schemaInfo)) {
743
- const dotIdx = key.indexOf(".");
744
- if (dotIdx > 0) knownKeys.add(key.substring(0, dotIdx));
745
- }
746
- const shortAliases = /* @__PURE__ */ new Set();
747
- for (const config of Object.values(alias)) if (config?.abbreviation) shortAliases.add(config.abbreviation);
748
- function kebabToCamelCase(input) {
749
- return input.replaceAll(/([a-z])-([a-z])/g, (_, p1, p2) => {
750
- return p1 + p2.toUpperCase();
751
- });
752
- }
753
- function camelizeNestedKeys(value) {
754
- const result = {};
755
- for (const [key, nestedValue] of Object.entries(value)) if (Array.isArray(nestedValue)) result[kebabToCamelCase(key)] = nestedValue;
756
- else if (nestedValue && typeof nestedValue === "object") result[kebabToCamelCase(key)] = camelizeNestedKeys(nestedValue);
757
- else result[kebabToCamelCase(key)] = nestedValue;
758
- return result;
759
- }
760
- function parseCliArguments() {
761
- const cli = cac("rolldown");
762
- for (const [key, info] of Object.entries(schemaInfo)) {
763
- if (info.type === "never") continue;
764
- const config = alias[key];
765
- let rawName = "";
766
- if (config?.abbreviation) rawName += `-${config.abbreviation}, `;
767
- if (config?.reverse) rawName += `--no-${key}`;
768
- else rawName += `--${key}`;
769
- if (info.type !== "boolean" && !config?.reverse) if (config?.requireValue) rawName += ` <${config?.hint ?? key}>`;
770
- else rawName += ` [${config?.hint ?? key}]`;
771
- cli.option(rawName, info.description ?? config?.description ?? "");
772
- }
773
- let parsedInput = [];
774
- let parsedOptions = {};
775
- const cmd = cli.command("[...input]", "");
776
- cmd.allowUnknownOptions();
777
- cmd.ignoreOptionDefaultValue();
778
- cmd.action((input, opts) => {
779
- parsedInput = input;
780
- parsedOptions = opts;
781
- });
782
- try {
783
- cli.parse(process.argv, { run: true });
784
- } catch (err) {
785
- if (err?.name === "CACError") {
786
- const match = err.message.match(/option `(.+?)` value is missing/);
787
- if (match) {
788
- const optName = match[1].replace(/ [<[].*/, "").replace(/^-\w, /, "");
789
- logger.error(`Option \`${optName}\` requires a value but none was provided.`);
790
- } else logger.error(err.message);
791
- process.exit(1);
792
- }
793
- throw err;
794
- }
795
- delete parsedOptions["--"];
796
- for (const short of shortAliases) delete parsedOptions[short];
797
- for (const key of Object.keys(parsedOptions)) if (key === "__proto__" || key === "constructor" || key === "prototype" || key.startsWith("__proto__.") || key.startsWith("constructor.") || key.startsWith("prototype.")) delete parsedOptions[key];
798
- const unknownKeys = Object.keys(parsedOptions).filter((k) => !knownKeys.has(k));
799
- if (unknownKeys.length > 0) {
800
- unknownKeys.sort();
801
- const single = unknownKeys.length === 1;
802
- logger.warn(`Option \`${unknownKeys.join(",")}\` ${single ? "is" : "are"} unrecognized. We will ignore ${single ? "this" : "those"} option${single ? "" : "s"}.`);
803
- }
804
- parsedOptions = camelizeNestedKeys(parsedOptions);
805
- const rawArgs = { ...parsedOptions };
806
- for (const key of unknownKeys) delete parsedOptions[key];
807
- for (const [key, value] of Object.entries(parsedOptions)) {
808
- const type = schemaInfo[key]?.type;
809
- if (Array.isArray(value)) {
810
- if (type !== "array" && type !== "object") parsedOptions[key] = value[value.length - 1];
811
- } else if (type === "array" && typeof value === "string") parsedOptions[key] = [value];
812
- }
813
- for (const [schemaKey, info] of Object.entries(schemaInfo)) {
814
- if (info.type !== "object") continue;
815
- const parts = schemaKey.split(".");
816
- let parent = parsedOptions;
817
- for (let i = 0; i < parts.length - 1; i++) parent = parent?.[parts[i]];
818
- const leafKey = parts[parts.length - 1];
819
- const value = parent?.[leafKey];
820
- if (value === void 0) continue;
821
- const values = Array.isArray(value) ? value : [value];
822
- if (typeof values[0] !== "string") continue;
823
- let usedDeprecatedSyntax = false;
824
- const result = {};
825
- for (const v of values) for (const pair of String(v).split(",")) {
826
- const colonIdx = pair.indexOf(":");
827
- const eqIdx = pair.indexOf("=");
828
- let k;
829
- let val;
830
- if (colonIdx > 0 && (eqIdx === -1 || colonIdx < eqIdx)) {
831
- k = pair.slice(0, colonIdx);
832
- val = pair.slice(colonIdx + 1);
833
- } else if (eqIdx > 0) {
834
- k = pair.slice(0, eqIdx);
835
- val = pair.slice(eqIdx + 1);
836
- usedDeprecatedSyntax = true;
837
- } else continue;
838
- result[k] = val;
839
- }
840
- if (usedDeprecatedSyntax) {
841
- const optionName = camelCaseToKebabCase(schemaKey);
842
- logger.warn(`Using \`key=value\` syntax for \`--${optionName}\` is deprecated. Use \`key:value\` instead.`);
843
- }
844
- parent[leafKey] = result;
845
- }
846
- return {
847
- ...normalizeCliOptions(parsedOptions, parsedInput),
848
- rawArgs
849
- };
850
- }
851
- //#endregion
852
- //#region src/utils/clear-screen.ts
853
- const CLEAR_SCREEN = "\x1Bc";
854
- function getClearScreenFunction(options) {
855
- const isTTY = process.stdout.isTTY;
856
- const isAnyOptionNotAllowingClearScreen = arraify(options).some(({ watch }) => watch === false || watch?.clearScreen === false);
857
- if (isTTY && !isAnyOptionNotAllowingClearScreen) return () => {
858
- process.stdout.write(CLEAR_SCREEN);
859
- };
860
- }
861
- //#endregion
862
- //#region \0@oxc-project+runtime@0.138.0/helpers/esm/usingCtx.js
863
- function _usingCtx() {
864
- var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
865
- var n = Error();
866
- return n.name = "SuppressedError", n.error = r, n.suppressed = e, n;
867
- }, e = {}, n = [];
868
- function using(r, e) {
869
- if (null != e) {
870
- if (Object(e) !== e) throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");
871
- if (r) var o = e[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")];
872
- if (void 0 === o && (o = e[Symbol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o;
873
- if ("function" != typeof o) throw new TypeError("Object is not disposable.");
874
- t && (o = function o() {
875
- try {
876
- t.call(e);
877
- } catch (r) {
878
- return Promise.reject(r);
879
- }
880
- }), n.push({
881
- v: e,
882
- d: o,
883
- a: r
884
- });
885
- } else r && n.push({
886
- d: e,
887
- a: r
888
- });
889
- return e;
890
- }
891
- return {
892
- e,
893
- u: using.bind(null, !1),
894
- a: using.bind(null, !0),
895
- d: function d() {
896
- var o, t = this.e, s = 0;
897
- function next() {
898
- for (; o = n.pop();) try {
899
- if (!o.a && 1 === s) return s = 0, n.push(o), Promise.resolve().then(next);
900
- if (o.d) {
901
- var r = o.d.call(o.v);
902
- if (o.a) return s |= 2, Promise.resolve(r).then(next, err);
903
- } else s |= 1;
904
- } catch (r) {
905
- return err(r);
906
- }
907
- if (1 === s) return t !== e ? Promise.reject(t) : Promise.resolve();
908
- if (t !== e) throw t;
909
- }
910
- function err(n) {
911
- return t = t !== e ? new r(n, t) : n, next();
912
- }
913
- return next();
914
- }
915
- };
916
- }
917
- //#endregion
918
- //#region src/cli/commands/bundle.ts
919
- async function bundleWithConfig(configPath, cliOptions, rawArgs = {}) {
920
- if (cliOptions.watch) {
921
- process.env.ROLLUP_WATCH = "true";
922
- process.env.ROLLDOWN_WATCH = "true";
923
- }
924
- const config = await loadConfig(configPath);
925
- const resolvedConfig = typeof config === "function" ? await config(rawArgs) : config;
926
- if (typeof resolvedConfig !== "object" || resolvedConfig === null) {
927
- logger.error(`Invalid configuration from ${configPath}: expected object or array, got ${resolvedConfig}`);
928
- process.exit(1);
929
- }
930
- if (cliOptions.watch) await watchInner(resolvedConfig, cliOptions);
931
- else await bundleInner(resolvedConfig, cliOptions);
932
- }
933
- async function bundleWithCliOptions(cliOptions) {
934
- try {
935
- var _usingCtx$1 = _usingCtx();
936
- if (cliOptions.output.dir || cliOptions.output.file) {
937
- await (cliOptions.watch ? watchInner : bundleInner)({}, cliOptions);
938
- return;
939
- }
940
- if (cliOptions.watch) {
941
- logger.error("You must specify `output.dir` to use watch mode");
942
- process.exit(1);
943
- }
944
- const { output: outputs } = await _usingCtx$1.a(await rolldown(cliOptions.input)).generate(cliOptions.output);
945
- if (outputs.length === 0) {
946
- logger.error("No output generated");
947
- process.exit(1);
948
- }
949
- for (const file of outputs) {
950
- if (outputs.length > 1) logger.log(`\n${styleText(["cyan", "bold"], `|→ ${file.fileName}:`)}\n`);
951
- console.log(file.type === "asset" ? file.source : file.code);
952
- }
953
- } catch (_) {
954
- _usingCtx$1.e = _;
955
- } finally {
956
- await _usingCtx$1.d();
957
- }
958
- }
959
- async function watchInner(config, cliOptions) {
960
- let normalizedConfig = arraify(config).map((option) => {
961
- return {
962
- ...option,
963
- ...cliOptions.input,
964
- output: arraify(option.output || {}).map((output) => {
965
- return {
966
- ...output,
967
- ...cliOptions.output
968
- };
969
- })
970
- };
971
- });
972
- const watcher = watch(normalizedConfig);
973
- onExit((code) => {
974
- Promise.resolve(watcher.close()).finally(() => {
975
- process.exit(typeof code === "number" ? code : 0);
976
- });
977
- return true;
978
- });
979
- const changedFile = [];
980
- watcher.on("change", (id, event) => {
981
- if (event.event === "update") changedFile.push(id);
982
- });
983
- const clearScreen = getClearScreenFunction(normalizedConfig);
984
- watcher.on("event", async (event) => {
985
- switch (event.code) {
986
- case "START":
987
- clearScreen?.();
988
- break;
989
- case "BUNDLE_START":
990
- if (changedFile.length > 0) logger.log(`Found ${styleText("bold", changedFile.map(relativeId).join(", "))} changed, rebuilding...`);
991
- changedFile.length = 0;
992
- break;
993
- case "BUNDLE_END":
994
- await event.result.close();
995
- logger.success(`Rebuilt ${styleText("bold", relativeId(event.output[0]))} in ${styleText("green", ms(event.duration))}.`);
996
- break;
997
- case "ERROR":
998
- await event.result.close();
999
- logger.error(event.error);
1000
- break;
1001
- default: break;
1002
- }
1003
- });
1004
- logger.log(`Waiting for changes...`);
1005
- }
1006
- async function bundleInner(config, cliOptions) {
1007
- const startTime = performance.now();
1008
- const result = [];
1009
- const configList = arraify(config);
1010
- for (const config of configList) {
1011
- const outputList = arraify(config.output || {});
1012
- const build = await rolldown({
1013
- ...config,
1014
- ...cliOptions.input
1015
- });
1016
- try {
1017
- for (const output of outputList) result.push(await build.write({
1018
- ...output,
1019
- ...cliOptions.output
1020
- }));
1021
- } finally {
1022
- await build.close();
1023
- }
1024
- }
1025
- result.forEach(printBundleOutputPretty);
1026
- logger.log(``);
1027
- const duration = performance.now() - startTime;
1028
- logger.success(`rolldown v${version} Finished in ${styleText("green", ms(duration))}`);
1029
- }
1030
- function printBundleOutputPretty(output) {
1031
- const outputEntries = collectOutputEntries(output.output);
1032
- printOutputEntries(outputEntries, collectOutputLayoutAdjustmentSizes(outputEntries), "<DIR>");
1033
- }
1034
- function collectOutputEntries(output) {
1035
- return output.map((chunk) => ({
1036
- type: chunk.type,
1037
- fileName: chunk.fileName,
1038
- size: chunk.type === "chunk" ? Buffer.byteLength(chunk.code) : Buffer.byteLength(chunk.source)
1039
- }));
1040
- }
1041
- function collectOutputLayoutAdjustmentSizes(entries) {
1042
- let longest = 0;
1043
- let biggestSize = 0;
1044
- for (const entry of entries) {
1045
- if (entry.fileName.length > longest) longest = entry.fileName.length;
1046
- if (entry.size > biggestSize) biggestSize = entry.size;
1047
- }
1048
- const sizePad = displaySize(biggestSize).length;
1049
- return {
1050
- longest,
1051
- biggestSize,
1052
- sizePad
1053
- };
1054
- }
1055
- const numberFormatter = new Intl.NumberFormat("en", {
1056
- maximumFractionDigits: 2,
1057
- minimumFractionDigits: 2
1058
- });
1059
- function displaySize(bytes) {
1060
- return `${numberFormatter.format(bytes / 1e3)} kB`;
1061
- }
1062
- const CHUNK_GROUPS = [{
1063
- type: "asset",
1064
- color: "green"
1065
- }, {
1066
- type: "chunk",
1067
- color: "cyan"
1068
- }];
1069
- function printOutputEntries(entries, sizeAdjustment, distPath) {
1070
- for (const group of CHUNK_GROUPS) {
1071
- const filtered = entries.filter((e) => e.type === group.type);
1072
- if (!filtered.length) continue;
1073
- for (const entry of filtered.sort((a, z) => a.size - z.size)) {
1074
- let log = styleText("dim", withTrailingSlash(distPath));
1075
- log += styleText(group.color, entry.fileName.padEnd(sizeAdjustment.longest + 2));
1076
- log += styleText("dim", entry.type);
1077
- log += styleText("dim", ` │ size: ${displaySize(entry.size).padStart(sizeAdjustment.sizePad)}`);
1078
- logger.log(log);
1079
- }
1080
- }
1081
- }
1082
- function withTrailingSlash(path) {
1083
- if (path[path.length - 1] !== "/") return `${path}/`;
1084
- return path;
1085
- }
1086
- function ms(duration) {
1087
- return duration < 1e3 ? `${duration.toFixed(2)} ms` : `${(duration / 1e3).toFixed(2)} s`;
1088
- }
1089
- function relativeId(id) {
1090
- if (!path.isAbsolute(id)) return id;
1091
- return path.relative(path.resolve(), id);
1092
- }
1093
- //#endregion
1094
- //#region src/cli/commands/help.ts
1095
- const examples = [
1096
- {
1097
- title: "Bundle with a config file `rolldown.config.mjs`",
1098
- command: "rolldown -c rolldown.config.mjs"
1099
- },
1100
- {
1101
- title: "Bundle the `src/main.ts` to `dist` with `cjs` format",
1102
- command: "rolldown src/main.ts -d dist -f cjs"
1103
- },
1104
- {
1105
- title: "Bundle the `src/main.ts` and handle the `.png` assets to Data URL",
1106
- command: "rolldown src/main.ts -d dist --moduleTypes .png=dataurl"
1107
- },
1108
- {
1109
- title: "Bundle the `src/main.tsx` and minify the output with sourcemap",
1110
- command: "rolldown src/main.tsx -d dist -m -s"
1111
- },
1112
- {
1113
- title: "Create self-executing IIFE using external jQuery as `$` and `_`",
1114
- command: "rolldown src/main.ts -d dist -n bundle -f iife -e jQuery,window._ -g jQuery=$"
1115
- }
1116
- ];
1117
- const notes = ["CLI options will override the configuration file.", "For more information, please visit https://rolldown.rs/."];
1118
- /**
1119
- * Generates the CLI help text as a string.
1120
- */
1121
- function generateHelpText() {
1122
- const lines = [];
1123
- lines.push(`${styleText("gray", `${description} (rolldown v${version})`)}`);
1124
- lines.push("");
1125
- lines.push(`${styleText(["bold", "underline"], "USAGE")} ${styleText("cyan", "rolldown -c <config>")} or ${styleText("cyan", "rolldown <input> <options>")}`);
1126
- lines.push("");
1127
- lines.push(`${styleText(["bold", "underline"], "OPTIONS")}`);
1128
- lines.push("");
1129
- lines.push(Object.entries(options).sort(([a], [b]) => {
1130
- if (options[a].short && !options[b].short) return -1;
1131
- if (!options[a].short && options[b].short) return 1;
1132
- if (options[a].short && options[b].short) return options[a].short.localeCompare(options[b].short);
1133
- return a.localeCompare(b);
1134
- }).map(([option, { type, short, hint, description }]) => {
1135
- let optionStr = ` --${option} `;
1136
- if (short) optionStr += `-${short}, `;
1137
- if (type === "string") optionStr += `<${hint ?? option}>`;
1138
- if (description && description.length > 0) description = description[0].toUpperCase() + description.slice(1);
1139
- return styleText("cyan", optionStr.padEnd(30)) + description + (description && description?.endsWith(".") ? "" : ".");
1140
- }).join("\n"));
1141
- lines.push("");
1142
- lines.push(`${styleText(["bold", "underline"], "EXAMPLES")}`);
1143
- lines.push("");
1144
- examples.forEach(({ title, command }, ord) => {
1145
- lines.push(` ${ord + 1}. ${title}:`);
1146
- lines.push(` ${styleText("cyan", command)}`);
1147
- lines.push("");
1148
- });
1149
- lines.push(`${styleText(["bold", "underline"], "NOTES")}`);
1150
- lines.push("");
1151
- notes.forEach((note) => {
1152
- lines.push(` * ${styleText("gray", note)}`);
1153
- });
1154
- return lines.join("\n");
1155
- }
1156
- function showHelp() {
1157
- logger.log(generateHelpText());
1158
- }
1159
- //#endregion
1160
- //#region src/cli/version-check.ts
1161
- function checkNodeVersion(nodeVersion) {
1162
- const currentVersion = nodeVersion.split(".");
1163
- const major = parseInt(currentVersion[0], 10);
1164
- const minor = parseInt(currentVersion[1], 10);
1165
- return major === 20 && minor >= 19 || major === 22 && minor >= 12 || major > 22;
1166
- }
1167
- //#endregion
1168
- //#region src/cli/index.ts
1169
- if (!checkNodeVersion(g$1.versions.node)) logger.warn(`You are using Node.js ${g$1.versions.node}. Rolldown requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.`);
1170
- async function main() {
1171
- const { rawArgs, ...cliOptions } = parseCliArguments();
1172
- if (cliOptions.environment) {
1173
- const environment = Array.isArray(cliOptions.environment) ? cliOptions.environment : [cliOptions.environment];
1174
- for (const argument of environment) for (const pair of argument.split(",")) {
1175
- const [key, ...value] = pair.split(":");
1176
- g$1.env[key] = value.length === 0 ? String(true) : value.join(":");
1177
- }
1178
- }
1179
- if (cliOptions.help) {
1180
- showHelp();
1181
- return;
1182
- }
1183
- if (cliOptions.version) {
1184
- logger.log(`rolldown v${version}`);
1185
- return;
1186
- }
1187
- if (cliOptions.config || cliOptions.config === "") {
1188
- await bundleWithConfig(cliOptions.config, cliOptions, rawArgs);
1189
- return;
1190
- }
1191
- if ("input" in cliOptions.input) {
1192
- await bundleWithCliOptions(cliOptions);
1193
- return;
1194
- }
1195
- showHelp();
1196
- }
1197
- main().catch((err) => {
1198
- logger.error(err);
1199
- g$1.exit(1);
1200
- });
1201
- //#endregion
1202
- export {};