vercel 59.13.1 → 59.15.0

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 (459) hide show
  1. package/dist/chunks/add-7XFD2OHW.js +8 -0
  2. package/dist/chunks/add-HZC7AUBY.js +8 -0
  3. package/dist/chunks/add-PYUNJZ6K.js +8 -0
  4. package/dist/chunks/build-EFKQ6BND.js +7 -0
  5. package/dist/chunks/chunk-2B2MN3U5.js +8 -0
  6. package/dist/chunks/chunk-2H77IRPI.js +9 -0
  7. package/dist/chunks/chunk-2I64AYHG.js +7 -0
  8. package/dist/chunks/chunk-2PPXY24N.js +20 -0
  9. package/dist/chunks/chunk-2S6PE6GB.js +7 -0
  10. package/dist/chunks/{chunk-PIMIVJYK.js → chunk-3FMJYJUR.js} +7 -32
  11. package/dist/chunks/chunk-3IAQUNQH.js +7 -0
  12. package/dist/chunks/chunk-3QHJYVCY.js +7 -0
  13. package/dist/chunks/chunk-3QT7VOE3.js +7 -0
  14. package/dist/chunks/chunk-3TXEXPUW.js +7 -0
  15. package/dist/chunks/chunk-4MZK6JT6.js +7 -0
  16. package/dist/chunks/chunk-4NE5IQ25.js +7 -0
  17. package/dist/chunks/chunk-4PNSSS3L.js +7 -0
  18. package/dist/chunks/chunk-4QX77CP7.js +7 -0
  19. package/dist/chunks/chunk-57GHYR4Y.js +25 -0
  20. package/dist/chunks/chunk-5QQNYN4N.js +7 -0
  21. package/dist/chunks/chunk-5XJNPXQK.js +7 -0
  22. package/dist/chunks/chunk-6L236MNA.js +7 -0
  23. package/dist/chunks/chunk-6PFC3KWQ.js +7 -0
  24. package/dist/chunks/chunk-6QKS6QK7.js +7 -0
  25. package/dist/chunks/chunk-6RIQPTJA.js +8 -0
  26. package/dist/chunks/chunk-6TAQ6OWD.js +13 -0
  27. package/dist/chunks/chunk-6YAADRQB.js +9 -0
  28. package/dist/chunks/chunk-75CPY75D.js +15 -0
  29. package/dist/chunks/chunk-7HL2RPUO.js +7 -0
  30. package/dist/chunks/chunk-7PNYOSDU.js +9 -0
  31. package/dist/chunks/chunk-7R5FEXZ5.js +7 -0
  32. package/dist/chunks/chunk-7RMCBXBB.js +62 -0
  33. package/dist/chunks/chunk-7RR7MIMT.js +7 -0
  34. package/dist/chunks/chunk-7T6TL3GQ.js +7 -0
  35. package/dist/chunks/chunk-ADUYPK2G.js +13 -0
  36. package/dist/chunks/chunk-AFPOIDM5.js +7 -0
  37. package/dist/chunks/chunk-AM46JVVN.js +7 -0
  38. package/dist/chunks/chunk-AVSPFBLM.js +7 -0
  39. package/dist/chunks/chunk-B4ATVYZW.js +7 -0
  40. package/dist/chunks/chunk-BATE73HA.js +9 -0
  41. package/dist/chunks/{chunk-A3NYPUKZ.js → chunk-BRK4OB4B.js} +1 -11
  42. package/dist/chunks/chunk-BVH2AEFE.js +7 -0
  43. package/dist/chunks/chunk-CN2QZO4U.js +7 -0
  44. package/dist/chunks/chunk-COQGD2EI.js +8 -0
  45. package/dist/chunks/chunk-CUAIEGNE.js +7 -0
  46. package/dist/chunks/chunk-CVKB54WW.js +7 -0
  47. package/dist/chunks/{chunk-O26N2UPI.js → chunk-CZSOZKHX.js} +1 -9
  48. package/dist/chunks/chunk-D4MW3RDW.js +7 -0
  49. package/dist/chunks/chunk-DFVNL5ML.js +7 -0
  50. package/dist/chunks/chunk-EE3FVJLV.js +16 -0
  51. package/dist/chunks/chunk-EGMJRU5P.js +28 -0
  52. package/dist/chunks/chunk-ENBTTYJR.js +7 -0
  53. package/dist/chunks/chunk-ENS6KX2F.js +7 -0
  54. package/dist/chunks/chunk-EOBD4ZEG.js +8 -0
  55. package/dist/chunks/chunk-EOCTK4EA.js +7 -0
  56. package/dist/chunks/chunk-EQ52F4LH.js +7 -0
  57. package/dist/chunks/chunk-ETV3C2CV.js +7 -0
  58. package/dist/chunks/chunk-EVZRQGNK.js +7 -0
  59. package/dist/chunks/chunk-F2ZWW2IO.js +8 -0
  60. package/dist/chunks/chunk-FAW6NBLQ.js +7 -0
  61. package/dist/chunks/chunk-FI772UVH.js +7 -0
  62. package/dist/chunks/chunk-FKCOBJFH.js +7 -0
  63. package/dist/chunks/chunk-FVGESGJI.js +45 -0
  64. package/dist/chunks/chunk-G5FC5ZCO.js +9 -0
  65. package/dist/chunks/chunk-G6CTAHKY.js +39 -0
  66. package/dist/chunks/chunk-G7Y77DFH.js +7 -0
  67. package/dist/chunks/chunk-GHAY4PSD.js +7 -0
  68. package/dist/chunks/chunk-GHM7V3GG.js +7 -0
  69. package/dist/chunks/chunk-GRNTLNC7.js +7 -0
  70. package/dist/chunks/chunk-GTRGQIY2.js +10 -0
  71. package/dist/chunks/chunk-GU6VIFR5.js +7 -0
  72. package/dist/chunks/{constants-WEQVJSYS.js → chunk-GZNDA6SV.js} +2 -9
  73. package/dist/chunks/chunk-HBFPLBTX.js +10 -0
  74. package/dist/chunks/chunk-HEGJZJO7.js +7 -0
  75. package/dist/chunks/chunk-HSJ6AHWG.js +12 -0
  76. package/dist/chunks/chunk-HTC6KO2B.js +7 -0
  77. package/dist/chunks/chunk-HVUHCRZB.js +18 -0
  78. package/dist/chunks/chunk-HZZ5L472.js +7 -0
  79. package/dist/chunks/chunk-IVSSTHB6.js +7 -0
  80. package/dist/chunks/chunk-IVWPQYIH.js +7 -0
  81. package/dist/chunks/chunk-J3U3L45Y.js +7 -0
  82. package/dist/chunks/chunk-JAJW3P42.js +7 -0
  83. package/dist/chunks/chunk-JEIMW3CO.js +7 -0
  84. package/dist/chunks/chunk-JIYY3B4C.js +7 -0
  85. package/dist/chunks/chunk-JKTQV2QJ.js +7 -0
  86. package/dist/chunks/chunk-JTVVBRW7.js +7 -0
  87. package/dist/chunks/chunk-JYAUUIR4.js +7 -0
  88. package/dist/chunks/chunk-JZRMH5UA.js +7 -0
  89. package/dist/chunks/chunk-K2RAW5DI.js +10 -0
  90. package/dist/chunks/chunk-K3KJZLBD.js +7 -0
  91. package/dist/chunks/chunk-KK4AJES5.js +36 -0
  92. package/dist/chunks/chunk-KKS7XWEX.js +7 -0
  93. package/dist/chunks/chunk-KNEWCUWF.js +14 -0
  94. package/dist/chunks/chunk-KO733OJG.js +9 -0
  95. package/dist/chunks/chunk-L243RUIR.js +19 -0
  96. package/dist/chunks/chunk-L3JDEHCQ.js +7 -0
  97. package/dist/chunks/chunk-LDM3SQAU.js +13 -0
  98. package/dist/chunks/chunk-LNPMDXBJ.js +7 -0
  99. package/dist/chunks/chunk-M2W3HKV3.js +23 -0
  100. package/dist/chunks/chunk-M2XARQBF.js +9 -0
  101. package/dist/chunks/chunk-M5AV545M.js +7 -0
  102. package/dist/chunks/chunk-MAVRGZQP.js +7 -0
  103. package/dist/chunks/chunk-MBL6TXEJ.js +7 -0
  104. package/dist/chunks/chunk-MEAY2K5Z.js +11 -0
  105. package/dist/chunks/chunk-MY4MONOH.js +7 -0
  106. package/dist/chunks/chunk-N3N5UHIL.js +7 -0
  107. package/dist/chunks/chunk-N3ZZ7FHQ.js +7 -0
  108. package/dist/chunks/chunk-N6CNMMSZ.js +7 -0
  109. package/dist/chunks/chunk-NBVY237X.js +7 -0
  110. package/dist/chunks/chunk-NGNOUPWS.js +25 -0
  111. package/dist/chunks/chunk-NHTF332K.js +7 -0
  112. package/dist/chunks/chunk-NNP5NITU.js +15 -0
  113. package/dist/chunks/chunk-NS4FH2TY.js +11 -0
  114. package/dist/chunks/chunk-NUGLE4QY.js +11 -0
  115. package/dist/chunks/chunk-NWFHHUKZ.js +7 -0
  116. package/dist/chunks/chunk-O7G3CZ42.js +7 -0
  117. package/dist/chunks/chunk-OD6RZ3XZ.js +8 -0
  118. package/dist/chunks/chunk-OHDEHZLX.js +7 -0
  119. package/dist/chunks/chunk-OK3S6KFX.js +16 -0
  120. package/dist/chunks/chunk-OKZDOANA.js +23 -0
  121. package/dist/chunks/chunk-OSCCYU74.js +7 -0
  122. package/dist/chunks/chunk-OUHPDA7Q.js +7 -0
  123. package/dist/chunks/chunk-P2O5DOYE.js +7 -0
  124. package/dist/chunks/chunk-PHW54NU5.js +13 -0
  125. package/dist/chunks/chunk-PPCFQQSU.js +7 -0
  126. package/dist/chunks/chunk-QGIGNMII.js +8 -0
  127. package/dist/chunks/chunk-QGIQK47P.js +7 -0
  128. package/dist/chunks/chunk-QHJLRTVY.js +7 -0
  129. package/dist/chunks/chunk-QR7QPUFN.js +7 -0
  130. package/dist/chunks/chunk-QTKJC2O5.js +7 -0
  131. package/dist/chunks/chunk-R2TGGVCT.js +19 -0
  132. package/dist/chunks/chunk-RAIBQIKB.js +7 -0
  133. package/dist/chunks/chunk-RCTYVKM5.js +16 -0
  134. package/dist/chunks/chunk-RKAUVPOQ.js +86 -0
  135. package/dist/chunks/chunk-S5CEIACD.js +7 -0
  136. package/dist/chunks/chunk-SGWVKRSR.js +8 -0
  137. package/dist/chunks/chunk-SOJCELXH.js +7 -0
  138. package/dist/chunks/chunk-SXUEGVWB.js +7 -0
  139. package/dist/chunks/{pkg-56KRLZ5K.js → chunk-T3GQAMBJ.js} +1 -7
  140. package/dist/chunks/chunk-T52FMXWC.js +7 -0
  141. package/dist/chunks/{chunk-2473DUBR.js → chunk-TG2RCYTH.js} +1 -9
  142. package/dist/chunks/chunk-TJCIHDPZ.js +9 -0
  143. package/dist/chunks/chunk-TKBXN4H3.js +9 -0
  144. package/dist/chunks/chunk-TRTEXGVN.js +7 -0
  145. package/dist/chunks/chunk-TXELFFNK.js +15 -0
  146. package/dist/chunks/chunk-U56NHYAH.js +7 -0
  147. package/dist/chunks/chunk-U7KCDTCH.js +12 -0
  148. package/dist/chunks/chunk-UETTIYUQ.js +8 -0
  149. package/dist/chunks/chunk-UGMZQZJE.js +24 -0
  150. package/dist/chunks/chunk-ULLWCOYC.js +7 -0
  151. package/dist/chunks/chunk-UXTHEQVJ.js +21 -0
  152. package/dist/chunks/chunk-VLZ47RWM.js +44 -0
  153. package/dist/chunks/chunk-WKZ6JSGZ.js +7 -0
  154. package/dist/chunks/chunk-WPS6JZF6.js +7 -0
  155. package/dist/chunks/chunk-WRILLB46.js +7 -0
  156. package/dist/chunks/chunk-WUZD4KBL.js +7 -0
  157. package/dist/chunks/chunk-XCJDGQO7.js +7 -0
  158. package/dist/chunks/{update-route-version-E3V47KNI.js → chunk-XD2LZRBS.js} +1 -7
  159. package/dist/chunks/{chunk-64IF634X.js → chunk-XFVGX5HG.js} +1 -12
  160. package/dist/chunks/chunk-XHOGOH6N.js +7 -0
  161. package/dist/chunks/chunk-XPXOV5UO.js +7 -0
  162. package/dist/chunks/chunk-XQ73QIQ3.js +7 -0
  163. package/dist/chunks/chunk-XSVBYDYI.js +8 -0
  164. package/dist/chunks/chunk-YKZLKOOD.js +12 -0
  165. package/dist/chunks/chunk-YMVDWVMO.js +7 -0
  166. package/dist/chunks/chunk-YPTLSODC.js +7 -0
  167. package/dist/chunks/chunk-YV6CTDHR.js +7 -0
  168. package/dist/chunks/chunk-Z6Y55QJW.js +23 -0
  169. package/dist/chunks/chunk-ZDX75YNZ.js +7 -0
  170. package/dist/chunks/chunk-ZIPVX7LD.js +7 -0
  171. package/dist/chunks/chunk-ZKYS7EAB.js +7 -0
  172. package/dist/chunks/chunk-ZT6KDLLY.js +20 -0
  173. package/dist/chunks/chunk-ZXE4XYIV.js +7 -0
  174. package/dist/chunks/chunk-ZZQRMRWD.js +20 -0
  175. package/dist/chunks/cjs-GOQHXIHX.js +54 -0
  176. package/dist/chunks/clear-5NQAVWIF.js +8 -0
  177. package/dist/chunks/compile-vercel-config-6J2XUFRK.js +7 -0
  178. package/dist/chunks/config-CKYRXZXL.js +7 -0
  179. package/dist/chunks/config-VNUY4RJ4.js +8 -0
  180. package/dist/chunks/connect-git-provider-GIU5WZ52.js +7 -0
  181. package/dist/chunks/constants-G4UYVLOF.js +7 -0
  182. package/dist/chunks/create-project-SRQGD4JY.js +7 -0
  183. package/dist/chunks/delete-GTXXCSKQ.js +10 -0
  184. package/dist/chunks/delete-HRJEO4MI.js +9 -0
  185. package/dist/chunks/detect-projects-2GNCZ4CS.js +7 -0
  186. package/dist/chunks/detect-services-GHILEGNU.js +7 -0
  187. package/dist/chunks/disable-RWCRVG5O.js +7 -0
  188. package/dist/chunks/discard-SHFIYCJU.js +14 -0
  189. package/dist/chunks/edit-DMO3NSO2.js +9 -0
  190. package/dist/chunks/edit-EVQI2RSS.js +8 -0
  191. package/dist/chunks/enable-AWDU6STD.js +7 -0
  192. package/dist/chunks/esm-7HVUFWMN.js +7 -0
  193. package/dist/chunks/esm-BZBEM7YA.js +7 -0
  194. package/dist/chunks/esm-CXICLFA3.js +9 -0
  195. package/dist/chunks/esm-HDEHVK7I.js +9 -0
  196. package/dist/chunks/esm-NQRLKALI.js +20 -0
  197. package/dist/chunks/esm-SZZI53W7.js +7 -0
  198. package/dist/chunks/esm-WGJFGCLK.js +7 -0
  199. package/dist/chunks/exec-4AISDHUV.js +16372 -0
  200. package/dist/chunks/export-IQKTA4RS.js +19 -0
  201. package/dist/chunks/fetch-proxy-AEAWC6MD.js +7 -0
  202. package/dist/chunks/future-E2FHKPJN.js +7 -0
  203. package/dist/chunks/generate-cert-for-deploy-VKOWC4PZ.js +7 -0
  204. package/dist/chunks/image-LDFYNOCA.js +7 -0
  205. package/dist/chunks/import-builders-P7CXSX2D.js +7 -0
  206. package/dist/chunks/inspect-3N47ODIH.js +15 -0
  207. package/dist/chunks/inspect-53SGDDAH.js +20 -0
  208. package/dist/chunks/inspect-5INZDUQS.js +19 -0
  209. package/dist/chunks/inspect-WMT2M335.js +9 -0
  210. package/dist/chunks/inspect-Y6BUCOUV.js +13 -0
  211. package/dist/chunks/list-BIAPHKFM.js +11 -0
  212. package/dist/chunks/list-DMOCRRSE.js +16 -0
  213. package/dist/chunks/list-K5J7OULR.js +10 -0
  214. package/dist/chunks/login-DEAEVUHM.js +7 -0
  215. package/dist/chunks/login-SRVNHI4Y.js +9 -0
  216. package/dist/chunks/logs-GK7CJBYY.js +7 -0
  217. package/dist/chunks/ls-7ZX6DCJW.js +12 -0
  218. package/dist/chunks/ls-AJWN5ZR4.js +12 -0
  219. package/dist/chunks/ls-BFJWCRLZ.js +12 -0
  220. package/dist/chunks/ls-KGIE6HCO.js +12 -0
  221. package/dist/chunks/ls-UVKTHBTE.js +8 -0
  222. package/dist/chunks/ls-WEG45IOC.js +8 -0
  223. package/dist/chunks/native-self-update-KOJVRMHR.js +7 -0
  224. package/dist/chunks/open-OEWPI5G6.js +7 -0
  225. package/dist/chunks/openapi-MO5HYMHR.js +7 -0
  226. package/dist/chunks/permissions-EPQBQFE3.js +7 -0
  227. package/dist/chunks/pkg-YFU67U7I.js +7 -0
  228. package/dist/chunks/prompt-missing-credentials-IUHLYSQU.js +7 -0
  229. package/dist/chunks/publish-JG7MEPWT.js +15 -0
  230. package/dist/chunks/pull-MRKXG6TO.js +7 -0
  231. package/dist/chunks/purchase-domain-if-available-O5ARXEZ5.js +7 -0
  232. package/dist/chunks/push-XOXJDFYO.js +7 -0
  233. package/dist/chunks/query-AL7C6WV2.js +12 -0
  234. package/dist/chunks/reauthenticate-SH4XR7NH.js +7 -0
  235. package/dist/chunks/reorder-5DMRFDBY.js +10 -0
  236. package/dist/chunks/reply-WSRNZWFD.js +9 -0
  237. package/dist/chunks/repo-info-to-url-SK3VX6UL.js +7 -0
  238. package/dist/chunks/resolve-YJUXQVOZ.js +12 -0
  239. package/dist/chunks/resolve-deployment-framework-preset-XF3NJIDS.js +7 -0
  240. package/dist/chunks/restore-QT3DBGKU.js +16 -0
  241. package/dist/chunks/rm-MHPIUEZ5.js +8 -0
  242. package/dist/chunks/rm-MVZFU6RG.js +8 -0
  243. package/dist/chunks/rm-PXR4J2US.js +8 -0
  244. package/dist/chunks/rm-WB2AIP3N.js +8 -0
  245. package/dist/chunks/rm-XRP6MRUT.js +8 -0
  246. package/dist/chunks/routes-5DERZV5M.js +7 -0
  247. package/dist/chunks/rule-inspect-TT3DRGCS.js +8 -0
  248. package/dist/chunks/rules-B5GW4KJH.js +7 -0
  249. package/dist/chunks/schema-JY5QTZOG.js +14 -0
  250. package/dist/chunks/schema-KCNKVFT3.js +44 -0
  251. package/dist/chunks/select-org-KSCYSESV.js +7 -0
  252. package/dist/chunks/set-7BANEWEL.js +7 -0
  253. package/dist/chunks/setup-and-link-ZAV3EFGC.js +7 -0
  254. package/dist/chunks/slugify-O5DBATYT.js +7 -0
  255. package/dist/chunks/stamp-OX4YO3KY.js +7 -0
  256. package/dist/chunks/tags-VZR66NUC.js +7 -0
  257. package/dist/chunks/types-LRXQEDYI.js +14 -0
  258. package/dist/chunks/update-RBFNNSWE.js +8 -0
  259. package/dist/chunks/update-route-version-XZAFPQJC.js +7 -0
  260. package/dist/chunks/utils-B5ZTMQKY.js +58 -0
  261. package/dist/chunks/vlt-builder-importer-YVCYYRVV.js +11 -0
  262. package/dist/commands/build/index.js +24 -4918
  263. package/dist/commands/deploy/index.js +43 -2875
  264. package/dist/commands/dev/index.js +56 -23857
  265. package/dist/commands/env/index.js +26 -3411
  266. package/dist/commands/link/index.js +4 -284
  267. package/dist/commands/list/index.js +6 -566
  268. package/dist/commands-bulk.js +1204 -86657
  269. package/dist/help.js +1 -8
  270. package/dist/index.js +19 -2591
  271. package/dist/version.mjs +1 -1
  272. package/package.json +48 -49
  273. package/dist/chunks/add-7OX6PBFD.js +0 -145
  274. package/dist/chunks/add-7RYUFBZ3.js +0 -221
  275. package/dist/chunks/add-FX5WWUXU.js +0 -196
  276. package/dist/chunks/build-Q3TR46K4.js +0 -251
  277. package/dist/chunks/chunk-26CU4Q3C.js +0 -598
  278. package/dist/chunks/chunk-2GXA4NGG.js +0 -163
  279. package/dist/chunks/chunk-2HSQ7YUK.js +0 -93
  280. package/dist/chunks/chunk-2JIX6UMI.js +0 -4626
  281. package/dist/chunks/chunk-2QFYCMKN.js +0 -3495
  282. package/dist/chunks/chunk-332LMJLZ.js +0 -16014
  283. package/dist/chunks/chunk-3FIEWWMM.js +0 -59
  284. package/dist/chunks/chunk-3HZLXCVL.js +0 -137
  285. package/dist/chunks/chunk-3VM7HWF6.js +0 -104
  286. package/dist/chunks/chunk-3ZE5CFVM.js +0 -346
  287. package/dist/chunks/chunk-4IALDGB7.js +0 -22
  288. package/dist/chunks/chunk-4KD5BYHB.js +0 -127
  289. package/dist/chunks/chunk-4TUMNBEE.js +0 -231
  290. package/dist/chunks/chunk-57RHXXXG.js +0 -150
  291. package/dist/chunks/chunk-5AJPMLDV.js +0 -28
  292. package/dist/chunks/chunk-5JDX6XOS.js +0 -1536
  293. package/dist/chunks/chunk-5NF5HOBJ.js +0 -1854
  294. package/dist/chunks/chunk-5ORMFNXL.js +0 -13413
  295. package/dist/chunks/chunk-66LPM47Z.js +0 -137
  296. package/dist/chunks/chunk-6E6KPBXY.js +0 -43
  297. package/dist/chunks/chunk-76CB3CF2.js +0 -522
  298. package/dist/chunks/chunk-7F5RNOTP.js +0 -14059
  299. package/dist/chunks/chunk-7MRDIPJY.js +0 -107
  300. package/dist/chunks/chunk-7NRNFV77.js +0 -875
  301. package/dist/chunks/chunk-7Q45OKWR.js +0 -149
  302. package/dist/chunks/chunk-AHU7WNL2.js +0 -24
  303. package/dist/chunks/chunk-AINIBIP4.js +0 -39
  304. package/dist/chunks/chunk-AKLTIZCU.js +0 -46
  305. package/dist/chunks/chunk-B5XLQKHI.js +0 -849
  306. package/dist/chunks/chunk-BEQV3X2L.js +0 -86
  307. package/dist/chunks/chunk-CJV7J7B5.js +0 -314
  308. package/dist/chunks/chunk-CV5YC2EN.js +0 -867
  309. package/dist/chunks/chunk-DQ23J2KG.js +0 -305
  310. package/dist/chunks/chunk-E336ZXPP.js +0 -43
  311. package/dist/chunks/chunk-EDMW7SBH.js +0 -246
  312. package/dist/chunks/chunk-EEV2LKFC.js +0 -58
  313. package/dist/chunks/chunk-EFYMIIER.js +0 -40
  314. package/dist/chunks/chunk-EIBH6FCR.js +0 -253
  315. package/dist/chunks/chunk-EKPSCRJZ.js +0 -26
  316. package/dist/chunks/chunk-EOZFDJSY.js +0 -18
  317. package/dist/chunks/chunk-EZKW5YJ2.js +0 -177
  318. package/dist/chunks/chunk-F4S6Q4OY.js +0 -79
  319. package/dist/chunks/chunk-FGDKMNEN.js +0 -21
  320. package/dist/chunks/chunk-FRVG4OW3.js +0 -7438
  321. package/dist/chunks/chunk-G5FBSUL4.js +0 -822
  322. package/dist/chunks/chunk-GDOUDU6O.js +0 -74
  323. package/dist/chunks/chunk-GGP5R3FU.js +0 -129
  324. package/dist/chunks/chunk-GQRG7VFK.js +0 -257
  325. package/dist/chunks/chunk-GVNCVKCI.js +0 -68
  326. package/dist/chunks/chunk-GY5I4AYD.js +0 -122
  327. package/dist/chunks/chunk-GZLPFESR.js +0 -48
  328. package/dist/chunks/chunk-HB4UKFDO.js +0 -1295
  329. package/dist/chunks/chunk-HD4DR3DA.js +0 -818
  330. package/dist/chunks/chunk-HKHXKSXQ.js +0 -152
  331. package/dist/chunks/chunk-HM24ZWQL.js +0 -174
  332. package/dist/chunks/chunk-HRXRELD3.js +0 -338
  333. package/dist/chunks/chunk-IB5L4LKZ.js +0 -1082
  334. package/dist/chunks/chunk-IIMSID24.js +0 -104
  335. package/dist/chunks/chunk-IK6PC2JA.js +0 -1288
  336. package/dist/chunks/chunk-IUC3TR3S.js +0 -92
  337. package/dist/chunks/chunk-JIK2FUMT.js +0 -1892
  338. package/dist/chunks/chunk-JSD4EZL3.js +0 -34
  339. package/dist/chunks/chunk-K3RED3VO.js +0 -566
  340. package/dist/chunks/chunk-KFWQ3EFH.js +0 -151
  341. package/dist/chunks/chunk-KU2WCB6G.js +0 -1708
  342. package/dist/chunks/chunk-KW7BS25T.js +0 -466
  343. package/dist/chunks/chunk-KXDWXXJH.js +0 -70
  344. package/dist/chunks/chunk-KXTXGYG7.js +0 -577
  345. package/dist/chunks/chunk-L4H3DP65.js +0 -417
  346. package/dist/chunks/chunk-LE5V7G2U.js +0 -559
  347. package/dist/chunks/chunk-LVCCV2YJ.js +0 -324
  348. package/dist/chunks/chunk-MUGF3SGQ.js +0 -49
  349. package/dist/chunks/chunk-N6HP5BLI.js +0 -18190
  350. package/dist/chunks/chunk-ND5CF2H3.js +0 -53
  351. package/dist/chunks/chunk-NFU4XJIR.js +0 -120
  352. package/dist/chunks/chunk-NSGRICJ2.js +0 -506
  353. package/dist/chunks/chunk-NW34PW6V.js +0 -1772
  354. package/dist/chunks/chunk-OAMU5QO6.js +0 -18
  355. package/dist/chunks/chunk-P3SKP5WM.js +0 -27
  356. package/dist/chunks/chunk-P4QNYOFB.js +0 -96
  357. package/dist/chunks/chunk-P7VSBDR4.js +0 -827
  358. package/dist/chunks/chunk-PEC3CQSK.js +0 -90
  359. package/dist/chunks/chunk-PMSMUMUO.js +0 -30
  360. package/dist/chunks/chunk-PNGVSHR3.js +0 -40
  361. package/dist/chunks/chunk-POOO7W47.js +0 -916
  362. package/dist/chunks/chunk-PRWJUY5U.js +0 -848
  363. package/dist/chunks/chunk-Q2DGFCO7.js +0 -579
  364. package/dist/chunks/chunk-QRFRS2JH.js +0 -242
  365. package/dist/chunks/chunk-QSJ6Q5QP.js +0 -255
  366. package/dist/chunks/chunk-RBIFXFZX.js +0 -52
  367. package/dist/chunks/chunk-RN6V5ODW.js +0 -114
  368. package/dist/chunks/chunk-RVBZ64EQ.js +0 -52
  369. package/dist/chunks/chunk-S3HYE6ZE.js +0 -61
  370. package/dist/chunks/chunk-S7KYDPEM.js +0 -1564
  371. package/dist/chunks/chunk-SLPSPYVR.js +0 -334
  372. package/dist/chunks/chunk-SPRQ4IBQ.js +0 -11441
  373. package/dist/chunks/chunk-T3NB7VQG.js +0 -2399
  374. package/dist/chunks/chunk-TLPHZ7M4.js +0 -81
  375. package/dist/chunks/chunk-TO7QZGYK.js +0 -105
  376. package/dist/chunks/chunk-TOXZAP5I.js +0 -90
  377. package/dist/chunks/chunk-TZ2YI2VH.js +0 -87
  378. package/dist/chunks/chunk-U4ZLWJQD.js +0 -2914
  379. package/dist/chunks/chunk-UG2WOB5L.js +0 -150
  380. package/dist/chunks/chunk-UXKNSAP2.js +0 -233
  381. package/dist/chunks/chunk-V4RMJKQP.js +0 -36
  382. package/dist/chunks/chunk-VGIMO3ZK.js +0 -17
  383. package/dist/chunks/chunk-VP5Y3SZG.js +0 -106
  384. package/dist/chunks/chunk-VUS2JQB2.js +0 -121
  385. package/dist/chunks/chunk-VXYGCOKL.js +0 -28
  386. package/dist/chunks/chunk-WGGABYO5.js +0 -31
  387. package/dist/chunks/chunk-XDGOOW3K.js +0 -60
  388. package/dist/chunks/chunk-XEVKGAVI.js +0 -2099
  389. package/dist/chunks/chunk-XFF5TGRA.js +0 -303
  390. package/dist/chunks/chunk-XNIZGCN5.js +0 -58
  391. package/dist/chunks/chunk-XPJLPUKO.js +0 -117
  392. package/dist/chunks/chunk-XUAWTW4W.js +0 -467
  393. package/dist/chunks/chunk-YPQSDAEW.js +0 -29
  394. package/dist/chunks/chunk-YS76T533.js +0 -270
  395. package/dist/chunks/chunk-Z6YZMXVN.js +0 -233
  396. package/dist/chunks/chunk-ZDU2NODC.js +0 -104
  397. package/dist/chunks/chunk-ZW6HETRE.js +0 -97
  398. package/dist/chunks/cjs-DV4RM7XU.js +0 -20743
  399. package/dist/chunks/clear-GIAFWC5X.js +0 -141
  400. package/dist/chunks/compile-vercel-config-QJGEQKK4.js +0 -33
  401. package/dist/chunks/config-AOA2HS4R.js +0 -168
  402. package/dist/chunks/config-HYBSW733.js +0 -127
  403. package/dist/chunks/delete-BBFI75A2.js +0 -226
  404. package/dist/chunks/delete-DJ7RI2NX.js +0 -159
  405. package/dist/chunks/detect-projects-ODNU4PK2.js +0 -18
  406. package/dist/chunks/detect-services-Q2DVXVMH.js +0 -40
  407. package/dist/chunks/disable-P7X2V5LS.js +0 -198
  408. package/dist/chunks/discard-JNQBH4XU.js +0 -145
  409. package/dist/chunks/edit-AXQEMBQC.js +0 -162
  410. package/dist/chunks/edit-BO3GXEKA.js +0 -647
  411. package/dist/chunks/enable-NC4BN7EQ.js +0 -204
  412. package/dist/chunks/exec-4IPHZ55G.js +0 -1291
  413. package/dist/chunks/export-HQ42UNYD.js +0 -177
  414. package/dist/chunks/fetch-proxy-R3JZNXBZ.js +0 -99
  415. package/dist/chunks/image-UM4FQYOA.js +0 -75
  416. package/dist/chunks/import-builders-F6SWNCHK.js +0 -39
  417. package/dist/chunks/inspect-EXEA57MP.js +0 -145
  418. package/dist/chunks/inspect-H3M3XJNB.js +0 -596
  419. package/dist/chunks/inspect-MTNQOLNM.js +0 -175
  420. package/dist/chunks/inspect-PYFF2K4X.js +0 -171
  421. package/dist/chunks/inspect-XF324IQ2.js +0 -216
  422. package/dist/chunks/list-4JHZJUBS.js +0 -426
  423. package/dist/chunks/list-YEN54SGY.js +0 -387
  424. package/dist/chunks/list-ZKD2O4D2.js +0 -404
  425. package/dist/chunks/login-56KGZQI2.js +0 -233
  426. package/dist/chunks/ls-ELYVF6EU.js +0 -223
  427. package/dist/chunks/ls-HZEMZY2R.js +0 -188
  428. package/dist/chunks/ls-IJW74NG3.js +0 -175
  429. package/dist/chunks/ls-OAGYLILX.js +0 -210
  430. package/dist/chunks/ls-QNTHMTIH.js +0 -183
  431. package/dist/chunks/ls-WW5UFH5B.js +0 -204
  432. package/dist/chunks/open-D2E5TEKN.js +0 -116
  433. package/dist/chunks/permissions-CFUXWXSK.js +0 -99
  434. package/dist/chunks/publish-BP4IUYNM.js +0 -155
  435. package/dist/chunks/pull-DL72B6RW.js +0 -45
  436. package/dist/chunks/push-6YCS4YQW.js +0 -191
  437. package/dist/chunks/query-7N3YB4LE.js +0 -725
  438. package/dist/chunks/reorder-YJN36TPT.js +0 -412
  439. package/dist/chunks/reply-3U3O7LNG.js +0 -176
  440. package/dist/chunks/resolve-TT75WCWT.js +0 -237
  441. package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +0 -36
  442. package/dist/chunks/restore-6UF6W23A.js +0 -252
  443. package/dist/chunks/rm-3QIDFPVA.js +0 -162
  444. package/dist/chunks/rm-6MJ7ZPXQ.js +0 -148
  445. package/dist/chunks/rm-JZRS2NBH.js +0 -147
  446. package/dist/chunks/rm-KI4W2HYP.js +0 -322
  447. package/dist/chunks/rm-QCQXVB54.js +0 -195
  448. package/dist/chunks/routes-QVMBXOSX.js +0 -24
  449. package/dist/chunks/rule-inspect-PX73J52Q.js +0 -123
  450. package/dist/chunks/rules-Q334NBUC.js +0 -89
  451. package/dist/chunks/schema-GRTOHAZO.js +0 -381
  452. package/dist/chunks/schema-YV3XYL3A.js +0 -237
  453. package/dist/chunks/set-J3AQKL6V.js +0 -250
  454. package/dist/chunks/setup-and-link-R5N7WJ46.js +0 -65
  455. package/dist/chunks/stamp-AA7R3MZS.js +0 -16
  456. package/dist/chunks/tags-2VLJ4VIH.js +0 -69
  457. package/dist/chunks/types-4GAJ7XQQ.js +0 -116
  458. package/dist/chunks/update-VMS45VF2.js +0 -224
  459. package/dist/chunks/vlt-builder-importer-USCFHWPL.js +0 -322
@@ -1,270 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import {
8
- require_dist
9
- } from "./chunk-HB4UKFDO.js";
10
- import {
11
- noBorderChars,
12
- require_cli_table3
13
- } from "./chunk-NW34PW6V.js";
14
- import {
15
- globalCommandOptions
16
- } from "./chunk-Q2DGFCO7.js";
17
- import {
18
- require_source
19
- } from "./chunk-S7KYDPEM.js";
20
- import {
21
- __toESM
22
- } from "./chunk-TZ2YI2VH.js";
23
-
24
- // src/commands/help.ts
25
- var import_chalk = __toESM(require_source(), 1);
26
- var import_constants = __toESM(require_dist(), 1);
27
- var import_cli_table3 = __toESM(require_cli_table3(), 1);
28
- var INDENT = " ".repeat(2);
29
- var NEWLINE = "\n";
30
- var tableOptions = {
31
- chars: noBorderChars,
32
- style: {
33
- "padding-left": 0,
34
- "padding-right": 0
35
- }
36
- };
37
- function wordWrap(text, maxWidth) {
38
- const _tableOptions = Object.assign({}, tableOptions, {
39
- colWidths: [maxWidth],
40
- style: {
41
- "padding-left": INDENT.length
42
- }
43
- });
44
- const table = new import_cli_table3.default(_tableOptions);
45
- table.push([
46
- {
47
- content: text,
48
- wordWrap: true
49
- }
50
- ]);
51
- return table.toString();
52
- }
53
- function lineToString(line) {
54
- let string = "";
55
- for (let i = 0; i < line.length; i++) {
56
- if (i === line.length - 1) {
57
- string += line[i];
58
- } else {
59
- const curr = line[i];
60
- const next = line[i + 1];
61
- string += curr;
62
- if (curr.trim() !== "" && next.trim() !== "") {
63
- string += " ";
64
- }
65
- }
66
- }
67
- return string;
68
- }
69
- function outputArrayToString(outputArray) {
70
- return outputArray.filter((line) => line !== null).join(NEWLINE);
71
- }
72
- function buildCommandSynopsisLine(command, parent) {
73
- const line = [INDENT, import_constants.LOGO, import_chalk.default.bold(import_constants.NAME)];
74
- if (parent) {
75
- line.push(import_chalk.default.bold(parent.name));
76
- }
77
- line.push(import_chalk.default.bold(command.name));
78
- const args = command.arguments.slice(0);
79
- if (args.length === 0 && command.subcommands && command.subcommands.length > 0) {
80
- args.push({
81
- name: "command",
82
- required: !command.subcommands.some((subcommand) => subcommand.default)
83
- });
84
- }
85
- if (args.length > 0) {
86
- for (const argument of args) {
87
- let { name } = argument;
88
- if (argument.multiple) {
89
- name += " ...";
90
- }
91
- line.push(argument.required ? name : `[${name}]`);
92
- }
93
- }
94
- if (command.options.length > 0) {
95
- line.push("[options]");
96
- }
97
- line.push(NEWLINE);
98
- return lineToString(line);
99
- }
100
- function buildCommandOptionLines(commandOptions, options, sectionTitle) {
101
- const filteredCommandOptions = commandOptions.filter(
102
- (option) => !option.deprecated && option.description !== void 0
103
- );
104
- if (filteredCommandOptions.length === 0) {
105
- return null;
106
- }
107
- filteredCommandOptions.sort(
108
- (a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0
109
- );
110
- let maxWidthOfUnwrappedColumns = 0;
111
- const rows = [];
112
- for (const option of filteredCommandOptions) {
113
- const shorthandCell = option.shorthand ? `${INDENT}-${option.shorthand},` : "";
114
- let longhandCell = `${INDENT}--${option.name}`;
115
- if (option.argument) {
116
- longhandCell += ` <${option.argument}>`;
117
- }
118
- longhandCell += INDENT;
119
- const widthOfUnwrappedColumns = shorthandCell.length + longhandCell.length;
120
- maxWidthOfUnwrappedColumns = Math.max(
121
- widthOfUnwrappedColumns,
122
- maxWidthOfUnwrappedColumns
123
- );
124
- rows.push([
125
- shorthandCell,
126
- longhandCell,
127
- {
128
- content: option.description,
129
- wordWrap: true
130
- }
131
- ]);
132
- }
133
- const finalColumnWidth = options.columns - maxWidthOfUnwrappedColumns;
134
- const table = new import_cli_table3.default(
135
- Object.assign({}, tableOptions, {
136
- colWidths: [null, null, finalColumnWidth]
137
- })
138
- );
139
- table.push(...rows);
140
- return [
141
- `${INDENT}${import_chalk.default.dim(sectionTitle)}:`,
142
- NEWLINE,
143
- NEWLINE,
144
- table.toString(),
145
- NEWLINE,
146
- NEWLINE
147
- ].join("");
148
- }
149
- function buildSubcommandLines(subcommands, options) {
150
- if (!subcommands) {
151
- return null;
152
- }
153
- let maxWidthOfUnwrappedColumns = 0;
154
- const rows = [];
155
- for (const command of subcommands) {
156
- if (command.hidden) {
157
- continue;
158
- }
159
- const nameCell = `${INDENT}${command.name}`;
160
- let argsCell = INDENT;
161
- argsCell += command.arguments.map((arg) => {
162
- return arg.required ? arg.name : `[${arg.name}]`;
163
- }).join(" ");
164
- argsCell += INDENT;
165
- const widthOfUnwrappedColumns = nameCell.length + argsCell.length;
166
- maxWidthOfUnwrappedColumns = Math.max(
167
- widthOfUnwrappedColumns,
168
- maxWidthOfUnwrappedColumns
169
- );
170
- rows.push([
171
- nameCell,
172
- argsCell,
173
- {
174
- content: command.default ? `${command.description} ${import_chalk.default.bold("(default)")}` : command.description,
175
- wordWrap: true
176
- }
177
- ]);
178
- }
179
- const rightMargin = INDENT.repeat(4).length;
180
- const finalColumnWidth = options.columns - maxWidthOfUnwrappedColumns - rightMargin;
181
- const table = new import_cli_table3.default(
182
- Object.assign({}, tableOptions, {
183
- colWidths: [null, null, finalColumnWidth]
184
- })
185
- );
186
- if (rows.length === 0) {
187
- return null;
188
- }
189
- table.push(...rows);
190
- return [
191
- `${INDENT}${import_chalk.default.dim("Commands")}:`,
192
- NEWLINE,
193
- NEWLINE,
194
- table.toString(),
195
- NEWLINE,
196
- NEWLINE
197
- ].join("");
198
- }
199
- function buildCommandExampleLines(command) {
200
- if (!command.examples?.length) {
201
- return null;
202
- }
203
- const outputArray = [`${INDENT}${import_chalk.default.dim("Examples:")}`, ""];
204
- for (const example of command.examples) {
205
- const nameLine = [INDENT];
206
- nameLine.push(import_chalk.default.gray("-"));
207
- nameLine.push(example.name);
208
- outputArray.push(lineToString(nameLine));
209
- outputArray.push("");
210
- const buildValueLine = (value) => {
211
- return lineToString([INDENT, INDENT, import_chalk.default.cyan(`$ ${value}`)]);
212
- };
213
- if (Array.isArray(example.value)) {
214
- for (const line of example.value) {
215
- outputArray.push(buildValueLine(line));
216
- }
217
- } else {
218
- outputArray.push(buildValueLine(example.value));
219
- }
220
- outputArray.push("");
221
- }
222
- return outputArrayToString(outputArray);
223
- }
224
- function buildCommandDocumentationLines(command, options) {
225
- if (options.omitDocumentation) {
226
- return null;
227
- }
228
- const documentation = command.documentation ?? options.parent?.documentation;
229
- if (!documentation) {
230
- return null;
231
- }
232
- return outputArrayToString([
233
- `${INDENT}${import_chalk.default.dim(`${documentation.label}:`)}`,
234
- "",
235
- lineToString([INDENT, INDENT, import_chalk.default.cyan(documentation.url)]),
236
- ""
237
- ]);
238
- }
239
- function buildDescriptionLine(command, options) {
240
- const wrappingText = wordWrap(command.description, options.columns);
241
- return `${wrappingText}${NEWLINE}`;
242
- }
243
- function buildHelpOutput(command, options) {
244
- const filteredGlobalOptions = command.disabledGlobalOptions ? globalCommandOptions.filter(
245
- (opt) => !command.disabledGlobalOptions?.includes(opt.name)
246
- ) : globalCommandOptions;
247
- const outputArray = [
248
- "",
249
- buildCommandSynopsisLine(command, options.parent),
250
- buildDescriptionLine(command, options),
251
- buildSubcommandLines(command.subcommands, options),
252
- buildCommandOptionLines(command.options, options, "Options"),
253
- buildCommandOptionLines(filteredGlobalOptions, options, "Global Options"),
254
- buildCommandExampleLines(command),
255
- buildCommandDocumentationLines(command, options),
256
- ""
257
- ];
258
- return outputArrayToString(outputArray);
259
- }
260
- function help(command, options) {
261
- return buildHelpOutput(command, {
262
- ...options,
263
- columns: options.columns ?? 80
264
- });
265
- }
266
-
267
- export {
268
- buildCommandDocumentationLines,
269
- help
270
- };
@@ -1,233 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import {
8
- require_dist as require_dist2,
9
- validateConfig
10
- } from "./chunk-7NRNFV77.js";
11
- import {
12
- require_dist2 as require_dist
13
- } from "./chunk-332LMJLZ.js";
14
- import {
15
- readJSONFile
16
- } from "./chunk-MUGF3SGQ.js";
17
- import {
18
- compileVercelConfig
19
- } from "./chunk-L4H3DP65.js";
20
- import {
21
- CantParseJSONFile
22
- } from "./chunk-CV5YC2EN.js";
23
- import {
24
- __toESM
25
- } from "./chunk-TZ2YI2VH.js";
26
-
27
- // src/util/projects/detect-services.ts
28
- var import_fs_detectors = __toESM(require_dist(), 1);
29
- var import_service_topology = __toESM(require_dist2(), 1);
30
- import { readFile, writeFile } from "fs/promises";
31
- import { basename, join as join2 } from "path";
32
- import { parse as tomlParse, stringify as tomlStringify } from "smol-toml";
33
-
34
- // src/util/projects/detect-entrypoint.ts
35
- import { join } from "path";
36
- import {
37
- isPythonFramework,
38
- isNodeBackendFramework,
39
- normalizePath
40
- } from "@vercel/build-utils";
41
- function createDetectEntrypoint(projectRoot) {
42
- return async ({ workPath, framework }) => {
43
- const absWorkPath = normalizePath(join(projectRoot, workPath));
44
- let builderName;
45
- if (isPythonFramework(framework)) {
46
- builderName = "@vercel/python";
47
- } else if (isNodeBackendFramework(framework)) {
48
- builderName = "@vercel/backends";
49
- } else if (framework === "go") {
50
- builderName = "@vercel/go";
51
- } else if (framework === "rust") {
52
- builderName = "@vercel/rust";
53
- } else {
54
- return null;
55
- }
56
- const detectEntrypoint = await loadBuilderDetectEntrypoint(
57
- builderName,
58
- projectRoot
59
- );
60
- if (!detectEntrypoint) {
61
- return null;
62
- }
63
- if (builderName === "@vercel/python") {
64
- return detectEntrypoint({
65
- workPath: absWorkPath,
66
- framework
67
- });
68
- }
69
- return detectEntrypoint({ workPath: absWorkPath });
70
- };
71
- }
72
- async function loadBuilderDetectEntrypoint(name, projectRoot) {
73
- const { importBuilders } = await import("./import-builders-F6SWNCHK.js");
74
- const builders = await importBuilders(/* @__PURE__ */ new Set([name]), projectRoot);
75
- const loaded = builders.get(name);
76
- if (!loaded) {
77
- return void 0;
78
- }
79
- const detect = loaded.builder.detectEntrypoint;
80
- return typeof detect === "function" ? detect : void 0;
81
- }
82
-
83
- // src/util/projects/detect-services.ts
84
- async function isExperimentalServicesEnabled(cwd) {
85
- return process.env.VERCEL_USE_EXPERIMENTAL_SERVICES === "1" || process.env.VERCEL_USE_EXPERIMENTAL_SERVICES?.toLowerCase() === "true" || await hasExperimentalServicesConfig(cwd);
86
- }
87
- async function hasExperimentalServicesConfig(cwd) {
88
- try {
89
- const compileResult = await compileVercelConfig(cwd);
90
- if (!compileResult.configPath)
91
- return false;
92
- const config = await readJSONFile(
93
- compileResult.configPath
94
- );
95
- if (!config || config instanceof Error)
96
- return false;
97
- return config.experimentalServices != null && typeof config.experimentalServices === "object" || config.services != null && typeof config.services === "object" || config.experimentalServicesV2 != null && typeof config.experimentalServicesV2 === "object";
98
- } catch {
99
- return false;
100
- }
101
- }
102
- async function tryDetectServices(cwd) {
103
- const isServicesEnabled = await isExperimentalServicesEnabled(cwd);
104
- if (!isServicesEnabled) {
105
- return null;
106
- }
107
- const fs = new import_fs_detectors.LocalFileSystemDetector(cwd);
108
- const result = await (0, import_service_topology.detectServices)({
109
- fs,
110
- detectEntrypoint: createDetectEntrypoint(cwd)
111
- });
112
- const hasNoServicesError = result.errors.some(
113
- (e) => e.code === "NO_SERVICES_CONFIGURED"
114
- );
115
- if (hasNoServicesError) {
116
- return null;
117
- }
118
- return result;
119
- }
120
- async function writeServicesConfig(cwd, config) {
121
- const prepared = await prepareServicesConfigWrite(cwd, config);
122
- await writeFile(prepared.configPath, prepared.content, "utf8");
123
- return { configFileName: basename(prepared.configPath) };
124
- }
125
- async function getServicesConfigWriteBlocker(cwd, config) {
126
- try {
127
- await prepareServicesConfigWrite(cwd, config);
128
- return null;
129
- } catch (error) {
130
- return getServicesConfigWriteBlockerFromError(error);
131
- }
132
- }
133
- function toProjectServicesConfigPatch(config) {
134
- const services = {};
135
- for (const [name, svc] of Object.entries(config)) {
136
- const buildCommand = svc.preDeployCommand && svc.buildCommand ? `${svc.buildCommand} && ${svc.preDeployCommand}` : svc.preDeployCommand || svc.buildCommand;
137
- services[name] = {
138
- root: svc.root,
139
- ...svc.framework ? { framework: svc.framework } : {},
140
- ...svc.entrypoint ? { entrypoint: svc.entrypoint } : {},
141
- ...buildCommand ? { buildCommand } : {}
142
- };
143
- }
144
- const rewrites = (0, import_service_topology.generateServiceRewrites)(config);
145
- return {
146
- services,
147
- ...rewrites.length > 0 ? { rewrites } : {}
148
- };
149
- }
150
- async function prepareServicesConfigWrite(cwd, config) {
151
- const compileResult = await compileVercelConfig(cwd);
152
- const configPath = join2(cwd, "vercel.json");
153
- if (compileResult.sourceFile === "vercel.toml") {
154
- return prepareTomlServicesConfigWrite(join2(cwd, "vercel.toml"), config);
155
- }
156
- if (compileResult.wasCompiled) {
157
- throw new Error(
158
- `Cannot automatically update ${compileResult.sourceFile ?? "the current Vercel config"}.`
159
- );
160
- }
161
- let existingConfig = {};
162
- if (compileResult.configPath && basename(compileResult.configPath) === "vercel.json") {
163
- const result = await readJSONFile(configPath);
164
- if (result instanceof CantParseJSONFile) {
165
- throw result;
166
- }
167
- existingConfig = result ?? {};
168
- }
169
- const patch = toProjectServicesConfigPatch(config);
170
- const nextConfig = {
171
- ...existingConfig,
172
- ...patch,
173
- // Preserve existing user rewrites; append auto-detected service rewrites.
174
- ...patch.rewrites ? {
175
- rewrites: [
176
- ...existingConfig.rewrites ?? [],
177
- ...patch.rewrites
178
- ]
179
- } : {}
180
- };
181
- const validationError = validateConfig(nextConfig);
182
- if (validationError) {
183
- throw validationError;
184
- }
185
- return {
186
- configPath,
187
- content: JSON.stringify(nextConfig, null, 2) + "\n"
188
- };
189
- }
190
- async function prepareTomlServicesConfigWrite(configPath, config) {
191
- const patch = toProjectServicesConfigPatch(config);
192
- const patchKeys = Object.keys(patch);
193
- let existingContent;
194
- try {
195
- existingContent = await readFile(configPath, "utf8");
196
- } catch {
197
- existingContent = "";
198
- }
199
- if (existingContent.trim()) {
200
- const existingParsed = tomlParse(existingContent);
201
- const overlapping = patchKeys.filter((key) => key in existingParsed);
202
- if (overlapping.length > 0) {
203
- const plural = overlapping.length > 1;
204
- const keyList = overlapping.map((k) => `"${k}"`).join(", ");
205
- throw new Error(
206
- `Cannot automatically update vercel.toml: key${plural ? "s" : ""} ${keyList} already exist${plural ? "" : "s"}.`
207
- );
208
- }
209
- }
210
- const patchToml = tomlStringify(patch);
211
- const content = existingContent.trim() ? existingContent.trimEnd() + "\n\n" + patchToml + "\n" : patchToml + "\n";
212
- return { configPath, content };
213
- }
214
- function getServicesConfigWriteBlockerFromError(error) {
215
- switch (error?.code) {
216
- case "EXPERIMENTAL_SERVICES_AND_BUILDS":
217
- case "SERVICES_AND_BUILDS":
218
- return "builds";
219
- case "EXPERIMENTAL_SERVICES_AND_FUNCTIONS":
220
- case "SERVICES_AND_FUNCTIONS":
221
- return "functions";
222
- default:
223
- return null;
224
- }
225
- }
226
-
227
- export {
228
- createDetectEntrypoint,
229
- isExperimentalServicesEnabled,
230
- tryDetectServices,
231
- writeServicesConfig,
232
- getServicesConfigWriteBlocker
233
- };
@@ -1,104 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import {
8
- require_once
9
- } from "./chunk-PEC3CQSK.js";
10
- import {
11
- __commonJS
12
- } from "./chunk-TZ2YI2VH.js";
13
-
14
- // ../../node_modules/.pnpm/end-of-stream@1.4.1/node_modules/end-of-stream/index.js
15
- var require_end_of_stream = __commonJS({
16
- "../../node_modules/.pnpm/end-of-stream@1.4.1/node_modules/end-of-stream/index.js"(exports, module) {
17
- var once = require_once();
18
- var noop = function() {
19
- };
20
- var isRequest = function(stream) {
21
- return stream.setHeader && typeof stream.abort === "function";
22
- };
23
- var isChildProcess = function(stream) {
24
- return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3;
25
- };
26
- var eos = function(stream, opts, callback) {
27
- if (typeof opts === "function")
28
- return eos(stream, null, opts);
29
- if (!opts)
30
- opts = {};
31
- callback = once(callback || noop);
32
- var ws = stream._writableState;
33
- var rs = stream._readableState;
34
- var readable = opts.readable || opts.readable !== false && stream.readable;
35
- var writable = opts.writable || opts.writable !== false && stream.writable;
36
- var onlegacyfinish = function() {
37
- if (!stream.writable)
38
- onfinish();
39
- };
40
- var onfinish = function() {
41
- writable = false;
42
- if (!readable)
43
- callback.call(stream);
44
- };
45
- var onend = function() {
46
- readable = false;
47
- if (!writable)
48
- callback.call(stream);
49
- };
50
- var onexit = function(exitCode) {
51
- callback.call(stream, exitCode ? new Error("exited with error code: " + exitCode) : null);
52
- };
53
- var onerror = function(err) {
54
- callback.call(stream, err);
55
- };
56
- var onclose = function() {
57
- if (readable && !(rs && rs.ended))
58
- return callback.call(stream, new Error("premature close"));
59
- if (writable && !(ws && ws.ended))
60
- return callback.call(stream, new Error("premature close"));
61
- };
62
- var onrequest = function() {
63
- stream.req.on("finish", onfinish);
64
- };
65
- if (isRequest(stream)) {
66
- stream.on("complete", onfinish);
67
- stream.on("abort", onclose);
68
- if (stream.req)
69
- onrequest();
70
- else
71
- stream.on("request", onrequest);
72
- } else if (writable && !ws) {
73
- stream.on("end", onlegacyfinish);
74
- stream.on("close", onlegacyfinish);
75
- }
76
- if (isChildProcess(stream))
77
- stream.on("exit", onexit);
78
- stream.on("end", onend);
79
- stream.on("finish", onfinish);
80
- if (opts.error !== false)
81
- stream.on("error", onerror);
82
- stream.on("close", onclose);
83
- return function() {
84
- stream.removeListener("complete", onfinish);
85
- stream.removeListener("abort", onclose);
86
- stream.removeListener("request", onrequest);
87
- if (stream.req)
88
- stream.req.removeListener("finish", onfinish);
89
- stream.removeListener("end", onlegacyfinish);
90
- stream.removeListener("close", onlegacyfinish);
91
- stream.removeListener("finish", onfinish);
92
- stream.removeListener("exit", onexit);
93
- stream.removeListener("end", onend);
94
- stream.removeListener("error", onerror);
95
- stream.removeListener("close", onclose);
96
- };
97
- };
98
- module.exports = eos;
99
- }
100
- });
101
-
102
- export {
103
- require_end_of_stream
104
- };
@@ -1,97 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module';
2
- import { fileURLToPath as __fileURLToPath } from 'node:url';
3
- import { dirname as __dirname_ } from 'node:path';
4
- const require = __createRequire(import.meta.url);
5
- const __filename = __fileURLToPath(import.meta.url);
6
- const __dirname = __dirname_(__filename);
7
- import {
8
- __commonJS,
9
- __require
10
- } from "./chunk-TZ2YI2VH.js";
11
-
12
- // ../error-utils/dist/index.js
13
- var require_dist = __commonJS({
14
- "../error-utils/dist/index.js"(exports, module) {
15
- "use strict";
16
- var __create = Object.create;
17
- var __defProp = Object.defineProperty;
18
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
19
- var __getOwnPropNames = Object.getOwnPropertyNames;
20
- var __getProtoOf = Object.getPrototypeOf;
21
- var __hasOwnProp = Object.prototype.hasOwnProperty;
22
- var __export = (target, all) => {
23
- for (var name in all)
24
- __defProp(target, name, { get: all[name], enumerable: true });
25
- };
26
- var __copyProps = (to, from, except, desc) => {
27
- if (from && typeof from === "object" || typeof from === "function") {
28
- for (let key of __getOwnPropNames(from))
29
- if (!__hasOwnProp.call(to, key) && key !== except)
30
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
31
- }
32
- return to;
33
- };
34
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
35
- // If the importer is in node compatibility mode or this is not an ESM
36
- // file that has been converted to a CommonJS file using a Babel-
37
- // compatible transform (i.e. "__esModule" has not been set), then set
38
- // "default" to the CommonJS "module.exports" for node compatibility.
39
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
40
- mod
41
- ));
42
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
43
- var src_exports = {};
44
- __export(src_exports, {
45
- errorToString: () => errorToString,
46
- errorToStringFriendly: () => errorToStringFriendly,
47
- getSystemErrorMessage: () => getSystemErrorMessage,
48
- isErrnoException: () => isErrnoException,
49
- isError: () => isError,
50
- isErrorLike: () => isErrorLike,
51
- isObject: () => isObject,
52
- isSpawnError: () => isSpawnError,
53
- normalizeError: () => normalizeError
54
- });
55
- module.exports = __toCommonJS(src_exports);
56
- var import_node_util = __toESM(__require("util"));
57
- var isObject = (obj) => typeof obj === "object" && obj !== null;
58
- var isError = (error) => {
59
- return import_node_util.default.types.isNativeError(error);
60
- };
61
- var isErrnoException = (error) => {
62
- return isError(error) && "code" in error;
63
- };
64
- var nativeGetSystemErrorMessage = import_node_util.default.getSystemErrorMessage;
65
- var getSystemErrorMessageFallback = (errno) => {
66
- return import_node_util.default.getSystemErrorMap().get(errno)?.[1] ?? `Unknown system error ${errno}`;
67
- };
68
- var isErrorLike = (error) => isObject(error) && "message" in error;
69
- var errorToString = (error, fallback) => {
70
- if (isError(error) || isErrorLike(error))
71
- return error.message;
72
- if (typeof error === "string")
73
- return error;
74
- return fallback ?? "An unknown error has ocurred.";
75
- };
76
- var getSystemErrorMessage = nativeGetSystemErrorMessage ?? getSystemErrorMessageFallback;
77
- var errorToStringFriendly = (error, fallback) => {
78
- if (isErrnoException(error) && typeof error.errno === "number") {
79
- return getSystemErrorMessage(error.errno);
80
- }
81
- return errorToString(error, fallback);
82
- };
83
- var normalizeError = (error) => {
84
- if (isError(error))
85
- return error;
86
- const errorMessage = errorToString(error);
87
- return isErrorLike(error) ? Object.assign(new Error(errorMessage), error) : new Error(errorMessage);
88
- };
89
- function isSpawnError(v) {
90
- return isErrnoException(v) && "spawnargs" in v;
91
- }
92
- }
93
- });
94
-
95
- export {
96
- require_dist
97
- };