@powerhousedao/shared 6.2.3-dev.24 → 6.2.3-dev.25

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 (262) hide show
  1. package/dist/analytics/index.d.ts +4 -4
  2. package/dist/analytics/index.d.ts.map +1 -1
  3. package/dist/analytics/index.js +25 -24
  4. package/dist/analytics/index.js.map +1 -1
  5. package/dist/clis/args/{access-token-l4ne3id6.mjs → access-token-3Hqv_U8I.mjs} +2 -2
  6. package/dist/clis/args/{access-token-l4ne3id6.mjs.map → access-token-3Hqv_U8I.mjs.map} +1 -1
  7. package/dist/clis/args/access-token-C5sKsH2O.d.mts +16 -0
  8. package/dist/clis/args/access-token-C5sKsH2O.d.mts.map +1 -0
  9. package/dist/clis/args/access-token.d.mts +3 -2
  10. package/dist/clis/args/access-token.mjs +1 -1
  11. package/dist/clis/args/{common-BnSmBXOm.mjs → common-BXabdhiO.mjs} +3 -2
  12. package/dist/clis/args/{common-BnSmBXOm.mjs.map → common-BXabdhiO.mjs.map} +1 -1
  13. package/dist/clis/args/common-Bnm859xU.d.mts +186 -0
  14. package/dist/clis/args/common-Bnm859xU.d.mts.map +1 -0
  15. package/dist/clis/args/common.d.mts +3 -2
  16. package/dist/clis/args/common.mjs +1 -1
  17. package/dist/clis/args/{connect-CkPZNzui.mjs → connect-B6xK4YI_.mjs} +2 -2
  18. package/dist/clis/args/{connect-CkPZNzui.mjs.map → connect-B6xK4YI_.mjs.map} +1 -1
  19. package/dist/clis/args/connect-DjeiqXus.d.mts +450 -0
  20. package/dist/clis/args/connect-DjeiqXus.d.mts.map +1 -0
  21. package/dist/clis/args/connect.d.mts +3 -2
  22. package/dist/clis/args/connect.mjs +1 -1
  23. package/dist/clis/args/{generate-BzRnsIbV.mjs → generate-10dooJ-D.mjs} +2 -2
  24. package/dist/clis/args/{generate-BzRnsIbV.mjs.map → generate-10dooJ-D.mjs.map} +1 -1
  25. package/dist/clis/args/generate-DmgiCzuf.d.mts +106 -0
  26. package/dist/clis/args/generate-DmgiCzuf.d.mts.map +1 -0
  27. package/dist/clis/args/generate.d.mts +3 -2
  28. package/dist/clis/args/generate.mjs +1 -1
  29. package/dist/clis/args/help-DVPTARGn.d.mts +190 -0
  30. package/dist/clis/args/help-DVPTARGn.d.mts.map +1 -0
  31. package/dist/clis/args/{help-DnzLlEb7.mjs → help-yRmplJjW.mjs} +15 -15
  32. package/dist/clis/args/{help-DnzLlEb7.mjs.map → help-yRmplJjW.mjs.map} +1 -1
  33. package/dist/clis/args/help.d.mts +3 -2
  34. package/dist/clis/args/help.mjs +1 -1
  35. package/dist/clis/args/index.d.mts +20 -19
  36. package/dist/clis/args/index.mjs +18 -18
  37. package/dist/clis/args/init-CFeTq4Cq.d.mts +52 -0
  38. package/dist/clis/args/init-CFeTq4Cq.d.mts.map +1 -0
  39. package/dist/clis/args/{init-Q3FOdRyY.mjs → init-Dvb42Y87.mjs} +2 -2
  40. package/dist/clis/args/{init-Q3FOdRyY.mjs.map → init-Dvb42Y87.mjs.map} +1 -1
  41. package/dist/clis/args/init.d.mts +3 -2
  42. package/dist/clis/args/init.mjs +1 -1
  43. package/dist/clis/args/inspect-BjRmtB86.d.mts +13 -0
  44. package/dist/clis/args/inspect-BjRmtB86.d.mts.map +1 -0
  45. package/dist/clis/args/{inspect-99GSVTTt.mjs → inspect-UNQgtuR0.mjs} +2 -2
  46. package/dist/clis/args/{inspect-99GSVTTt.mjs.map → inspect-UNQgtuR0.mjs.map} +1 -1
  47. package/dist/clis/args/inspect.d.mts +3 -2
  48. package/dist/clis/args/inspect.mjs +1 -1
  49. package/dist/clis/args/install-B0tMyUMw.d.mts +37 -0
  50. package/dist/clis/args/install-B0tMyUMw.d.mts.map +1 -0
  51. package/dist/clis/args/{install-Dcal76Iq.mjs → install-F-27kF6m.mjs} +2 -2
  52. package/dist/clis/args/{install-Dcal76Iq.mjs.map → install-F-27kF6m.mjs.map} +1 -1
  53. package/dist/clis/args/install.d.mts +3 -2
  54. package/dist/clis/args/install.mjs +1 -1
  55. package/dist/clis/args/{list-BFbHTSf3.mjs → list-Bkfn8Yuo.mjs} +2 -2
  56. package/dist/clis/args/{list-BFbHTSf3.mjs.map → list-Bkfn8Yuo.mjs.map} +1 -1
  57. package/dist/clis/args/list-DrbxA7JJ.d.mts +10 -0
  58. package/dist/clis/args/list-DrbxA7JJ.d.mts.map +1 -0
  59. package/dist/clis/args/list.d.mts +3 -2
  60. package/dist/clis/args/list.mjs +1 -1
  61. package/dist/clis/args/{login-BB0WTY2n.mjs → login-CIFkQExi.mjs} +2 -2
  62. package/dist/clis/args/{login-BB0WTY2n.mjs.map → login-CIFkQExi.mjs.map} +1 -1
  63. package/dist/clis/args/login-CXRJXg71.d.mts +25 -0
  64. package/dist/clis/args/login-CXRJXg71.d.mts.map +1 -0
  65. package/dist/clis/args/login.d.mts +3 -2
  66. package/dist/clis/args/login.mjs +1 -1
  67. package/dist/clis/args/{magic-string.es-h_0HDQBQ.mjs → magic-string.es-CB2hOw9v.mjs} +14 -13
  68. package/dist/clis/args/{magic-string.es-h_0HDQBQ.mjs.map → magic-string.es-CB2hOw9v.mjs.map} +1 -1
  69. package/dist/clis/args/migrate-DkCQRL2D.d.mts +19 -0
  70. package/dist/clis/args/migrate-DkCQRL2D.d.mts.map +1 -0
  71. package/dist/clis/args/{migrate-0xLgeOxh.mjs → migrate-DwJGhc2d.mjs} +2 -2
  72. package/dist/clis/args/{migrate-0xLgeOxh.mjs.map → migrate-DwJGhc2d.mjs.map} +1 -1
  73. package/dist/clis/args/migrate.d.mts +3 -2
  74. package/dist/clis/args/migrate.mjs +1 -1
  75. package/dist/clis/args/publish-CeW4bOrl.d.mts +16 -0
  76. package/dist/clis/args/publish-CeW4bOrl.d.mts.map +1 -0
  77. package/dist/clis/args/{publish-BJF3ET2v.mjs → publish-DHqlGWmL.mjs} +2 -2
  78. package/dist/clis/args/{publish-BJF3ET2v.mjs.map → publish-DHqlGWmL.mjs.map} +1 -1
  79. package/dist/clis/args/publish.d.mts +3 -2
  80. package/dist/clis/args/publish.mjs +1 -1
  81. package/dist/clis/args/{registry-CbORgFD8.mjs → registry-DIwES3l2.mjs} +2 -2
  82. package/dist/clis/args/{registry-CbORgFD8.mjs.map → registry-DIwES3l2.mjs.map} +1 -1
  83. package/dist/clis/args/registry-DNH8xuaE.d.mts +17 -0
  84. package/dist/clis/args/registry-DNH8xuaE.d.mts.map +1 -0
  85. package/dist/clis/args/registry.d.mts +3 -2
  86. package/dist/clis/args/registry.mjs +1 -1
  87. package/dist/clis/args/service-BBx5GDTc.d.mts +27 -0
  88. package/dist/clis/args/service-BBx5GDTc.d.mts.map +1 -0
  89. package/dist/clis/args/{service-BfDN3YBu.mjs → service-Cpjlyeu5.mjs} +2 -2
  90. package/dist/clis/args/{service-BfDN3YBu.mjs.map → service-Cpjlyeu5.mjs.map} +1 -1
  91. package/dist/clis/args/service.d.mts +3 -2
  92. package/dist/clis/args/service.mjs +1 -1
  93. package/dist/clis/args/{switchboard-tj30Z45Y.mjs → switchboard-CCaAtU56.mjs} +2 -2
  94. package/dist/clis/args/{switchboard-tj30Z45Y.mjs.map → switchboard-CCaAtU56.mjs.map} +1 -1
  95. package/dist/clis/args/switchboard-RrNb1fUH.d.mts +70 -0
  96. package/dist/clis/args/switchboard-RrNb1fUH.d.mts.map +1 -0
  97. package/dist/clis/args/switchboard.d.mts +3 -2
  98. package/dist/clis/args/switchboard.mjs +1 -1
  99. package/dist/clis/args/{uninstall-CjVkOmXN.mjs → uninstall-3U0B8g5c.mjs} +2 -2
  100. package/dist/clis/args/{uninstall-CjVkOmXN.mjs.map → uninstall-3U0B8g5c.mjs.map} +1 -1
  101. package/dist/clis/args/uninstall-CDx7lwxn.d.mts +28 -0
  102. package/dist/clis/args/uninstall-CDx7lwxn.d.mts.map +1 -0
  103. package/dist/clis/args/uninstall.d.mts +3 -2
  104. package/dist/clis/args/uninstall.mjs +1 -1
  105. package/dist/clis/args/unpublish-CEDsk6uv.d.mts +22 -0
  106. package/dist/clis/args/unpublish-CEDsk6uv.d.mts.map +1 -0
  107. package/dist/clis/args/{unpublish-DSvGNHhr.mjs → unpublish-s9zUh6Gw.mjs} +2 -2
  108. package/dist/clis/args/{unpublish-DSvGNHhr.mjs.map → unpublish-s9zUh6Gw.mjs.map} +1 -1
  109. package/dist/clis/args/unpublish.d.mts +3 -2
  110. package/dist/clis/args/unpublish.mjs +1 -1
  111. package/dist/clis/args/{vetra-CMIe5hyF.mjs → vetra-BUNlAAPp.mjs} +2 -2
  112. package/dist/clis/args/{vetra-CMIe5hyF.mjs.map → vetra-BUNlAAPp.mjs.map} +1 -1
  113. package/dist/clis/args/vetra-DkDaWFPi.d.mts +111 -0
  114. package/dist/clis/args/vetra-DkDaWFPi.d.mts.map +1 -0
  115. package/dist/clis/args/vetra-ports.test.d.mts +2 -1
  116. package/dist/clis/args/vetra-ports.test.mjs +281 -176
  117. package/dist/clis/args/vetra-ports.test.mjs.map +1 -1
  118. package/dist/clis/args/vetra.d.mts +3 -2
  119. package/dist/clis/args/vetra.mjs +1 -1
  120. package/dist/clis/{build-config-BkfXtfV8.mjs → build-config-CmdMi_wu.mjs} +3 -3
  121. package/dist/clis/{build-config-BkfXtfV8.mjs.map → build-config-CmdMi_wu.mjs.map} +1 -1
  122. package/dist/clis/build-config.d.mts +20 -17
  123. package/dist/clis/build-config.d.mts.map +1 -1
  124. package/dist/clis/build-config.mjs +1 -1
  125. package/dist/clis/build-pieces.d.mts +43 -37
  126. package/dist/clis/build-pieces.d.mts.map +1 -1
  127. package/dist/clis/build-pieces.mjs +3 -2
  128. package/dist/clis/build-pieces.mjs.map +1 -1
  129. package/dist/clis/command-names.d.mts +2 -2
  130. package/dist/clis/command-names.d.mts.map +1 -1
  131. package/dist/clis/command-names.mjs.map +1 -1
  132. package/dist/clis/constants.d.mts +3 -2
  133. package/dist/clis/constants.mjs +2 -2
  134. package/dist/clis/constants.mjs.map +1 -1
  135. package/dist/clis/{index-CyAv0ucZ.d.mts → index-DpixpHXl.d.mts} +1800 -1265
  136. package/dist/clis/index-DpixpHXl.d.mts.map +1 -0
  137. package/dist/clis/index.d.mts +1288 -1257
  138. package/dist/clis/index.d.mts.map +1 -1
  139. package/dist/clis/index.mjs +51 -29
  140. package/dist/clis/index.mjs.map +1 -1
  141. package/dist/clis/project-env.d.mts +4 -4
  142. package/dist/clis/project-env.d.mts.map +1 -1
  143. package/dist/clis/project-env.mjs.map +1 -1
  144. package/dist/clis/project-ports.d.mts +5 -5
  145. package/dist/clis/project-ports.d.mts.map +1 -1
  146. package/dist/clis/project-ports.mjs +1 -1
  147. package/dist/clis/project-ports.mjs.map +1 -1
  148. package/dist/clis/services/telemetry.d.mts +7 -7
  149. package/dist/clis/services/telemetry.d.mts.map +1 -1
  150. package/dist/clis/services/telemetry.mjs.map +1 -1
  151. package/dist/clis/{types-B-Il50oC.d.mts → types-CMFHKrgv.d.mts} +66 -29
  152. package/dist/clis/types-CMFHKrgv.d.mts.map +1 -0
  153. package/dist/clis/utils.d.mts +4 -4
  154. package/dist/clis/utils.d.mts.map +1 -1
  155. package/dist/clis/utils.mjs.map +1 -1
  156. package/dist/{config-loader-DcwNJiBB.js → config-loader-SYDWHtqk.js} +3 -1
  157. package/dist/{config-loader-DcwNJiBB.js.map → config-loader-SYDWHtqk.js.map} +1 -1
  158. package/dist/connect/config-loader.d.ts +7 -8
  159. package/dist/connect/config-loader.d.ts.map +1 -1
  160. package/dist/connect/config-loader.js +1 -1
  161. package/dist/connect/index.d.ts +69 -68
  162. package/dist/connect/index.d.ts.map +1 -1
  163. package/dist/connect/index.js +55 -5
  164. package/dist/connect/index.js.map +1 -1
  165. package/dist/connect/json-adapter.d.ts +3 -4
  166. package/dist/connect/json-adapter.d.ts.map +1 -1
  167. package/dist/connect/json-adapter.js.map +1 -1
  168. package/dist/{constants-BP_gjn8g.d.ts → constants-DO4IYxuR.d.ts} +2 -1
  169. package/dist/constants-DO4IYxuR.d.ts.map +1 -0
  170. package/dist/constants.d.ts +3 -2
  171. package/dist/constants.js.map +1 -1
  172. package/dist/document-drive/index.d.ts +101 -99
  173. package/dist/document-drive/index.d.ts.map +1 -1
  174. package/dist/document-drive/index.js.map +1 -1
  175. package/dist/document-model/index.d.ts +5 -4
  176. package/dist/document-model/index.js +51 -45
  177. package/dist/document-model/index.js.map +1 -1
  178. package/dist/document-model/mock.d.ts +2 -3
  179. package/dist/document-model/mock.d.ts.map +1 -1
  180. package/dist/document-model/mock.js +2 -1
  181. package/dist/document-model/mock.js.map +1 -1
  182. package/dist/document-model/utils.d.ts +3 -2
  183. package/dist/document-model/utils.js +1 -1
  184. package/dist/{index-BmL07S5O.d.ts → index-CDDyUSHE.d.ts} +17 -14
  185. package/dist/index-CDDyUSHE.d.ts.map +1 -0
  186. package/dist/index-D0JljlgO.d.ts +36 -0
  187. package/dist/index-D0JljlgO.d.ts.map +1 -0
  188. package/dist/index.d.ts +7 -6
  189. package/dist/index.js.map +1 -1
  190. package/dist/processors/index.d.ts +3 -2
  191. package/dist/processors/index.js +5 -1
  192. package/dist/processors/index.js.map +1 -1
  193. package/dist/registry/index.d.ts +15 -15
  194. package/dist/registry/index.d.ts.map +1 -1
  195. package/dist/registry/index.js +2 -1
  196. package/dist/registry/index.js.map +1 -1
  197. package/dist/registry/manifest-slim.d.ts +4 -3
  198. package/dist/registry/manifest-slim.d.ts.map +1 -1
  199. package/dist/registry/manifest-slim.js.map +1 -1
  200. package/dist/registry/updates.d.ts +3 -3
  201. package/dist/registry/updates.d.ts.map +1 -1
  202. package/dist/registry/updates.js.map +1 -1
  203. package/dist/registry/urls.d.ts +2 -2
  204. package/dist/registry/urls.d.ts.map +1 -1
  205. package/dist/registry/urls.js.map +1 -1
  206. package/dist/{types-C1in4fl3.d.ts → types-Bsp8VL2y.d.ts} +2 -2
  207. package/dist/types-Bsp8VL2y.d.ts.map +1 -0
  208. package/dist/{types-DhOXIQ4c.d.ts → types-VDHUeQnm.d.ts} +17 -40
  209. package/dist/types-VDHUeQnm.d.ts.map +1 -0
  210. package/dist/{types-COsoOK42.d.ts → types-xLPOHE23.d.ts} +281 -196
  211. package/dist/types-xLPOHE23.d.ts.map +1 -0
  212. package/dist/{utils-DP122OSS.d.ts → utils-BrKxCmKx.d.ts} +2 -2
  213. package/dist/utils-BrKxCmKx.d.ts.map +1 -0
  214. package/dist/{utils-aaTmfxFW.js → utils-XotexSsQ.js} +3 -2
  215. package/dist/{utils-aaTmfxFW.js.map → utils-XotexSsQ.js.map} +1 -1
  216. package/package.json +4 -4
  217. package/dist/clis/args/access-token--9H57y8J.d.mts +0 -18
  218. package/dist/clis/args/access-token--9H57y8J.d.mts.map +0 -1
  219. package/dist/clis/args/common-Bc6Phg3O.d.mts +0 -189
  220. package/dist/clis/args/common-Bc6Phg3O.d.mts.map +0 -1
  221. package/dist/clis/args/connect-BD-C5BkE.d.mts +0 -452
  222. package/dist/clis/args/connect-BD-C5BkE.d.mts.map +0 -1
  223. package/dist/clis/args/generate-rd5SAYho.d.mts +0 -108
  224. package/dist/clis/args/generate-rd5SAYho.d.mts.map +0 -1
  225. package/dist/clis/args/help-CjAsudUn.d.mts +0 -193
  226. package/dist/clis/args/help-CjAsudUn.d.mts.map +0 -1
  227. package/dist/clis/args/init-CUXyfquF.d.mts +0 -55
  228. package/dist/clis/args/init-CUXyfquF.d.mts.map +0 -1
  229. package/dist/clis/args/inspect-DtZeoA5c.d.mts +0 -15
  230. package/dist/clis/args/inspect-DtZeoA5c.d.mts.map +0 -1
  231. package/dist/clis/args/install-CkP8zcHb.d.mts +0 -40
  232. package/dist/clis/args/install-CkP8zcHb.d.mts.map +0 -1
  233. package/dist/clis/args/list-BGf8s_gj.d.mts +0 -12
  234. package/dist/clis/args/list-BGf8s_gj.d.mts.map +0 -1
  235. package/dist/clis/args/login-DNsHwvqk.d.mts +0 -27
  236. package/dist/clis/args/login-DNsHwvqk.d.mts.map +0 -1
  237. package/dist/clis/args/migrate-sixkWhxm.d.mts +0 -21
  238. package/dist/clis/args/migrate-sixkWhxm.d.mts.map +0 -1
  239. package/dist/clis/args/publish-Dqe5DUst.d.mts +0 -18
  240. package/dist/clis/args/publish-Dqe5DUst.d.mts.map +0 -1
  241. package/dist/clis/args/registry-C_RfTsKB.d.mts +0 -19
  242. package/dist/clis/args/registry-C_RfTsKB.d.mts.map +0 -1
  243. package/dist/clis/args/service-DhIkf8-O.d.mts +0 -22
  244. package/dist/clis/args/service-DhIkf8-O.d.mts.map +0 -1
  245. package/dist/clis/args/switchboard-BlPaq2at.d.mts +0 -72
  246. package/dist/clis/args/switchboard-BlPaq2at.d.mts.map +0 -1
  247. package/dist/clis/args/uninstall-BpA3YYbw.d.mts +0 -31
  248. package/dist/clis/args/uninstall-BpA3YYbw.d.mts.map +0 -1
  249. package/dist/clis/args/unpublish-CvwaIimG.d.mts +0 -24
  250. package/dist/clis/args/unpublish-CvwaIimG.d.mts.map +0 -1
  251. package/dist/clis/args/vetra-CoMvTJK7.d.mts +0 -113
  252. package/dist/clis/args/vetra-CoMvTJK7.d.mts.map +0 -1
  253. package/dist/clis/index-CyAv0ucZ.d.mts.map +0 -1
  254. package/dist/clis/types-B-Il50oC.d.mts.map +0 -1
  255. package/dist/constants-BP_gjn8g.d.ts.map +0 -1
  256. package/dist/index-BmL07S5O.d.ts.map +0 -1
  257. package/dist/index-C_iVZe7f.d.ts +0 -7
  258. package/dist/index-C_iVZe7f.d.ts.map +0 -1
  259. package/dist/types-C1in4fl3.d.ts.map +0 -1
  260. package/dist/types-COsoOK42.d.ts.map +0 -1
  261. package/dist/types-DhOXIQ4c.d.ts.map +0 -1
  262. package/dist/utils-DP122OSS.d.ts.map +0 -1
@@ -1,95 +1,6 @@
1
- import { BuildOptions, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, TreeshakingOptions } from "rolldown";
1
+ import { BuildOptions, ChecksOptions, ExternalOption, InputOptions, InternalModuleFormat, MinifyOptions, ModuleFormat, ModuleTypes, OutputAsset, OutputChunk, OutputOptions, Plugin, RolldownPlugin, TreeshakingOptions } from "rolldown";
2
2
  import { IsolatedDeclarationsOptions } from "rolldown/experimental";
3
- import { StartOptions } from "@vitejs/devtools/cli-commands";
4
- import { ExeExtensionOptions } from "@tsdown/exe";
5
- import { CheckPackageOptions } from "@arethetypeswrong/core";
6
- import { Options } from "publint";
7
- import { Options as UnusedOptions } from "unplugin-unused";
8
-
9
- //#region ../../node_modules/.pnpm/tsdown@0.21.1_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_@tsdown+css@0.21.1_oxc-resolve_355315ed8480c28e755f1ce96fdb0491/node_modules/tsdown/dist/logger-BUKd5OJy.d.mts
10
- //#region src/utils/types.d.ts
11
- type Overwrite<T, U> = Omit<T, keyof U> & U;
12
- type Awaitable<T> = T | Promise<T>;
13
- type MarkPartial<T, K extends keyof T> = Omit<Required<T>, K> & Partial<Pick<T, K>>;
14
- type Arrayable<T> = T | T[]; //#endregion
15
- //#region src/utils/logger.d.ts
16
- type LogType = "error" | "warn" | "info";
17
- type LogLevel = LogType | "silent";
18
- interface LoggerOptions {
19
- allowClearScreen?: boolean;
20
- customLogger?: Logger;
21
- console?: Console;
22
- failOnWarn?: boolean;
23
- }
24
- interface Logger {
25
- level: LogLevel;
26
- options?: LoggerOptions;
27
- info: (...args: any[]) => void;
28
- warn: (...args: any[]) => void;
29
- warnOnce: (...args: any[]) => void;
30
- error: (...args: any[]) => void;
31
- success: (...args: any[]) => void;
32
- clearScreen: (type: LogType) => void;
33
- }
34
- //#endregion
35
- //#region ../../node_modules/.pnpm/hookable@6.1.1/node_modules/hookable/dist/index.d.mts
36
- type HookCallback = (...arguments_: any) => Promise<void> | void;
37
- type HookKeys<T> = keyof T & string;
38
- type DeprecatedHook<T> = {
39
- message?: string;
40
- to: HookKeys<T>;
41
- };
42
- type ValueOf<C> = C extends Record<any, any> ? C[keyof C] : never;
43
- type Strings<T> = Exclude<keyof T, number | symbol>;
44
- type KnownKeys<T> = keyof { [K in keyof T as string extends K ? never : number extends K ? never : K]: never };
45
- type StripGeneric<T> = Pick<T, KnownKeys<T> extends keyof T ? KnownKeys<T> : never>;
46
- type OnlyGeneric<T> = Omit<T, KnownKeys<T> extends keyof T ? KnownKeys<T> : never>;
47
- type Namespaces<T> = ValueOf<{ [key in Strings<T>]: key extends `${infer Namespace}:${string}` ? Namespace : never }>;
48
- type BareHooks<T> = ValueOf<{ [key in Strings<T>]: key extends `${string}:${string}` ? never : key }>;
49
- type HooksInNamespace<T, Namespace extends string> = ValueOf<{ [key in Strings<T>]: key extends `${Namespace}:${infer HookName}` ? HookName : never }>;
50
- type WithoutNamespace<T, Namespace extends string> = { [key in HooksInNamespace<T, Namespace>]: `${Namespace}:${key}` extends keyof T ? T[`${Namespace}:${key}`] : never };
51
- type NestedHooks<T> = (Partial<StripGeneric<T>> | Partial<OnlyGeneric<T>>) & Partial<{ [key in Namespaces<StripGeneric<T>>]: NestedHooks<WithoutNamespace<T, key>> }> & Partial<{ [key in BareHooks<StripGeneric<T>>]: T[key] }>;
52
- type InferCallback<HT, HN extends keyof HT> = HT[HN] extends HookCallback ? HT[HN] : never;
53
- type InferSpyEvent<HT extends Record<string, any>> = { [key in keyof HT]: {
54
- name: key;
55
- args: Parameters<HT[key]>;
56
- context: Record<string, any>;
57
- } }[keyof HT];
58
- declare class Hookable<HooksT extends Record<string, any> = Record<string, HookCallback>, HookNameT extends HookKeys<HooksT> = HookKeys<HooksT>> {
59
- private _hooks;
60
- private _before?;
61
- private _after?;
62
- private _deprecatedHooks;
63
- private _deprecatedMessages?;
64
- constructor();
65
- hook<NameT extends HookNameT>(name: NameT, function_: InferCallback<HooksT, NameT>, options?: {
66
- allowDeprecated?: boolean;
67
- }): () => void;
68
- hookOnce<NameT extends HookNameT>(name: NameT, function_: InferCallback<HooksT, NameT>): () => void;
69
- removeHook<NameT extends HookNameT>(name: NameT, function_: InferCallback<HooksT, NameT>): void;
70
- clearHook<NameT extends HookNameT>(name: NameT): void;
71
- deprecateHook<NameT extends HookNameT>(name: NameT, deprecated: HookKeys<HooksT> | DeprecatedHook<HooksT>): void;
72
- deprecateHooks(deprecatedHooks: Partial<Record<HookNameT, DeprecatedHook<HooksT>>>): void;
73
- addHooks(configHooks: NestedHooks<HooksT>): () => void;
74
- removeHooks(configHooks: NestedHooks<HooksT>): void;
75
- removeAllHooks(): void;
76
- callHook<NameT extends HookNameT>(name: NameT, ...args: Parameters<InferCallback<HooksT, NameT>>): Promise<any> | void;
77
- callHookParallel<NameT extends HookNameT>(name: NameT, ...args: Parameters<InferCallback<HooksT, NameT>>): Promise<any[]> | void;
78
- callHookWith<NameT extends HookNameT, CallFunction extends (hooks: HookCallback[], args: Parameters<InferCallback<HooksT, NameT>>, name: NameT) => any>(caller: CallFunction, name: NameT, args: Parameters<InferCallback<HooksT, NameT>>): ReturnType<CallFunction>;
79
- beforeEach(function_: (event: InferSpyEvent<HooksT>) => void): () => void;
80
- afterEach(function_: (event: InferSpyEvent<HooksT>) => void): () => void;
81
- }
82
- type CreateTask = (name?: string) => {
83
- run: (function_: () => Promise<any> | any) => Promise<any> | any;
84
- };
85
- declare global {
86
- interface Console {
87
- createTask?: CreateTask;
88
- }
89
- }
90
- /** @deprecated */
91
- //#endregion
92
- //#region ../../node_modules/.pnpm/lightningcss@1.32.0/node_modules/lightningcss/node/ast.d.ts
3
+ //#region ../../node_modules/.pnpm/lightningcss@1.33.0/node_modules/lightningcss/node/ast.d.ts
93
4
  /* eslint-disable */
94
5
  /**
95
6
  * This file was automatically generated by json-schema-to-typescript.
@@ -169,6 +80,9 @@ type Rule<D = Declaration, M = MediaQuery> = {
169
80
  } | {
170
81
  type: "view-transition";
171
82
  value: ViewTransitionRule;
83
+ } | {
84
+ type: "position-try";
85
+ value: PositionTryRule<D>;
172
86
  } | {
173
87
  type: "ignored";
174
88
  } | {
@@ -1810,6 +1724,8 @@ type PropertyId = {
1810
1724
  } | {
1811
1725
  property: "backdrop-filter";
1812
1726
  vendorPrefix: VendorPrefix;
1727
+ } | {
1728
+ property: "mix-blend-mode";
1813
1729
  } | {
1814
1730
  property: "z-index";
1815
1731
  } | {
@@ -2944,6 +2860,9 @@ type Declaration = {
2944
2860
  property: "backdrop-filter";
2945
2861
  value: FilterList;
2946
2862
  vendorPrefix: VendorPrefix;
2863
+ } | {
2864
+ property: "mix-blend-mode";
2865
+ value: BlendMode;
2947
2866
  } | {
2948
2867
  property: "z-index";
2949
2868
  value: ZIndex;
@@ -4549,6 +4468,29 @@ type Translate = "none" | {
4549
4468
  */
4550
4469
  z: Length;
4551
4470
  };
4471
+ /**
4472
+ * A value for the [rotate](https://drafts.csswg.org/css-transforms-2/#propdef-rotate) property.
4473
+ */
4474
+ type Rotate = "none" | {
4475
+ xyz: {
4476
+ /**
4477
+ * The angle of rotation.
4478
+ */
4479
+ angle: Angle;
4480
+ /**
4481
+ * Rotation around the x axis.
4482
+ */
4483
+ x: number;
4484
+ /**
4485
+ * Rotation around the y axis.
4486
+ */
4487
+ y: number;
4488
+ /**
4489
+ * Rotation around the z axis.
4490
+ */
4491
+ z: number;
4492
+ };
4493
+ };
4552
4494
  /**
4553
4495
  * A value for the [scale](https://drafts.csswg.org/css-transforms-2/#propdef-scale) property.
4554
4496
  */
@@ -5020,6 +4962,10 @@ type Filter = {
5020
4962
  type: "url";
5021
4963
  value: Url;
5022
4964
  };
4965
+ /**
4966
+ * A [`<blend-mode>`](https://www.w3.org/TR/compositing-1/#ltblendmodegt) value.
4967
+ */
4968
+ type BlendMode = "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "color" | "luminosity" | "plus-darker" | "plus-lighter";
5023
4969
  /**
5024
4970
  * A value for the [z-index](https://drafts.csswg.org/css2/#z-index) property.
5025
4971
  */
@@ -5245,6 +5191,12 @@ type PseudoClass = {
5245
5191
  kind: "local-link";
5246
5192
  } | {
5247
5193
  kind: "target";
5194
+ } | {
5195
+ kind: "target-current";
5196
+ } | {
5197
+ kind: "target-before";
5198
+ } | {
5199
+ kind: "target-after";
5248
5200
  } | {
5249
5201
  kind: "target-within";
5250
5202
  } | {
@@ -5365,12 +5317,20 @@ type PseudoElement = {
5365
5317
  kind: "details-content";
5366
5318
  } | {
5367
5319
  kind: "target-text";
5320
+ } | {
5321
+ kind: "search-text";
5368
5322
  } | {
5369
5323
  kind: "selection";
5370
5324
  vendorPrefix: VendorPrefix;
5371
5325
  } | {
5372
5326
  kind: "placeholder";
5373
5327
  vendorPrefix: VendorPrefix;
5328
+ } | {
5329
+ kind: "highlight-function";
5330
+ /**
5331
+ * A custom highlight name.
5332
+ */
5333
+ name: String;
5374
5334
  } | {
5375
5335
  kind: "marker";
5376
5336
  } | {
@@ -7273,27 +7233,6 @@ interface Matrix3DForFloat {
7273
7233
  m43: number;
7274
7234
  m44: number;
7275
7235
  }
7276
- /**
7277
- * A value for the [rotate](https://drafts.csswg.org/css-transforms-2/#propdef-rotate) property.
7278
- */
7279
- interface Rotate {
7280
- /**
7281
- * The angle of rotation.
7282
- */
7283
- angle: Angle;
7284
- /**
7285
- * Rotation around the x axis.
7286
- */
7287
- x: number;
7288
- /**
7289
- * Rotation around the y axis.
7290
- */
7291
- y: number;
7292
- /**
7293
- * Rotation around the z axis.
7294
- */
7295
- z: number;
7296
- }
7297
7236
  /**
7298
7237
  * A value for the [text-transform](https://www.w3.org/TR/2021/CRD-css-text-3-20210422/#text-transform-property) property.
7299
7238
  */
@@ -8183,6 +8122,23 @@ interface ViewTransitionRule {
8183
8122
  */
8184
8123
  properties: ViewTransitionProperty[];
8185
8124
  }
8125
+ /**
8126
+ * A [@position-try](https://drafts.csswg.org/css-anchor-position-1/#position-try) rule.
8127
+ */
8128
+ interface PositionTryRule<D = Declaration> {
8129
+ /**
8130
+ * Declarations in the `@position-try` rule.
8131
+ */
8132
+ declarations: DeclarationBlock<D>;
8133
+ /**
8134
+ * The location of the rule in the source file.
8135
+ */
8136
+ loc: Location2;
8137
+ /**
8138
+ * The name of the position-try fallback.
8139
+ */
8140
+ name: String;
8141
+ }
8186
8142
  /**
8187
8143
  * An unknown at-rule, stored as raw tokens.
8188
8144
  */
@@ -8205,7 +8161,7 @@ interface UnknownAtRule {
8205
8161
  prelude: TokenOrValue[];
8206
8162
  }
8207
8163
  //#endregion
8208
- //#region ../../node_modules/.pnpm/lightningcss@1.32.0/node_modules/lightningcss/node/targets.d.ts
8164
+ //#region ../../node_modules/.pnpm/lightningcss@1.33.0/node_modules/lightningcss/node/targets.d.ts
8209
8165
  // This file is autogenerated by build-prefixes.js. DO NOT EDIT!
8210
8166
  interface Targets {
8211
8167
  android?: number;
@@ -8219,7 +8175,7 @@ interface Targets {
8219
8175
  samsung?: number;
8220
8176
  }
8221
8177
  //#endregion
8222
- //#region ../../node_modules/.pnpm/lightningcss@1.32.0/node_modules/lightningcss/node/index.d.ts
8178
+ //#region ../../node_modules/.pnpm/lightningcss@1.33.0/node_modules/lightningcss/node/index.d.ts
8223
8179
  interface TransformOptions<C extends CustomAtRules> {
8224
8180
  /** The filename being transformed. Used for error messages and source maps. */
8225
8181
  filename: string;
@@ -8290,11 +8246,14 @@ interface TransformOptions<C extends CustomAtRules> {
8290
8246
  // This is a hack to make TS still provide autocomplete for `property` vs. just making it `string`.
8291
8247
  type PropertyStart = '-' | '_' | 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
8292
8248
  type ReturnedDeclaration = Declaration | {
8293
- /** The property name. */property: `${PropertyStart}${string}`; /** The raw string value for the declaration. */
8249
+ /** The property name. */
8250
+ property: `${PropertyStart}${string}`;
8251
+ /** The raw string value for the declaration. */
8294
8252
  raw: string;
8295
8253
  };
8296
8254
  type ReturnedMediaQuery = MediaQuery | {
8297
- /** The raw string value for the media query. */raw: string;
8255
+ /** The raw string value for the media query. */
8256
+ raw: string;
8298
8257
  };
8299
8258
  type FindByType<Union, Name> = Union extends {
8300
8259
  type: Name;
@@ -8310,26 +8269,26 @@ type RequiredValue<Rule> = Rule extends {
8310
8269
  value: Required<Rule['value']>;
8311
8270
  } : Rule;
8312
8271
  type RuleVisitor<R = RequiredValue<Rule>> = ((rule: R) => ReturnedRule | ReturnedRule[] | void);
8313
- type MappedRuleVisitors = { [Name in Exclude<Rule['type'], 'unknown' | 'custom'>]?: RuleVisitor<RequiredValue<FindByType<Rule, Name>>> };
8272
+ type MappedRuleVisitors = { [Name in Exclude<Rule['type'], 'unknown' | 'custom'>]?: RuleVisitor<RequiredValue<FindByType<Rule, Name>>>; };
8314
8273
  type UnknownVisitors<T> = {
8315
8274
  [name: string]: RuleVisitor<T>;
8316
8275
  };
8317
- type CustomVisitors<T extends CustomAtRules> = { [Name in keyof T]?: RuleVisitor<CustomAtRule<Name, T[Name]>> };
8318
- type AnyCustomAtRule<C extends CustomAtRules> = { [Key in keyof C]: CustomAtRule<Key, C[Key]> }[keyof C];
8276
+ type CustomVisitors<T extends CustomAtRules> = { [Name in keyof T]?: RuleVisitor<CustomAtRule<Name, T[Name]>>; };
8277
+ type AnyCustomAtRule<C extends CustomAtRules> = { [Key in keyof C]: CustomAtRule<Key, C[Key]>; }[keyof C];
8319
8278
  type RuleVisitors<C extends CustomAtRules> = MappedRuleVisitors & {
8320
8279
  unknown?: UnknownVisitors<UnknownAtRule> | Omit<RuleVisitor<UnknownAtRule>, keyof CallableFunction>;
8321
8280
  custom?: CustomVisitors<C> | Omit<RuleVisitor<AnyCustomAtRule<C>>, keyof CallableFunction>;
8322
8281
  };
8323
8282
  type PreludeTypes = Exclude<ParsedComponent['type'], 'literal' | 'repeated' | 'token'>;
8324
8283
  type SyntaxString = `<${PreludeTypes}>` | `<${PreludeTypes}>+` | `<${PreludeTypes}>#` | (string & {});
8325
- type ComponentTypes = { [Key in PreludeTypes as `<${Key}>`]: FindByType<ParsedComponent, Key> };
8284
+ type ComponentTypes = { [Key in PreludeTypes as `<${Key}>`]: FindByType<ParsedComponent, Key>; };
8326
8285
  type Repetitions = { [Key in PreludeTypes as `<${Key}>+` | `<${Key}>#`]: {
8327
8286
  type: "repeated";
8328
8287
  value: {
8329
8288
  components: FindByType<ParsedComponent, Key>[];
8330
8289
  multiplier: Multiplier;
8331
8290
  };
8332
- } };
8291
+ }; };
8333
8292
  type MappedPrelude = ComponentTypes & Repetitions;
8334
8293
  type MappedBody<P extends CustomAtRuleDefinition['body']> = P extends 'style-block' ? 'rule-list' : P;
8335
8294
  interface CustomAtRule<N, R extends CustomAtRuleDefinition> {
@@ -8349,7 +8308,7 @@ type FindProperty<Union, Name> = Union extends {
8349
8308
  property: Name;
8350
8309
  } ? Union : never;
8351
8310
  type DeclarationVisitor<P = Declaration> = ((property: P) => ReturnedDeclaration | ReturnedDeclaration[] | void);
8352
- type MappedDeclarationVisitors = { [Name in Exclude<Declaration['property'], 'unparsed' | 'custom'>]?: DeclarationVisitor<FindProperty<Declaration, Name> | FindProperty<Declaration, 'unparsed'>> };
8311
+ type MappedDeclarationVisitors = { [Name in Exclude<Declaration['property'], 'unparsed' | 'custom'>]?: DeclarationVisitor<FindProperty<Declaration, Name> | FindProperty<Declaration, 'unparsed'>>; };
8353
8312
  type CustomPropertyVisitors = {
8354
8313
  [name: string]: DeclarationVisitor<CustomProperty>;
8355
8314
  };
@@ -8363,7 +8322,7 @@ interface RawValue {
8363
8322
  type TokenReturnValue = TokenOrValue | TokenOrValue[] | RawValue | void;
8364
8323
  type TokenVisitor = (token: Token) => TokenReturnValue;
8365
8324
  type VisitableTokenTypes = 'ident' | 'at-keyword' | 'hash' | 'id-hash' | 'string' | 'number' | 'percentage' | 'dimension';
8366
- type TokenVisitors = { [Name in VisitableTokenTypes]?: (token: FindByType<Token, Name>) => TokenReturnValue };
8325
+ type TokenVisitors = { [Name in VisitableTokenTypes]?: (token: FindByType<Token, Name>) => TokenReturnValue; };
8367
8326
  type FunctionVisitor = (fn: Function) => TokenReturnValue;
8368
8327
  type EnvironmentVariableVisitor = (env: EnvironmentVariable) => TokenReturnValue;
8369
8328
  type EnvironmentVariableVisitors = {
@@ -8438,6 +8397,11 @@ interface DependencyOptions {
8438
8397
  interface Drafts {
8439
8398
  /** Whether to enable @custom-media rules. */
8440
8399
  customMedia?: boolean;
8400
+ /**
8401
+ * Whether to enable the scroll navigation controls.
8402
+ * https://drafts.csswg.org/css-overflow-5/#scroll-navigation
8403
+ */
8404
+ scrollNavigationControls?: boolean;
8441
8405
  }
8442
8406
  interface NonStandard {
8443
8407
  /** Whether to enable the non-standard >>> and /deep/ selector combinators used by Angular and Vue. */
@@ -8475,79 +8439,127 @@ interface GlobDependency {
8475
8439
  glob: string;
8476
8440
  }
8477
8441
  //#endregion
8478
- //#region ../../node_modules/.pnpm/@tsdown+css@0.21.1_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_jiti@2.7.0_postcss@8.5.19_9159ec550f659ff75a319f35d6e7c5e2/node_modules/@tsdown/css/dist/index.d.mts
8442
+ //#region ../../node_modules/.pnpm/@tsdown+css@0.23.0_jiti@2.7.0_postcss@8.5.19_tsdown@0.23.0_tsx@4.21.0_yaml@2.9.0/node_modules/@tsdown/css/dist/index.d.mts
8479
8443
  //#region src/options.d.ts
8480
8444
  type LightningCSSOptions = Omit<TransformOptions<any>, "filename" | "code">;
8481
- interface CssOptions {
8445
+ type CSSModulesLocalsConvention = "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly" | ((originalClassName: string, generatedClassName: string, inputFile: string) => string);
8446
+ interface CSSModulesOptions {
8447
+ /**
8448
+ * Controls the scoping behavior.
8449
+ * @default 'local'
8450
+ */
8451
+ scopeBehaviour?: "global" | "local";
8452
+ /**
8453
+ * File paths matching these patterns will use global scoping.
8454
+ */
8455
+ globalModulePaths?: RegExp[];
8456
+ /**
8457
+ * Pattern or function to generate scoped class names.
8458
+ * When using `transformer: 'lightningcss'`, only string patterns are supported.
8459
+ */
8460
+ generateScopedName?: string | ((name: string, filename: string, css: string) => string);
8461
+ /**
8462
+ * Prefix added to hashes when generating scoped names.
8463
+ */
8464
+ hashPrefix?: string;
8465
+ /**
8466
+ * Transform convention for exported class names.
8467
+ */
8468
+ localsConvention?: CSSModulesLocalsConvention;
8469
+ /**
8470
+ * Whether to include global class names in the export.
8471
+ */
8472
+ exportGlobals?: boolean;
8482
8473
  /**
8483
- * Enable/disable CSS code splitting.
8484
- * When set to `false`, all CSS in the entire project will be extracted into a single CSS file named by {@link fileName}.
8485
- * When set to `true`, CSS imported in async JS chunks will be preserved as chunks.
8486
- * @default false
8487
- */
8474
+ * Callback to receive the generated class name mappings.
8475
+ */
8476
+ getJSON?: (cssFileName: string, json: Record<string, string>, outputFileName: string) => void;
8477
+ }
8478
+ interface CssOptions$1 {
8479
+ /**
8480
+ * Enable/disable CSS code splitting.
8481
+ * When set to `false`, all CSS in the entire project will be extracted into
8482
+ * a single CSS file named by {@linkcode fileName}.
8483
+ * When set to `true`, CSS imported in async JS chunks will be preserved as chunks.
8484
+ *
8485
+ * Defaults to `false`, but if `unbundle` is `true`, it defaults to `true` to preserve chunk splitting.
8486
+ */
8488
8487
  splitting?: boolean;
8489
8488
  /**
8490
- * Specify the name of the CSS file generated when `splitting` is `false`.
8491
- * @default 'style.css'
8492
- */
8489
+ * Specify the name of the CSS file generated when {@linkcode splitting} is
8490
+ * `false`.
8491
+ *
8492
+ * @default 'style.css'
8493
+ */
8493
8494
  fileName?: string;
8494
8495
  /**
8495
- * Set the target environment for CSS syntax lowering.
8496
- * Accepts esbuild-style target strings (e.g., `'chrome99'`, `'safari16.2'`).
8497
- * Defaults to the top-level `target` option.
8498
- *
8499
- * @see https://vite.dev/config/build-options#build-csstarget
8500
- */
8496
+ * Set the target environment for CSS syntax lowering.
8497
+ * Accepts esbuild-style target strings (e.g., `'chrome99'`, `'safari16.2'`).
8498
+ * Defaults to the top-level `target` option.
8499
+ *
8500
+ * @see https://vite.dev/config/build-options#build-csstarget
8501
+ * @default tsdownConfig.target
8502
+ */
8501
8503
  target?: string | string[] | false;
8502
8504
  /**
8503
- * Options for CSS preprocessors (Sass/Less/Stylus).
8504
- *
8505
- * In addition to options specific to each processor, `additionalData` option
8506
- * can be used to inject extra code for each style content.
8507
- */
8505
+ * Options for CSS preprocessors (Sass/Less/Stylus).
8506
+ *
8507
+ * In addition to options specific to each processor, `additionalData` option
8508
+ * can be used to inject extra code for each style content.
8509
+ */
8508
8510
  preprocessorOptions?: PreprocessorOptions;
8509
8511
  /**
8510
- * Enable/disable CSS minification.
8511
- *
8512
- * @default false
8513
- */
8512
+ * Enable/disable CSS minification.
8513
+ *
8514
+ * @default false
8515
+ */
8514
8516
  minify?: boolean;
8515
8517
  /**
8516
- * Lightning CSS options for CSS syntax lowering and transformations.
8517
- */
8518
+ * Lightning CSS options for CSS syntax lowering and transformations.
8519
+ */
8518
8520
  lightningcss?: LightningCSSOptions;
8519
8521
  /**
8520
- * PostCSS configuration.
8521
- *
8522
- * - `string`: Path to the directory to search for PostCSS config files.
8523
- * - `object`: Inline PostCSS options with optional `plugins` array.
8524
- * - Omitted: Auto-detect PostCSS config from the project root.
8525
- *
8526
- * Only used when `transformer` is `'postcss'`.
8527
- * Requires `postcss` to be installed.
8528
- *
8529
- * @see https://github.com/postcss/postcss
8530
- */
8522
+ * PostCSS configuration.
8523
+ *
8524
+ * - `string`: Path to the directory to search for PostCSS config files.
8525
+ * - `object`: Inline PostCSS options with optional `plugins` array.
8526
+ * - Omitted: Auto-detect PostCSS config from the project root.
8527
+ *
8528
+ * Only used when {@linkcode transformer} is `'postcss'`.
8529
+ * Requires `postcss` to be installed.
8530
+ *
8531
+ * @see https://github.com/postcss/postcss
8532
+ */
8531
8533
  postcss?: PostCSSOptions;
8532
8534
  /**
8533
- * When enabled, JS output preserves import statements pointing to emitted CSS files.
8534
- * Consumers of the library will automatically import the CSS alongside the JS.
8535
- *
8536
- * @default false
8537
- */
8535
+ * When enabled, JS output preserves import statements pointing to emitted CSS files.
8536
+ * Consumers of the library will automatically import the CSS alongside the JS.
8537
+ *
8538
+ * @default false
8539
+ */
8538
8540
  inject?: boolean;
8539
8541
  /**
8540
- * CSS transformer to use. Controls how CSS is processed:
8541
- *
8542
- * - `'lightningcss'` (default): `@import` handled by Lightning CSS
8543
- * `bundleAsync()`, PostCSS is **not** used at all.
8544
- * - `'postcss'`: `@import` handled by `postcss-import`,
8545
- * PostCSS plugins applied, Lightning CSS used only for final
8546
- * targets/minify transform.
8547
- *
8548
- * @default 'lightningcss'
8549
- * @see https://vite.dev/config/shared-options#css-transformer
8550
- */
8542
+ * CSS modules configuration.
8543
+ * When not `false`, `.module.css` files (and preprocessor variants) are
8544
+ * treated as CSS modules with scoped class names.
8545
+ *
8546
+ * @see https://github.com/css-modules/css-modules
8547
+ *
8548
+ * @default {}
8549
+ */
8550
+ modules?: CSSModulesOptions | false;
8551
+ /**
8552
+ * CSS transformer to use. Controls how CSS is processed:
8553
+ *
8554
+ * - `'lightningcss'` (default): `@import` handled by Lightning CSS
8555
+ * `bundleAsync()`, PostCSS is **not** used at all.
8556
+ * - `'postcss'`: `@import` handled by `postcss-import`,
8557
+ * PostCSS plugins applied, Lightning CSS used only for final
8558
+ * targets/minify transform.
8559
+ *
8560
+ * @default 'lightningcss'
8561
+ * @see https://vite.dev/config/shared-options#css-transformer
8562
+ */
8551
8563
  transformer?: "postcss" | "lightningcss";
8552
8564
  }
8553
8565
  type PostCSSOptions = string | (Record<string, any> & {
@@ -8583,632 +8595,820 @@ interface StylusPreprocessorOptions {
8583
8595
  [key: string]: any;
8584
8596
  }
8585
8597
  //#endregion
8586
- //#region ../../node_modules/.pnpm/get-tsconfig@4.13.7/node_modules/get-tsconfig/dist/index.d.cts
8598
+ //#region ../../node_modules/.pnpm/hookable@6.1.1/node_modules/hookable/dist/index.d.mts
8599
+ type HookCallback = (...arguments_: any) => Promise<void> | void;
8600
+ type HookKeys<T> = keyof T & string;
8601
+ type DeprecatedHook<T> = {
8602
+ message?: string;
8603
+ to: HookKeys<T>;
8604
+ };
8605
+ type ValueOf<C> = C extends Record<any, any> ? C[keyof C] : never;
8606
+ type Strings<T> = Exclude<keyof T, number | symbol>;
8607
+ type KnownKeys<T> = keyof { [K in keyof T as string extends K ? never : number extends K ? never : K]: never; };
8608
+ type StripGeneric<T> = Pick<T, KnownKeys<T> extends keyof T ? KnownKeys<T> : never>;
8609
+ type OnlyGeneric<T> = Omit<T, KnownKeys<T> extends keyof T ? KnownKeys<T> : never>;
8610
+ type Namespaces<T> = ValueOf<{ [key in Strings<T>]: key extends `${infer Namespace}:${string}` ? Namespace : never; }>;
8611
+ type BareHooks<T> = ValueOf<{ [key in Strings<T>]: key extends `${string}:${string}` ? never : key; }>;
8612
+ type HooksInNamespace<T, Namespace extends string> = ValueOf<{ [key in Strings<T>]: key extends `${Namespace}:${infer HookName}` ? HookName : never; }>;
8613
+ type WithoutNamespace<T, Namespace extends string> = { [key in HooksInNamespace<T, Namespace>]: `${Namespace}:${key}` extends keyof T ? T[`${Namespace}:${key}`] : never; };
8614
+ type NestedHooks<T> = (Partial<StripGeneric<T>> | Partial<OnlyGeneric<T>>) & Partial<{ [key in Namespaces<StripGeneric<T>>]: NestedHooks<WithoutNamespace<T, key>>; }> & Partial<{ [key in BareHooks<StripGeneric<T>>]: T[key]; }>;
8615
+ type InferCallback<HT, HN extends keyof HT> = HT[HN] extends HookCallback ? HT[HN] : never;
8616
+ type InferSpyEvent<HT extends Record<string, any>> = { [key in keyof HT]: {
8617
+ name: key;
8618
+ args: Parameters<HT[key]>;
8619
+ context: Record<string, any>;
8620
+ }; }[keyof HT];
8621
+ declare class Hookable<HooksT extends Record<string, any> = Record<string, HookCallback>, HookNameT extends HookKeys<HooksT> = HookKeys<HooksT>> {
8622
+ private _hooks;
8623
+ private _before?;
8624
+ private _after?;
8625
+ private _deprecatedHooks;
8626
+ private _deprecatedMessages?;
8627
+ constructor();
8628
+ hook<NameT extends HookNameT>(name: NameT, function_: InferCallback<HooksT, NameT>, options?: {
8629
+ allowDeprecated?: boolean;
8630
+ }): () => void;
8631
+ hookOnce<NameT extends HookNameT>(name: NameT, function_: InferCallback<HooksT, NameT>): () => void;
8632
+ removeHook<NameT extends HookNameT>(name: NameT, function_: InferCallback<HooksT, NameT>): void;
8633
+ clearHook<NameT extends HookNameT>(name: NameT): void;
8634
+ deprecateHook<NameT extends HookNameT>(name: NameT, deprecated: HookKeys<HooksT> | DeprecatedHook<HooksT>): void;
8635
+ deprecateHooks(deprecatedHooks: Partial<Record<HookNameT, DeprecatedHook<HooksT>>>): void;
8636
+ addHooks(configHooks: NestedHooks<HooksT>): () => void;
8637
+ removeHooks(configHooks: NestedHooks<HooksT>): void;
8638
+ removeAllHooks(): void;
8639
+ callHook<NameT extends HookNameT>(name: NameT, ...args: Parameters<InferCallback<HooksT, NameT>>): Promise<any> | void;
8640
+ callHookParallel<NameT extends HookNameT>(name: NameT, ...args: Parameters<InferCallback<HooksT, NameT>>): Promise<any[]> | void;
8641
+ callHookWith<NameT extends HookNameT, CallFunction extends (hooks: HookCallback[], args: Parameters<InferCallback<HooksT, NameT>>, name: NameT) => any>(caller: CallFunction, name: NameT, args: Parameters<InferCallback<HooksT, NameT>>): ReturnType<CallFunction>;
8642
+ beforeEach(function_: (event: InferSpyEvent<HooksT>) => void): () => void;
8643
+ afterEach(function_: (event: InferSpyEvent<HooksT>) => void): () => void;
8644
+ }
8645
+ type CreateTask = (name?: string) => {
8646
+ run: (function_: () => Promise<any> | any) => Promise<any> | any;
8647
+ };
8648
+ declare global {
8649
+ interface Console {
8650
+ createTask?: CreateTask;
8651
+ }
8652
+ }
8653
+ //#endregion
8654
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_oxc-resolver@11.19.0_@emnapi+core@1.10.0_@emnapi+runtime@1.1_d3224c4e65b2ebb265190a3f38910aae/node_modules/rolldown-plugin-dts/dist/custom-language-CFzWzq69.d.mts
8655
+ //#region src/custom-language.d.ts
8656
+ /** @ts-ignore - TS 7 mismatch */
8657
+ type FileExtensionInfo = undefined;
8658
+ /**
8659
+ * Describes a non-standard source language, such as Vue or Astro.
8660
+ *
8661
+ * If the language is supported via Volar, {@linkcode volarTypeScript} and
8662
+ * {@linkcode createVolarPlugins} must both be provided.
8663
+ */
8664
+ interface CustomLanguage {
8665
+ /** Patterns that identify files written in this language. */
8666
+ extensionPatterns: RegExp[];
8667
+ /** Extra file extensions passed to the TypeScript compiler. */
8668
+ tsFileExtensionInfos?: FileExtensionInfo[];
8669
+ /** Maps a source filename to the TypeScript filename used for declarations. */
8670
+ toTsFilename?: (id: string) => string;
8671
+ /** @ts-ignore - optional dep */
8672
+ volarTypeScript?: typeof import("@volar/typescript");
8673
+ /** @ts-ignore - optional dep */
8674
+ createVolarPlugins?: Parameters<(typeof import("@volar/typescript"))["proxyCreateProgram"]>[2];
8675
+ }
8676
+ //#endregion
8677
+ //#region ../../node_modules/.pnpm/get-tsconfig@5.0.0-beta.6/node_modules/get-tsconfig/dist/index.d.mts
8587
8678
  declare namespace TsConfigJson {
8588
8679
  namespace CompilerOptions {
8589
8680
  type JSX = 'preserve' | 'react' | 'react-jsx' | 'react-jsxdev' | 'react-native';
8590
- type Module = 'CommonJS' | 'AMD' | 'System' | 'UMD' | 'ES6' | 'ES2015' | 'ES2020' | 'ES2022' | 'ESNext' | 'Node16' | 'Node18' | 'Node20' | 'NodeNext' | 'Preserve' | 'None' // Lowercase alternatives
8591
- | 'commonjs' | 'amd' | 'system' | 'umd' | 'es6' | 'es2015' | 'es2020' | 'es2022' | 'esnext' | 'node16' | 'node18' | 'node20' | 'nodenext' | 'preserve' | 'none';
8592
- type NewLine = 'CRLF' | 'LF' // Lowercase alternatives
8593
- | 'crlf' | 'lf';
8594
- type Target = 'ES3' | 'ES5' | 'ES6' | 'ES2015' | 'ES2016' | 'ES2017' | 'ES2018' | 'ES2019' | 'ES2020' | 'ES2021' | 'ES2022' | 'ES2023' | 'ES2024' | 'ESNext' // Lowercase alternatives
8595
- | 'es3' | 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'es2024' | 'esnext';
8596
- type Lib = 'ES5' | 'ES6' | 'ES7' | 'ES2015' | 'ES2015.Collection' | 'ES2015.Core' | 'ES2015.Generator' | 'ES2015.Iterable' | 'ES2015.Promise' | 'ES2015.Proxy' | 'ES2015.Reflect' | 'ES2015.Symbol.WellKnown' | 'ES2015.Symbol' | 'ES2016' | 'ES2016.Array.Include' | 'ES2017' | 'ES2017.ArrayBuffer' | 'ES2017.Date' | 'ES2017.Intl' | 'ES2017.Object' | 'ES2017.SharedMemory' | 'ES2017.String' | 'ES2017.TypedArrays' | 'ES2018' | 'ES2018.AsyncGenerator' | 'ES2018.AsyncIterable' | 'ES2018.Intl' | 'ES2018.Promise' | 'ES2018.Regexp' | 'ES2019' | 'ES2019.Array' | 'ES2019.Intl' | 'ES2019.Object' | 'ES2019.String' | 'ES2019.Symbol' | 'ES2020' | 'ES2020.BigInt' | 'ES2020.Date' | 'ES2020.Intl' | 'ES2020.Number' | 'ES2020.Promise' | 'ES2020.SharedMemory' | 'ES2020.String' | 'ES2020.Symbol.WellKnown' | 'ES2021' | 'ES2021.Intl' | 'ES2021.Promise' | 'ES2021.String' | 'ES2021.WeakRef' | 'ES2022' | 'ES2022.Array' | 'ES2022.Error' | 'ES2022.Intl' | 'ES2022.Object' | 'ES2022.RegExp' | 'ES2022.SharedMemory' | 'ES2022.String' | 'ES2023' | 'ES2023.Array' | 'ES2023.Collection' | 'ES2023.Intl' | 'ES2024' | 'ES2024.ArrayBuffer' | 'ES2024.Collection' | 'ES2024.Object' | 'ES2024.Promise' | 'ES2024.Regexp' | 'ES2024.SharedMemory' | 'ES2024.String' | 'ESNext' | 'ESNext.Array' | 'ESNext.AsyncIterable' | 'ESNext.BigInt' | 'ESNext.Collection' | 'ESNext.Decorators' | 'ESNext.Disposable' | 'ESNext.Error' | 'ESNext.Intl' | 'ESNext.Iterator' | 'ESNext.Object' | 'ESNext.Promise' | 'ESNext.Regexp' | 'ESNext.String' | 'ESNext.Symbol' | 'ESNext.WeakRef' | 'DOM' | 'DOM.AsyncIterable' | 'DOM.Iterable' | 'Decorators' | 'Decorators.Legacy' | 'ScriptHost' | 'WebWorker' | 'WebWorker.AsyncIterable' | 'WebWorker.ImportScripts' | 'WebWorker.Iterable' // Lowercase alternatives
8597
- | 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol.wellknown' | 'es2015.symbol' | 'es2016' | 'es2016.array.include' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.sharedmemory' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'decorators' | 'decorators.legacy' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
8681
+ type Module = 'CommonJS' | 'AMD' | 'System' | 'UMD' | 'ES6' | 'ES2015' | 'ES2020' | 'ES2022' | 'ESNext' | 'Node16' | 'Node18' | 'Node20' | 'NodeNext' | 'Preserve' | 'None' |
8682
+ // Lowercase alternatives
8683
+ 'commonjs' | 'amd' | 'system' | 'umd' | 'es6' | 'es2015' | 'es2020' | 'es2022' | 'esnext' | 'node16' | 'node18' | 'node20' | 'nodenext' | 'preserve' | 'none';
8684
+ type NewLine = 'CRLF' | 'LF' |
8685
+ // Lowercase alternatives
8686
+ 'crlf' | 'lf';
8687
+ type Target = 'ES3' | 'ES5' | 'ES6' | 'ES2015' | 'ES2016' | 'ES2017' | 'ES2018' | 'ES2019' | 'ES2020' | 'ES2021' | 'ES2022' | 'ES2023' | 'ES2024' | 'ESNext' |
8688
+ // Lowercase alternatives
8689
+ 'es3' | 'es5' | 'es6' | 'es2015' | 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'es2021' | 'es2022' | 'es2023' | 'es2024' | 'esnext';
8690
+ type Lib = 'ES5' | 'ES6' | 'ES7' | 'ES2015' | 'ES2015.Collection' | 'ES2015.Core' | 'ES2015.Generator' | 'ES2015.Iterable' | 'ES2015.Promise' | 'ES2015.Proxy' | 'ES2015.Reflect' | 'ES2015.Symbol.WellKnown' | 'ES2015.Symbol' | 'ES2016' | 'ES2016.Array.Include' | 'ES2017' | 'ES2017.ArrayBuffer' | 'ES2017.Date' | 'ES2017.Intl' | 'ES2017.Object' | 'ES2017.SharedMemory' | 'ES2017.String' | 'ES2017.TypedArrays' | 'ES2018' | 'ES2018.AsyncGenerator' | 'ES2018.AsyncIterable' | 'ES2018.Intl' | 'ES2018.Promise' | 'ES2018.Regexp' | 'ES2019' | 'ES2019.Array' | 'ES2019.Intl' | 'ES2019.Object' | 'ES2019.String' | 'ES2019.Symbol' | 'ES2020' | 'ES2020.BigInt' | 'ES2020.Date' | 'ES2020.Intl' | 'ES2020.Number' | 'ES2020.Promise' | 'ES2020.SharedMemory' | 'ES2020.String' | 'ES2020.Symbol.WellKnown' | 'ES2021' | 'ES2021.Intl' | 'ES2021.Promise' | 'ES2021.String' | 'ES2021.WeakRef' | 'ES2022' | 'ES2022.Array' | 'ES2022.Error' | 'ES2022.Intl' | 'ES2022.Object' | 'ES2022.RegExp' | 'ES2022.SharedMemory' | 'ES2022.String' | 'ES2023' | 'ES2023.Array' | 'ES2023.Collection' | 'ES2023.Intl' | 'ES2024' | 'ES2024.ArrayBuffer' | 'ES2024.Collection' | 'ES2024.Object' | 'ES2024.Promise' | 'ES2024.Regexp' | 'ES2024.SharedMemory' | 'ES2024.String' | 'ESNext' | 'ESNext.Array' | 'ESNext.AsyncIterable' | 'ESNext.BigInt' | 'ESNext.Collection' | 'ESNext.Decorators' | 'ESNext.Disposable' | 'ESNext.Error' | 'ESNext.Intl' | 'ESNext.Iterator' | 'ESNext.Object' | 'ESNext.Promise' | 'ESNext.Regexp' | 'ESNext.String' | 'ESNext.Symbol' | 'ESNext.WeakRef' | 'DOM' | 'DOM.AsyncIterable' | 'DOM.Iterable' | 'Decorators' | 'Decorators.Legacy' | 'ScriptHost' | 'WebWorker' | 'WebWorker.AsyncIterable' | 'WebWorker.ImportScripts' | 'WebWorker.Iterable' |
8691
+ // Lowercase alternatives
8692
+ 'es5' | 'es6' | 'es7' | 'es2015' | 'es2015.collection' | 'es2015.core' | 'es2015.generator' | 'es2015.iterable' | 'es2015.promise' | 'es2015.proxy' | 'es2015.reflect' | 'es2015.symbol.wellknown' | 'es2015.symbol' | 'es2016' | 'es2016.array.include' | 'es2017' | 'es2017.arraybuffer' | 'es2017.date' | 'es2017.intl' | 'es2017.object' | 'es2017.sharedmemory' | 'es2017.string' | 'es2017.typedarrays' | 'es2018' | 'es2018.asyncgenerator' | 'es2018.asynciterable' | 'es2018.intl' | 'es2018.promise' | 'es2018.regexp' | 'es2019' | 'es2019.array' | 'es2019.intl' | 'es2019.object' | 'es2019.string' | 'es2019.symbol' | 'es2020' | 'es2020.bigint' | 'es2020.date' | 'es2020.intl' | 'es2020.number' | 'es2020.promise' | 'es2020.sharedmemory' | 'es2020.string' | 'es2020.symbol.wellknown' | 'es2021' | 'es2021.intl' | 'es2021.promise' | 'es2021.string' | 'es2021.weakref' | 'es2022' | 'es2022.array' | 'es2022.error' | 'es2022.intl' | 'es2022.object' | 'es2022.regexp' | 'es2022.sharedmemory' | 'es2022.string' | 'es2023' | 'es2023.array' | 'es2023.collection' | 'es2023.intl' | 'es2024' | 'es2024.arraybuffer' | 'es2024.collection' | 'es2024.object' | 'es2024.promise' | 'es2024.regexp' | 'es2024.sharedmemory' | 'es2024.string' | 'esnext' | 'esnext.array' | 'esnext.asynciterable' | 'esnext.bigint' | 'esnext.collection' | 'esnext.decorators' | 'esnext.disposable' | 'esnext.error' | 'esnext.intl' | 'esnext.iterator' | 'esnext.object' | 'esnext.promise' | 'esnext.regexp' | 'esnext.string' | 'esnext.symbol' | 'esnext.weakref' | 'dom' | 'dom.asynciterable' | 'dom.iterable' | 'decorators' | 'decorators.legacy' | 'scripthost' | 'webworker' | 'webworker.asynciterable' | 'webworker.importscripts' | 'webworker.iterable';
8598
8693
  type Plugin = {
8599
8694
  /**
8600
- Plugin name.
8601
- */
8695
+ Plugin name.
8696
+ */
8602
8697
  name: string;
8603
8698
  };
8604
8699
  type ImportsNotUsedAsValues = 'remove' | 'preserve' | 'error';
8605
8700
  type FallbackPolling = 'fixedPollingInterval' | 'priorityPollingInterval' | 'dynamicPriorityPolling' | 'fixedInterval' | 'priorityInterval' | 'dynamicPriority' | 'fixedChunkSize';
8606
8701
  type WatchDirectory = 'useFsEvents' | 'fixedPollingInterval' | 'dynamicPriorityPolling' | 'fixedChunkSizePolling';
8607
8702
  type WatchFile = 'fixedPollingInterval' | 'priorityPollingInterval' | 'dynamicPriorityPolling' | 'useFsEvents' | 'useFsEventsOnParentDirectory' | 'fixedChunkSizePolling';
8608
- type ModuleResolution = 'classic' | 'node' | 'node10' | 'node16' | 'nodenext' | 'bundler' // Pascal-cased alternatives
8609
- | 'Classic' | 'Node' | 'Node10' | 'Node16' | 'NodeNext' | 'Bundler';
8703
+ type ModuleResolution = 'classic' | 'node' | 'node10' | 'node16' | 'nodenext' | 'bundler' |
8704
+ // Pascal-cased alternatives
8705
+ 'Classic' | 'Node' | 'Node10' | 'Node16' | 'NodeNext' | 'Bundler';
8610
8706
  type ModuleDetection = 'auto' | 'legacy' | 'force';
8611
8707
  type IgnoreDeprecations = '5.0';
8612
8708
  }
8613
8709
  type CompilerOptions = {
8614
8710
  /**
8615
- The character set of the input files.
8616
- @default 'utf8'
8617
- @deprecated This option will be removed in TypeScript 5.5.
8618
- */
8711
+ The character set of the input files.
8712
+
8713
+ @default 'utf8'
8714
+ @deprecated This option will be removed in TypeScript 5.5.
8715
+ */
8619
8716
  charset?: string;
8620
8717
  /**
8621
- Enables building for project references.
8622
- @default true
8623
- */
8718
+ Enables building for project references.
8719
+
8720
+ @default true
8721
+ */
8624
8722
  composite?: boolean;
8625
8723
  /**
8626
- Generates corresponding d.ts files.
8627
- @default false
8628
- */
8724
+ Generates corresponding d.ts files.
8725
+
8726
+ @default false
8727
+ */
8629
8728
  declaration?: boolean;
8630
8729
  /**
8631
- Specify output directory for generated declaration files.
8632
- */
8730
+ Specify output directory for generated declaration files.
8731
+ */
8633
8732
  declarationDir?: string;
8634
8733
  /**
8635
- Show diagnostic information.
8636
- @default false
8637
- */
8734
+ Show diagnostic information.
8735
+
8736
+ @default false
8737
+ */
8638
8738
  diagnostics?: boolean;
8639
8739
  /**
8640
- Reduce the number of projects loaded automatically by TypeScript.
8641
- @default false
8642
- */
8740
+ Reduce the number of projects loaded automatically by TypeScript.
8741
+
8742
+ @default false
8743
+ */
8643
8744
  disableReferencedProjectLoad?: boolean;
8644
8745
  /**
8645
- Enforces using indexed accessors for keys declared using an indexed type.
8646
- @default false
8647
- */
8746
+ Enforces using indexed accessors for keys declared using an indexed type.
8747
+
8748
+ @default false
8749
+ */
8648
8750
  noPropertyAccessFromIndexSignature?: boolean;
8649
8751
  /**
8650
- Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
8651
- @default false
8652
- */
8752
+ Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
8753
+
8754
+ @default false
8755
+ */
8653
8756
  emitBOM?: boolean;
8654
8757
  /**
8655
- Only emit `.d.ts` declaration files.
8656
- @default false
8657
- */
8758
+ Only emit `.d.ts` declaration files.
8759
+
8760
+ @default false
8761
+ */
8658
8762
  emitDeclarationOnly?: boolean;
8659
8763
  /**
8660
- Differentiate between undefined and not present when type checking.
8661
- @default false
8662
- */
8764
+ Differentiate between undefined and not present when type checking.
8765
+
8766
+ @default false
8767
+ */
8663
8768
  exactOptionalPropertyTypes?: boolean;
8664
8769
  /**
8665
- Enable incremental compilation.
8666
- @default `composite`
8667
- */
8770
+ Enable incremental compilation.
8771
+
8772
+ @default `composite`
8773
+ */
8668
8774
  incremental?: boolean;
8669
8775
  /**
8670
- Specify file to store incremental compilation information.
8671
- @default '.tsbuildinfo'
8672
- */
8776
+ Specify file to store incremental compilation information.
8777
+
8778
+ @default '.tsbuildinfo'
8779
+ */
8673
8780
  tsBuildInfoFile?: string;
8674
8781
  /**
8675
- Emit a single file with source maps instead of having a separate file.
8676
- @default false
8677
- */
8782
+ Emit a single file with source maps instead of having a separate file.
8783
+
8784
+ @default false
8785
+ */
8678
8786
  inlineSourceMap?: boolean;
8679
8787
  /**
8680
- Emit the source alongside the sourcemaps within a single file.
8681
- Requires `--inlineSourceMap` to be set.
8682
- @default false
8683
- */
8788
+ Emit the source alongside the sourcemaps within a single file.
8789
+
8790
+ Requires `--inlineSourceMap` to be set.
8791
+
8792
+ @default false
8793
+ */
8684
8794
  inlineSources?: boolean;
8685
8795
  /**
8686
- Specify what JSX code is generated.
8687
- @default 'preserve'
8688
- */
8796
+ Specify what JSX code is generated.
8797
+
8798
+ @default 'preserve'
8799
+ */
8689
8800
  jsx?: CompilerOptions.JSX;
8690
8801
  /**
8691
- Specifies the object invoked for `createElement` and `__spread` when targeting `'react'` JSX emit.
8692
- @default 'React'
8693
- */
8802
+ Specifies the object invoked for `createElement` and `__spread` when targeting `'react'` JSX emit.
8803
+
8804
+ @default 'React'
8805
+ */
8694
8806
  reactNamespace?: string;
8695
8807
  /**
8696
- Specify the JSX factory function to use when targeting React JSX emit, e.g. `React.createElement` or `h`.
8697
- @default 'React.createElement'
8698
- */
8808
+ Specify the JSX factory function to use when targeting React JSX emit, e.g. `React.createElement` or `h`.
8809
+
8810
+ @default 'React.createElement'
8811
+ */
8699
8812
  jsxFactory?: string;
8700
8813
  /**
8701
- Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
8702
- @default 'React.Fragment'
8703
- */
8814
+ Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
8815
+
8816
+ @default 'React.Fragment'
8817
+ */
8704
8818
  jsxFragmentFactory?: string;
8705
8819
  /**
8706
- Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.
8707
- @default 'react'
8708
- */
8820
+ Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.
8821
+
8822
+ @default 'react'
8823
+ */
8709
8824
  jsxImportSource?: string;
8710
8825
  /**
8711
- Print names of files part of the compilation.
8712
- @default false
8713
- */
8826
+ Print names of files part of the compilation.
8827
+
8828
+ @default false
8829
+ */
8714
8830
  listFiles?: boolean;
8715
8831
  /**
8716
- Specifies the location where debugger should locate map files instead of generated locations.
8717
- */
8832
+ Specifies the location where debugger should locate map files instead of generated locations.
8833
+ */
8718
8834
  mapRoot?: string;
8719
8835
  /**
8720
- Specify module code generation: 'None', 'CommonJS', 'AMD', 'System', 'UMD', 'ES6', 'ES2015' or 'ESNext'. Only 'AMD' and 'System' can be used in conjunction with `--outFile`. 'ES6' and 'ES2015' values may be used when targeting 'ES5' or lower.
8721
- @default ['ES3', 'ES5'].includes(target) ? 'CommonJS' : 'ES6'
8722
- */
8836
+ Specify module code generation: 'None', 'CommonJS', 'AMD', 'System', 'UMD', 'ES6', 'ES2015' or 'ESNext'. Only 'AMD' and 'System' can be used in conjunction with `--outFile`. 'ES6' and 'ES2015' values may be used when targeting 'ES5' or lower.
8837
+
8838
+ @default ['ES3', 'ES5'].includes(target) ? 'CommonJS' : 'ES6'
8839
+ */
8723
8840
  module?: CompilerOptions.Module;
8724
8841
  /**
8725
- Specifies module resolution strategy: 'node' (Node) or 'classic' (TypeScript pre 1.6).
8726
- @default ['AMD', 'System', 'ES6'].includes(module) ? 'classic' : 'node'
8727
- */
8842
+ Specifies module resolution strategy: 'node' (Node) or 'classic' (TypeScript pre 1.6).
8843
+
8844
+ @default ['AMD', 'System', 'ES6'].includes(module) ? 'classic' : 'node'
8845
+ */
8728
8846
  moduleResolution?: CompilerOptions.ModuleResolution;
8729
8847
  /**
8730
- Specifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix).
8731
- @default 'LF'
8732
- */
8848
+ Specifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix).
8849
+
8850
+ @default 'LF'
8851
+ */
8733
8852
  newLine?: CompilerOptions.NewLine;
8734
8853
  /**
8735
- Disable full type checking (only critical parse and emit errors will be reported).
8736
- @default false
8737
- */
8854
+ Disable full type checking (only critical parse and emit errors will be reported).
8855
+
8856
+ @default false
8857
+ */
8738
8858
  noCheck?: boolean;
8739
8859
  /**
8740
- Do not emit output.
8741
- @default false
8742
- */
8860
+ Do not emit output.
8861
+
8862
+ @default false
8863
+ */
8743
8864
  noEmit?: boolean;
8744
8865
  /**
8745
- Do not generate custom helper functions like `__extends` in compiled output.
8746
- @default false
8747
- */
8866
+ Do not generate custom helper functions like `__extends` in compiled output.
8867
+
8868
+ @default false
8869
+ */
8748
8870
  noEmitHelpers?: boolean;
8749
8871
  /**
8750
- Do not emit outputs if any type checking errors were reported.
8751
- @default false
8752
- */
8872
+ Do not emit outputs if any type checking errors were reported.
8873
+
8874
+ @default false
8875
+ */
8753
8876
  noEmitOnError?: boolean;
8754
8877
  /**
8755
- Warn on expressions and declarations with an implied 'any' type.
8756
- @default false
8757
- */
8878
+ Warn on expressions and declarations with an implied 'any' type.
8879
+
8880
+ @default false
8881
+ */
8758
8882
  noImplicitAny?: boolean;
8759
8883
  /**
8760
- Raise error on 'this' expressions with an implied any type.
8761
- @default false
8762
- */
8884
+ Raise error on 'this' expressions with an implied any type.
8885
+
8886
+ @default false
8887
+ */
8763
8888
  noImplicitThis?: boolean;
8764
8889
  /**
8765
- Report errors on unused locals.
8766
- @default false
8767
- */
8890
+ Report errors on unused locals.
8891
+
8892
+ @default false
8893
+ */
8768
8894
  noUnusedLocals?: boolean;
8769
8895
  /**
8770
- Report errors on unused parameters.
8771
- @default false
8772
- */
8896
+ Report errors on unused parameters.
8897
+
8898
+ @default false
8899
+ */
8773
8900
  noUnusedParameters?: boolean;
8774
8901
  /**
8775
- Do not include the default library file (lib.d.ts).
8776
- @default false
8777
- */
8902
+ Do not include the default library file (lib.d.ts).
8903
+
8904
+ @default false
8905
+ */
8778
8906
  noLib?: boolean;
8779
8907
  /**
8780
- Do not add triple-slash references or module import targets to the list of compiled files.
8781
- @default false
8782
- */
8908
+ Do not add triple-slash references or module import targets to the list of compiled files.
8909
+
8910
+ @default false
8911
+ */
8783
8912
  noResolve?: boolean;
8784
8913
  /**
8785
- Disable strict checking of generic signatures in function types.
8786
- @default false
8787
- @deprecated This option will be removed in TypeScript 5.5.
8788
- */
8914
+ Disable strict checking of generic signatures in function types.
8915
+
8916
+ @default false
8917
+ @deprecated This option will be removed in TypeScript 5.5.
8918
+ */
8789
8919
  noStrictGenericChecks?: boolean;
8790
8920
  /**
8791
- @deprecated use `skipLibCheck` instead.
8792
- */
8921
+ @deprecated use `skipLibCheck` instead.
8922
+ */
8793
8923
  skipDefaultLibCheck?: boolean;
8794
8924
  /**
8795
- Skip type checking of declaration files.
8796
- @default false
8797
- */
8925
+ Skip type checking of declaration files.
8926
+
8927
+ @default false
8928
+ */
8798
8929
  skipLibCheck?: boolean;
8799
8930
  /**
8800
- Concatenate and emit output to single file.
8801
- */
8931
+ Concatenate and emit output to single file.
8932
+ */
8802
8933
  outFile?: string;
8803
8934
  /**
8804
- Redirect output structure to the directory.
8805
- */
8935
+ Redirect output structure to the directory.
8936
+ */
8806
8937
  outDir?: string;
8807
8938
  /**
8808
- Do not erase const enum declarations in generated code.
8809
- @default false
8810
- */
8939
+ Do not erase const enum declarations in generated code.
8940
+
8941
+ @default false
8942
+ */
8811
8943
  preserveConstEnums?: boolean;
8812
8944
  /**
8813
- Do not resolve symlinks to their real path; treat a symlinked file like a real one.
8814
- @default false
8815
- */
8945
+ Do not resolve symlinks to their real path; treat a symlinked file like a real one.
8946
+
8947
+ @default false
8948
+ */
8816
8949
  preserveSymlinks?: boolean;
8817
8950
  /**
8818
- Keep outdated console output in watch mode instead of clearing the screen.
8819
- @default false
8820
- */
8951
+ Keep outdated console output in watch mode instead of clearing the screen.
8952
+
8953
+ @default false
8954
+ */
8821
8955
  preserveWatchOutput?: boolean;
8822
8956
  /**
8823
- Stylize errors and messages using color and context (experimental).
8824
- @default true // Unless piping to another program or redirecting output to a file.
8825
- */
8957
+ Stylize errors and messages using color and context (experimental).
8958
+
8959
+ @default true // Unless piping to another program or redirecting output to a file.
8960
+ */
8826
8961
  pretty?: boolean;
8827
8962
  /**
8828
- Do not emit comments to output.
8829
- @default false
8830
- */
8963
+ Do not emit comments to output.
8964
+
8965
+ @default false
8966
+ */
8831
8967
  removeComments?: boolean;
8832
8968
  /**
8833
- Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files.
8834
- @default false
8835
- */
8969
+ Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files.
8970
+
8971
+ @default false
8972
+ */
8836
8973
  rewriteRelativeImportExtensions?: boolean;
8837
8974
  /**
8838
- Specifies the root directory of input files.
8839
- Use to control the output directory structure with `--outDir`.
8840
- */
8975
+ Specifies the root directory of input files.
8976
+
8977
+ Use to control the output directory structure with `--outDir`.
8978
+ */
8841
8979
  rootDir?: string;
8842
8980
  /**
8843
- Unconditionally emit imports for unresolved files.
8844
- @default false
8845
- */
8981
+ Unconditionally emit imports for unresolved files.
8982
+
8983
+ @default false
8984
+ */
8846
8985
  isolatedModules?: boolean;
8847
8986
  /**
8848
- Require sufficient annotation on exports so other tools can trivially generate declaration files.
8849
- @default false
8850
- */
8987
+ Require sufficient annotation on exports so other tools can trivially generate declaration files.
8988
+
8989
+ @default false
8990
+ */
8851
8991
  isolatedDeclarations?: boolean;
8852
8992
  /**
8853
- Generates corresponding '.map' file.
8854
- @default false
8855
- */
8993
+ Generates corresponding '.map' file.
8994
+
8995
+ @default false
8996
+ */
8856
8997
  sourceMap?: boolean;
8857
8998
  /**
8858
- Specifies the location where debugger should locate TypeScript files instead of source locations.
8859
- */
8999
+ Specifies the location where debugger should locate TypeScript files instead of source locations.
9000
+ */
8860
9001
  sourceRoot?: string;
8861
9002
  /**
8862
- Suppress excess property checks for object literals.
8863
- @default false
8864
- @deprecated This option will be removed in TypeScript 5.5.
8865
- */
9003
+ Suppress excess property checks for object literals.
9004
+
9005
+ @default false
9006
+ @deprecated This option will be removed in TypeScript 5.5.
9007
+ */
8866
9008
  suppressExcessPropertyErrors?: boolean;
8867
9009
  /**
8868
- Suppress noImplicitAny errors for indexing objects lacking index signatures.
8869
- @default false
8870
- @deprecated This option will be removed in TypeScript 5.5.
8871
- */
9010
+ Suppress noImplicitAny errors for indexing objects lacking index signatures.
9011
+
9012
+ @default false
9013
+ @deprecated This option will be removed in TypeScript 5.5.
9014
+ */
8872
9015
  suppressImplicitAnyIndexErrors?: boolean;
8873
9016
  /**
8874
- Do not emit declarations for code that has an `@internal` annotation.
8875
- */
9017
+ Do not emit declarations for code that has an `@internal` annotation.
9018
+ */
8876
9019
  stripInternal?: boolean;
8877
9020
  /**
8878
- Specify ECMAScript target version.
8879
- @default 'es3'
8880
- */
9021
+ Specify ECMAScript target version.
9022
+
9023
+ @default 'es3'
9024
+ */
8881
9025
  target?: CompilerOptions.Target;
8882
9026
  /**
8883
- Default catch clause variables as `unknown` instead of `any`.
8884
- @default false
8885
- */
9027
+ Default catch clause variables as `unknown` instead of `any`.
9028
+
9029
+ @default false
9030
+ */
8886
9031
  useUnknownInCatchVariables?: boolean;
8887
9032
  /**
8888
- Watch input files.
8889
- @default false
8890
- @deprecated Use watchOptions instead.
8891
- */
9033
+ Watch input files.
9034
+
9035
+ @default false
9036
+ @deprecated Use watchOptions instead.
9037
+ */
8892
9038
  watch?: boolean;
8893
9039
  /**
8894
- Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
8895
- @deprecated Use watchOptions.fallbackPolling instead.
8896
- */
9040
+ Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
9041
+
9042
+ @deprecated Use watchOptions.fallbackPolling instead.
9043
+ */
8897
9044
  fallbackPolling?: CompilerOptions.FallbackPolling;
8898
9045
  /**
8899
- Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
8900
- @default 'useFsEvents'
8901
- @deprecated Use watchOptions.watchDirectory instead.
8902
- */
9046
+ Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
9047
+
9048
+ @default 'useFsEvents'
9049
+ @deprecated Use watchOptions.watchDirectory instead.
9050
+ */
8903
9051
  watchDirectory?: CompilerOptions.WatchDirectory;
8904
9052
  /**
8905
- Specify the strategy for watching individual files.
8906
- @default 'useFsEvents'
8907
- @deprecated Use watchOptions.watchFile instead.
8908
- */
9053
+ Specify the strategy for watching individual files.
9054
+
9055
+ @default 'useFsEvents'
9056
+ @deprecated Use watchOptions.watchFile instead.
9057
+ */
8909
9058
  watchFile?: CompilerOptions.WatchFile;
8910
9059
  /**
8911
- Enables experimental support for ES7 decorators.
8912
- @default false
8913
- */
9060
+ Enables experimental support for ES7 decorators.
9061
+
9062
+ @default false
9063
+ */
8914
9064
  experimentalDecorators?: boolean;
8915
9065
  /**
8916
- Emit design-type metadata for decorated declarations in source.
8917
- @default false
8918
- */
9066
+ Emit design-type metadata for decorated declarations in source.
9067
+
9068
+ @default false
9069
+ */
8919
9070
  emitDecoratorMetadata?: boolean;
8920
9071
  /**
8921
- Do not report errors on unused labels.
8922
- @default false
8923
- */
9072
+ Do not report errors on unused labels.
9073
+
9074
+ @default false
9075
+ */
8924
9076
  allowUnusedLabels?: boolean;
8925
9077
  /**
8926
- Report error when not all code paths in function return a value.
8927
- @default false
8928
- */
9078
+ Report error when not all code paths in function return a value.
9079
+
9080
+ @default false
9081
+ */
8929
9082
  noImplicitReturns?: boolean;
8930
9083
  /**
8931
- Add `undefined` to a type when accessed using an index.
8932
- @default false
8933
- */
9084
+ Add `undefined` to a type when accessed using an index.
9085
+
9086
+ @default false
9087
+ */
8934
9088
  noUncheckedIndexedAccess?: boolean;
8935
9089
  /**
8936
- Report error if failed to find a source file for a side effect import.
8937
- @default false
8938
- */
9090
+ Report error if failed to find a source file for a side effect import.
9091
+
9092
+ @default false
9093
+ */
8939
9094
  noUncheckedSideEffectImports?: boolean;
8940
9095
  /**
8941
- Report errors for fallthrough cases in switch statement.
8942
- @default false
8943
- */
9096
+ Report errors for fallthrough cases in switch statement.
9097
+
9098
+ @default false
9099
+ */
8944
9100
  noFallthroughCasesInSwitch?: boolean;
8945
9101
  /**
8946
- Ensure overriding members in derived classes are marked with an override modifier.
8947
- @default false
8948
- */
9102
+ Ensure overriding members in derived classes are marked with an override modifier.
9103
+
9104
+ @default false
9105
+ */
8949
9106
  noImplicitOverride?: boolean;
8950
9107
  /**
8951
- Do not report errors on unreachable code.
8952
- @default false
8953
- */
9108
+ Do not report errors on unreachable code.
9109
+
9110
+ @default false
9111
+ */
8954
9112
  allowUnreachableCode?: boolean;
8955
9113
  /**
8956
- Disallow inconsistently-cased references to the same file.
8957
- @default true
8958
- */
9114
+ Disallow inconsistently-cased references to the same file.
9115
+
9116
+ @default true
9117
+ */
8959
9118
  forceConsistentCasingInFileNames?: boolean;
8960
9119
  /**
8961
- Emit a v8 CPU profile of the compiler run for debugging.
8962
- @default 'profile.cpuprofile'
8963
- */
9120
+ Emit a v8 CPU profile of the compiler run for debugging.
9121
+
9122
+ @default 'profile.cpuprofile'
9123
+ */
8964
9124
  generateCpuProfile?: string;
8965
9125
  /**
8966
- Generates an event trace and a list of types.
8967
- */
9126
+ Generates an event trace and a list of types.
9127
+ */
8968
9128
  generateTrace?: boolean;
8969
9129
  /**
8970
- Base directory to resolve non-relative module names.
8971
- */
9130
+ Base directory to resolve non-relative module names.
9131
+ */
8972
9132
  baseUrl?: string;
8973
9133
  /**
8974
- Specify path mapping to be computed relative to baseUrl option.
8975
- */
9134
+ Specify path mapping to be computed relative to baseUrl option.
9135
+ */
8976
9136
  paths?: Record<string, string[]>;
8977
9137
  /**
8978
- List of TypeScript language server plugins to load.
8979
- */
9138
+ List of TypeScript language server plugins to load.
9139
+ */
8980
9140
  plugins?: CompilerOptions.Plugin[];
8981
9141
  /**
8982
- Specify list of root directories to be used when resolving modules.
8983
- */
9142
+ Specify list of root directories to be used when resolving modules.
9143
+ */
8984
9144
  rootDirs?: string[];
8985
9145
  /**
8986
- Specify list of directories for type definition files to be included.
8987
- */
9146
+ Specify list of directories for type definition files to be included.
9147
+ */
8988
9148
  typeRoots?: string[];
8989
9149
  /**
8990
- Type declaration files to be included in compilation.
8991
- */
9150
+ Type declaration files to be included in compilation.
9151
+ */
8992
9152
  types?: string[];
8993
9153
  /**
8994
- Enable tracing of the name resolution process.
8995
- @default false
8996
- */
9154
+ Enable tracing of the name resolution process.
9155
+
9156
+ @default false
9157
+ */
8997
9158
  traceResolution?: boolean;
8998
9159
  /**
8999
- Allow javascript files to be compiled.
9000
- @default false
9001
- */
9160
+ Allow javascript files to be compiled.
9161
+
9162
+ @default false
9163
+ */
9002
9164
  allowJs?: boolean;
9003
9165
  /**
9004
- Do not truncate error messages.
9005
- @default false
9006
- */
9166
+ Do not truncate error messages.
9167
+
9168
+ @default false
9169
+ */
9007
9170
  noErrorTruncation?: boolean;
9008
9171
  /**
9009
- Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
9010
- @default module === 'system' || esModuleInterop
9011
- */
9172
+ Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
9173
+
9174
+ @default module === 'system' || esModuleInterop
9175
+ */
9012
9176
  allowSyntheticDefaultImports?: boolean;
9013
9177
  /**
9014
- Do not emit `'use strict'` directives in module output.
9015
- @default false
9016
- @deprecated This option will be removed in TypeScript 5.5.
9017
- */
9178
+ Do not emit `'use strict'` directives in module output.
9179
+
9180
+ @default false
9181
+ @deprecated This option will be removed in TypeScript 5.5.
9182
+ */
9018
9183
  noImplicitUseStrict?: boolean;
9019
9184
  /**
9020
- Enable to list all emitted files.
9021
- @default false
9022
- */
9185
+ Enable to list all emitted files.
9186
+
9187
+ @default false
9188
+ */
9023
9189
  listEmittedFiles?: boolean;
9024
9190
  /**
9025
- Disable size limit for JavaScript project.
9026
- @default false
9027
- */
9191
+ Disable size limit for JavaScript project.
9192
+
9193
+ @default false
9194
+ */
9028
9195
  disableSizeLimit?: boolean;
9029
9196
  /**
9030
- List of library files to be included in the compilation.
9031
- */
9197
+ List of library files to be included in the compilation.
9198
+ */
9032
9199
  lib?: CompilerOptions.Lib[];
9033
9200
  /**
9034
- Enable strict null checks.
9035
- @default false
9036
- */
9201
+ Enable strict null checks.
9202
+
9203
+ @default false
9204
+ */
9037
9205
  strictNullChecks?: boolean;
9038
9206
  /**
9039
- The maximum dependency depth to search under `node_modules` and load JavaScript files. Only applicable with `--allowJs`.
9040
- @default 0
9041
- */
9207
+ The maximum dependency depth to search under `node_modules` and load JavaScript files. Only applicable with `--allowJs`.
9208
+
9209
+ @default 0
9210
+ */
9042
9211
  maxNodeModuleJsDepth?: number;
9043
9212
  /**
9044
- Import emit helpers (e.g. `__extends`, `__rest`, etc..) from tslib.
9045
- @default false
9046
- */
9213
+ Import emit helpers (e.g. `__extends`, `__rest`, etc..) from tslib.
9214
+
9215
+ @default false
9216
+ */
9047
9217
  importHelpers?: boolean;
9048
9218
  /**
9049
- Specify emit/checking behavior for imports that are only used for types.
9050
- @default 'remove'
9051
- @deprecated Use `verbatimModuleSyntax` instead.
9052
- */
9219
+ Specify emit/checking behavior for imports that are only used for types.
9220
+
9221
+ @default 'remove'
9222
+ @deprecated Use `verbatimModuleSyntax` instead.
9223
+ */
9053
9224
  importsNotUsedAsValues?: CompilerOptions.ImportsNotUsedAsValues;
9054
9225
  /**
9055
- Parse in strict mode and emit `'use strict'` for each source file.
9056
- @default false
9057
- */
9226
+ Parse in strict mode and emit `'use strict'` for each source file.
9227
+
9228
+ @default false
9229
+ */
9058
9230
  alwaysStrict?: boolean;
9059
9231
  /**
9060
- Enable all strict type checking options.
9061
- @default false
9062
- */
9232
+ Enable all strict type checking options.
9233
+
9234
+ @default false
9235
+ */
9063
9236
  strict?: boolean;
9064
9237
  /**
9065
- Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions.
9066
- @default false
9067
- */
9238
+ Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions.
9239
+
9240
+ @default false
9241
+ */
9068
9242
  strictBindCallApply?: boolean;
9069
9243
  /**
9070
- Provide full support for iterables in `for-of`, spread, and destructuring when targeting `ES5` or `ES3`.
9071
- @default false
9072
- */
9244
+ Provide full support for iterables in `for-of`, spread, and destructuring when targeting `ES5` or `ES3`.
9245
+
9246
+ @default false
9247
+ */
9073
9248
  downlevelIteration?: boolean;
9074
9249
  /**
9075
- Report errors in `.js` files.
9076
- @default false
9077
- */
9250
+ Report errors in `.js` files.
9251
+
9252
+ @default false
9253
+ */
9078
9254
  checkJs?: boolean;
9079
9255
  /**
9080
- Built-in iterators are instantiated with a `TReturn` type of undefined instead of `any`.
9081
- @default false
9082
- */
9256
+ Built-in iterators are instantiated with a `TReturn` type of undefined instead of `any`.
9257
+
9258
+ @default false
9259
+ */
9083
9260
  strictBuiltinIteratorReturn?: boolean;
9084
9261
  /**
9085
- Disable bivariant parameter checking for function types.
9086
- @default false
9087
- */
9262
+ Disable bivariant parameter checking for function types.
9263
+
9264
+ @default false
9265
+ */
9088
9266
  strictFunctionTypes?: boolean;
9089
9267
  /**
9090
- Ensure non-undefined class properties are initialized in the constructor.
9091
- @default false
9092
- */
9268
+ Ensure non-undefined class properties are initialized in the constructor.
9269
+
9270
+ @default false
9271
+ */
9093
9272
  strictPropertyInitialization?: boolean;
9094
9273
  /**
9095
- Emit `__importStar` and `__importDefault` helpers for runtime Babel ecosystem compatibility and enable `--allowSyntheticDefaultImports` for typesystem compatibility.
9096
- @default false
9097
- */
9274
+ Emit `__importStar` and `__importDefault` helpers for runtime Babel ecosystem compatibility and enable `--allowSyntheticDefaultImports` for typesystem compatibility.
9275
+
9276
+ @default false
9277
+ */
9098
9278
  esModuleInterop?: boolean;
9099
9279
  /**
9100
- Allow accessing UMD globals from modules.
9101
- @default false
9102
- */
9280
+ Allow accessing UMD globals from modules.
9281
+
9282
+ @default false
9283
+ */
9103
9284
  allowUmdGlobalAccess?: boolean;
9104
9285
  /**
9105
- Resolve `keyof` to string valued property names only (no numbers or symbols).
9106
- @default false
9107
- @deprecated This option will be removed in TypeScript 5.5.
9108
- */
9286
+ Resolve `keyof` to string valued property names only (no numbers or symbols).
9287
+
9288
+ @default false
9289
+ @deprecated This option will be removed in TypeScript 5.5.
9290
+ */
9109
9291
  keyofStringsOnly?: boolean;
9110
9292
  /**
9111
- Emit ECMAScript standard class fields.
9112
- @default false
9113
- */
9293
+ Emit ECMAScript standard class fields.
9294
+
9295
+ @default false
9296
+ */
9114
9297
  useDefineForClassFields?: boolean;
9115
9298
  /**
9116
- Generates a sourcemap for each corresponding `.d.ts` file.
9117
- @default false
9118
- */
9299
+ Generates a sourcemap for each corresponding `.d.ts` file.
9300
+
9301
+ @default false
9302
+ */
9119
9303
  declarationMap?: boolean;
9120
9304
  /**
9121
- Include modules imported with `.json` extension.
9122
- @default false
9123
- */
9305
+ Include modules imported with `.json` extension.
9306
+
9307
+ @default false
9308
+ */
9124
9309
  resolveJsonModule?: boolean;
9125
9310
  /**
9126
- Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.
9127
- @default false
9128
- */
9311
+ Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.
9312
+
9313
+ @default false
9314
+ */
9129
9315
  assumeChangesOnlyAffectDirectDependencies?: boolean;
9130
9316
  /**
9131
- Output more detailed compiler performance information after building.
9132
- @default false
9133
- */
9317
+ Output more detailed compiler performance information after building.
9318
+
9319
+ @default false
9320
+ */
9134
9321
  extendedDiagnostics?: boolean;
9135
9322
  /**
9136
- Print names of files that are part of the compilation and then stop processing.
9137
- @default false
9138
- */
9323
+ Print names of files that are part of the compilation and then stop processing.
9324
+
9325
+ @default false
9326
+ */
9139
9327
  listFilesOnly?: boolean;
9140
9328
  /**
9141
- Disable preferring source files instead of declaration files when referencing composite projects.
9142
- @default true if composite, false otherwise
9143
- */
9329
+ Disable preferring source files instead of declaration files when referencing composite projects.
9330
+
9331
+ @default true if composite, false otherwise
9332
+ */
9144
9333
  disableSourceOfProjectReferenceRedirect?: boolean;
9145
9334
  /**
9146
- Opt a project out of multi-project reference checking when editing.
9147
- @default false
9148
- */
9335
+ Opt a project out of multi-project reference checking when editing.
9336
+
9337
+ @default false
9338
+ */
9149
9339
  disableSolutionSearching?: boolean;
9150
9340
  /**
9151
- Print names of files which TypeScript sees as a part of your project and the reason they are part of the compilation.
9152
- @default false
9153
- */
9341
+ Print names of files which TypeScript sees as a part of your project and the reason they are part of the compilation.
9342
+
9343
+ @default false
9344
+ */
9154
9345
  explainFiles?: boolean;
9155
9346
  /**
9156
- Preserve unused imported values in the JavaScript output that would otherwise be removed.
9157
- @default true
9158
- @deprecated Use `verbatimModuleSyntax` instead.
9159
- */
9347
+ Preserve unused imported values in the JavaScript output that would otherwise be removed.
9348
+
9349
+ @default true
9350
+ @deprecated Use `verbatimModuleSyntax` instead.
9351
+ */
9160
9352
  preserveValueImports?: boolean;
9161
9353
  /**
9162
- List of file name suffixes to search when resolving a module.
9163
- */
9354
+ List of file name suffixes to search when resolving a module.
9355
+ */
9164
9356
  moduleSuffixes?: string[];
9165
9357
  /**
9166
- Control what method is used to detect module-format JS files.
9167
- @default 'auto'
9168
- */
9358
+ Control what method is used to detect module-format JS files.
9359
+
9360
+ @default 'auto'
9361
+ */
9169
9362
  moduleDetection?: CompilerOptions.ModuleDetection;
9170
9363
  /**
9171
- Allows TypeScript files to import each other with a TypeScript-specific extension like .ts, .mts, or .tsx.
9172
- @default false
9173
- */
9364
+ Allows TypeScript files to import each other with a TypeScript-specific extension like .ts, .mts, or .tsx.
9365
+
9366
+ @default false
9367
+ */
9174
9368
  allowImportingTsExtensions?: boolean;
9175
9369
  /**
9176
- Forces TypeScript to consult the exports field of package.json files if it ever reads from a package in node_modules.
9177
- @default false
9178
- */
9370
+ Forces TypeScript to consult the exports field of package.json files if it ever reads from a package in node_modules.
9371
+
9372
+ @default false
9373
+ */
9179
9374
  resolvePackageJsonExports?: boolean;
9180
9375
  /**
9181
- Forces TypeScript to consult the imports field of package.json files when performing a lookup that starts with # from a file whose ancestor directory contains a package.json.
9182
- @default false
9183
- */
9376
+ Forces TypeScript to consult the imports field of package.json files when performing a lookup that starts with # from a file whose ancestor directory contains a package.json.
9377
+
9378
+ @default false
9379
+ */
9184
9380
  resolvePackageJsonImports?: boolean;
9185
9381
  /**
9186
- Suppress errors for file formats that TypeScript does not understand.
9187
- @default false
9188
- */
9382
+ Suppress errors for file formats that TypeScript does not understand.
9383
+
9384
+ @default false
9385
+ */
9189
9386
  allowArbitraryExtensions?: boolean;
9190
9387
  /**
9191
- List of additional conditions that should succeed when TypeScript resolves from package.json.
9192
- */
9388
+ List of additional conditions that should succeed when TypeScript resolves from package.json.
9389
+ */
9193
9390
  customConditions?: string[];
9194
9391
  /**
9195
- Anything that uses the type modifier is dropped entirely.
9196
- @default false
9197
- */
9392
+ Anything that uses the type modifier is dropped entirely.
9393
+
9394
+ @default false
9395
+ */
9198
9396
  verbatimModuleSyntax?: boolean;
9199
9397
  /**
9200
- Suppress deprecation warnings
9201
- */
9398
+ Suppress deprecation warnings
9399
+ */
9202
9400
  ignoreDeprecations?: CompilerOptions.IgnoreDeprecations;
9203
9401
  /**
9204
- Do not allow runtime constructs that are not part of ECMAScript.
9205
- @default false
9206
- */
9402
+ Do not allow runtime constructs that are not part of ECMAScript.
9403
+
9404
+ @default false
9405
+ */
9207
9406
  erasableSyntaxOnly?: boolean;
9208
9407
  /**
9209
- Enable lib replacement.
9210
- @default true
9211
- */
9408
+ Enable lib replacement.
9409
+
9410
+ @default true
9411
+ */
9212
9412
  libReplacement?: boolean;
9213
9413
  };
9214
9414
  namespace WatchOptions {
@@ -9218,71 +9418,74 @@ declare namespace TsConfigJson {
9218
9418
  }
9219
9419
  type WatchOptions = {
9220
9420
  /**
9221
- Specify the strategy for watching individual files.
9222
- @default 'UseFsEvents'
9223
- */
9421
+ Specify the strategy for watching individual files.
9422
+
9423
+ @default 'UseFsEvents'
9424
+ */
9224
9425
  watchFile?: WatchOptions.WatchFileKind | Lowercase<WatchOptions.WatchFileKind>;
9225
9426
  /**
9226
- Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
9227
- @default 'UseFsEvents'
9228
- */
9427
+ Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
9428
+
9429
+ @default 'UseFsEvents'
9430
+ */
9229
9431
  watchDirectory?: WatchOptions.WatchDirectoryKind | Lowercase<WatchOptions.WatchDirectoryKind>;
9230
9432
  /**
9231
- Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
9232
- */
9433
+ Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
9434
+ */
9233
9435
  fallbackPolling?: WatchOptions.PollingWatchKind | Lowercase<WatchOptions.PollingWatchKind>;
9234
9436
  /**
9235
- Enable synchronous updates on directory watchers for platforms that don't support recursive watching natively.
9236
- */
9437
+ Enable synchronous updates on directory watchers for platforms that don't support recursive watching natively.
9438
+ */
9237
9439
  synchronousWatchDirectory?: boolean;
9238
9440
  /**
9239
- Specifies a list of directories to exclude from watch.
9240
- */
9441
+ Specifies a list of directories to exclude from watch.
9442
+ */
9241
9443
  excludeDirectories?: string[];
9242
9444
  /**
9243
- Specifies a list of files to exclude from watch.
9244
- */
9445
+ Specifies a list of files to exclude from watch.
9446
+ */
9245
9447
  excludeFiles?: string[];
9246
9448
  };
9247
9449
  /**
9248
- Auto type (.d.ts) acquisition options for this project.
9249
- */
9450
+ Auto type (.d.ts) acquisition options for this project.
9451
+ */
9250
9452
  type TypeAcquisition = {
9251
9453
  /**
9252
- Enable auto type acquisition.
9253
- */
9454
+ Enable auto type acquisition.
9455
+ */
9254
9456
  enable?: boolean;
9255
9457
  /**
9256
- Specifies a list of type declarations to be included in auto type acquisition. For example, `['jquery', 'lodash']`.
9257
- */
9458
+ Specifies a list of type declarations to be included in auto type acquisition. For example, `['jquery', 'lodash']`.
9459
+ */
9258
9460
  include?: string[];
9259
9461
  /**
9260
- Specifies a list of type declarations to be excluded from auto type acquisition. For example, `['jquery', 'lodash']`.
9261
- */
9462
+ Specifies a list of type declarations to be excluded from auto type acquisition. For example, `['jquery', 'lodash']`.
9463
+ */
9262
9464
  exclude?: string[];
9263
9465
  /**
9264
- Disable infering what types should be added based on filenames in a project.
9265
- */
9466
+ Disable infering what types should be added based on filenames in a project.
9467
+ */
9266
9468
  disableFilenameBasedTypeAcquisition?: boolean;
9267
9469
  };
9268
9470
  type References = {
9269
9471
  /**
9270
- A normalized path on disk.
9271
- */
9472
+ A normalized path on disk.
9473
+ */
9272
9474
  path: string;
9273
9475
  /**
9274
- The path as the user originally wrote it.
9275
- */
9476
+ The path as the user originally wrote it.
9477
+ */
9276
9478
  originalPath?: string;
9277
9479
  /**
9278
- True if the output of this reference should be prepended to the output of this project.
9279
- Only valid for `--outFile` compilations.
9280
- @deprecated This option will be removed in TypeScript 5.5.
9281
- */
9480
+ True if the output of this reference should be prepended to the output of this project.
9481
+
9482
+ Only valid for `--outFile` compilations.
9483
+ @deprecated This option will be removed in TypeScript 5.5.
9484
+ */
9282
9485
  prepend?: boolean;
9283
9486
  /**
9284
- True if it is intended that this reference form a circularity.
9285
- */
9487
+ True if it is intended that this reference form a circularity.
9488
+ */
9286
9489
  circular?: boolean;
9287
9490
  };
9288
9491
  }
@@ -9293,351 +9496,435 @@ Type for [TypeScript's `tsconfig.json` file](https://www.typescriptlang.org/docs
9293
9496
  */
9294
9497
  type TsConfigJson = {
9295
9498
  /**
9296
- Instructs the TypeScript compiler how to compile `.ts` files.
9297
- */
9499
+ Instructs the TypeScript compiler how to compile `.ts` files.
9500
+ */
9298
9501
  compilerOptions?: TsConfigJson.CompilerOptions;
9299
9502
  /**
9300
- Instructs the TypeScript compiler how to watch files.
9301
- */
9503
+ Instructs the TypeScript compiler how to watch files.
9504
+ */
9302
9505
  watchOptions?: TsConfigJson.WatchOptions;
9303
9506
  /**
9304
- Auto type (.d.ts) acquisition options for this project.
9305
- */
9507
+ Auto type (.d.ts) acquisition options for this project.
9508
+ */
9306
9509
  typeAcquisition?: TsConfigJson.TypeAcquisition;
9307
9510
  /**
9308
- Enable Compile-on-Save for this project.
9309
- */
9511
+ Enable Compile-on-Save for this project.
9512
+ */
9310
9513
  compileOnSave?: boolean;
9311
9514
  /**
9312
- Path to base configuration file to inherit from.
9313
- */
9515
+ Path to base configuration file to inherit from.
9516
+ */
9314
9517
  extends?: string | string[];
9315
9518
  /**
9316
- If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`. When a `files` property is specified, only those files and those specified by `include` are included.
9317
- */
9519
+ If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`. When a `files` property is specified, only those files and those specified by `include` are included.
9520
+ */
9318
9521
  files?: string[];
9319
9522
  /**
9320
- Specifies a list of files to be excluded from compilation. The `exclude` property only affects the files included via the `include` property and not the `files` property.
9321
- Glob patterns require TypeScript version 2.0 or later.
9322
- */
9523
+ Specifies a list of files to be excluded from compilation. The `exclude` property only affects the files included via the `include` property and not the `files` property.
9524
+
9525
+ Glob patterns require TypeScript version 2.0 or later.
9526
+ */
9323
9527
  exclude?: string[];
9324
9528
  /**
9325
- Specifies a list of glob patterns that match files to be included in compilation.
9326
- If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`.
9327
- */
9529
+ Specifies a list of glob patterns that match files to be included in compilation.
9530
+
9531
+ If no `files` or `include` property is present in a `tsconfig.json`, the compiler defaults to including all files in the containing directory and subdirectories except those specified by `exclude`.
9532
+ */
9328
9533
  include?: string[];
9329
9534
  /**
9330
- Referenced projects.
9331
- */
9535
+ Referenced projects.
9536
+ */
9332
9537
  references?: TsConfigJson.References[];
9333
9538
  };
9334
9539
  //#endregion
9335
- //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.22.5_oxc-resolver@11.19.0_@emnapi+core@1.10.0_@emnapi+runtime@1.1_4f153ff5a247bb3b88419ec0c3e4fc0f/node_modules/rolldown-plugin-dts/dist/index.d.mts
9540
+ //#region ../../node_modules/.pnpm/rolldown-plugin-dts@0.28.6_oxc-resolver@11.19.0_@emnapi+core@1.10.0_@emnapi+runtime@1.1_d3224c4e65b2ebb265190a3f38910aae/node_modules/rolldown-plugin-dts/dist/index.d.mts
9541
+ //#region src/tsc/vue.d.ts
9542
+ interface VueLanguageOptions {
9543
+ /** @ts-ignore - optional dep */
9544
+ vueCompilerOptions?: Partial<import("@vue/language-core").VueCompilerOptions>;
9545
+ }
9546
+ //#endregion
9336
9547
  //#region src/options.d.ts
9548
+ interface Logger$1 {
9549
+ info: (...args: any[]) => void;
9550
+ warn: (...args: any[]) => void;
9551
+ error: (...args: any[]) => void;
9552
+ }
9337
9553
  interface GeneralOptions {
9338
9554
  /**
9339
- * The directory in which the plugin will search for the `tsconfig.json` file.
9340
- */
9555
+ * The generator used to produce declaration files.
9556
+ *
9557
+ * - `'tsc'` supports the full TypeScript type system.
9558
+ * - `'oxc'` is faster but requires code compatible with
9559
+ * [`isolatedDeclarations`](https://www.typescriptlang.org/tsconfig/#isolatedDeclarations).
9560
+ * - `'tsgo'` uses the experimental TypeScript Go compiler.
9561
+ *
9562
+ * When omitted, the plugin selects `'oxc'` for `isolatedDeclarations`,
9563
+ * `'tsgo'` for TypeScript 7, and `'tsc'` otherwise. Volar-based custom
9564
+ * languages require `'tsc'`.
9565
+ *
9566
+ * @default Inferred from the TypeScript configuration and installed compiler.
9567
+ */
9568
+ generator?: "tsc" | "oxc" | "tsgo";
9569
+ /**
9570
+ * Glob pattern(s) that select source files for declaration generation.
9571
+ *
9572
+ * Patterns are relative to {@link cwd} and may be negated with `!`. Matching
9573
+ * files are emitted even when they are not Rolldown entry points.
9574
+ *
9575
+ * @example
9576
+ * ```ts
9577
+ * entry: ['src/*.ts', '!src/internal/**']
9578
+ * ```
9579
+ */
9580
+ entry?: string | string[];
9581
+ /**
9582
+ * Base directory for config discovery, glob matching, and relative paths.
9583
+ *
9584
+ * @default process.cwd()
9585
+ */
9341
9586
  cwd?: string;
9342
9587
  /**
9343
- * Set to `true` if your entry files are `.d.ts` files instead of `.ts` files.
9344
- *
9345
- * When enabled, the plugin will skip generating a `.d.ts` file for the entry point.
9346
- */
9588
+ * Treats entry files as existing declarations instead of source files.
9589
+ *
9590
+ * @default false
9591
+ */
9347
9592
  dtsInput?: boolean;
9348
9593
  /**
9349
- * If `true`, the plugin will emit only `.d.ts` files and remove all other output chunks.
9350
- *
9351
- * This is especially useful when generating `.d.ts` files for the CommonJS format as part of a separate build step.
9352
- */
9594
+ * Removes non-declaration chunks from the output.
9595
+ *
9596
+ * @default false
9597
+ */
9353
9598
  emitDtsOnly?: boolean;
9354
9599
  /**
9355
- * The path to the `tsconfig.json` file.
9356
- *
9357
- * If set to `false`, the plugin will ignore any `tsconfig.json` file.
9358
- * You can still specify `compilerOptions` directly in the options.
9359
- *
9360
- * @default 'tsconfig.json'
9361
- */
9600
+ * A `tsconfig.json` path, resolved relative to {@link cwd}.
9601
+ *
9602
+ * When omitted or `true`, the nearest config is discovered from {@link cwd}.
9603
+ * Set to `false` to disable config loading.
9604
+ */
9362
9605
  tsconfig?: string | boolean;
9363
- /**
9364
- * Pass a raw `tsconfig.json` object directly to the plugin.
9365
- *
9366
- * @see https://www.typescriptlang.org/tsconfig
9367
- */
9606
+ /** Raw `tsconfig.json` values merged over the loaded config. */
9368
9607
  tsconfigRaw?: Omit<TsConfigJson, "compilerOptions">;
9369
9608
  /**
9370
- * Override the `compilerOptions` specified in `tsconfig.json`.
9371
- *
9372
- * @see https://www.typescriptlang.org/tsconfig/#compilerOptions
9373
- */
9609
+ * Compiler options merged over those loaded from `tsconfig.json`.
9610
+ */
9374
9611
  compilerOptions?: TsConfigJson.CompilerOptions;
9375
9612
  /**
9376
- * If `true`, the plugin will generate declaration maps (`.d.ts.map`) for `.d.ts` files.
9377
- */
9613
+ * Emits declaration maps (`.d.ts.map`).
9614
+ *
9615
+ * @default The value of `compilerOptions.declarationMap`.
9616
+ */
9378
9617
  sourcemap?: boolean;
9379
9618
  /**
9380
- * Specifies a resolver to resolve type definitions, especially for `node_modules`.
9381
- *
9382
- * - `'oxc'`: Uses Oxc's module resolution, which is faster and more efficient.
9383
- * - `'tsc'`: Uses TypeScript's native module resolution, which may be more compatible with complex setups, but slower.
9384
- *
9385
- * @default 'oxc'
9386
- */
9619
+ * Resolver used for declaration imports, including packages in `node_modules`.
9620
+ *
9621
+ * Use `'tsc'` when a project depends on TypeScript-specific resolution
9622
+ * behavior; otherwise `'oxc'` is faster.
9623
+ *
9624
+ * @default 'oxc'
9625
+ */
9387
9626
  resolver?: "oxc" | "tsc";
9388
9627
  /**
9389
- * Determines how the default export is emitted.
9390
- *
9391
- * If set to `true`, and you are only exporting a single item using `export default ...`,
9392
- * the output will use `export = ...` instead of the standard ES module syntax.
9393
- * This is useful for compatibility with CommonJS.
9394
- */
9628
+ * Converts a single default export to `export =` for CommonJS consumers.
9629
+ * This does not add support for CommonJS-style declaration input.
9630
+ *
9631
+ * @default false
9632
+ */
9395
9633
  cjsDefault?: boolean;
9396
9634
  /**
9397
- * Indicates whether the generated `.d.ts` files have side effects.
9398
- * - If set to `true`, Rolldown will treat the `.d.ts` files as having side effects during tree-shaking.
9399
- * - If set to `false`, Rolldown may consider the `.d.ts` files as side-effect-free, potentially removing them if they are not imported.
9400
- *
9401
- * @default false
9402
- */
9635
+ * Marks declaration modules as having side effects during tree-shaking.
9636
+ *
9637
+ * @default false
9638
+ */
9403
9639
  sideEffects?: boolean;
9640
+ /**
9641
+ * Logger used for plugin messages.
9642
+ *
9643
+ * @default console
9644
+ */
9645
+ logger?: Logger$1;
9404
9646
  }
9405
9647
  interface TscOptions {
9406
9648
  /**
9407
- * Build mode for the TypeScript compiler:
9408
- *
9409
- * - If `true`, the plugin will use [`tsc -b`](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript) to build the project and all referenced projects before emitting `.d.ts` files.
9410
- * - If `false`, the plugin will use [`tsc`](https://www.typescriptlang.org/docs/handbook/compiler-options.html) to emit `.d.ts` files without building referenced projects.
9411
- *
9412
- * @default false
9413
- */
9649
+ * Uses TypeScript build mode (`tsc -b`) and follows project references.
9650
+ *
9651
+ * @default false
9652
+ */
9414
9653
  build?: boolean;
9415
9654
  /**
9416
- * If your tsconfig.json has
9417
- * [`references`](https://www.typescriptlang.org/tsconfig/#references) option,
9418
- * `rolldown-plugin-dts` will use [`tsc
9419
- * -b`](https://www.typescriptlang.org/docs/handbook/project-references.html#build-mode-for-typescript)
9420
- * to build the project and all referenced projects before emitting `.d.ts`
9421
- * files.
9422
- *
9423
- * In such case, if this option is `true`, `rolldown-plugin-dts` will write
9424
- * down all built files into your disk, including
9425
- * [`.tsbuildinfo`](https://www.typescriptlang.org/tsconfig/#tsBuildInfoFile)
9426
- * and other built files. This is equivalent to running `tsc -b` in your
9427
- * project.
9428
- *
9429
- * Otherwise, if this option is `false`, `rolldown-plugin-dts` will write
9430
- * built files only into memory and leave a small footprint in your disk.
9431
- *
9432
- * Enabling this option will decrease the build time by caching previous build
9433
- * results. This is helpful when you have a large project with multiple
9434
- * referenced projects.
9435
- *
9436
- * By default, `incremental` is `true` if your tsconfig has
9437
- * [`incremental`](https://www.typescriptlang.org/tsconfig/#incremental) or
9438
- * [`tsBuildInfoFile`](https://www.typescriptlang.org/tsconfig/#tsBuildInfoFile)
9439
- * enabled.
9440
- *
9441
- * This option is only used when {@link Options.oxc} is
9442
- * `false`.
9443
- */
9655
+ * Persists build-mode outputs, including `.tsbuildinfo`, to disk for reuse.
9656
+ * When disabled, build outputs stay in memory.
9657
+ *
9658
+ * @default Enabled when the config sets `incremental` or `tsBuildInfoFile`.
9659
+ */
9444
9660
  incremental?: boolean;
9445
9661
  /**
9446
- * If `true`, the plugin will generate `.d.ts` files using `vue-tsc`.
9447
- */
9448
- vue?: boolean;
9449
- /**
9450
- * If `true`, the plugin will generate `.d.ts` files using `@ts-macro/tsc`.
9451
- */
9452
- tsMacro?: boolean;
9662
+ * Registers the built-in Vue language integration using `vue-tsc`.
9663
+ *
9664
+ * This is a shortcut for a preconfigured {@link Options.customLanguages}
9665
+ * entry and requires the `tsc` generator.
9666
+ *
9667
+ * @default false
9668
+ */
9669
+ vue?: boolean | VueLanguageOptions;
9453
9670
  /**
9454
- * If `true`, the plugin will launch a separate process for `tsc` or `vue-tsc`.
9455
- * This enables processing multiple projects in parallel.
9456
- */
9671
+ * Runs `tsc` or `vue-tsc` in a separate process.
9672
+ *
9673
+ * @default false
9674
+ */
9457
9675
  parallel?: boolean;
9458
9676
  /**
9459
- * If `true`, the plugin will prepare all files listed in `tsconfig.json` for `tsc` or `vue-tsc`.
9460
- *
9461
- * This is especially useful when you have a single `tsconfig.json` for multiple projects in a monorepo.
9462
- */
9677
+ * Loads every file listed by `tsconfig.json` into the TypeScript program.
9678
+ *
9679
+ * Useful when one config covers multiple packages or entry points.
9680
+ *
9681
+ * @default false
9682
+ */
9463
9683
  eager?: boolean;
9464
9684
  /**
9465
- * If `true`, the plugin will create a new isolated context for each build,
9466
- * ensuring that previously generated `.d.ts` code and caches are not reused.
9467
- *
9468
- * By default, the plugin may reuse internal caches or incremental build artifacts
9469
- * to speed up repeated builds. Enabling this option forces a clean context,
9470
- * guaranteeing that all type definitions are generated from scratch.
9471
- *
9472
- * @default false
9473
- */
9685
+ * Uses an isolated TypeScript cache instead of the shared global context.
9686
+ *
9687
+ * @default false
9688
+ */
9474
9689
  newContext?: boolean;
9475
9690
  /**
9476
- * If `true`, the plugin will emit `.d.ts` files for `.js` files as well.
9477
- * This is useful when you want to generate type definitions for JavaScript files with JSDoc comments.
9478
- *
9479
- * Enabled by default when `allowJs` in compilerOptions is `true`.
9480
- * This option is only used when {@link Options.oxc} is
9481
- * `false`.
9482
- */
9691
+ * Generates declarations for JavaScript files with JSDoc types.
9692
+ *
9693
+ * @default Enabled when `allowJs` or `checkJs` is set.
9694
+ */
9483
9695
  emitJs?: boolean;
9484
9696
  }
9697
+ /** Configuration accepted by {@link dts}. */
9485
9698
  interface Options$1 extends GeneralOptions, TscOptions {
9486
9699
  /**
9487
- * If `true`, the plugin will generate `.d.ts` files using Oxc,
9488
- * which is significantly faster than the TypeScript compiler.
9489
- *
9490
- * This option is automatically enabled when `isolatedDeclarations` in `compilerOptions` is set to `true`.
9491
- */
9492
- oxc?: boolean | Omit<IsolatedDeclarationsOptions, "sourcemap">;
9493
- /**
9494
- * **[Experimental]** Enables DTS generation using `tsgo`.
9495
- *
9496
- * To use this option, make sure `@typescript/native-preview` is installed as a dependency,
9497
- * or provide a custom path to the `tsgo` binary using the `path` option.
9498
- *
9499
- * **Note:** This option is not yet recommended for production environments.
9500
- * `tsconfigRaw` and `isolatedDeclarations` options will be ignored when this option is enabled.
9501
- *
9502
- *
9503
- * ```ts
9504
- * // Use tsgo from `@typescript/native-preview` dependency
9505
- * tsgo: true
9506
- *
9507
- * // Use custom tsgo path (e.g., managed by Nix)
9508
- * tsgo: { path: '/path/to/tsgo' }
9509
- * ```
9510
- */
9511
- tsgo?: boolean | TsgoOptions;
9700
+ * Options for the `oxc` generator.
9701
+ *
9702
+ * The top-level {@link GeneralOptions.sourcemap sourcemap} option controls
9703
+ * declaration maps.
9704
+ */
9705
+ oxc?: Omit<IsolatedDeclarationsOptions, "sourcemap">;
9706
+ /**
9707
+ * **[Experimental]** Options for the `tsgo` generator.
9708
+ *
9709
+ * Used when {@link GeneralOptions.generator generator} is `'tsgo'` or
9710
+ * TypeScript 7 is detected.
9711
+ */
9712
+ tsgo?: TsgoOptions;
9713
+ /**
9714
+ * Registers non-standard source languages such as Vue or Astro.
9715
+ *
9716
+ * If a language is supported via {@link https://volarjs.dev Volar},
9717
+ * {@link CustomLanguage.volarTypeScript} and
9718
+ * {@link CustomLanguage.createVolarPlugins} are both required. Volar
9719
+ * languages require `tsc`; `tsgo` does not support custom languages.
9720
+ *
9721
+ * @experimental
9722
+ */
9723
+ customLanguages?: CustomLanguage[];
9512
9724
  }
9513
9725
  interface TsgoOptions {
9514
- enabled?: boolean;
9515
- /**
9516
- * Custom path to the `tsgo` binary.
9517
- */
9726
+ /** Path to a custom `tsgo` executable. */
9518
9727
  path?: string;
9519
9728
  }
9520
9729
  //#endregion
9521
- //#region ../../node_modules/.pnpm/tsdown@0.21.1_@emnapi+core@1.10.0_@emnapi+runtime@1.10.0_@tsdown+css@0.21.1_oxc-resolve_355315ed8480c28e755f1ce96fdb0491/node_modules/tsdown/dist/types-CuHu3Iaq.d.mts
9730
+ //#region ../../node_modules/.pnpm/tsdown@0.23.0_@tsdown+css@0.23.0_oxc-resolver@11.19.0_@emnapi+core@1.10.0_@emnapi+runti_1de40ba20538fc3eddd2accbad3ce28e/node_modules/tsdown/dist/types-CYHmmaKd.d.mts
9731
+ //#region src/utils/types.d.ts
9732
+ type Overwrite<T, U> = Omit<T, keyof U> & U;
9733
+ type Awaitable<T> = T | Promise<T>;
9734
+ type MarkPartial<T, K extends keyof T> = Omit<Required<T>, K> & Partial<Pick<T, K>>;
9735
+ type Arrayable<T> = T | T[];
9736
+ //#endregion
9522
9737
  //#region src/features/copy.d.ts
9523
9738
  interface CopyEntry {
9524
9739
  /**
9525
- * Source path or glob pattern.
9526
- */
9740
+ * Source path or glob pattern.
9741
+ */
9527
9742
  from: string | string[];
9528
9743
  /**
9529
- * Destination path.
9530
- * If not specified, defaults to the output directory ("outDir").
9531
- */
9744
+ * Destination path.
9745
+ * If not specified, defaults to the output directory ("outDir").
9746
+ */
9532
9747
  to?: string;
9533
9748
  /**
9534
- * Whether to flatten the copied files (not preserving directory structure).
9535
- *
9536
- * @default true
9537
- */
9749
+ * Whether to flatten the copied files (not preserving directory structure).
9750
+ *
9751
+ * @default true
9752
+ */
9538
9753
  flatten?: boolean;
9539
9754
  /**
9540
- * Output copied items to console.
9541
- * @default false
9542
- */
9755
+ * Output copied items to console.
9756
+ * @default false
9757
+ */
9543
9758
  verbose?: boolean;
9544
9759
  /**
9545
- * Change destination file or folder name.
9546
- */
9760
+ * Change destination file or folder name.
9761
+ */
9547
9762
  rename?: string | ((name: string, extension: string, fullPath: string) => string);
9548
9763
  }
9549
9764
  type CopyOptions = Arrayable<string | CopyEntry>;
9550
- type CopyOptionsFn = (options: ResolvedConfig) => Awaitable<CopyOptions>; //#endregion
9765
+ type CopyOptionsFn = (options: ResolvedConfig) => Awaitable<CopyOptions>;
9766
+ //#endregion
9551
9767
  //#region src/utils/chunks.d.ts
9552
9768
  type RolldownChunk = (OutputChunk | OutputAsset) & {
9553
9769
  outDir: string;
9554
9770
  };
9555
9771
  type ChunksByFormat = Partial<Record<NormalizedFormat, RolldownChunk[]>>;
9556
9772
  //#endregion
9773
+ //#region src/utils/logger.d.ts
9774
+ type LogType = "error" | "warn" | "info";
9775
+ type LogLevel = LogType | "silent";
9776
+ interface LoggerOptions {
9777
+ allowClearScreen?: boolean;
9778
+ customLogger?: Logger;
9779
+ console?: Console;
9780
+ failOnWarn?: boolean;
9781
+ suppressWarnings?: Arrayable<RegExp | string> | ((msg: string) => boolean);
9782
+ }
9783
+ interface Logger {
9784
+ level: LogLevel;
9785
+ options?: LoggerOptions;
9786
+ info: (...args: any[]) => void;
9787
+ warn: (...args: any[]) => void;
9788
+ warnOnce: (...args: any[]) => void;
9789
+ error: (...args: any[]) => void;
9790
+ success: (...args: any[]) => void;
9791
+ clearScreen: (type: LogType) => void;
9792
+ }
9793
+ //#endregion
9557
9794
  //#region src/features/deps.d.ts
9558
9795
  type NoExternalFn = (id: string, importer: string | undefined) => boolean | null | undefined | void;
9559
9796
  interface DepsConfig {
9560
9797
  /**
9561
- * Mark dependencies as external (not bundled).
9562
- * Accepts strings, regular expressions, or Rolldown's `ExternalOption`.
9563
- */
9564
- neverBundle?: ExternalOption;
9798
+ * Mark dependencies as external (not bundled).
9799
+ * Accepts strings, regular expressions, or Rolldown's
9800
+ * {@linkcode ExternalOption}.
9801
+ *
9802
+ * Set to `true` to externalize **all** dependencies: every import that
9803
+ * follows npm package naming conventions is marked as external as written,
9804
+ * without resolving it. Other non-relative imports (e.g. `#` subpath
9805
+ * imports and path aliases like `~/`) are resolved, and kept external
9806
+ * only if they resolve into `node_modules`; otherwise the resolved local
9807
+ * file is bundled.
9808
+ *
9809
+ * Use {@linkcode alwaysBundle} to opt specific imports back into the bundle.
9810
+ */
9811
+ neverBundle?: true | ExternalOption;
9565
9812
  /**
9566
- * Force dependencies to be bundled, even if they are in `dependencies` or `peerDependencies`.
9567
- */
9813
+ * Force dependencies to be bundled, even if they are in `dependencies`, `peerDependencies`, or `optionalDependencies`.
9814
+ */
9568
9815
  alwaysBundle?: Arrayable<string | RegExp> | NoExternalFn;
9569
9816
  /**
9570
- * Whitelist of dependencies allowed to be bundled from `node_modules`.
9571
- * Throws an error if any unlisted dependency is bundled.
9572
- *
9573
- * - `undefined` (default): Show warnings for bundled dependencies.
9574
- * - `false`: Suppress all warnings about bundled dependencies.
9575
- *
9576
- * Note: Be sure to include all required sub-dependencies as well.
9577
- */
9578
- onlyAllowBundle?: Arrayable<string | RegExp> | false;
9579
- /**
9580
- * Skip bundling all `node_modules` dependencies.
9581
- *
9582
- * **Note:** This option cannot be used together with `alwaysBundle`.
9583
- *
9584
- * @default false
9585
- */
9586
- skipNodeModulesBundle?: boolean;
9587
- }
9588
- interface ResolvedDepsConfig {
9589
- neverBundle?: ExternalOption;
9817
+ * Whitelist of dependencies allowed to be bundled from `node_modules`.
9818
+ * Throws an error if any unlisted dependency is bundled.
9819
+ *
9820
+ * - `undefined` (default): Log an info-level hint if any `node_modules`
9821
+ * dependencies are bundled.
9822
+ * - `false`: Disable the hint and all checks about bundled dependencies.
9823
+ *
9824
+ * Note: Be sure to include all required sub-dependencies as well.
9825
+ */
9826
+ onlyBundle?: Arrayable<string | RegExp> | false;
9827
+ /**
9828
+ * Whitelist of packages that the emitted output is allowed to import.
9829
+ * Matched against the package name, so subpath imports (e.g. `cac/deno`)
9830
+ * are covered by listing the package (e.g. `cac`).
9831
+ * Node built-in modules are always allowed to be imported
9832
+ * when `platform` is `node`.
9833
+ *
9834
+ * Note: ES imports and dynamic import expressions are checked. CJS
9835
+ * `require` calls are not detected.
9836
+ */
9837
+ onlyImport?: Arrayable<string | RegExp>;
9838
+ /**
9839
+ * Resolve dependency subpath imports to their actual package-relative paths
9840
+ * when externalizing packages without an `exports` field.
9841
+ *
9842
+ * @default false
9843
+ */
9844
+ resolveDepSubpath?: boolean;
9845
+ /**
9846
+ * Override dependency bundling options for declaration file generation.
9847
+ */
9848
+ dts?: Pick<DepsConfig, "alwaysBundle" | "neverBundle">;
9849
+ }
9850
+ interface ResolvedDepsConfig extends Pick<DepsConfig, "neverBundle" | "resolveDepSubpath"> {
9590
9851
  alwaysBundle?: NoExternalFn;
9591
- onlyAllowBundle?: Array<string | RegExp> | false;
9592
- skipNodeModulesBundle: boolean;
9852
+ onlyBundle?: Array<string | RegExp> | false;
9853
+ onlyImport?: Array<string | RegExp>;
9854
+ /**
9855
+ * Override dependency bundling options for declaration file generation.
9856
+ */
9857
+ dts: Pick<ResolvedDepsConfig, "alwaysBundle" | "neverBundle">;
9593
9858
  }
9594
9859
  //#endregion
9595
9860
  //#region src/features/devtools.d.ts
9861
+ /** @ts-ignore - optional dep */
9862
+ type StartOptions = import("@vitejs/devtools/cli-commands").StartOptions;
9596
9863
  interface DevtoolsOptions extends NonNullable<InputOptions["devtools"]> {
9597
9864
  /**
9598
- * **[experimental]** Enable devtools integration. `@vitejs/devtools` must be installed as a dependency.
9599
- *
9600
- * Defaults to true, if `@vitejs/devtools` is installed.
9601
- */
9865
+ * **[experimental]** Enable devtools integration. `@vitejs/devtools` must be installed as a dependency.
9866
+ *
9867
+ * Defaults to true, if `@vitejs/devtools` is installed.
9868
+ */
9602
9869
  ui?: boolean | Partial<StartOptions>;
9603
9870
  /**
9604
- * Clean devtools stale sessions.
9605
- *
9606
- * @default true
9607
- */
9871
+ * Clean devtools stale sessions.
9872
+ *
9873
+ * @default true
9874
+ */
9608
9875
  clean?: boolean;
9609
- } //#endregion
9610
- //#region src/features/exe.d.ts
9876
+ }
9877
+ /** @ts-ignore - optional dep */
9878
+ type ExeExtensionOptions = import("@tsdown/exe").ExeExtensionOptions;
9611
9879
  interface ExeOptions extends ExeExtensionOptions {
9612
9880
  seaConfig?: Omit<SeaConfig, "main" | "output" | "mainFormat">;
9613
9881
  /**
9614
- * Output file name without any suffix or extension.
9615
- * For example, do not include `.exe`, platform suffixes, or architecture suffixes.
9616
- */
9882
+ * Output file name without any suffix or extension.
9883
+ * For example, do not include `.exe`, platform suffixes, or architecture suffixes.
9884
+ */
9617
9885
  fileName?: string | ((chunk: RolldownChunk) => string);
9886
+ /**
9887
+ * Output directory for executables.
9888
+ * @default 'build'
9889
+ */
9890
+ outDir?: string;
9618
9891
  }
9619
9892
  /**
9620
- * See also [Node.js SEA Documentation](https://nodejs.org/api/single-executable-applications.html#generating-single-executable-applications-with---build-sea)
9621
- *
9622
- * Note some default values are different from Node.js defaults to optimize for typical use cases (e.g. disabling experimental warning, enabling code cache). These can be overridden.
9623
- */
9893
+ * See also [Node.js SEA Documentation](https://nodejs.org/api/single-executable-applications.html#generating-single-executable-applications-with---build-sea)
9894
+ *
9895
+ * Note some default values are different from Node.js defaults to optimize for typical use cases (e.g. disabling the experimental SEA warning). These can be overridden.
9896
+ */
9624
9897
  interface SeaConfig {
9625
9898
  main?: string;
9626
- /** Optional, if not specified, uses the current Node.js binary */
9899
+ /**
9900
+ * Optional, if not specified, uses the current Node.js binary
9901
+ */
9627
9902
  executable?: string;
9628
9903
  output?: string;
9904
+ /**
9905
+ * @default tsdownConfig.format === 'es' ? 'module' : 'commonjs'
9906
+ */
9629
9907
  mainFormat?: "commonjs" | "module";
9630
- /** @default true */
9908
+ /**
9909
+ * @default true
9910
+ */
9631
9911
  disableExperimentalSEAWarning?: boolean;
9632
- /** @default false */
9912
+ /**
9913
+ * @default false
9914
+ */
9633
9915
  useSnapshot?: boolean;
9634
- /** @default false */
9916
+ /**
9917
+ * @default false
9918
+ */
9635
9919
  useCodeCache?: boolean;
9636
9920
  execArgv?: string[];
9637
- /** @default "env" */
9921
+ /**
9922
+ * @default 'env'
9923
+ */
9638
9924
  execArgvExtension?: "none" | "env" | "cli";
9639
9925
  assets?: Record<string, string>;
9640
- } //#endregion
9926
+ }
9927
+ //#endregion
9641
9928
  //#region src/features/hooks.d.ts
9642
9929
  interface BuildContext {
9643
9930
  options: ResolvedConfig;
@@ -9647,29 +9934,30 @@ interface RolldownContext {
9647
9934
  buildOptions: BuildOptions;
9648
9935
  }
9649
9936
  /**
9650
- * Hooks for tsdown.
9651
- */
9937
+ * Hooks for tsdown.
9938
+ */
9652
9939
  interface TsdownHooks {
9653
9940
  /**
9654
- * Invoked before each tsdown build starts.
9655
- * Use this hook to perform setup or preparation tasks.
9656
- */
9941
+ * Invoked before each tsdown build starts.
9942
+ * Use this hook to perform setup or preparation tasks.
9943
+ */
9657
9944
  "build:prepare": (ctx: BuildContext) => void | Promise<void>;
9658
9945
  /**
9659
- * Invoked before each Rolldown build.
9660
- * For dual-format builds, this hook is called for each format.
9661
- * Useful for configuring or modifying the build context before bundling.
9662
- */
9946
+ * Invoked before each Rolldown build.
9947
+ * For dual-format builds, this hook is called for each format.
9948
+ * Useful for configuring or modifying the build context before bundling.
9949
+ */
9663
9950
  "build:before": (ctx: BuildContext & RolldownContext) => void | Promise<void>;
9664
9951
  /**
9665
- * Invoked after each tsdown build completes.
9666
- * Use this hook for cleanup or post-processing tasks.
9667
- */
9952
+ * Invoked after each tsdown build completes.
9953
+ * Use this hook for cleanup or post-processing tasks.
9954
+ */
9668
9955
  "build:done": (ctx: BuildContext & {
9669
9956
  chunks: RolldownChunk[];
9670
9957
  }) => void | Promise<void>;
9671
- } //#endregion
9672
- //#region node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.d.mts
9958
+ }
9959
+ //#endregion
9960
+ //#region node_modules/.pnpm/pkg-types@2.3.2/node_modules/pkg-types/dist/index.d.mts
9673
9961
  interface PackageJson {
9674
9962
  /**
9675
9963
  * The name is what your thing is called.
@@ -9948,7 +10236,7 @@ type PackageJsonNpmLifeCycleScripts = "dependencies" | "prepublishOnly" | Packag
9948
10236
  type PackageJsonPnpmLifeCycleScripts = "pnpm:devPreinstall";
9949
10237
  type PackageJsonCommonScripts = "build" | "coverage" | "deploy" | "dev" | "format" | "lint" | "preview" | "release" | "typecheck" | "watch";
9950
10238
  type PackageJsonScriptName = PackageJsonCommonScripts | PackageJsonNpmLifeCycleScripts | PackageJsonPnpmLifeCycleScripts | (string & {});
9951
- type PackageJsonScripts = { [P in PackageJsonScriptName]?: string };
10239
+ type PackageJsonScripts = { [P in PackageJsonScriptName]?: string; };
9952
10240
  /**
9953
10241
  * A “person” is an object with a “name” field and optionally “url” and “email”. Or you can shorten that all into a single string, and npm will parse it for you.
9954
10242
  */
@@ -9962,24 +10250,22 @@ type PackageJsonFunding = string | {
9962
10250
  type?: string;
9963
10251
  };
9964
10252
  type PackageJsonExportKey = "." | "import" | "require" | "types" | "node" | "browser" | "default" | (string & {});
9965
- type PackageJsonExportsObject = { [P in PackageJsonExportKey]?: string | PackageJsonExportsObject | Array<string | PackageJsonExportsObject> };
10253
+ type PackageJsonExportsObject = { [P in PackageJsonExportKey]?: string | PackageJsonExportsObject | Array<string | PackageJsonExportsObject>; };
9966
10254
  type PackageJsonExports = string | PackageJsonExportsObject | Array<string | PackageJsonExportsObject>;
9967
- /**
9968
- * Defines a PackageJson structure.
9969
- * @param pkg - The `package.json` content as an object. See {@link PackageJson}.
9970
- * @returns the same `package.json` object.
9971
- */
9972
10255
  //#endregion
9973
10256
  //#region src/utils/package.d.ts
9974
10257
  interface PackageJsonWithPath extends PackageJson {
9975
10258
  packageJsonPath: string;
9976
10259
  }
9977
- type PackageType = "module" | "commonjs" | undefined; //#endregion
10260
+ type PackageType = "module" | "commonjs" | undefined;
10261
+ //#endregion
9978
10262
  //#region src/features/output.d.ts
9979
10263
  interface OutExtensionContext {
9980
10264
  options: InputOptions;
9981
10265
  format: NormalizedFormat;
9982
- /** "type" field in project's package.json */
10266
+ /**
10267
+ * `"type"` field in project's `package.json`.
10268
+ */
9983
10269
  pkgType?: PackageType;
9984
10270
  }
9985
10271
  interface OutExtensionObject {
@@ -9996,604 +10282,846 @@ type ChunkAddonFunction = (ctx: {
9996
10282
  format: Format;
9997
10283
  fileName: string;
9998
10284
  }) => ChunkAddonObject | string | undefined;
9999
- type ChunkAddon = ChunkAddonObject | ChunkAddonFunction | string; //#endregion
10285
+ type ChunkAddon = ChunkAddonObject | ChunkAddonFunction | string;
10286
+ //#endregion
10000
10287
  //#region src/features/pkg/attw.d.ts
10288
+ /** @ts-ignore - optional dep */
10289
+ type CheckPackageOptions = import("@arethetypeswrong/core").CheckPackageOptions;
10001
10290
  interface AttwOptions extends CheckPackageOptions {
10291
+ /** @ts-ignore - optional dep */
10292
+ module?: typeof import("@arethetypeswrong/core");
10002
10293
  /**
10003
- * Profiles select a set of resolution modes to require/ignore. All are evaluated but failures outside
10004
- * of those required are ignored.
10005
- *
10006
- * The available profiles are:
10007
- * - `strict`: requires all resolutions
10008
- * - `node16`: ignores node10 resolution failures
10009
- * - `esm-only`: ignores CJS resolution failures
10010
- *
10011
- * @default 'strict'
10012
- */
10294
+ * Profiles select a set of resolution modes to require/ignore. All are evaluated but failures outside
10295
+ * of those required are ignored.
10296
+ *
10297
+ * The available profiles are:
10298
+ * - `strict`: requires all resolutions
10299
+ * - `node16`: ignores node10 resolution failures
10300
+ * - `esm-only`: ignores CJS resolution failures
10301
+ *
10302
+ * @default 'strict'
10303
+ */
10013
10304
  profile?: "strict" | "node16" | "esm-only";
10014
10305
  /**
10015
- * The level of the check.
10016
- *
10017
- * The available levels are:
10018
- * - `error`: fails the build
10019
- * - `warn`: warns the build
10020
- *
10021
- * @default 'warn'
10022
- */
10306
+ * The level of the check.
10307
+ *
10308
+ * The available levels are:
10309
+ * - `error`: fails the build
10310
+ * - `warn`: warns the build
10311
+ *
10312
+ * @default 'warn'
10313
+ */
10023
10314
  level?: "error" | "warn";
10024
10315
  /**
10025
- * List of problem types to ignore by rule name.
10026
- *
10027
- * The available values are:
10028
- * - `no-resolution`
10029
- * - `untyped-resolution`
10030
- * - `false-cjs`
10031
- * - `false-esm`
10032
- * - `cjs-resolves-to-esm`
10033
- * - `fallback-condition`
10034
- * - `cjs-only-exports-default`
10035
- * - `named-exports`
10036
- * - `false-export-default`
10037
- * - `missing-export-equals`
10038
- * - `unexpected-module-syntax`
10039
- * - `internal-resolution-error`
10040
- *
10041
- * @example
10042
- * ```ts
10043
- * ignoreRules: ['no-resolution', 'false-cjs']
10044
- * ```
10045
- */
10046
- ignoreRules?: string[];
10047
- } //#endregion
10316
+ * List of problem types to ignore by rule name.
10317
+ *
10318
+ * The available values are:
10319
+ * - `no-resolution`
10320
+ * - `untyped-resolution`
10321
+ * - `false-cjs`
10322
+ * - `false-esm`
10323
+ * - `cjs-resolves-to-esm`
10324
+ * - `fallback-condition`
10325
+ * - `cjs-only-exports-default`
10326
+ * - `named-exports`
10327
+ * - `false-export-default`
10328
+ * - `missing-export-equals`
10329
+ * - `unexpected-module-syntax`
10330
+ * - `internal-resolution-error`
10331
+ *
10332
+ * @example
10333
+ * ```ts
10334
+ * ignoreRules: ['no-resolution', 'false-cjs']
10335
+ * ```
10336
+ *
10337
+ * @default []
10338
+ *
10339
+ * @uniqueItems
10340
+ */
10341
+ ignoreRules?: ("no-resolution" | "untyped-resolution" | "false-cjs" | "false-esm" | "cjs-resolves-to-esm" | "fallback-condition" | "cjs-only-exports-default" | "named-exports" | "false-export-default" | "missing-export-equals" | "unexpected-module-syntax" | "internal-resolution-error" | (string & {}))[];
10342
+ }
10343
+ //#endregion
10048
10344
  //#region src/features/pkg/exports.d.ts
10049
10345
  interface ExportsOptions {
10050
10346
  /**
10051
- * Generate exports that link to source code during development.
10052
- * - string: add as a custom condition.
10053
- * - true: all conditions point to source files, and add dist exports to `publishConfig`.
10054
- */
10347
+ * Generate exports that link to source code during development.
10348
+ * - `string`: add as a custom condition.
10349
+ * - `true`: all conditions point to source files, and add `dist` exports to `publishConfig`.
10350
+ */
10055
10351
  devExports?: boolean | string;
10056
10352
  /**
10057
- * Exports for package.json file.
10058
- * @default true
10059
- */
10353
+ * Generate `exports` for `package.json` file.
10354
+ *
10355
+ * @example
10356
+ * ```json
10357
+ * {
10358
+ * "exports": {
10359
+ * ".": {
10360
+ * "types": "./dist/index.d.mts",
10361
+ * "import": "./dist/index.mjs"
10362
+ * },
10363
+ * "./package.json": "./package.json"
10364
+ * }
10365
+ * }
10366
+ * ```
10367
+ *
10368
+ * @default true
10369
+ */
10060
10370
  packageJson?: boolean;
10061
10371
  /**
10062
- * Exports for all files.
10063
- */
10372
+ * Generate `exports` for all files.
10373
+ *
10374
+ * @example
10375
+ * ```json
10376
+ * {
10377
+ * "exports": {
10378
+ * "./*": "./*"
10379
+ * }
10380
+ * }
10381
+ * ```
10382
+ *
10383
+ * @default false
10384
+ */
10064
10385
  all?: boolean;
10065
10386
  /**
10066
- * Specifies file patterns (as glob patterns or regular expressions) to exclude from package exports.
10067
- * Use this to prevent certain files from being included in the exported package, such as test files, binaries, or internal utilities.
10068
- *
10069
- * **Note:** Do not include file extensions, and paths should be relative to the dist directory.
10070
- *
10071
- * @example
10072
- * exclude: ['cli', '**\/*.test', /internal/]
10073
- */
10387
+ * Specifies file patterns (as glob patterns or regular expressions) to exclude from package exports.
10388
+ * Use this to prevent certain files from being included in the exported package, such as test files, binaries, or internal utilities.
10389
+ *
10390
+ * **Note:** Do not include file extensions, and paths should be relative to the dist directory.
10391
+ *
10392
+ * @example
10393
+ * ```ts
10394
+ * exclude: ['cli', '**\/*.test', /internal/]
10395
+ * ```
10396
+ */
10074
10397
  exclude?: (RegExp | string)[];
10075
10398
  /**
10076
- * Generate legacy fields (`main` and `module`) for older Node.js and bundlers
10077
- * that do not support package `exports` field.
10078
- *
10079
- * Defaults to false, if only ESM builds are included, true otherwise.
10080
- *
10081
- * @see {@link https://github.com/publint/publint/issues/24}
10082
- */
10399
+ * Generate legacy fields (`main`, `module`, and `types`) for older Node.js
10400
+ * versions and bundlers that do not support the package `exports` field.
10401
+ *
10402
+ * Defaults to `false` if only ESM builds are included, `true` otherwise.
10403
+ *
10404
+ * @see {@link https://github.com/publint/publint/issues/24}
10405
+ */
10083
10406
  legacy?: boolean;
10084
10407
  /**
10085
- * Specifies custom exports to add to the package exports in addition to the ones generated by tsdown.
10086
- * Use this to add additional exports in the exported package, such as workers or assets.
10087
- *
10088
- * @example
10089
- * customExports(exports) {
10090
- * exports['./worker.js'] = './dist/worker.js';
10091
- * return exports;
10092
- * }
10093
- *
10094
- * @example
10095
- * ```jsonc
10096
- * {
10097
- * "customExports": {
10098
- * "./worker.js": {
10099
- * "types": "./dist/worker.d.ts",
10100
- * "default": "./dist/worker.js"
10101
- * }
10102
- * }
10103
- * }
10104
- * ```
10105
- */
10408
+ * Specifies custom exports to add to the package exports in addition to the ones generated by tsdown.
10409
+ * Use this to add additional exports in the exported package, such as workers or assets.
10410
+ *
10411
+ * @example
10412
+ * ```ts
10413
+ * customExports(exports) {
10414
+ * exports['./worker.js'] = './dist/worker.js';
10415
+ * return exports;
10416
+ * }
10417
+ * ```
10418
+ *
10419
+ * @example
10420
+ * ```jsonc
10421
+ * {
10422
+ * "customExports": {
10423
+ * "./worker.js": {
10424
+ * "types": "./dist/worker.d.ts",
10425
+ * "default": "./dist/worker.js"
10426
+ * }
10427
+ * }
10428
+ * }
10429
+ * ```
10430
+ */
10106
10431
  customExports?: Record<string, any> | ((exports: Record<string, any>, context: {
10107
10432
  pkg: PackageJson;
10108
10433
  chunks: ChunksByFormat;
10109
10434
  isPublish: boolean;
10110
10435
  }) => Awaitable<Record<string, any>>);
10111
10436
  /**
10112
- * Generate `inlinedDependencies` field in package.json.
10113
- * Lists dependencies that are physically inlined into the bundle with their exact versions.
10114
- *
10115
- * @default true
10116
- * @see {@link https://github.com/e18e/ecosystem-issues/issues/237}
10117
- */
10437
+ * Generate `inlinedDependencies` field in `package.json`.
10438
+ * Lists dependencies that are physically inlined into the bundle with their exact versions.
10439
+ *
10440
+ * @default true
10441
+ * @see {@link https://github.com/e18e/ecosystem-issues/issues/237}
10442
+ */
10118
10443
  inlinedDependencies?: boolean;
10119
- } //#endregion
10444
+ /**
10445
+ * Add file extensions to subpath export keys.
10446
+ *
10447
+ * When enabled, all subpath exports (except the root `"."`) will include
10448
+ * a `.js` extension in the key (e.g., `"./utils.js"` instead of `"./utils"`).
10449
+ *
10450
+ * This follows the Node.js recommendation for subpath exports:
10451
+ * @see {@link https://nodejs.org/api/packages.html#extensions-in-subpaths}
10452
+ *
10453
+ * @default false
10454
+ */
10455
+ extensions?: boolean;
10456
+ /**
10457
+ * Generate the `bin` field in `package.json` for CLI executables.
10458
+ *
10459
+ * Behavior depends on the value:
10460
+ *
10461
+ * - *Unset* (default): Soft auto-detect. Scans entry chunks for shebangs
10462
+ * (e.g. `#!/usr/bin/env node`). If exactly one is found, it is used as
10463
+ * the bin entry. If multiple are found, a warning is shown and no `bin`
10464
+ * field is written. If none are found, nothing happens silently.
10465
+ * - `true`: Strict auto-detect. Same as the default, but throws if
10466
+ * multiple shebang entries are found, and warns if none are found.
10467
+ * Use this when your package is known to ship a CLI and you want to
10468
+ * fail fast on misconfiguration.
10469
+ * - `false`: Disable bin generation entirely, even if shebangs are
10470
+ * present.
10471
+ * - `string`: Use the given source file path (relative to `cwd`) as the
10472
+ * CLI entry. The command name is derived from the package name without
10473
+ * its scope. Warns if the source file does not contain a shebang.
10474
+ * - `Record<string, string>`: Explicitly map command names to source file
10475
+ * paths (relative to `cwd`). Warns for each source file that does not
10476
+ * contain a shebang.
10477
+ *
10478
+ * When {@link ExportsOptions.devExports} is enabled, the `bin` field in
10479
+ * `package.json` points to source files during local development, while
10480
+ * `publishConfig.bin` points to built output paths for publishing.
10481
+ *
10482
+ * @example
10483
+ * <caption>Auto-detect a CLI entry from a shebang</caption>
10484
+ *
10485
+ * ```ts
10486
+ * {
10487
+ * bin: true
10488
+ * }
10489
+ * ```
10490
+ *
10491
+ * @example
10492
+ * <caption>Single CLI command with an explicit source entry</caption>
10493
+ *
10494
+ * ```ts
10495
+ * {
10496
+ * bin: './src/cli.ts'
10497
+ * }
10498
+ * ```
10499
+ *
10500
+ * @example
10501
+ * <caption>Multiple named CLI commands</caption>
10502
+ *
10503
+ * ```ts
10504
+ * {
10505
+ * bin: {
10506
+ * tool: './src/cli.ts',
10507
+ * serve: './src/cli-extra.ts',
10508
+ * },
10509
+ * }
10510
+ * ```
10511
+ *
10512
+ * @see {@link https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin | npm documentation for the `bin` field}
10513
+ */
10514
+ bin?: boolean | string | Record<string, string>;
10515
+ }
10516
+ //#endregion
10120
10517
  //#region src/features/pkg/publint.d.ts
10121
- interface PublintOptions extends Omit<Options, "pack" | "pkgDir"> {} //#endregion
10518
+ /** @ts-ignore - optional dep */
10519
+ type Options = import("publint").Options;
10520
+ interface PublintOptions extends Omit<Options, "pack" | "pkgDir"> {
10521
+ /** @ts-ignore - optional dep */
10522
+ module?: [typeof import("publint"), typeof import("publint/utils")];
10523
+ }
10524
+ //#endregion
10525
+ //#region src/features/plugin.d.ts
10526
+ /**
10527
+ * A tsdown-aware plugin. Extends Rolldown's {@linkcode Plugin} with
10528
+ * tsdown-specific lifecycle hooks.
10529
+ *
10530
+ * Plugins that only use Rolldown's own lifecycle continue to work unchanged;
10531
+ * tsdown detects these optional methods via runtime duck-typing.
10532
+ */
10533
+ interface TsdownPlugin<A = any> extends Plugin<A> {
10534
+ /**
10535
+ * Modify tsdown's user config before it is resolved. Analogous to Vite's
10536
+ * [`config`](https://vite.dev/guide/api-plugin.html#config) hook.
10537
+ *
10538
+ * The hook may mutate {@linkcode config} in place, or return a partial
10539
+ * {@linkcode UserConfig} that will be deep-merged into the current config.
10540
+ * Array fields are replaced (not concatenated) during merging — to append
10541
+ * plugins, mutate {@linkcode UserConfig.plugins | config.plugins} in place.
10542
+ *
10543
+ * The second argument is the original {@linkcode InlineConfig} passed to
10544
+ * {@linkcode build | build()} (typically the CLI flags), useful for
10545
+ * distinguishing values that came from the command line vs. the config file.
10546
+ *
10547
+ * Plugins injected via {@linkcode UserConfig.fromVite | fromVite} do not
10548
+ * receive this hook, because they are loaded after the
10549
+ * {@linkcode tsdownConfig} phase. Likewise, new plugins added by another
10550
+ * plugin's {@linkcode tsdownConfig} do not themselves receive this hook
10551
+ * (plugins are snapshotted before dispatch).
10552
+ */
10553
+ tsdownConfig?: (config: UserConfig, inlineConfig: InlineConfig) => Awaitable<UserConfig | void | null>;
10554
+ /**
10555
+ * Called after tsdown has fully resolved the user config. Analogous to
10556
+ * Vite's [`configResolved`](https://vite.dev/guide/api-plugin.html#configresolved)
10557
+ * hook.
10558
+ *
10559
+ * This hook fires once per produced {@linkcode ResolvedConfig} — i.e. once
10560
+ * per output format when {@linkcode UserConfig.format | format} is an array.
10561
+ * Typical usage is to stash the resolved config for later use in
10562
+ * Rolldown hooks. Mutations made to {@linkcode resolvedConfig} here are
10563
+ * not supported.
10564
+ */
10565
+ tsdownConfigResolved?: (resolvedConfig: ResolvedConfig) => Awaitable<void>;
10566
+ }
10567
+ /**
10568
+ * A tsdown plugin slot — accepts tsdown plugins, any Rolldown plugin form,
10569
+ * `null`/`undefined`/`false`, {@linkcode Promise | promises}, and
10570
+ * nested arrays. Mirrors Rolldown's {@linkcode RolldownPluginOption} but with
10571
+ * {@linkcode TsdownPlugin} as the atom so that tsdown-specific hooks are
10572
+ * type-checked.
10573
+ */
10574
+ type TsdownPluginOption<A = any> = Awaitable<TsdownPlugin<A> | RolldownPlugin<A> | {
10575
+ name: string;
10576
+ } | undefined | null | void | false | TsdownPluginOption<A>[]>;
10577
+ //#endregion
10122
10578
  //#region src/features/report.d.ts
10123
10579
  interface ReportOptions {
10124
10580
  /**
10125
- * Enable/disable gzip-compressed size reporting.
10126
- * Compressing large output files can be slow, so disabling this may increase build performance for large projects.
10127
- *
10128
- * @default true
10129
- */
10581
+ * Enable/disable gzip-compressed size reporting.
10582
+ * Compressing large output files can be slow, so disabling this may increase build performance for large projects.
10583
+ *
10584
+ * @default true
10585
+ */
10130
10586
  gzip?: boolean;
10131
10587
  /**
10132
- * Enable/disable brotli-compressed size reporting.
10133
- * Compressing large output files can be slow, so disabling this may increase build performance for large projects.
10134
- *
10135
- * @default false
10136
- */
10588
+ * Enable/disable brotli-compressed size reporting.
10589
+ * Compressing large output files can be slow, so disabling this may increase build performance for large projects.
10590
+ *
10591
+ * @default false
10592
+ */
10137
10593
  brotli?: boolean;
10138
10594
  /**
10139
- * Skip reporting compressed size for files larger than this size.
10140
- * @default 1_000_000 // 1MB
10141
- */
10595
+ * Skip reporting compressed size for files larger than this size.
10596
+ * @default 1_000_000 // 1 MB
10597
+ */
10142
10598
  maxCompressSize?: number;
10599
+ /**
10600
+ * Only report the total size, skipping the per-file breakdown.
10601
+ * Useful for libraries that emit many files in unbundle mode.
10602
+ *
10603
+ * @default false
10604
+ */
10605
+ summary?: boolean;
10143
10606
  }
10607
+ type ConcurrencyExecutor = <T>(task: () => Promise<T>) => Promise<T>;
10144
10608
  //#endregion
10145
10609
  //#region src/config/types.d.ts
10610
+ /** @ts-ignore - optional dep */
10611
+ type UnusedOptions = import("unplugin-unused").Options;
10146
10612
  type Sourcemap = boolean | "inline" | "hidden";
10147
10613
  type Format = ModuleFormat;
10148
10614
  type NormalizedFormat = InternalModuleFormat;
10149
10615
  /**
10150
- * Extended input option that supports glob negation patterns.
10151
- *
10152
- * When using object form, values can be:
10153
- * - A single glob pattern string
10154
- * - An array of glob patterns, including negation patterns (prefixed with `!`)
10155
- *
10156
- * @example
10157
- * ```ts
10158
- * entry: {
10159
- * // Single pattern
10160
- * "utils/*": "./src/utils/*.ts",
10161
- * // Array with negation pattern to exclude files
10162
- * "hooks/*": ["./src/hooks/*.ts", "!./src/hooks/index.ts"],
10163
- * }
10164
- * ```
10165
- */
10616
+ * Extended input option that supports glob negation patterns.
10617
+ *
10618
+ * When using object form, values can be:
10619
+ * - A single glob pattern string
10620
+ * - An array of glob patterns, including negation patterns (prefixed with `!`)
10621
+ *
10622
+ * @example
10623
+ * ```ts
10624
+ * entry: {
10625
+ * // Single pattern
10626
+ * "utils/*": "./src/utils/*.ts",
10627
+ * // Array with negation pattern to exclude files
10628
+ * "hooks/*": ["./src/hooks/*.ts", "!./src/hooks/index.ts"],
10629
+ * }
10630
+ * ```
10631
+ */
10166
10632
  type TsdownInputOption = Arrayable<string | Record<string, Arrayable<string>>>;
10167
10633
  interface Workspace {
10168
10634
  /**
10169
- * Workspace directories. Glob patterns are supported.
10170
- * - `auto`: Automatically detect `package.json` files in the workspace.
10171
- * @default 'auto'
10172
- */
10173
- include?: Arrayable<string> | "auto";
10635
+ * Workspace directories. Glob patterns are supported.
10636
+ * - `auto`: Automatically detect `package.json` files in the workspace.
10637
+ * @default 'auto'
10638
+ */
10639
+ include?: "auto" | (string & {}) | string[];
10174
10640
  /**
10175
- * Exclude directories from workspace.
10176
- * Defaults to all `node_modules`, `dist`, `test`, `tests`, `temp`, and `tmp` directories.
10177
- */
10641
+ * Exclude directories from workspace.
10642
+ * Defaults to all `node_modules`, `dist`, `test`, `tests`, `temp`, and `tmp` directories.
10643
+ *
10644
+ * @default ['**\/node_modules/**', '**\/dist/**', '**\/test?(s)/**', '**\/t?(e)mp/**']
10645
+ */
10178
10646
  exclude?: Arrayable<string>;
10179
10647
  /**
10180
- * Path to the workspace configuration file.
10181
- */
10648
+ * Path to the workspace configuration file.
10649
+ */
10182
10650
  config?: boolean | string;
10183
10651
  }
10184
10652
  type CIOption = "ci-only" | "local-only";
10185
10653
  type WithEnabled<T> = boolean | undefined | CIOption | (T & {
10186
- /** @default true */enabled?: boolean | CIOption;
10654
+ /**
10655
+ * @default true
10656
+ */
10657
+ enabled?: boolean | CIOption;
10187
10658
  });
10659
+ /** @ts-ignore - optional dep */
10660
+ type CssOptions = CssOptions$1;
10188
10661
  /**
10189
- * Options for tsdown.
10190
- */
10662
+ * Options for tsdown.
10663
+ */
10191
10664
  interface UserConfig {
10192
10665
  /**
10193
- * Defaults to `'src/index.ts'` if it exists.
10194
- *
10195
- * Supports glob patterns with negation to exclude files:
10196
- * @example
10197
- * ```ts
10198
- * entry: {
10199
- * "hooks/*": ["./src/hooks/*.ts", "!./src/hooks/index.ts"],
10200
- * }
10201
- * ```
10202
- */
10666
+ * Defaults to `'src/index.ts'` if it exists.
10667
+ *
10668
+ * Supports glob patterns with negation to exclude files:
10669
+ * @example
10670
+ * ```ts
10671
+ * entry: {
10672
+ * "hooks/*": ["./src/hooks/*.ts", "!./src/hooks/index.ts"],
10673
+ * }
10674
+ * ```
10675
+ *
10676
+ * @default { index: 'src/index.ts'}
10677
+ */
10203
10678
  entry?: TsdownInputOption;
10204
10679
  /**
10205
- * Dependency handling options.
10206
- */
10680
+ * Dependency handling options.
10681
+ */
10207
10682
  deps?: DepsConfig;
10208
- /**
10209
- * @deprecated Use `deps.neverBundle` instead.
10210
- */
10211
- external?: ExternalOption;
10212
- /**
10213
- * @deprecated Use `deps.alwaysBundle` instead.
10214
- */
10215
- noExternal?: Arrayable<string | RegExp> | NoExternalFn;
10216
- /**
10217
- * @deprecated Use `deps.onlyAllowBundle` instead.
10218
- */
10219
- inlineOnly?: Arrayable<string | RegExp> | false;
10220
- /**
10221
- * @deprecated Use `deps.skipNodeModulesBundle` instead.
10222
- * @default false
10223
- */
10224
- skipNodeModulesBundle?: boolean;
10225
10683
  alias?: Record<string, string>;
10684
+ /**
10685
+ * @default true
10686
+ */
10226
10687
  tsconfig?: string | boolean;
10227
10688
  /**
10228
- * Specifies the target runtime platform for the build.
10229
- *
10230
- * - `node`: Node.js and compatible runtimes (e.g., Deno, Bun).
10231
- * For CJS format, this is always set to `node` and cannot be changed.
10232
- * - `neutral`: A platform-agnostic target with no specific runtime assumptions.
10233
- * - `browser`: Web browsers.
10234
- *
10235
- * @default 'node'
10236
- * @see https://tsdown.dev/options/platform
10237
- */
10689
+ * Specifies the target runtime platform for the build.
10690
+ *
10691
+ * - `node`: Node.js and compatible runtimes (e.g., Deno, Bun).
10692
+ * For CJS format, this is always set to `node` and cannot be changed.
10693
+ * - `neutral`: A platform-agnostic target with no specific runtime assumptions.
10694
+ * - `browser`: Web browsers.
10695
+ *
10696
+ * @default 'node'
10697
+ * @see https://tsdown.dev/options/platform
10698
+ */
10238
10699
  platform?: "node" | "neutral" | "browser";
10239
10700
  /**
10240
- * Specifies the compilation target environment(s).
10241
- *
10242
- * Determines the JavaScript version or runtime(s) for which the code should be compiled.
10243
- * If not set, defaults to the value of `engines.node` in your project's `package.json`.
10244
- * If no `engines.node` field exists, no syntax transformations are applied.
10245
- *
10246
- * Accepts a single target (e.g., `'es2020'`, `'node18'`), an array of targets, or `false` to disable all transformations.
10247
- *
10248
- * @see {@link https://tsdown.dev/options/target#supported-targets} for a list of valid targets and more details.
10249
- *
10250
- * @example
10251
- * ```jsonc
10252
- * // Target a single environment
10253
- * { "target": "node18" }
10254
- * ```
10255
- *
10256
- * @example
10257
- * ```jsonc
10258
- * // Target multiple environments
10259
- * { "target": ["node18", "es2020"] }
10260
- * ```
10261
- *
10262
- * @example
10263
- * ```jsonc
10264
- * // Disable all syntax transformations
10265
- * { "target": false }
10266
- * ```
10267
- */
10701
+ * Specifies the compilation target environment(s).
10702
+ *
10703
+ * Determines the JavaScript version or runtime(s) for which the code should be compiled.
10704
+ * If not set, defaults to the value of `engines.node` in your project's `package.json`.
10705
+ * If no `engines.node` field exists, no syntax transformations are applied.
10706
+ *
10707
+ * Accepts a single target (e.g., `'es2020'`, `'node18'`, `'baseline-widely-available'`), an array of targets, or `false` to disable all transformations.
10708
+ *
10709
+ * @see {@link https://tsdown.dev/options/target#supported-targets} for a list of valid targets and more details.
10710
+ *
10711
+ * @example
10712
+ * ```jsonc
10713
+ * // Target a single environment
10714
+ * { "target": "node18" }
10715
+ * ```
10716
+ *
10717
+ * @example
10718
+ * ```jsonc
10719
+ * // Target multiple environments
10720
+ * { "target": ["node18", "es2020"] }
10721
+ * ```
10722
+ *
10723
+ * @example
10724
+ * ```jsonc
10725
+ * // Disable all syntax transformations
10726
+ * { "target": false }
10727
+ * ```
10728
+ */
10268
10729
  target?: string | string[] | false;
10269
10730
  /**
10270
- * Compile-time env variables, which can be accessed via `import.meta.env` or `process.env`.
10271
- * @example
10272
- * ```json
10273
- * {
10274
- * "DEBUG": true,
10275
- * "NODE_ENV": "production"
10276
- * }
10277
- * ```
10278
- */
10731
+ * Compile-time env variables, which can be accessed via `import.meta.env` or `process.env`.
10732
+ * @example
10733
+ * ```json
10734
+ * {
10735
+ * "DEBUG": true,
10736
+ * "NODE_ENV": "production"
10737
+ * }
10738
+ * ```
10739
+ *
10740
+ * @default {}
10741
+ */
10279
10742
  env?: Record<string, any>;
10280
10743
  /**
10281
- * Path to env file providing compile-time env variables.
10282
- * @example
10283
- * `.env`, `.env.production`, etc.
10284
- */
10744
+ * Path to env file providing compile-time env variables.
10745
+ * @example
10746
+ * `.env`, `.env.production`, etc.
10747
+ */
10285
10748
  envFile?: string;
10286
10749
  /**
10287
- * When loading env variables from `envFile`, only include variables with these prefixes.
10288
- * @default 'TSDOWN_'
10289
- */
10750
+ * When loading env variables from `envFile`, only include variables with these prefixes.
10751
+ * @default 'TSDOWN_'
10752
+ */
10290
10753
  envPrefix?: string | string[];
10291
10754
  define?: Record<string, string>;
10292
- /** @default false */
10755
+ /**
10756
+ * Inject CJS `__dirname` and `__filename` shims into ESM output.
10757
+ * Only applies when {@linkcode platform} is set to `node`.
10758
+ *
10759
+ * Note: `import.meta.url`, `import.meta.dirname`, and `import.meta.filename`
10760
+ * are always shimmed in CJS output, regardless of this option.
10761
+ *
10762
+ * @see https://tsdown.dev/options/shims
10763
+ * @default false
10764
+ */
10293
10765
  shims?: boolean;
10294
10766
  /**
10295
- * Configure tree shaking options.
10296
- * @see {@link https://rolldown.rs/options/treeshake} for more details.
10297
- * @default true
10298
- */
10767
+ * Configure tree shaking options.
10768
+ * @see {@link https://rolldown.rs/reference/InputOptions.treeshake} for more details.
10769
+ * @default true
10770
+ */
10299
10771
  treeshake?: boolean | TreeshakingOptions;
10300
10772
  /**
10301
- * Sets how input files are processed.
10302
- * For example, use 'js' to treat files as JavaScript or 'base64' for images.
10303
- * Lets you import or require files like images or fonts.
10304
- * @example
10305
- * ```json
10306
- * { '.jpg': 'asset', '.png': 'base64' }
10307
- * ```
10308
- */
10773
+ * Sets how input files are processed.
10774
+ * For example, use 'js' to treat files as JavaScript or 'base64' for images.
10775
+ * Lets you import or require files like images or fonts.
10776
+ * @example
10777
+ * ```json
10778
+ * { ".jpg": "asset", ".png": "base64" }
10779
+ * ```
10780
+ */
10309
10781
  loader?: ModuleTypes;
10310
10782
  /**
10311
- * If enabled, strips the `node:` protocol prefix from import source.
10312
- *
10313
- * @default false
10314
- * @deprecated Use `nodeProtocol: 'strip'` instead.
10315
- *
10316
- * @example
10317
- * // With removeNodeProtocol enabled:
10318
- * import('node:fs'); // becomes import('fs')
10319
- */
10320
- removeNodeProtocol?: boolean;
10321
- /**
10322
- * - If `true`, add `node:` prefix to built-in modules.
10323
- * - If `'strip'`, strips the `node:` protocol prefix from import source.
10324
- * - If `false`, does not modify the import source.
10325
- *
10326
- * @default false
10327
- *
10328
- * @example
10329
- * // With nodeProtocol enabled:
10330
- * import('fs'); // becomes import('node:fs')
10331
- * // With nodeProtocol set to 'strip':
10332
- * import('node:fs'); // becomes import('fs')
10333
- * // With nodeProtocol set to false:
10334
- * import('node:fs'); // remains import('node:fs')
10335
- *
10336
- */
10783
+ * Control whether built-in Node.js module imports use the `node:` protocol.
10784
+ *
10785
+ * - `true`: Add the `node:` prefix to built-in module imports.
10786
+ * - `'strip'`: Remove the `node:` prefix from built-in module imports.
10787
+ * - `false`: Do not transform built-in module imports.
10788
+ *
10789
+ * @default false
10790
+ *
10791
+ * @example
10792
+ * <caption>`nodeProtocol: true` — add the `node:` prefix</caption>
10793
+ *
10794
+ * ```ts
10795
+ * // Input
10796
+ * import 'fs'
10797
+ *
10798
+ * // Output
10799
+ * import 'node:fs'
10800
+ * ```
10801
+ *
10802
+ * @example
10803
+ * <caption>`nodeProtocol: 'strip'` — remove the `node:` prefix</caption>
10804
+ *
10805
+ * ```ts
10806
+ * // Input
10807
+ * import 'node:fs'
10808
+ *
10809
+ * // Output
10810
+ * import 'fs'
10811
+ * ```
10812
+ *
10813
+ * @example
10814
+ * <caption>`nodeProtocol: false` — do not transform imports</caption>
10815
+ *
10816
+ * ```ts
10817
+ * // Input
10818
+ * import 'node:fs'
10819
+ *
10820
+ * // Output
10821
+ * import 'node:fs'
10822
+ * ```
10823
+ */
10337
10824
  nodeProtocol?: "strip" | boolean;
10338
10825
  /**
10339
- * Controls which warnings are emitted during the build process. Each option can be set to `true` (emit warning) or `false` (suppress warning).
10340
- */
10826
+ * Controls which warnings are emitted during the build process. Each option can be set to `true` (emit warning) or `false` (suppress warning).
10827
+ */
10341
10828
  checks?: ChecksOptions & {
10342
10829
  /**
10343
- * If the config includes the `cjs` format and
10344
- * one of its target >= node 20.19.0 / 22.12.0,
10345
- * warn the user about the deprecation of CommonJS.
10346
- *
10347
- * @default true
10348
- */
10830
+ * If the config includes the `cjs` format and
10831
+ * one of its targets is a Node.js version that supports `require(esm)`
10832
+ * (`^20.19.0 || >=22.12.0`),
10833
+ * warn the user about the deprecation of CommonJS.
10834
+ *
10835
+ * @default true
10836
+ */
10349
10837
  legacyCjs?: boolean;
10350
10838
  };
10351
- plugins?: InputOptions["plugins"];
10839
+ plugins?: TsdownPluginOption;
10352
10840
  /**
10353
- * Use with caution; ensure you understand the implications.
10354
- */
10841
+ * Use with caution; ensure you understand the implications.
10842
+ */
10355
10843
  inputOptions?: InputOptions | ((options: InputOptions, format: NormalizedFormat, context: {
10356
10844
  cjsDts: boolean;
10357
10845
  }) => Awaitable<InputOptions | void | null>);
10358
10846
  /**
10359
- * Output format(s). Available formats are
10360
- * - `esm`: ESM
10361
- * - `cjs`: CommonJS
10362
- * - `iife`: IIFE
10363
- * - `umd`: UMD
10364
- *
10365
- * Defaults to ESM.
10366
- */
10847
+ * Output format(s). Available formats are
10848
+ * - `esm`: ESM
10849
+ * - `cjs`: CommonJS
10850
+ * - `iife`: IIFE
10851
+ * - `umd`: UMD
10852
+ *
10853
+ * @default 'esm'
10854
+ */
10367
10855
  format?: Format | Format[] | Partial<Record<Format, Partial<ResolvedConfig>>>;
10368
10856
  globalName?: string;
10369
- /** @default 'dist' */
10857
+ /**
10858
+ * @default 'dist'
10859
+ */
10370
10860
  outDir?: string;
10371
10861
  /**
10372
- * Whether to write the files to disk.
10373
- * This option is incompatible with watch mode.
10374
- * @default true
10375
- */
10862
+ * Whether to write the files to disk.
10863
+ * This option is incompatible with watch mode.
10864
+ * @default true
10865
+ */
10376
10866
  write?: boolean;
10377
10867
  /**
10378
- * Whether to generate source map files.
10379
- *
10380
- * Note that this option will always be `true` if you have
10381
- * [`declarationMap`](https://www.typescriptlang.org/tsconfig/#declarationMap)
10382
- * option enabled in your `tsconfig.json`.
10383
- *
10384
- * @default false
10385
- */
10868
+ * Whether to generate source map files.
10869
+ *
10870
+ * Note that this option will always be `true` if you have
10871
+ * {@link https://www.typescriptlang.org/tsconfig/#declarationMap | `declarationMap`}
10872
+ * option enabled in your `tsconfig.json`.
10873
+ *
10874
+ * @default false
10875
+ */
10386
10876
  sourcemap?: Sourcemap;
10387
10877
  /**
10388
- * Clean directories before build.
10389
- *
10390
- * Default to output directory.
10391
- * @default true
10392
- */
10878
+ * Clean directories before build.
10879
+ *
10880
+ * Default to output directory.
10881
+ * @default true
10882
+ */
10393
10883
  clean?: boolean | string[];
10394
10884
  /**
10395
- * @default false
10396
- */
10885
+ * @default false
10886
+ */
10397
10887
  minify?: boolean | "dce-only" | MinifyOptions;
10398
10888
  footer?: ChunkAddon;
10399
10889
  banner?: ChunkAddon;
10400
10890
  /**
10401
- * Determines whether unbundle mode is enabled.
10402
- * When set to true, the output files will mirror the input file structure.
10403
- * @default false
10404
- */
10891
+ * Determines whether `unbundle` is enabled.
10892
+ * When set to `true`, the output files will mirror the input file structure.
10893
+ * @default false
10894
+ */
10405
10895
  unbundle?: boolean;
10406
10896
  /**
10407
- * @deprecated Use `unbundle` instead.
10408
- * @default true
10409
- */
10410
- bundle?: boolean;
10411
- /**
10412
- * Use a fixed extension for output files.
10413
- * The extension will always be `.cjs` or `.mjs`.
10414
- * Otherwise, it will depend on the package type.
10415
- *
10416
- * Defaults to `true` if `platform` is set to `node`, `false` otherwise.
10417
- */
10897
+ * Specifies the root directory of input files, similar to TypeScript's `rootDir`.
10898
+ * This determines the output directory structure.
10899
+ *
10900
+ * By default, the root is computed as the common base directory of all entry files.
10901
+ *
10902
+ * @see https://www.typescriptlang.org/tsconfig/#rootDir
10903
+ */
10904
+ root?: string;
10905
+ /**
10906
+ * Use a fixed extension for output files.
10907
+ * The extension will always be `.cjs` or `.mjs`.
10908
+ * Otherwise, it will depend on the package type.
10909
+ *
10910
+ * Defaults to `true` if {@linkcode platform} is set to `node`,
10911
+ * `false` otherwise.
10912
+ *
10913
+ * @default platform === 'node'
10914
+ */
10418
10915
  fixedExtension?: boolean;
10419
10916
  /**
10420
- * Custom extensions for output files.
10421
- * `fixedExtension` will be overridden by this option.
10422
- */
10917
+ * Custom extensions for output files.
10918
+ * {@linkcode fixedExtension} will be overridden by this option.
10919
+ */
10423
10920
  outExtensions?: OutExtensionFactory;
10424
10921
  /**
10425
- * If enabled, appends hash to chunk filenames.
10426
- * @default true
10427
- */
10922
+ * If enabled, appends hash to chunk filenames.
10923
+ * @default true
10924
+ */
10428
10925
  hash?: boolean;
10429
10926
  /**
10430
- * @default true
10431
- */
10927
+ * Converts a single default export from an explicit CJS entry module to
10928
+ * `module.exports`. It does not apply to non-entry chunks emitted in
10929
+ * unbundle mode.
10930
+ *
10931
+ * @default true
10932
+ */
10432
10933
  cjsDefault?: boolean;
10433
10934
  /**
10434
- * Use with caution; ensure you understand the implications.
10435
- */
10935
+ * Use with caution; ensure you understand the implications.
10936
+ */
10436
10937
  outputOptions?: OutputOptions | ((options: OutputOptions, format: NormalizedFormat, context: {
10437
10938
  cjsDts: boolean;
10438
10939
  }) => Awaitable<OutputOptions | void | null>);
10439
10940
  /**
10440
- * The working directory of the config file.
10441
- * - Defaults to `process.cwd()` for root config.
10442
- * - Defaults to the package directory for workspace config.
10443
- */
10941
+ * The working directory of the config file.
10942
+ * - Defaults to {@linkcode process.cwd | process.cwd()} for root config.
10943
+ * - Defaults to the package directory for {@linkcode workspace} config.
10944
+ *
10945
+ * @default process.cwd()
10946
+ */
10444
10947
  cwd?: string;
10445
10948
  /**
10446
- * The name to show in CLI output. This is useful for monorepos or workspaces.
10447
- * When using workspace mode, this option defaults to the package name from package.json.
10448
- * In non-workspace mode, this option must be set explicitly for the name to show in the CLI output.
10449
- */
10949
+ * The name to show in CLI output. This is useful for monorepos or workspaces.
10950
+ * When using workspace mode, this option defaults to the package name from package.json.
10951
+ * In non-workspace mode, this option must be set explicitly for the name to show in the CLI output.
10952
+ */
10450
10953
  name?: string;
10451
10954
  /**
10452
- * Log level.
10453
- * @default 'info'
10454
- */
10955
+ * Log level.
10956
+ * @default 'info'
10957
+ */
10455
10958
  logLevel?: LogLevel;
10456
10959
  /**
10457
- * If true, fails the build on warnings.
10458
- * @default false
10459
- */
10960
+ * If true, fails the build on warnings.
10961
+ * @default false
10962
+ */
10460
10963
  failOnWarn?: boolean | CIOption;
10461
10964
  /**
10462
- * Custom logger.
10463
- */
10965
+ * Suppress warnings whose message matches the given pattern(s).
10966
+ *
10967
+ * Accepts a string (substring match), a `RegExp`, an array of either, or a
10968
+ * predicate function. Matched warnings are dropped before `failOnWarn` is
10969
+ * applied, so they won't fail the build.
10970
+ */
10971
+ suppressWarnings?: Arrayable<RegExp | string> | ((msg: string) => boolean);
10972
+ /**
10973
+ * Custom logger.
10974
+ */
10464
10975
  customLogger?: Logger;
10465
10976
  /**
10466
- * Reuse config from Vite or Vitest (experimental)
10467
- * @default false
10468
- */
10977
+ * Reuse config from Vite or Vitest (experimental)
10978
+ * @default false
10979
+ */
10469
10980
  fromVite?: boolean | "vitest";
10470
10981
  /**
10471
- * @default false
10472
- */
10982
+ * @default false
10983
+ */
10473
10984
  watch?: boolean | Arrayable<string>;
10474
10985
  /**
10475
- * Files or patterns to not watch while in watch mode.
10476
- */
10986
+ * Files or patterns to not watch while in watch mode.
10987
+ */
10477
10988
  ignoreWatch?: Arrayable<string | RegExp>;
10478
10989
  /**
10479
- * **[experimental]** Enable devtools.
10480
- *
10481
- *DevTools is still under development, and this is for early testers only.
10482
- *
10483
- * This may slow down the build process significantly.
10484
- *
10485
- * @default false
10486
- */
10990
+ * **[experimental]** Enable devtools.
10991
+ *
10992
+ * DevTools is still under development, and this is for early testers only.
10993
+ *
10994
+ * This may slow down the build process significantly.
10995
+ *
10996
+ * @default false
10997
+ */
10487
10998
  devtools?: WithEnabled<DevtoolsOptions>;
10488
10999
  /**
10489
- * You can specify command to be executed after a successful build, specially useful for Watch mode
10490
- */
11000
+ * You can specify command to be executed after a successful build, specially useful for Watch mode
11001
+ */
10491
11002
  onSuccess?: string | ((config: ResolvedConfig, signal: AbortSignal) => void | Promise<void>);
10492
11003
  /**
10493
- * Enables generation of TypeScript declaration files (`.d.ts`).
10494
- *
10495
- * By default, this option is auto-detected based on your project's `package.json`:
10496
- * - If {@link exe} is enabled, declaration file generation is disabled by default.
10497
- * - If the `types` field is present, or if the main `exports` contains a `types` entry, declaration file generation is enabled by default.
10498
- * - Otherwise, declaration file generation is disabled by default.
10499
- */
11004
+ * Enables generation of TypeScript declaration files (`.d.ts`).
11005
+ *
11006
+ * By default, this option is auto-detected:
11007
+ * - If {@linkcode exe} is enabled, declaration file generation is disabled by default.
11008
+ * - If the `types` or `typings` field is present in `package.json`, or if its `exports` field contains a `types` entry, declaration file generation is enabled by default.
11009
+ * - Otherwise, if the resolved `tsconfig.json` has `declaration: true`, declaration file generation is enabled by default.
11010
+ * - Otherwise, declaration file generation is disabled by default.
11011
+ */
10500
11012
  dts?: WithEnabled<Options$1>;
10501
11013
  /**
10502
- * Enable unused dependencies check with `unplugin-unused`
10503
- * Requires `unplugin-unused` to be installed.
10504
- * @default false
10505
- */
11014
+ * Enable unused dependencies check with `unplugin-unused`
11015
+ * Requires `unplugin-unused` to be installed.
11016
+ * @default false
11017
+ */
10506
11018
  unused?: WithEnabled<UnusedOptions>;
10507
11019
  /**
10508
- * Run publint after bundling.
10509
- * Requires `publint` to be installed.
10510
- * @default false
10511
- */
11020
+ * Run `publint` after bundling.
11021
+ * Requires `publint` to be installed.
11022
+ * @default false
11023
+ */
10512
11024
  publint?: WithEnabled<PublintOptions>;
10513
11025
  /**
10514
- * Run `arethetypeswrong` after bundling.
10515
- * Requires `@arethetypeswrong/core` to be installed.
10516
- *
10517
- * @default false
10518
- * @see https://github.com/arethetypeswrong/arethetypeswrong.github.io
10519
- */
11026
+ * Run `arethetypeswrong` after bundling.
11027
+ * Requires `@arethetypeswrong/core` to be installed.
11028
+ *
11029
+ * @default false
11030
+ * @see https://github.com/arethetypeswrong/arethetypeswrong.github.io
11031
+ */
10520
11032
  attw?: WithEnabled<AttwOptions>;
10521
11033
  /**
10522
- * Enable size reporting after bundling.
10523
- * @default true
10524
- */
11034
+ * Enable size reporting after bundling.
11035
+ * @default true
11036
+ */
10525
11037
  report?: WithEnabled<ReportOptions>;
10526
11038
  /**
10527
- * `import.meta.glob` support.
10528
- * @see https://vite.dev/guide/features.html#glob-import
10529
- * @default true
10530
- */
11039
+ * `import.meta.glob` support.
11040
+ * @see https://vite.dev/guide/features.html#glob-import
11041
+ * @default true
11042
+ */
10531
11043
  globImport?: boolean;
10532
11044
  /**
10533
- * Generate package exports for `package.json`.
10534
- *
10535
- * This will set the `main`, `module`, `types`, `exports` fields in `package.json`
10536
- * to point to the generated files.
10537
- */
11045
+ * Generate package exports for `package.json`.
11046
+ *
11047
+ * This will set the `exports` field in `package.json` to point to the
11048
+ * generated files.
11049
+ *
11050
+ * @default false
11051
+ */
10538
11052
  exports?: WithEnabled<ExportsOptions>;
10539
11053
  /**
10540
- * **[experimental]** CSS options.
10541
- * Requires `@tsdown/css` to be installed.
10542
- */
11054
+ * **[experimental]** CSS options.
11055
+ * Requires `@tsdown/css` to be installed.
11056
+ */
10543
11057
  css?: CssOptions;
10544
11058
  /**
10545
- * @deprecated Use `css.inject` instead.
10546
- */
10547
- injectStyle?: boolean;
10548
- /**
10549
- * @deprecated Alias for `copy`, will be removed in the future.
10550
- */
10551
- publicDir?: CopyOptions | CopyOptionsFn;
10552
- /**
10553
- * Copy files to another directory.
10554
- * @example
10555
- * ```ts
10556
- * [
10557
- * 'src/assets',
10558
- * 'src/env.d.ts',
10559
- * 'src/styles/**\/*.css',
10560
- * { from: 'src/assets', to: 'dist/assets' },
10561
- * { from: 'src/styles/**\/*.css', to: 'dist', flatten: true },
10562
- * ]
10563
- * ```
10564
- */
11059
+ * Copy files to another directory.
11060
+ * @example
11061
+ * ```ts
11062
+ * [
11063
+ * 'src/assets',
11064
+ * 'src/env.d.ts',
11065
+ * 'src/styles/**\/*.css',
11066
+ * { from: 'src/assets', to: 'dist/assets' },
11067
+ * { from: 'src/styles/**\/*.css', to: 'dist', flatten: true },
11068
+ * ]
11069
+ * ```
11070
+ */
10565
11071
  copy?: CopyOptions | CopyOptionsFn;
10566
11072
  hooks?: Partial<TsdownHooks> | ((hooks: Hookable<TsdownHooks>) => Awaitable<void>);
10567
11073
  /**
10568
- * **[experimental]** Bundle as executable using Node.js SEA (Single Executable Applications).
10569
- *
10570
- * This will bundle the output into a single executable file using Node.js SEA.
10571
- * Note that this is only supported on Node.js 25.7.0 and later, and is not supported in Bun or Deno.
10572
- */
11074
+ * **[experimental]** Bundle as executable using Node.js SEA (Single Executable Applications).
11075
+ *
11076
+ * This will bundle the output into a single executable file using Node.js SEA.
11077
+ * Note that this is only supported on Node.js 25.7.0 and later, and is not supported in Bun or Deno.
11078
+ *
11079
+ * @default false
11080
+ */
10573
11081
  exe?: WithEnabled<ExeOptions>;
10574
11082
  /**
10575
- * **[experimental]** Enable workspace mode.
10576
- * This allows you to build multiple packages in a monorepo.
10577
- */
11083
+ * **[experimental]** Enable workspace mode.
11084
+ * This allows you to build multiple packages in a monorepo.
11085
+ */
10578
11086
  workspace?: Workspace | Arrayable<string> | true;
11087
+ /**
11088
+ * Cannot be combined with `deps.neverBundle`; setting both throws an error.
11089
+ * @deprecated Use {@linkcode DepsConfig.neverBundle | deps.neverBundle} instead.
11090
+ */
11091
+ external?: ExternalOption;
11092
+ /**
11093
+ * Cannot be combined with `deps.alwaysBundle`; setting both throws an error.
11094
+ * @deprecated Use {@linkcode DepsConfig.alwaysBundle | deps.alwaysBundle} instead.
11095
+ */
11096
+ noExternal?: Arrayable<string | RegExp> | NoExternalFn;
10579
11097
  }
10580
11098
  interface InlineConfig extends UserConfig {
10581
11099
  /**
10582
- * Config file path
10583
- */
11100
+ * Config file path
11101
+ */
10584
11102
  config?: boolean | string;
10585
11103
  /**
10586
- * Config loader to use. It can only be set via CLI or API.
10587
- * @default 'auto'
10588
- */
10589
- configLoader?: "auto" | "native" | "unrun";
11104
+ * Config loader to use. It can only be set via CLI or API.
11105
+ * @default 'auto'
11106
+ */
11107
+ configLoader?: "auto" | "native" | "tsx" | "unrun";
10590
11108
  /**
10591
- * Filter configs by cwd or name.
10592
- */
11109
+ * Filter configs by cwd or name.
11110
+ */
10593
11111
  filter?: RegExp | Arrayable<string>;
11112
+ /**
11113
+ * Maximum number of Rolldown builds to run in parallel.
11114
+ */
11115
+ concurrency?: number;
10594
11116
  }
10595
- type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "fromVite" | "publicDir" | "bundle" | "injectStyle" | "removeNodeProtocol" | "external" | "noExternal" | "inlineOnly" | "skipNodeModulesBundle" | "logLevel" | "failOnWarn" | "customLogger" | "envFile" | "envPrefix">, "globalName" | "inputOptions" | "outputOptions" | "minify" | "define" | "alias" | "onSuccess" | "outExtensions" | "hooks" | "copy" | "loader" | "name" | "banner" | "footer" | "checks" | "css">, {
10596
- /** Resolved entry map (after glob expansion) */entry: Record<string, string>; /** Original entry config before glob resolution (for watch mode re-globbing) */
11117
+ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "fromVite" | "external" | "noExternal" | "logLevel" | "failOnWarn" | "suppressWarnings" | "customLogger" | "envFile" | "envPrefix">, "globalName" | "inputOptions" | "outputOptions" | "minify" | "define" | "alias" | "onSuccess" | "outExtensions" | "hooks" | "copy" | "loader" | "name" | "banner" | "footer" | "checks" | "css">, {
11118
+ /**
11119
+ * Resolved entry map (after glob expansion)
11120
+ */
11121
+ entry: Record<string, string>;
11122
+ /**
11123
+ * Original entry config before glob resolution (for watch mode re-globbing)
11124
+ */
10597
11125
  rawEntry?: TsdownInputOption;
10598
11126
  nameLabel: string | undefined;
10599
11127
  format: NormalizedFormat;
@@ -10604,6 +11132,12 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
10604
11132
  logger: Logger;
10605
11133
  ignoreWatch: Array<string | RegExp>;
10606
11134
  deps: ResolvedDepsConfig;
11135
+ /**
11136
+ * Resolved root directory of input files
11137
+ */
11138
+ root: string;
11139
+ configDeps: Set<string>;
11140
+ runBuild: ConcurrencyExecutor;
10607
11141
  dts: false | Options$1;
10608
11142
  report: false | ReportOptions;
10609
11143
  tsconfig: false | string;
@@ -10613,7 +11147,8 @@ type ResolvedConfig = Overwrite<MarkPartial<Omit<UserConfig, "workspace" | "from
10613
11147
  attw: false | AttwOptions;
10614
11148
  unused: false | UnusedOptions;
10615
11149
  exe: false | ExeOptions;
10616
- }>; //#endregion
11150
+ }>;
10617
11151
  //#endregion
10618
11152
  export { InlineConfig as t };
10619
- //# sourceMappingURL=index-CyAv0ucZ.d.mts.map
11153
+ export {};
11154
+ //# sourceMappingURL=index-DpixpHXl.d.mts.map