vercel 59.14.0 → 59.15.1

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-562OXD3F.js +21 -0
  20. package/dist/chunks/chunk-57GHYR4Y.js +25 -0
  21. package/dist/chunks/chunk-5QQNYN4N.js +7 -0
  22. package/dist/chunks/chunk-5XJNPXQK.js +7 -0
  23. package/dist/chunks/chunk-6L236MNA.js +7 -0
  24. package/dist/chunks/chunk-6PFC3KWQ.js +7 -0
  25. package/dist/chunks/chunk-6QKS6QK7.js +7 -0
  26. package/dist/chunks/chunk-6RIQPTJA.js +8 -0
  27. package/dist/chunks/chunk-6TAQ6OWD.js +13 -0
  28. package/dist/chunks/chunk-6YAADRQB.js +9 -0
  29. package/dist/chunks/chunk-75CPY75D.js +15 -0
  30. package/dist/chunks/chunk-7HL2RPUO.js +7 -0
  31. package/dist/chunks/chunk-7PNYOSDU.js +9 -0
  32. package/dist/chunks/chunk-7R5FEXZ5.js +7 -0
  33. package/dist/chunks/chunk-7RMCBXBB.js +62 -0
  34. package/dist/chunks/chunk-7RR7MIMT.js +7 -0
  35. package/dist/chunks/chunk-7T6TL3GQ.js +7 -0
  36. package/dist/chunks/chunk-ADUYPK2G.js +13 -0
  37. package/dist/chunks/chunk-AFPOIDM5.js +7 -0
  38. package/dist/chunks/chunk-AM46JVVN.js +7 -0
  39. package/dist/chunks/chunk-AUGK2HIT.js +18 -0
  40. package/dist/chunks/chunk-AVSPFBLM.js +7 -0
  41. package/dist/chunks/chunk-B4ATVYZW.js +7 -0
  42. package/dist/chunks/chunk-BATE73HA.js +9 -0
  43. package/dist/chunks/{chunk-64IF634X.js → chunk-BRK4OB4B.js} +1 -12
  44. package/dist/chunks/chunk-BVH2AEFE.js +7 -0
  45. package/dist/chunks/chunk-CGOVWHI3.js +45 -0
  46. package/dist/chunks/chunk-CN2QZO4U.js +7 -0
  47. package/dist/chunks/chunk-COQGD2EI.js +8 -0
  48. package/dist/chunks/chunk-CUAIEGNE.js +7 -0
  49. package/dist/chunks/chunk-CVKB54WW.js +7 -0
  50. package/dist/chunks/{chunk-A3NYPUKZ.js → chunk-CZSOZKHX.js} +1 -11
  51. package/dist/chunks/chunk-D3EHMP4U.js +24 -0
  52. package/dist/chunks/chunk-D4MW3RDW.js +7 -0
  53. package/dist/chunks/chunk-DFVNL5ML.js +7 -0
  54. package/dist/chunks/chunk-EE3FVJLV.js +16 -0
  55. package/dist/chunks/chunk-EGMJRU5P.js +28 -0
  56. package/dist/chunks/chunk-ENBTTYJR.js +7 -0
  57. package/dist/chunks/chunk-ENS6KX2F.js +7 -0
  58. package/dist/chunks/chunk-EOBD4ZEG.js +8 -0
  59. package/dist/chunks/chunk-EOCTK4EA.js +7 -0
  60. package/dist/chunks/chunk-EQ52F4LH.js +7 -0
  61. package/dist/chunks/chunk-ETV3C2CV.js +7 -0
  62. package/dist/chunks/chunk-EVZRQGNK.js +7 -0
  63. package/dist/chunks/chunk-F2ZWW2IO.js +8 -0
  64. package/dist/chunks/chunk-FAW6NBLQ.js +7 -0
  65. package/dist/chunks/chunk-FI772UVH.js +7 -0
  66. package/dist/chunks/chunk-FKCOBJFH.js +7 -0
  67. package/dist/chunks/chunk-G5FC5ZCO.js +9 -0
  68. package/dist/chunks/chunk-G6CTAHKY.js +39 -0
  69. package/dist/chunks/chunk-G7Y77DFH.js +7 -0
  70. package/dist/chunks/chunk-GHAY4PSD.js +7 -0
  71. package/dist/chunks/chunk-GHM7V3GG.js +7 -0
  72. package/dist/chunks/chunk-GRNTLNC7.js +7 -0
  73. package/dist/chunks/chunk-GTRGQIY2.js +10 -0
  74. package/dist/chunks/chunk-GU6VIFR5.js +7 -0
  75. package/dist/chunks/{constants-YMCRE6IG.js → chunk-GZNDA6SV.js} +2 -9
  76. package/dist/chunks/chunk-HBFPLBTX.js +10 -0
  77. package/dist/chunks/chunk-HEGJZJO7.js +7 -0
  78. package/dist/chunks/chunk-HSJ6AHWG.js +12 -0
  79. package/dist/chunks/chunk-HTC6KO2B.js +7 -0
  80. package/dist/chunks/chunk-HVUHCRZB.js +18 -0
  81. package/dist/chunks/chunk-HZZ5L472.js +7 -0
  82. package/dist/chunks/chunk-IVSSTHB6.js +7 -0
  83. package/dist/chunks/chunk-IVWPQYIH.js +7 -0
  84. package/dist/chunks/chunk-J3U3L45Y.js +7 -0
  85. package/dist/chunks/chunk-JAJW3P42.js +7 -0
  86. package/dist/chunks/chunk-JEIMW3CO.js +7 -0
  87. package/dist/chunks/chunk-JIYY3B4C.js +7 -0
  88. package/dist/chunks/chunk-JKTQV2QJ.js +7 -0
  89. package/dist/chunks/chunk-JTVVBRW7.js +7 -0
  90. package/dist/chunks/chunk-JYAUUIR4.js +7 -0
  91. package/dist/chunks/chunk-JZRMH5UA.js +7 -0
  92. package/dist/chunks/chunk-K2RAW5DI.js +10 -0
  93. package/dist/chunks/chunk-K3KJZLBD.js +7 -0
  94. package/dist/chunks/chunk-KK4AJES5.js +36 -0
  95. package/dist/chunks/chunk-KKS7XWEX.js +7 -0
  96. package/dist/chunks/chunk-KNEWCUWF.js +14 -0
  97. package/dist/chunks/chunk-KO733OJG.js +9 -0
  98. package/dist/chunks/chunk-L243RUIR.js +19 -0
  99. package/dist/chunks/chunk-L3JDEHCQ.js +7 -0
  100. package/dist/chunks/chunk-LDM3SQAU.js +13 -0
  101. package/dist/chunks/chunk-LNPMDXBJ.js +7 -0
  102. package/dist/chunks/chunk-M2W3HKV3.js +23 -0
  103. package/dist/chunks/chunk-M2XARQBF.js +9 -0
  104. package/dist/chunks/chunk-M5AV545M.js +7 -0
  105. package/dist/chunks/chunk-MAVRGZQP.js +7 -0
  106. package/dist/chunks/chunk-MBL6TXEJ.js +7 -0
  107. package/dist/chunks/chunk-MEAY2K5Z.js +11 -0
  108. package/dist/chunks/chunk-MY4MONOH.js +7 -0
  109. package/dist/chunks/chunk-N3N5UHIL.js +7 -0
  110. package/dist/chunks/chunk-N3ZZ7FHQ.js +7 -0
  111. package/dist/chunks/chunk-N6CNMMSZ.js +7 -0
  112. package/dist/chunks/chunk-NBVY237X.js +7 -0
  113. package/dist/chunks/chunk-NGNOUPWS.js +25 -0
  114. package/dist/chunks/chunk-NHTF332K.js +7 -0
  115. package/dist/chunks/chunk-NNP5NITU.js +15 -0
  116. package/dist/chunks/chunk-NS4FH2TY.js +11 -0
  117. package/dist/chunks/chunk-NUGLE4QY.js +11 -0
  118. package/dist/chunks/chunk-NWFHHUKZ.js +7 -0
  119. package/dist/chunks/chunk-O7G3CZ42.js +7 -0
  120. package/dist/chunks/chunk-OD6RZ3XZ.js +8 -0
  121. package/dist/chunks/chunk-OHDEHZLX.js +7 -0
  122. package/dist/chunks/chunk-OK3S6KFX.js +16 -0
  123. package/dist/chunks/chunk-OKZDOANA.js +23 -0
  124. package/dist/chunks/chunk-OSCCYU74.js +7 -0
  125. package/dist/chunks/chunk-OUHPDA7Q.js +7 -0
  126. package/dist/chunks/chunk-P2O5DOYE.js +7 -0
  127. package/dist/chunks/chunk-PHW54NU5.js +13 -0
  128. package/dist/chunks/chunk-PPCFQQSU.js +7 -0
  129. package/dist/chunks/chunk-QGIGNMII.js +8 -0
  130. package/dist/chunks/chunk-QGIQK47P.js +7 -0
  131. package/dist/chunks/chunk-QHJLRTVY.js +7 -0
  132. package/dist/chunks/{chunk-2473DUBR.js → chunk-QR7QPUFN.js} +1 -9
  133. package/dist/chunks/chunk-QTKJC2O5.js +7 -0
  134. package/dist/chunks/chunk-R2TGGVCT.js +19 -0
  135. package/dist/chunks/chunk-RAIBQIKB.js +7 -0
  136. package/dist/chunks/chunk-RCTYVKM5.js +16 -0
  137. package/dist/chunks/chunk-RKAUVPOQ.js +86 -0
  138. package/dist/chunks/chunk-S5CEIACD.js +7 -0
  139. package/dist/chunks/chunk-SGWVKRSR.js +8 -0
  140. package/dist/chunks/chunk-SOJCELXH.js +7 -0
  141. package/dist/chunks/chunk-SXUEGVWB.js +7 -0
  142. package/dist/chunks/{chunk-GGPE5377.js → chunk-T3GQAMBJ.js} +1 -9
  143. package/dist/chunks/chunk-T52FMXWC.js +7 -0
  144. package/dist/chunks/chunk-TG2RCYTH.js +7 -0
  145. package/dist/chunks/chunk-TJCIHDPZ.js +9 -0
  146. package/dist/chunks/chunk-TKBXN4H3.js +9 -0
  147. package/dist/chunks/chunk-TRTEXGVN.js +7 -0
  148. package/dist/chunks/chunk-U56NHYAH.js +7 -0
  149. package/dist/chunks/chunk-U7KCDTCH.js +12 -0
  150. package/dist/chunks/chunk-UETTIYUQ.js +8 -0
  151. package/dist/chunks/chunk-ULLWCOYC.js +7 -0
  152. package/dist/chunks/chunk-UXTHEQVJ.js +21 -0
  153. package/dist/chunks/chunk-VLZ47RWM.js +44 -0
  154. package/dist/chunks/chunk-WKZ6JSGZ.js +7 -0
  155. package/dist/chunks/chunk-WPS6JZF6.js +7 -0
  156. package/dist/chunks/chunk-WRILLB46.js +7 -0
  157. package/dist/chunks/chunk-WUZD4KBL.js +7 -0
  158. package/dist/chunks/chunk-XCJDGQO7.js +7 -0
  159. package/dist/chunks/{pkg-56KRLZ5K.js → chunk-XD2LZRBS.js} +1 -7
  160. package/dist/chunks/chunk-XFVGX5HG.js +7 -0
  161. package/dist/chunks/chunk-XHOGOH6N.js +7 -0
  162. package/dist/chunks/{update-route-version-E3V47KNI.js → chunk-XPXOV5UO.js} +1 -7
  163. package/dist/chunks/chunk-XQ73QIQ3.js +7 -0
  164. package/dist/chunks/chunk-XSVBYDYI.js +8 -0
  165. package/dist/chunks/chunk-YKZLKOOD.js +12 -0
  166. package/dist/chunks/chunk-YMVDWVMO.js +7 -0
  167. package/dist/chunks/chunk-YPTLSODC.js +7 -0
  168. package/dist/chunks/chunk-YV6CTDHR.js +7 -0
  169. package/dist/chunks/chunk-Z6Y55QJW.js +23 -0
  170. package/dist/chunks/chunk-ZDX75YNZ.js +7 -0
  171. package/dist/chunks/chunk-ZIPVX7LD.js +7 -0
  172. package/dist/chunks/chunk-ZKYS7EAB.js +7 -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 -4925
  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 +1187 -87691
  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 +50 -51
  273. package/dist/chunks/add-EQZRT4XL.js +0 -221
  274. package/dist/chunks/add-KMDROZC3.js +0 -196
  275. package/dist/chunks/add-QPJ3XMBV.js +0 -145
  276. package/dist/chunks/build-W4HPTAOB.js +0 -251
  277. package/dist/chunks/chunk-26CU4Q3C.js +0 -598
  278. package/dist/chunks/chunk-2HSQ7YUK.js +0 -93
  279. package/dist/chunks/chunk-2JIX6UMI.js +0 -4626
  280. package/dist/chunks/chunk-2LCFOK66.js +0 -1536
  281. package/dist/chunks/chunk-332LMJLZ.js +0 -16014
  282. package/dist/chunks/chunk-3HZLXCVL.js +0 -137
  283. package/dist/chunks/chunk-3VM7HWF6.js +0 -104
  284. package/dist/chunks/chunk-3ZE5CFVM.js +0 -346
  285. package/dist/chunks/chunk-4IALDGB7.js +0 -22
  286. package/dist/chunks/chunk-4KD5BYHB.js +0 -127
  287. package/dist/chunks/chunk-4TUMNBEE.js +0 -231
  288. package/dist/chunks/chunk-4WG2MYCI.js +0 -163
  289. package/dist/chunks/chunk-57RHXXXG.js +0 -150
  290. package/dist/chunks/chunk-5AJPMLDV.js +0 -28
  291. package/dist/chunks/chunk-5EIV6LPQ.js +0 -305
  292. package/dist/chunks/chunk-5NF5HOBJ.js +0 -1854
  293. package/dist/chunks/chunk-653QRQAD.js +0 -417
  294. package/dist/chunks/chunk-67CRVWDF.js +0 -81
  295. package/dist/chunks/chunk-6E6KPBXY.js +0 -43
  296. package/dist/chunks/chunk-75VENWDN.js +0 -1892
  297. package/dist/chunks/chunk-7MRDIPJY.js +0 -107
  298. package/dist/chunks/chunk-7NRNFV77.js +0 -875
  299. package/dist/chunks/chunk-7Q45OKWR.js +0 -149
  300. package/dist/chunks/chunk-AHU7WNL2.js +0 -24
  301. package/dist/chunks/chunk-AINIBIP4.js +0 -39
  302. package/dist/chunks/chunk-AJ5HUOWB.js +0 -14059
  303. package/dist/chunks/chunk-AKLTIZCU.js +0 -46
  304. package/dist/chunks/chunk-AQ6P3IGG.js +0 -49
  305. package/dist/chunks/chunk-B5NH7SLK.js +0 -324
  306. package/dist/chunks/chunk-B5XLQKHI.js +0 -849
  307. package/dist/chunks/chunk-BEQV3X2L.js +0 -86
  308. package/dist/chunks/chunk-CAHP7UGE.js +0 -79
  309. package/dist/chunks/chunk-CFDDM4TX.js +0 -13618
  310. package/dist/chunks/chunk-CJV7J7B5.js +0 -314
  311. package/dist/chunks/chunk-CV5YC2EN.js +0 -867
  312. package/dist/chunks/chunk-CXFY6A6W.js +0 -255
  313. package/dist/chunks/chunk-D5SMZXVO.js +0 -233
  314. package/dist/chunks/chunk-E336ZXPP.js +0 -43
  315. package/dist/chunks/chunk-EDMW7SBH.js +0 -246
  316. package/dist/chunks/chunk-EFYMIIER.js +0 -40
  317. package/dist/chunks/chunk-EKPSCRJZ.js +0 -26
  318. package/dist/chunks/chunk-EOZFDJSY.js +0 -18
  319. package/dist/chunks/chunk-EWBCSDTM.js +0 -1708
  320. package/dist/chunks/chunk-EZKW5YJ2.js +0 -177
  321. package/dist/chunks/chunk-F2QLCXCF.js +0 -2399
  322. package/dist/chunks/chunk-FGDKMNEN.js +0 -21
  323. package/dist/chunks/chunk-FRVG4OW3.js +0 -7438
  324. package/dist/chunks/chunk-FVF4UHDM.js +0 -1288
  325. package/dist/chunks/chunk-G5FBSUL4.js +0 -822
  326. package/dist/chunks/chunk-GDOUDU6O.js +0 -74
  327. package/dist/chunks/chunk-GGP5R3FU.js +0 -129
  328. package/dist/chunks/chunk-GVNCVKCI.js +0 -68
  329. package/dist/chunks/chunk-GY5I4AYD.js +0 -122
  330. package/dist/chunks/chunk-GZLPFESR.js +0 -48
  331. package/dist/chunks/chunk-HB4UKFDO.js +0 -1295
  332. package/dist/chunks/chunk-HD4DR3DA.js +0 -818
  333. package/dist/chunks/chunk-HKHXKSXQ.js +0 -152
  334. package/dist/chunks/chunk-HM24ZWQL.js +0 -174
  335. package/dist/chunks/chunk-HRXRELD3.js +0 -338
  336. package/dist/chunks/chunk-IB5L4LKZ.js +0 -1082
  337. package/dist/chunks/chunk-IIMSID24.js +0 -104
  338. package/dist/chunks/chunk-J7JKZM4T.js +0 -58
  339. package/dist/chunks/chunk-JC2O346E.js +0 -137
  340. package/dist/chunks/chunk-JSD4EZL3.js +0 -34
  341. package/dist/chunks/chunk-JZXJZX7O.js +0 -257
  342. package/dist/chunks/chunk-K3RED3VO.js +0 -566
  343. package/dist/chunks/chunk-KFWQ3EFH.js +0 -151
  344. package/dist/chunks/chunk-KW7BS25T.js +0 -466
  345. package/dist/chunks/chunk-KXDWXXJH.js +0 -70
  346. package/dist/chunks/chunk-LERVNZTD.js +0 -90
  347. package/dist/chunks/chunk-LYAAQDNS.js +0 -242
  348. package/dist/chunks/chunk-M5I6INNF.js +0 -61
  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-NW34PW6V.js +0 -1772
  353. package/dist/chunks/chunk-OAMU5QO6.js +0 -18
  354. package/dist/chunks/chunk-OCIZ6ZYA.js +0 -253
  355. package/dist/chunks/chunk-ORQZKIIB.js +0 -2914
  356. package/dist/chunks/chunk-P3SKP5WM.js +0 -27
  357. package/dist/chunks/chunk-P4QNYOFB.js +0 -96
  358. package/dist/chunks/chunk-P7VSBDR4.js +0 -827
  359. package/dist/chunks/chunk-PEC3CQSK.js +0 -90
  360. package/dist/chunks/chunk-PMSMUMUO.js +0 -30
  361. package/dist/chunks/chunk-PNGVSHR3.js +0 -40
  362. package/dist/chunks/chunk-POOO7W47.js +0 -916
  363. package/dist/chunks/chunk-PRWJUY5U.js +0 -848
  364. package/dist/chunks/chunk-Q2DGFCO7.js +0 -579
  365. package/dist/chunks/chunk-RBF2NPUP.js +0 -577
  366. package/dist/chunks/chunk-RBIFXFZX.js +0 -52
  367. package/dist/chunks/chunk-RDTRWLWB.js +0 -11441
  368. package/dist/chunks/chunk-RN6V5ODW.js +0 -114
  369. package/dist/chunks/chunk-RNSMTWA6.js +0 -122
  370. package/dist/chunks/chunk-RTJASENB.js +0 -59
  371. package/dist/chunks/chunk-RVBZ64EQ.js +0 -52
  372. package/dist/chunks/chunk-S7KYDPEM.js +0 -1564
  373. package/dist/chunks/chunk-SLPSPYVR.js +0 -334
  374. package/dist/chunks/chunk-SM3F3PYJ.js +0 -522
  375. package/dist/chunks/chunk-TO7QZGYK.js +0 -105
  376. package/dist/chunks/chunk-TSBUHSN7.js +0 -3495
  377. package/dist/chunks/chunk-TSFWMUCY.js +0 -506
  378. package/dist/chunks/chunk-TZ2YI2VH.js +0 -87
  379. package/dist/chunks/chunk-UG2WOB5L.js +0 -150
  380. package/dist/chunks/chunk-UNKHOYMF.js +0 -559
  381. package/dist/chunks/chunk-UOVWUSLG.js +0 -2099
  382. package/dist/chunks/chunk-V4RMJKQP.js +0 -36
  383. package/dist/chunks/chunk-VGIMO3ZK.js +0 -17
  384. package/dist/chunks/chunk-VGKSIKCC.js +0 -92
  385. package/dist/chunks/chunk-VP5Y3SZG.js +0 -106
  386. package/dist/chunks/chunk-VXYGCOKL.js +0 -28
  387. package/dist/chunks/chunk-W7FGI2GZ.js +0 -233
  388. package/dist/chunks/chunk-WGGABYO5.js +0 -31
  389. package/dist/chunks/chunk-XDGOOW3K.js +0 -60
  390. package/dist/chunks/chunk-XFF5TGRA.js +0 -303
  391. package/dist/chunks/chunk-XNIZGCN5.js +0 -58
  392. package/dist/chunks/chunk-XPJLPUKO.js +0 -117
  393. package/dist/chunks/chunk-XUAWTW4W.js +0 -467
  394. package/dist/chunks/chunk-YPQSDAEW.js +0 -29
  395. package/dist/chunks/chunk-YS76T533.js +0 -270
  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-4IACMLFU.js +0 -141
  400. package/dist/chunks/compile-vercel-config-PQQ3OCLV.js +0 -33
  401. package/dist/chunks/config-BQQKMQBP.js +0 -168
  402. package/dist/chunks/config-OCPNHXQL.js +0 -127
  403. package/dist/chunks/delete-HRKIYPCO.js +0 -159
  404. package/dist/chunks/delete-P2UL3KTU.js +0 -226
  405. package/dist/chunks/detect-projects-ODNU4PK2.js +0 -18
  406. package/dist/chunks/detect-services-U7QGT7VO.js +0 -40
  407. package/dist/chunks/disable-3NYMICQ3.js +0 -198
  408. package/dist/chunks/discard-RNVEJUK3.js +0 -145
  409. package/dist/chunks/edit-63S2RQHR.js +0 -162
  410. package/dist/chunks/edit-CTENFZ7H.js +0 -647
  411. package/dist/chunks/enable-WILWXAHV.js +0 -204
  412. package/dist/chunks/exec-4IPHZ55G.js +0 -1291
  413. package/dist/chunks/export-YHGV3EPK.js +0 -177
  414. package/dist/chunks/fetch-proxy-R3JZNXBZ.js +0 -99
  415. package/dist/chunks/image-MWKS2YMB.js +0 -75
  416. package/dist/chunks/import-builders-H55X5VYD.js +0 -39
  417. package/dist/chunks/inspect-JTJMK6TO.js +0 -596
  418. package/dist/chunks/inspect-KBIPLMGR.js +0 -216
  419. package/dist/chunks/inspect-OP26FDBY.js +0 -171
  420. package/dist/chunks/inspect-SW4UMWTB.js +0 -175
  421. package/dist/chunks/inspect-WPLZPVBO.js +0 -145
  422. package/dist/chunks/list-HE7DWAWH.js +0 -387
  423. package/dist/chunks/list-OUG7WCT7.js +0 -404
  424. package/dist/chunks/list-QUSEURJZ.js +0 -426
  425. package/dist/chunks/login-MIIQJVF3.js +0 -233
  426. package/dist/chunks/ls-24N3DUK4.js +0 -183
  427. package/dist/chunks/ls-3Y7KEFKT.js +0 -175
  428. package/dist/chunks/ls-75F5HIJ5.js +0 -188
  429. package/dist/chunks/ls-REN6X2X5.js +0 -204
  430. package/dist/chunks/ls-W4STUDXK.js +0 -223
  431. package/dist/chunks/ls-Z4CTSD6C.js +0 -210
  432. package/dist/chunks/open-ARMCLPBK.js +0 -116
  433. package/dist/chunks/permissions-JKI67F62.js +0 -99
  434. package/dist/chunks/publish-SMSQ7OX2.js +0 -155
  435. package/dist/chunks/pull-4QZJZELD.js +0 -45
  436. package/dist/chunks/push-T6IYQY2J.js +0 -191
  437. package/dist/chunks/query-CP3JK5LW.js +0 -725
  438. package/dist/chunks/reorder-RAWKFGLV.js +0 -412
  439. package/dist/chunks/reply-235UHUD4.js +0 -176
  440. package/dist/chunks/resolve-5KCLN7QV.js +0 -237
  441. package/dist/chunks/resolve-deployment-framework-preset-NPE6RLV3.js +0 -36
  442. package/dist/chunks/restore-D24WAUAN.js +0 -252
  443. package/dist/chunks/rm-DBQDXSOC.js +0 -162
  444. package/dist/chunks/rm-G5INO77R.js +0 -148
  445. package/dist/chunks/rm-NLKSEKZ5.js +0 -195
  446. package/dist/chunks/rm-QV76CJA4.js +0 -322
  447. package/dist/chunks/rm-TZ4PDDUK.js +0 -147
  448. package/dist/chunks/routes-QVMBXOSX.js +0 -24
  449. package/dist/chunks/rule-inspect-76MC7I2D.js +0 -123
  450. package/dist/chunks/rules-IDUXVTPG.js +0 -89
  451. package/dist/chunks/schema-AV6BHGKY.js +0 -237
  452. package/dist/chunks/schema-QJVQTNB4.js +0 -381
  453. package/dist/chunks/set-L5NFQSCF.js +0 -250
  454. package/dist/chunks/setup-and-link-USSVDKCM.js +0 -65
  455. package/dist/chunks/stamp-AA7R3MZS.js +0 -16
  456. package/dist/chunks/tags-2NLUU4EC.js +0 -69
  457. package/dist/chunks/types-4GAJ7XQQ.js +0 -116
  458. package/dist/chunks/update-WGLBB65M.js +0 -224
  459. package/dist/chunks/vlt-builder-importer-USCFHWPL.js +0 -322
@@ -1,417 +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
- VERCEL_DIR
9
- } from "./chunk-AJ5HUOWB.js";
10
- import {
11
- ConflictingConfigFiles,
12
- DeprecatedNowJson
13
- } from "./chunk-CV5YC2EN.js";
14
- import {
15
- output_manager_default
16
- } from "./chunk-2JIX6UMI.js";
17
- import {
18
- __commonJS,
19
- __require,
20
- __toESM
21
- } from "./chunk-TZ2YI2VH.js";
22
-
23
- // ../../node_modules/.pnpm/dotenv@4.0.0/node_modules/dotenv/lib/main.js
24
- var require_main = __commonJS({
25
- "../../node_modules/.pnpm/dotenv@4.0.0/node_modules/dotenv/lib/main.js"(exports, module) {
26
- "use strict";
27
- var fs = __require("fs");
28
- function parse(src) {
29
- var obj = {};
30
- src.toString().split("\n").forEach(function(line) {
31
- var keyValueArr = line.match(/^\s*([\w\.\-]+)\s*=\s*(.*)?\s*$/);
32
- if (keyValueArr != null) {
33
- var key = keyValueArr[1];
34
- var value = keyValueArr[2] ? keyValueArr[2] : "";
35
- var len = value ? value.length : 0;
36
- if (len > 0 && value.charAt(0) === '"' && value.charAt(len - 1) === '"') {
37
- value = value.replace(/\\n/gm, "\n");
38
- }
39
- value = value.replace(/(^['"]|['"]$)/g, "").trim();
40
- obj[key] = value;
41
- }
42
- });
43
- return obj;
44
- }
45
- function config(options) {
46
- var path = ".env";
47
- var encoding = "utf8";
48
- if (options) {
49
- if (options.path) {
50
- path = options.path;
51
- }
52
- if (options.encoding) {
53
- encoding = options.encoding;
54
- }
55
- }
56
- try {
57
- var parsedObj = parse(fs.readFileSync(path, { encoding }));
58
- Object.keys(parsedObj).forEach(function(key) {
59
- process.env[key] = process.env[key] || parsedObj[key];
60
- });
61
- return { parsed: parsedObj };
62
- } catch (e) {
63
- return { error: e };
64
- }
65
- }
66
- module.exports.config = config;
67
- module.exports.load = config;
68
- module.exports.parse = parse;
69
- }
70
- });
71
-
72
- // src/util/compile-vercel-config.ts
73
- var import_dotenv = __toESM(require_main(), 1);
74
- import { mkdir, readFile, writeFile, unlink, access } from "fs/promises";
75
- import { join, basename } from "path";
76
- import { fork } from "child_process";
77
- import { parse as tomlParse } from "smol-toml";
78
- import { getNodeExecPath, NowBuildError } from "@vercel/build-utils";
79
- function toRouteFormat(item) {
80
- if ("src" in item)
81
- return item;
82
- const { source, destination, headers, statusCode, permanent, ...rest } = item;
83
- const route = {
84
- src: source,
85
- ...rest
86
- };
87
- if (destination)
88
- route.dest = destination;
89
- if (headers)
90
- route.headers = Object.fromEntries(headers.map((h) => [h.key, h.value]));
91
- if (statusCode !== void 0) {
92
- route.status = statusCode;
93
- } else if (permanent !== void 0) {
94
- route.status = permanent ? 308 : 307;
95
- }
96
- return route;
97
- }
98
- function normalizeConfig(config) {
99
- const normalized = { ...config };
100
- const { rewrites, redirects, headers } = normalized;
101
- let allRoutes = normalized.routes || [];
102
- const hasRoutes = allRoutes.length > 0;
103
- const hasRewrites = (rewrites?.length ?? 0) > 0;
104
- const hasRedirects = (redirects?.length ?? 0) > 0;
105
- const hasHeaders = (headers?.length ?? 0) > 0;
106
- function hasRouteFormat(items) {
107
- return items?.some((item) => "src" in item) ?? false;
108
- }
109
- if (hasRoutes && (hasRewrites || hasRedirects || hasHeaders)) {
110
- return normalized;
111
- }
112
- const shouldConvertRewrites = hasRewrites && hasRouteFormat(rewrites);
113
- const shouldConvertRedirects = hasRedirects && hasRouteFormat(redirects);
114
- const shouldConvertHeaders = hasHeaders && hasRouteFormat(headers);
115
- const someWillConvert = shouldConvertRewrites || shouldConvertRedirects || shouldConvertHeaders;
116
- const someWontConvert = hasRewrites && !shouldConvertRewrites || hasRedirects && !shouldConvertRedirects || hasHeaders && !shouldConvertHeaders;
117
- if (someWillConvert && someWontConvert) {
118
- throw new NowBuildError({
119
- code: "INVALID_VERCEL_CONFIG",
120
- message: "Transforms (e.g., requestHeaders) require the `routes` format, which cannot be used alongside `rewrites`, `redirects`, or `headers`. Move everything into the `routes` array instead.",
121
- link: "https://vercel.com/docs/projects/project-configuration#routes"
122
- });
123
- }
124
- if (rewrites && shouldConvertRewrites) {
125
- allRoutes = [...allRoutes, ...rewrites.map(toRouteFormat)];
126
- delete normalized.rewrites;
127
- }
128
- if (redirects && shouldConvertRedirects) {
129
- allRoutes = [...allRoutes, ...redirects.map(toRouteFormat)];
130
- delete normalized.redirects;
131
- }
132
- if (headers && shouldConvertHeaders) {
133
- allRoutes = [...allRoutes, ...headers.map(toRouteFormat)];
134
- delete normalized.headers;
135
- }
136
- if (allRoutes.length > 0) {
137
- normalized.routes = allRoutes.map(toRouteFormat);
138
- }
139
- return normalized;
140
- }
141
- var VERCEL_CONFIG_EXTENSIONS = [
142
- "ts",
143
- "mts",
144
- "js",
145
- "mjs",
146
- "cjs"
147
- ];
148
- var DEFAULT_VERCEL_CONFIG_FILENAME = "Vercel config";
149
- async function fileExists(filePath) {
150
- try {
151
- await access(filePath);
152
- return true;
153
- } catch {
154
- return false;
155
- }
156
- }
157
- async function findAllVercelConfigFiles(workPath) {
158
- const foundFiles = [];
159
- for (const ext of VERCEL_CONFIG_EXTENSIONS) {
160
- const configPath = join(workPath, `vercel.${ext}`);
161
- if (await fileExists(configPath)) {
162
- foundFiles.push(configPath);
163
- }
164
- }
165
- return foundFiles;
166
- }
167
- async function findSourceVercelConfigFile(workPath) {
168
- for (const ext of VERCEL_CONFIG_EXTENSIONS) {
169
- const configPath = join(workPath, `vercel.${ext}`);
170
- if (await fileExists(configPath)) {
171
- return basename(configPath);
172
- }
173
- }
174
- const tomlPath = join(workPath, "vercel.toml");
175
- if (await fileExists(tomlPath)) {
176
- return "vercel.toml";
177
- }
178
- return null;
179
- }
180
- async function findVercelConfigFile(workPath) {
181
- const foundFiles = await findAllVercelConfigFiles(workPath);
182
- if (foundFiles.length > 1) {
183
- throw new ConflictingConfigFiles(
184
- foundFiles,
185
- "Multiple vercel config files found. Please use only one configuration file.",
186
- "https://vercel.com/docs/projects/project-configuration"
187
- );
188
- }
189
- return foundFiles[0] || null;
190
- }
191
- function parseConfigLoaderError(stderr) {
192
- if (!stderr.trim()) {
193
- return "";
194
- }
195
- const moduleNotFoundMatch = stderr.match(
196
- /Error \[ERR_MODULE_NOT_FOUND\]: Cannot find package '([^']+)'/
197
- );
198
- if (moduleNotFoundMatch) {
199
- const packageName = moduleNotFoundMatch[1];
200
- return `Cannot find package '${packageName}'. Make sure it's installed in your project dependencies.`;
201
- }
202
- const syntaxErrorMatch = stderr.match(/SyntaxError: (.+?)(?:\n|$)/);
203
- if (syntaxErrorMatch) {
204
- return `Syntax error: ${syntaxErrorMatch[1]}`;
205
- }
206
- const errorMatch = stderr.match(
207
- /^(?:Error|TypeError|ReferenceError): (.+?)(?:\n|$)/m
208
- );
209
- if (errorMatch) {
210
- return errorMatch[1];
211
- }
212
- return stderr.trim();
213
- }
214
- async function compileVercelConfig(workPath) {
215
- const vercelJsonPath = join(workPath, "vercel.json");
216
- const nowJsonPath = join(workPath, "now.json");
217
- const vercelTomlPath = join(workPath, "vercel.toml");
218
- const hasVercelJson = await fileExists(vercelJsonPath);
219
- const hasNowJson = await fileExists(nowJsonPath);
220
- const hasVercelToml = await fileExists(vercelTomlPath);
221
- const vercelConfigPath = await findVercelConfigFile(workPath);
222
- const vercelDir = join(workPath, VERCEL_DIR);
223
- const compiledConfigPath = join(vercelDir, "vercel.json");
224
- if (hasNowJson) {
225
- throw new DeprecatedNowJson(nowJsonPath);
226
- }
227
- const foundConfigs = [];
228
- if (hasVercelJson)
229
- foundConfigs.push(vercelJsonPath);
230
- if (hasVercelToml)
231
- foundConfigs.push(vercelTomlPath);
232
- if (vercelConfigPath)
233
- foundConfigs.push(vercelConfigPath);
234
- if (foundConfigs.length > 1) {
235
- throw new ConflictingConfigFiles(
236
- foundConfigs,
237
- `Multiple config files found: ${foundConfigs.map((f) => basename(f)).join(", ")}. Please use only one configuration method.`,
238
- "https://vercel.com/docs/projects/project-configuration"
239
- );
240
- }
241
- if (!vercelConfigPath && !hasVercelToml) {
242
- if (hasVercelJson) {
243
- return {
244
- configPath: vercelJsonPath,
245
- wasCompiled: false
246
- };
247
- }
248
- if (await fileExists(compiledConfigPath)) {
249
- return {
250
- configPath: compiledConfigPath,
251
- wasCompiled: true,
252
- sourceFile: await findSourceVercelConfigFile(workPath) ?? void 0
253
- };
254
- }
255
- return {
256
- configPath: null,
257
- wasCompiled: false
258
- };
259
- }
260
- if (hasVercelToml) {
261
- try {
262
- const tomlContent = await readFile(vercelTomlPath, "utf8");
263
- const config = tomlParse(tomlContent);
264
- const normalizedConfig = normalizeConfig(config);
265
- await mkdir(vercelDir, { recursive: true });
266
- await writeFile(
267
- compiledConfigPath,
268
- JSON.stringify(normalizedConfig, null, 2),
269
- "utf-8"
270
- );
271
- output_manager_default.debug(`Compiled ${vercelTomlPath} -> ${compiledConfigPath}`);
272
- return {
273
- configPath: compiledConfigPath,
274
- wasCompiled: true,
275
- sourceFile: "vercel.toml"
276
- };
277
- } catch (error) {
278
- throw new NowBuildError({
279
- code: error.code ?? "vercel_toml_parse_failed",
280
- message: `Failed to parse vercel.toml: ${error.message}`,
281
- link: error.link ?? "https://vercel.com/docs/projects/project-configuration"
282
- });
283
- }
284
- }
285
- const sourceConfigPath = vercelConfigPath;
286
- (0, import_dotenv.config)({ path: join(workPath, ".env") });
287
- (0, import_dotenv.config)({ path: join(workPath, ".env.local") });
288
- const tempOutPath = join(vercelDir, "vercel-temp.mjs");
289
- const loaderPath = join(vercelDir, "vercel-loader.mjs");
290
- try {
291
- const { build } = await import("esbuild");
292
- await mkdir(vercelDir, { recursive: true });
293
- await build({
294
- entryPoints: [sourceConfigPath],
295
- bundle: true,
296
- platform: "node",
297
- format: "esm",
298
- outfile: tempOutPath,
299
- packages: "external",
300
- target: "node20",
301
- sourcemap: "inline"
302
- });
303
- const loaderScript = `
304
- import { pathToFileURL } from 'url';
305
- const configModule = await import(pathToFileURL(process.argv[2]).href);
306
- const config = ('default' in configModule) ? configModule.default : ('config' in configModule) ? configModule.config : configModule;
307
- process.send(config);
308
- `;
309
- await writeFile(loaderPath, loaderScript, "utf-8");
310
- const config = await new Promise((resolve, reject) => {
311
- const child = fork(loaderPath, [tempOutPath], {
312
- execPath: getNodeExecPath(),
313
- stdio: ["pipe", "pipe", "pipe", "ipc"]
314
- });
315
- let stderrOutput = "";
316
- let stdoutOutput = "";
317
- if (child.stderr) {
318
- child.stderr.on("data", (data) => {
319
- stderrOutput += data.toString();
320
- });
321
- }
322
- if (child.stdout) {
323
- child.stdout.on("data", (data) => {
324
- stdoutOutput += data.toString();
325
- });
326
- }
327
- const timeout = setTimeout(() => {
328
- child.kill();
329
- reject(new Error("Config loader timed out after 10 seconds"));
330
- }, 1e4);
331
- child.on("message", (message) => {
332
- clearTimeout(timeout);
333
- child.kill();
334
- resolve(message);
335
- });
336
- child.on("error", (err) => {
337
- clearTimeout(timeout);
338
- reject(err);
339
- });
340
- child.on("exit", (code) => {
341
- clearTimeout(timeout);
342
- if (code !== 0) {
343
- if (stderrOutput.trim()) {
344
- output_manager_default.log(stderrOutput);
345
- }
346
- if (stdoutOutput.trim()) {
347
- output_manager_default.log(stdoutOutput);
348
- }
349
- const parsedError = parseConfigLoaderError(stderrOutput);
350
- if (parsedError) {
351
- reject(new Error(parsedError));
352
- } else if (stdoutOutput.trim()) {
353
- reject(new Error(stdoutOutput.trim()));
354
- } else {
355
- reject(new Error(`Config loader exited with code ${code}`));
356
- }
357
- }
358
- });
359
- });
360
- const normalizedConfig = normalizeConfig(config);
361
- await writeFile(
362
- compiledConfigPath,
363
- JSON.stringify(normalizedConfig, null, 2),
364
- "utf-8"
365
- );
366
- output_manager_default.debug(`Compiled ${sourceConfigPath} -> ${compiledConfigPath}`);
367
- return {
368
- configPath: compiledConfigPath,
369
- wasCompiled: true,
370
- sourceFile: await findSourceVercelConfigFile(workPath) ?? void 0
371
- };
372
- } catch (error) {
373
- throw new NowBuildError({
374
- code: error.code ?? "vercel_ts_compilation_failed",
375
- message: `Failed to compile ${basename(sourceConfigPath)}: ${error.message}`,
376
- link: error.link ?? "https://vercel.com/docs/projects/project-configuration"
377
- });
378
- } finally {
379
- await Promise.all([
380
- unlink(tempOutPath).catch((err) => {
381
- if (err.code !== "ENOENT") {
382
- output_manager_default.debug(`Failed to cleanup temp file: ${err}`);
383
- }
384
- }),
385
- unlink(loaderPath).catch((err) => {
386
- if (err.code !== "ENOENT") {
387
- output_manager_default.debug(`Failed to cleanup loader file: ${err}`);
388
- }
389
- })
390
- ]);
391
- }
392
- }
393
- async function getVercelConfigPath(workPath) {
394
- const vercelJsonPath = join(workPath, "vercel.json");
395
- const vercelTomlPath = join(workPath, "vercel.toml");
396
- const compiledConfigPath = join(workPath, VERCEL_DIR, "vercel.json");
397
- if (await fileExists(vercelJsonPath)) {
398
- return vercelJsonPath;
399
- }
400
- if (await fileExists(vercelTomlPath)) {
401
- return vercelTomlPath;
402
- }
403
- if (await fileExists(compiledConfigPath)) {
404
- return compiledConfigPath;
405
- }
406
- return vercelJsonPath;
407
- }
408
-
409
- export {
410
- require_main,
411
- normalizeConfig,
412
- VERCEL_CONFIG_EXTENSIONS,
413
- DEFAULT_VERCEL_CONFIG_FILENAME,
414
- findSourceVercelConfigFile,
415
- compileVercelConfig,
416
- getVercelConfigPath
417
- };
@@ -1,81 +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
- AGENT_REASON,
9
- AGENT_STATUS
10
- } from "./chunk-RNSMTWA6.js";
11
- import {
12
- getScope
13
- } from "./chunk-SM3F3PYJ.js";
14
- import {
15
- getOrgById
16
- } from "./chunk-AJ5HUOWB.js";
17
- import {
18
- buildCommandWithGlobalFlags,
19
- outputAgentError,
20
- shouldEmitNonInteractiveCommandError
21
- } from "./chunk-26CU4Q3C.js";
22
- import {
23
- output_manager_default
24
- } from "./chunk-2JIX6UMI.js";
25
-
26
- // src/util/projects/project-not-found-error.ts
27
- async function printProjectNotFoundError(client, projectNameOrId, commandName, orgId) {
28
- let contextName;
29
- try {
30
- if (orgId) {
31
- const org = await getOrgById(client, orgId);
32
- contextName = org?.slug ?? orgId;
33
- } else {
34
- const scope = await getScope(client);
35
- contextName = scope.contextName;
36
- }
37
- } catch (err) {
38
- contextName = orgId;
39
- output_manager_default.debug(`Scope lookup failed during error reporting: ${err}`);
40
- }
41
- const scopeClause = contextName ? ` (${contextName})` : "";
42
- const headline = `Project "${projectNameOrId}" was not found in the current scope${scopeClause}.`;
43
- output_manager_default.error(
44
- `${headline}
45
-
46
- If it lives in a different team or account:
47
- \u2022 Retry with \`--scope <team-slug|your-username>\`, or
48
- \u2022 Run \`vercel switch <team-slug|your-username>\` to change scope.
49
-
50
- List accessible teams with \`vercel teams ls\`.`
51
- );
52
- if (!shouldEmitNonInteractiveCommandError(client)) {
53
- return;
54
- }
55
- const retryWithScope = buildCommandWithGlobalFlags(
56
- client.argv,
57
- `${commandName} --project ${projectNameOrId} --scope <team-slug>`
58
- );
59
- outputAgentError(
60
- client,
61
- {
62
- status: AGENT_STATUS.ERROR,
63
- reason: AGENT_REASON.PROJECT_NOT_FOUND,
64
- message: `${headline} If it lives in a different team or account, retry with --scope <team-slug|your-username> or run \`vercel switch <team-slug|your-username>\` to change scope.`,
65
- ...contextName ? { scope: contextName } : {},
66
- next: [
67
- { command: "vercel teams ls", when: "list accessible teams" },
68
- { command: retryWithScope, when: "retry with a specific team" },
69
- {
70
- command: "vercel switch <team-slug>",
71
- when: "change the default scope"
72
- }
73
- ]
74
- },
75
- 1
76
- );
77
- }
78
-
79
- export {
80
- printProjectNotFoundError
81
- };
@@ -1,43 +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
- } from "./chunk-TZ2YI2VH.js";
10
-
11
- // ../../node_modules/.pnpm/json-parse-better-errors@1.0.2/node_modules/json-parse-better-errors/index.js
12
- var require_json_parse_better_errors = __commonJS({
13
- "../../node_modules/.pnpm/json-parse-better-errors@1.0.2/node_modules/json-parse-better-errors/index.js"(exports, module) {
14
- "use strict";
15
- module.exports = parseJson;
16
- function parseJson(txt, reviver, context) {
17
- context = context || 20;
18
- try {
19
- return JSON.parse(txt, reviver);
20
- } catch (e) {
21
- if (typeof txt !== "string") {
22
- const isEmptyArray = Array.isArray(txt) && txt.length === 0;
23
- const errorMessage = "Cannot parse " + (isEmptyArray ? "an empty array" : String(txt));
24
- throw new TypeError(errorMessage);
25
- }
26
- const syntaxErr = e.message.match(/^Unexpected token.*position\s+(\d+)/i);
27
- const errIdx = syntaxErr ? +syntaxErr[1] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null;
28
- if (errIdx != null) {
29
- const start = errIdx <= context ? 0 : errIdx - context;
30
- const end = errIdx + context >= txt.length ? txt.length : errIdx + context;
31
- e.message += ` while parsing near '${start === 0 ? "" : "..."}${txt.slice(start, end)}${end === txt.length ? "" : "..."}'`;
32
- } else {
33
- e.message += ` while parsing '${txt.slice(0, context * 2)}'`;
34
- }
35
- throw e;
36
- }
37
- }
38
- }
39
- });
40
-
41
- export {
42
- require_json_parse_better_errors
43
- };