vercel 59.14.0 → 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-64IF634X.js → chunk-BRK4OB4B.js} +1 -12
  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-A3NYPUKZ.js → chunk-CZSOZKHX.js} +1 -11
  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-YMCRE6IG.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-2473DUBR.js → chunk-QR7QPUFN.js} +1 -9
  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/{chunk-GGPE5377.js → chunk-T3GQAMBJ.js} +1 -9
  140. package/dist/chunks/chunk-T52FMXWC.js +7 -0
  141. package/dist/chunks/chunk-TG2RCYTH.js +7 -0
  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/{pkg-56KRLZ5K.js → chunk-XD2LZRBS.js} +1 -7
  159. package/dist/chunks/chunk-XFVGX5HG.js +7 -0
  160. package/dist/chunks/chunk-XHOGOH6N.js +7 -0
  161. package/dist/chunks/{update-route-version-E3V47KNI.js → chunk-XPXOV5UO.js} +1 -7
  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 -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,1854 +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_end_of_stream
9
- } from "./chunk-ZDU2NODC.js";
10
- import {
11
- require_once
12
- } from "./chunk-PEC3CQSK.js";
13
- import {
14
- require_signal_exit
15
- } from "./chunk-2JIX6UMI.js";
16
- import {
17
- __commonJS,
18
- __require
19
- } from "./chunk-TZ2YI2VH.js";
20
-
21
- // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
22
- var require_windows = __commonJS({
23
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
24
- module.exports = isexe;
25
- isexe.sync = sync;
26
- var fs = __require("fs");
27
- function checkPathExt(path, options) {
28
- var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
29
- if (!pathext) {
30
- return true;
31
- }
32
- pathext = pathext.split(";");
33
- if (pathext.indexOf("") !== -1) {
34
- return true;
35
- }
36
- for (var i = 0; i < pathext.length; i++) {
37
- var p = pathext[i].toLowerCase();
38
- if (p && path.substr(-p.length).toLowerCase() === p) {
39
- return true;
40
- }
41
- }
42
- return false;
43
- }
44
- function checkStat(stat, path, options) {
45
- if (!stat.isSymbolicLink() && !stat.isFile()) {
46
- return false;
47
- }
48
- return checkPathExt(path, options);
49
- }
50
- function isexe(path, options, cb) {
51
- fs.stat(path, function(er, stat) {
52
- cb(er, er ? false : checkStat(stat, path, options));
53
- });
54
- }
55
- function sync(path, options) {
56
- return checkStat(fs.statSync(path), path, options);
57
- }
58
- }
59
- });
60
-
61
- // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
62
- var require_mode = __commonJS({
63
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
64
- module.exports = isexe;
65
- isexe.sync = sync;
66
- var fs = __require("fs");
67
- function isexe(path, options, cb) {
68
- fs.stat(path, function(er, stat) {
69
- cb(er, er ? false : checkStat(stat, options));
70
- });
71
- }
72
- function sync(path, options) {
73
- return checkStat(fs.statSync(path), options);
74
- }
75
- function checkStat(stat, options) {
76
- return stat.isFile() && checkMode(stat, options);
77
- }
78
- function checkMode(stat, options) {
79
- var mod = stat.mode;
80
- var uid = stat.uid;
81
- var gid = stat.gid;
82
- var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
83
- var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
84
- var u = parseInt("100", 8);
85
- var g = parseInt("010", 8);
86
- var o = parseInt("001", 8);
87
- var ug = u | g;
88
- var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
89
- return ret;
90
- }
91
- }
92
- });
93
-
94
- // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
95
- var require_isexe = __commonJS({
96
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
97
- var fs = __require("fs");
98
- var core;
99
- if (process.platform === "win32" || global.TESTING_WINDOWS) {
100
- core = require_windows();
101
- } else {
102
- core = require_mode();
103
- }
104
- module.exports = isexe;
105
- isexe.sync = sync;
106
- function isexe(path, options, cb) {
107
- if (typeof options === "function") {
108
- cb = options;
109
- options = {};
110
- }
111
- if (!cb) {
112
- if (typeof Promise !== "function") {
113
- throw new TypeError("callback not provided");
114
- }
115
- return new Promise(function(resolve, reject) {
116
- isexe(path, options || {}, function(er, is) {
117
- if (er) {
118
- reject(er);
119
- } else {
120
- resolve(is);
121
- }
122
- });
123
- });
124
- }
125
- core(path, options || {}, function(er, is) {
126
- if (er) {
127
- if (er.code === "EACCES" || options && options.ignoreErrors) {
128
- er = null;
129
- is = false;
130
- }
131
- }
132
- cb(er, is);
133
- });
134
- }
135
- function sync(path, options) {
136
- try {
137
- return core.sync(path, options || {});
138
- } catch (er) {
139
- if (options && options.ignoreErrors || er.code === "EACCES") {
140
- return false;
141
- } else {
142
- throw er;
143
- }
144
- }
145
- }
146
- }
147
- });
148
-
149
- // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
150
- var require_which = __commonJS({
151
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
152
- var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
153
- var path = __require("path");
154
- var COLON = isWindows ? ";" : ":";
155
- var isexe = require_isexe();
156
- var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
157
- var getPathInfo = (cmd, opt) => {
158
- const colon = opt.colon || COLON;
159
- const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
160
- // windows always checks the cwd first
161
- ...isWindows ? [process.cwd()] : [],
162
- ...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
163
- "").split(colon)
164
- ];
165
- const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
166
- const pathExt = isWindows ? pathExtExe.split(colon) : [""];
167
- if (isWindows) {
168
- if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
169
- pathExt.unshift("");
170
- }
171
- return {
172
- pathEnv,
173
- pathExt,
174
- pathExtExe
175
- };
176
- };
177
- var which = (cmd, opt, cb) => {
178
- if (typeof opt === "function") {
179
- cb = opt;
180
- opt = {};
181
- }
182
- if (!opt)
183
- opt = {};
184
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
185
- const found = [];
186
- const step = (i) => new Promise((resolve, reject) => {
187
- if (i === pathEnv.length)
188
- return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
189
- const ppRaw = pathEnv[i];
190
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
191
- const pCmd = path.join(pathPart, cmd);
192
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
193
- resolve(subStep(p, i, 0));
194
- });
195
- const subStep = (p, i, ii) => new Promise((resolve, reject) => {
196
- if (ii === pathExt.length)
197
- return resolve(step(i + 1));
198
- const ext = pathExt[ii];
199
- isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
200
- if (!er && is) {
201
- if (opt.all)
202
- found.push(p + ext);
203
- else
204
- return resolve(p + ext);
205
- }
206
- return resolve(subStep(p, i, ii + 1));
207
- });
208
- });
209
- return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
210
- };
211
- var whichSync = (cmd, opt) => {
212
- opt = opt || {};
213
- const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
214
- const found = [];
215
- for (let i = 0; i < pathEnv.length; i++) {
216
- const ppRaw = pathEnv[i];
217
- const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
218
- const pCmd = path.join(pathPart, cmd);
219
- const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
220
- for (let j = 0; j < pathExt.length; j++) {
221
- const cur = p + pathExt[j];
222
- try {
223
- const is = isexe.sync(cur, { pathExt: pathExtExe });
224
- if (is) {
225
- if (opt.all)
226
- found.push(cur);
227
- else
228
- return cur;
229
- }
230
- } catch (ex) {
231
- }
232
- }
233
- }
234
- if (opt.all && found.length)
235
- return found;
236
- if (opt.nothrow)
237
- return null;
238
- throw getNotFoundError(cmd);
239
- };
240
- module.exports = which;
241
- which.sync = whichSync;
242
- }
243
- });
244
-
245
- // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
246
- var require_path_key = __commonJS({
247
- "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
248
- "use strict";
249
- var pathKey = (options = {}) => {
250
- const environment = options.env || process.env;
251
- const platform = options.platform || process.platform;
252
- if (platform !== "win32") {
253
- return "PATH";
254
- }
255
- return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
256
- };
257
- module.exports = pathKey;
258
- module.exports.default = pathKey;
259
- }
260
- });
261
-
262
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
263
- var require_resolveCommand = __commonJS({
264
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
265
- "use strict";
266
- var path = __require("path");
267
- var which = require_which();
268
- var getPathKey = require_path_key();
269
- function resolveCommandAttempt(parsed, withoutPathExt) {
270
- const env = parsed.options.env || process.env;
271
- const cwd = process.cwd();
272
- const hasCustomCwd = parsed.options.cwd != null;
273
- const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
274
- if (shouldSwitchCwd) {
275
- try {
276
- process.chdir(parsed.options.cwd);
277
- } catch (err) {
278
- }
279
- }
280
- let resolved;
281
- try {
282
- resolved = which.sync(parsed.command, {
283
- path: env[getPathKey({ env })],
284
- pathExt: withoutPathExt ? path.delimiter : void 0
285
- });
286
- } catch (e) {
287
- } finally {
288
- if (shouldSwitchCwd) {
289
- process.chdir(cwd);
290
- }
291
- }
292
- if (resolved) {
293
- resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
294
- }
295
- return resolved;
296
- }
297
- function resolveCommand(parsed) {
298
- return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
299
- }
300
- module.exports = resolveCommand;
301
- }
302
- });
303
-
304
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
305
- var require_escape = __commonJS({
306
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
307
- "use strict";
308
- var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
309
- function escapeCommand(arg) {
310
- arg = arg.replace(metaCharsRegExp, "^$1");
311
- return arg;
312
- }
313
- function escapeArgument(arg, doubleEscapeMetaChars) {
314
- arg = `${arg}`;
315
- arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
316
- arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
317
- arg = `"${arg}"`;
318
- arg = arg.replace(metaCharsRegExp, "^$1");
319
- if (doubleEscapeMetaChars) {
320
- arg = arg.replace(metaCharsRegExp, "^$1");
321
- }
322
- return arg;
323
- }
324
- module.exports.command = escapeCommand;
325
- module.exports.argument = escapeArgument;
326
- }
327
- });
328
-
329
- // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
330
- var require_shebang_regex = __commonJS({
331
- "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
332
- "use strict";
333
- module.exports = /^#!(.*)/;
334
- }
335
- });
336
-
337
- // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
338
- var require_shebang_command = __commonJS({
339
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
340
- "use strict";
341
- var shebangRegex = require_shebang_regex();
342
- module.exports = (string = "") => {
343
- const match = string.match(shebangRegex);
344
- if (!match) {
345
- return null;
346
- }
347
- const [path, argument] = match[0].replace(/#! ?/, "").split(" ");
348
- const binary = path.split("/").pop();
349
- if (binary === "env") {
350
- return argument;
351
- }
352
- return argument ? `${binary} ${argument}` : binary;
353
- };
354
- }
355
- });
356
-
357
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
358
- var require_readShebang = __commonJS({
359
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
360
- "use strict";
361
- var fs = __require("fs");
362
- var shebangCommand = require_shebang_command();
363
- function readShebang(command) {
364
- const size = 150;
365
- const buffer = Buffer.alloc(size);
366
- let fd;
367
- try {
368
- fd = fs.openSync(command, "r");
369
- fs.readSync(fd, buffer, 0, size, 0);
370
- fs.closeSync(fd);
371
- } catch (e) {
372
- }
373
- return shebangCommand(buffer.toString());
374
- }
375
- module.exports = readShebang;
376
- }
377
- });
378
-
379
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
380
- var require_parse = __commonJS({
381
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
382
- "use strict";
383
- var path = __require("path");
384
- var resolveCommand = require_resolveCommand();
385
- var escape = require_escape();
386
- var readShebang = require_readShebang();
387
- var isWin = process.platform === "win32";
388
- var isExecutableRegExp = /\.(?:com|exe)$/i;
389
- var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
390
- function detectShebang(parsed) {
391
- parsed.file = resolveCommand(parsed);
392
- const shebang = parsed.file && readShebang(parsed.file);
393
- if (shebang) {
394
- parsed.args.unshift(parsed.file);
395
- parsed.command = shebang;
396
- return resolveCommand(parsed);
397
- }
398
- return parsed.file;
399
- }
400
- function parseNonShell(parsed) {
401
- if (!isWin) {
402
- return parsed;
403
- }
404
- const commandFile = detectShebang(parsed);
405
- const needsShell = !isExecutableRegExp.test(commandFile);
406
- if (parsed.options.forceShell || needsShell) {
407
- const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
408
- parsed.command = path.normalize(parsed.command);
409
- parsed.command = escape.command(parsed.command);
410
- parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
411
- const shellCommand = [parsed.command].concat(parsed.args).join(" ");
412
- parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
413
- parsed.command = process.env.comspec || "cmd.exe";
414
- parsed.options.windowsVerbatimArguments = true;
415
- }
416
- return parsed;
417
- }
418
- function parse(command, args, options) {
419
- if (args && !Array.isArray(args)) {
420
- options = args;
421
- args = null;
422
- }
423
- args = args ? args.slice(0) : [];
424
- options = Object.assign({}, options);
425
- const parsed = {
426
- command,
427
- args,
428
- options,
429
- file: void 0,
430
- original: {
431
- command,
432
- args
433
- }
434
- };
435
- return options.shell ? parsed : parseNonShell(parsed);
436
- }
437
- module.exports = parse;
438
- }
439
- });
440
-
441
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
442
- var require_enoent = __commonJS({
443
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
444
- "use strict";
445
- var isWin = process.platform === "win32";
446
- function notFoundError(original, syscall) {
447
- return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
448
- code: "ENOENT",
449
- errno: "ENOENT",
450
- syscall: `${syscall} ${original.command}`,
451
- path: original.command,
452
- spawnargs: original.args
453
- });
454
- }
455
- function hookChildProcess(cp, parsed) {
456
- if (!isWin) {
457
- return;
458
- }
459
- const originalEmit = cp.emit;
460
- cp.emit = function(name, arg1) {
461
- if (name === "exit") {
462
- const err = verifyENOENT(arg1, parsed);
463
- if (err) {
464
- return originalEmit.call(cp, "error", err);
465
- }
466
- }
467
- return originalEmit.apply(cp, arguments);
468
- };
469
- }
470
- function verifyENOENT(status, parsed) {
471
- if (isWin && status === 1 && !parsed.file) {
472
- return notFoundError(parsed.original, "spawn");
473
- }
474
- return null;
475
- }
476
- function verifyENOENTSync(status, parsed) {
477
- if (isWin && status === 1 && !parsed.file) {
478
- return notFoundError(parsed.original, "spawnSync");
479
- }
480
- return null;
481
- }
482
- module.exports = {
483
- hookChildProcess,
484
- verifyENOENT,
485
- verifyENOENTSync,
486
- notFoundError
487
- };
488
- }
489
- });
490
-
491
- // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
492
- var require_cross_spawn = __commonJS({
493
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
494
- "use strict";
495
- var cp = __require("child_process");
496
- var parse = require_parse();
497
- var enoent = require_enoent();
498
- function spawn(command, args, options) {
499
- const parsed = parse(command, args, options);
500
- const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
501
- enoent.hookChildProcess(spawned, parsed);
502
- return spawned;
503
- }
504
- function spawnSync(command, args, options) {
505
- const parsed = parse(command, args, options);
506
- const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
507
- result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
508
- return result;
509
- }
510
- module.exports = spawn;
511
- module.exports.spawn = spawn;
512
- module.exports.sync = spawnSync;
513
- module.exports._parse = parse;
514
- module.exports._enoent = enoent;
515
- }
516
- });
517
-
518
- // ../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js
519
- var require_strip_final_newline = __commonJS({
520
- "../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports, module) {
521
- "use strict";
522
- module.exports = (input) => {
523
- const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
524
- const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
525
- if (input[input.length - 1] === LF) {
526
- input = input.slice(0, input.length - 1);
527
- }
528
- if (input[input.length - 1] === CR) {
529
- input = input.slice(0, input.length - 1);
530
- }
531
- return input;
532
- };
533
- }
534
- });
535
-
536
- // ../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js
537
- var require_npm_run_path = __commonJS({
538
- "../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports, module) {
539
- "use strict";
540
- var path = __require("path");
541
- var pathKey = require_path_key();
542
- var npmRunPath = (options) => {
543
- options = {
544
- cwd: process.cwd(),
545
- path: process.env[pathKey()],
546
- execPath: process.execPath,
547
- ...options
548
- };
549
- let previous;
550
- let cwdPath = path.resolve(options.cwd);
551
- const result = [];
552
- while (previous !== cwdPath) {
553
- result.push(path.join(cwdPath, "node_modules/.bin"));
554
- previous = cwdPath;
555
- cwdPath = path.resolve(cwdPath, "..");
556
- }
557
- const execPathDir = path.resolve(options.cwd, options.execPath, "..");
558
- result.push(execPathDir);
559
- return result.concat(options.path).join(path.delimiter);
560
- };
561
- module.exports = npmRunPath;
562
- module.exports.default = npmRunPath;
563
- module.exports.env = (options) => {
564
- options = {
565
- env: process.env,
566
- ...options
567
- };
568
- const env = { ...options.env };
569
- const path2 = pathKey({ env });
570
- options.path = env[path2];
571
- env[path2] = module.exports(options);
572
- return env;
573
- };
574
- }
575
- });
576
-
577
- // ../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
578
- var require_mimic_fn = __commonJS({
579
- "../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module) {
580
- "use strict";
581
- var mimicFn = (to, from) => {
582
- for (const prop of Reflect.ownKeys(from)) {
583
- Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
584
- }
585
- return to;
586
- };
587
- module.exports = mimicFn;
588
- module.exports.default = mimicFn;
589
- }
590
- });
591
-
592
- // ../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js
593
- var require_onetime = __commonJS({
594
- "../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports, module) {
595
- "use strict";
596
- var mimicFn = require_mimic_fn();
597
- var calledFunctions = /* @__PURE__ */ new WeakMap();
598
- var onetime = (function_, options = {}) => {
599
- if (typeof function_ !== "function") {
600
- throw new TypeError("Expected a function");
601
- }
602
- let returnValue;
603
- let callCount = 0;
604
- const functionName = function_.displayName || function_.name || "<anonymous>";
605
- const onetime2 = function(...arguments_) {
606
- calledFunctions.set(onetime2, ++callCount);
607
- if (callCount === 1) {
608
- returnValue = function_.apply(this, arguments_);
609
- function_ = null;
610
- } else if (options.throw === true) {
611
- throw new Error(`Function \`${functionName}\` can only be called once`);
612
- }
613
- return returnValue;
614
- };
615
- mimicFn(onetime2, function_);
616
- calledFunctions.set(onetime2, callCount);
617
- return onetime2;
618
- };
619
- module.exports = onetime;
620
- module.exports.default = onetime;
621
- module.exports.callCount = (function_) => {
622
- if (!calledFunctions.has(function_)) {
623
- throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
624
- }
625
- return calledFunctions.get(function_);
626
- };
627
- }
628
- });
629
-
630
- // ../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/core.js
631
- var require_core = __commonJS({
632
- "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/core.js"(exports) {
633
- "use strict";
634
- Object.defineProperty(exports, "__esModule", { value: true });
635
- exports.SIGNALS = void 0;
636
- var SIGNALS = [
637
- {
638
- name: "SIGHUP",
639
- number: 1,
640
- action: "terminate",
641
- description: "Terminal closed",
642
- standard: "posix"
643
- },
644
- {
645
- name: "SIGINT",
646
- number: 2,
647
- action: "terminate",
648
- description: "User interruption with CTRL-C",
649
- standard: "ansi"
650
- },
651
- {
652
- name: "SIGQUIT",
653
- number: 3,
654
- action: "core",
655
- description: "User interruption with CTRL-\\",
656
- standard: "posix"
657
- },
658
- {
659
- name: "SIGILL",
660
- number: 4,
661
- action: "core",
662
- description: "Invalid machine instruction",
663
- standard: "ansi"
664
- },
665
- {
666
- name: "SIGTRAP",
667
- number: 5,
668
- action: "core",
669
- description: "Debugger breakpoint",
670
- standard: "posix"
671
- },
672
- {
673
- name: "SIGABRT",
674
- number: 6,
675
- action: "core",
676
- description: "Aborted",
677
- standard: "ansi"
678
- },
679
- {
680
- name: "SIGIOT",
681
- number: 6,
682
- action: "core",
683
- description: "Aborted",
684
- standard: "bsd"
685
- },
686
- {
687
- name: "SIGBUS",
688
- number: 7,
689
- action: "core",
690
- description: "Bus error due to misaligned, non-existing address or paging error",
691
- standard: "bsd"
692
- },
693
- {
694
- name: "SIGEMT",
695
- number: 7,
696
- action: "terminate",
697
- description: "Command should be emulated but is not implemented",
698
- standard: "other"
699
- },
700
- {
701
- name: "SIGFPE",
702
- number: 8,
703
- action: "core",
704
- description: "Floating point arithmetic error",
705
- standard: "ansi"
706
- },
707
- {
708
- name: "SIGKILL",
709
- number: 9,
710
- action: "terminate",
711
- description: "Forced termination",
712
- standard: "posix",
713
- forced: true
714
- },
715
- {
716
- name: "SIGUSR1",
717
- number: 10,
718
- action: "terminate",
719
- description: "Application-specific signal",
720
- standard: "posix"
721
- },
722
- {
723
- name: "SIGSEGV",
724
- number: 11,
725
- action: "core",
726
- description: "Segmentation fault",
727
- standard: "ansi"
728
- },
729
- {
730
- name: "SIGUSR2",
731
- number: 12,
732
- action: "terminate",
733
- description: "Application-specific signal",
734
- standard: "posix"
735
- },
736
- {
737
- name: "SIGPIPE",
738
- number: 13,
739
- action: "terminate",
740
- description: "Broken pipe or socket",
741
- standard: "posix"
742
- },
743
- {
744
- name: "SIGALRM",
745
- number: 14,
746
- action: "terminate",
747
- description: "Timeout or timer",
748
- standard: "posix"
749
- },
750
- {
751
- name: "SIGTERM",
752
- number: 15,
753
- action: "terminate",
754
- description: "Termination",
755
- standard: "ansi"
756
- },
757
- {
758
- name: "SIGSTKFLT",
759
- number: 16,
760
- action: "terminate",
761
- description: "Stack is empty or overflowed",
762
- standard: "other"
763
- },
764
- {
765
- name: "SIGCHLD",
766
- number: 17,
767
- action: "ignore",
768
- description: "Child process terminated, paused or unpaused",
769
- standard: "posix"
770
- },
771
- {
772
- name: "SIGCLD",
773
- number: 17,
774
- action: "ignore",
775
- description: "Child process terminated, paused or unpaused",
776
- standard: "other"
777
- },
778
- {
779
- name: "SIGCONT",
780
- number: 18,
781
- action: "unpause",
782
- description: "Unpaused",
783
- standard: "posix",
784
- forced: true
785
- },
786
- {
787
- name: "SIGSTOP",
788
- number: 19,
789
- action: "pause",
790
- description: "Paused",
791
- standard: "posix",
792
- forced: true
793
- },
794
- {
795
- name: "SIGTSTP",
796
- number: 20,
797
- action: "pause",
798
- description: 'Paused using CTRL-Z or "suspend"',
799
- standard: "posix"
800
- },
801
- {
802
- name: "SIGTTIN",
803
- number: 21,
804
- action: "pause",
805
- description: "Background process cannot read terminal input",
806
- standard: "posix"
807
- },
808
- {
809
- name: "SIGBREAK",
810
- number: 21,
811
- action: "terminate",
812
- description: "User interruption with CTRL-BREAK",
813
- standard: "other"
814
- },
815
- {
816
- name: "SIGTTOU",
817
- number: 22,
818
- action: "pause",
819
- description: "Background process cannot write to terminal output",
820
- standard: "posix"
821
- },
822
- {
823
- name: "SIGURG",
824
- number: 23,
825
- action: "ignore",
826
- description: "Socket received out-of-band data",
827
- standard: "bsd"
828
- },
829
- {
830
- name: "SIGXCPU",
831
- number: 24,
832
- action: "core",
833
- description: "Process timed out",
834
- standard: "bsd"
835
- },
836
- {
837
- name: "SIGXFSZ",
838
- number: 25,
839
- action: "core",
840
- description: "File too big",
841
- standard: "bsd"
842
- },
843
- {
844
- name: "SIGVTALRM",
845
- number: 26,
846
- action: "terminate",
847
- description: "Timeout or timer",
848
- standard: "bsd"
849
- },
850
- {
851
- name: "SIGPROF",
852
- number: 27,
853
- action: "terminate",
854
- description: "Timeout or timer",
855
- standard: "bsd"
856
- },
857
- {
858
- name: "SIGWINCH",
859
- number: 28,
860
- action: "ignore",
861
- description: "Terminal window size changed",
862
- standard: "bsd"
863
- },
864
- {
865
- name: "SIGIO",
866
- number: 29,
867
- action: "terminate",
868
- description: "I/O is available",
869
- standard: "other"
870
- },
871
- {
872
- name: "SIGPOLL",
873
- number: 29,
874
- action: "terminate",
875
- description: "Watched event",
876
- standard: "other"
877
- },
878
- {
879
- name: "SIGINFO",
880
- number: 29,
881
- action: "ignore",
882
- description: "Request for process information",
883
- standard: "other"
884
- },
885
- {
886
- name: "SIGPWR",
887
- number: 30,
888
- action: "terminate",
889
- description: "Device running out of power",
890
- standard: "systemv"
891
- },
892
- {
893
- name: "SIGSYS",
894
- number: 31,
895
- action: "core",
896
- description: "Invalid system call",
897
- standard: "other"
898
- },
899
- {
900
- name: "SIGUNUSED",
901
- number: 31,
902
- action: "terminate",
903
- description: "Invalid system call",
904
- standard: "other"
905
- }
906
- ];
907
- exports.SIGNALS = SIGNALS;
908
- }
909
- });
910
-
911
- // ../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/realtime.js
912
- var require_realtime = __commonJS({
913
- "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/realtime.js"(exports) {
914
- "use strict";
915
- Object.defineProperty(exports, "__esModule", { value: true });
916
- exports.SIGRTMAX = exports.getRealtimeSignals = void 0;
917
- var getRealtimeSignals = function() {
918
- const length = SIGRTMAX - SIGRTMIN + 1;
919
- return Array.from({ length }, getRealtimeSignal);
920
- };
921
- exports.getRealtimeSignals = getRealtimeSignals;
922
- var getRealtimeSignal = function(value, index) {
923
- return {
924
- name: `SIGRT${index + 1}`,
925
- number: SIGRTMIN + index,
926
- action: "terminate",
927
- description: "Application-specific signal (realtime)",
928
- standard: "posix"
929
- };
930
- };
931
- var SIGRTMIN = 34;
932
- var SIGRTMAX = 64;
933
- exports.SIGRTMAX = SIGRTMAX;
934
- }
935
- });
936
-
937
- // ../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/signals.js
938
- var require_signals = __commonJS({
939
- "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/signals.js"(exports) {
940
- "use strict";
941
- Object.defineProperty(exports, "__esModule", { value: true });
942
- exports.getSignals = void 0;
943
- var _os = __require("os");
944
- var _core = require_core();
945
- var _realtime = require_realtime();
946
- var getSignals = function() {
947
- const realtimeSignals = (0, _realtime.getRealtimeSignals)();
948
- const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal);
949
- return signals;
950
- };
951
- exports.getSignals = getSignals;
952
- var normalizeSignal = function({
953
- name,
954
- number: defaultNumber,
955
- description,
956
- action,
957
- forced = false,
958
- standard
959
- }) {
960
- const {
961
- signals: { [name]: constantSignal }
962
- } = _os.constants;
963
- const supported = constantSignal !== void 0;
964
- const number = supported ? constantSignal : defaultNumber;
965
- return { name, number, description, supported, action, forced, standard };
966
- };
967
- }
968
- });
969
-
970
- // ../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/main.js
971
- var require_main = __commonJS({
972
- "../../node_modules/.pnpm/human-signals@1.1.1/node_modules/human-signals/build/src/main.js"(exports) {
973
- "use strict";
974
- Object.defineProperty(exports, "__esModule", { value: true });
975
- exports.signalsByNumber = exports.signalsByName = void 0;
976
- var _os = __require("os");
977
- var _signals = require_signals();
978
- var _realtime = require_realtime();
979
- var getSignalsByName = function() {
980
- const signals = (0, _signals.getSignals)();
981
- return signals.reduce(getSignalByName, {});
982
- };
983
- var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) {
984
- return {
985
- ...signalByNameMemo,
986
- [name]: { name, number, description, supported, action, forced, standard }
987
- };
988
- };
989
- var signalsByName = getSignalsByName();
990
- exports.signalsByName = signalsByName;
991
- var getSignalsByNumber = function() {
992
- const signals = (0, _signals.getSignals)();
993
- const length = _realtime.SIGRTMAX + 1;
994
- const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals));
995
- return Object.assign({}, ...signalsA);
996
- };
997
- var getSignalByNumber = function(number, signals) {
998
- const signal = findSignalByNumber(number, signals);
999
- if (signal === void 0) {
1000
- return {};
1001
- }
1002
- const { name, description, supported, action, forced, standard } = signal;
1003
- return {
1004
- [number]: {
1005
- name,
1006
- number,
1007
- description,
1008
- supported,
1009
- action,
1010
- forced,
1011
- standard
1012
- }
1013
- };
1014
- };
1015
- var findSignalByNumber = function(number, signals) {
1016
- const signal = signals.find(({ name }) => _os.constants.signals[name] === number);
1017
- if (signal !== void 0) {
1018
- return signal;
1019
- }
1020
- return signals.find((signalA) => signalA.number === number);
1021
- };
1022
- var signalsByNumber = getSignalsByNumber();
1023
- exports.signalsByNumber = signalsByNumber;
1024
- }
1025
- });
1026
-
1027
- // ../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/error.js
1028
- var require_error = __commonJS({
1029
- "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/error.js"(exports, module) {
1030
- "use strict";
1031
- var { signalsByName } = require_main();
1032
- var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
1033
- if (timedOut) {
1034
- return `timed out after ${timeout} milliseconds`;
1035
- }
1036
- if (isCanceled) {
1037
- return "was canceled";
1038
- }
1039
- if (errorCode !== void 0) {
1040
- return `failed with ${errorCode}`;
1041
- }
1042
- if (signal !== void 0) {
1043
- return `was killed with ${signal} (${signalDescription})`;
1044
- }
1045
- if (exitCode !== void 0) {
1046
- return `failed with exit code ${exitCode}`;
1047
- }
1048
- return "failed";
1049
- };
1050
- var makeError = ({
1051
- stdout,
1052
- stderr,
1053
- all,
1054
- error,
1055
- signal,
1056
- exitCode,
1057
- command,
1058
- timedOut,
1059
- isCanceled,
1060
- killed,
1061
- parsed: { options: { timeout } }
1062
- }) => {
1063
- exitCode = exitCode === null ? void 0 : exitCode;
1064
- signal = signal === null ? void 0 : signal;
1065
- const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
1066
- const errorCode = error && error.code;
1067
- const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
1068
- const message = `Command ${prefix}: ${command}`;
1069
- if (error instanceof Error) {
1070
- error.originalMessage = error.message;
1071
- error.message = `${message}
1072
- ${error.message}`;
1073
- } else {
1074
- error = new Error(message);
1075
- }
1076
- error.command = command;
1077
- error.exitCode = exitCode;
1078
- error.signal = signal;
1079
- error.signalDescription = signalDescription;
1080
- error.stdout = stdout;
1081
- error.stderr = stderr;
1082
- if (all !== void 0) {
1083
- error.all = all;
1084
- }
1085
- if ("bufferedData" in error) {
1086
- delete error.bufferedData;
1087
- }
1088
- error.failed = true;
1089
- error.timedOut = Boolean(timedOut);
1090
- error.isCanceled = isCanceled;
1091
- error.killed = killed && !timedOut;
1092
- return error;
1093
- };
1094
- module.exports = makeError;
1095
- }
1096
- });
1097
-
1098
- // ../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stdio.js
1099
- var require_stdio = __commonJS({
1100
- "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stdio.js"(exports, module) {
1101
- "use strict";
1102
- var aliases = ["stdin", "stdout", "stderr"];
1103
- var hasAlias = (opts) => aliases.some((alias) => opts[alias] !== void 0);
1104
- var normalizeStdio = (opts) => {
1105
- if (!opts) {
1106
- return;
1107
- }
1108
- const { stdio } = opts;
1109
- if (stdio === void 0) {
1110
- return aliases.map((alias) => opts[alias]);
1111
- }
1112
- if (hasAlias(opts)) {
1113
- throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
1114
- }
1115
- if (typeof stdio === "string") {
1116
- return stdio;
1117
- }
1118
- if (!Array.isArray(stdio)) {
1119
- throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
1120
- }
1121
- const length = Math.max(stdio.length, aliases.length);
1122
- return Array.from({ length }, (value, index) => stdio[index]);
1123
- };
1124
- module.exports = normalizeStdio;
1125
- module.exports.node = (opts) => {
1126
- const stdio = normalizeStdio(opts);
1127
- if (stdio === "ipc") {
1128
- return "ipc";
1129
- }
1130
- if (stdio === void 0 || typeof stdio === "string") {
1131
- return [stdio, stdio, stdio, "ipc"];
1132
- }
1133
- if (stdio.includes("ipc")) {
1134
- return stdio;
1135
- }
1136
- return [...stdio, "ipc"];
1137
- };
1138
- }
1139
- });
1140
-
1141
- // ../../node_modules/.pnpm/p-finally@2.0.1/node_modules/p-finally/index.js
1142
- var require_p_finally = __commonJS({
1143
- "../../node_modules/.pnpm/p-finally@2.0.1/node_modules/p-finally/index.js"(exports, module) {
1144
- "use strict";
1145
- module.exports = async (promise, onFinally = () => {
1146
- }) => {
1147
- let value;
1148
- try {
1149
- value = await promise;
1150
- } catch (error) {
1151
- await onFinally();
1152
- throw error;
1153
- }
1154
- await onFinally();
1155
- return value;
1156
- };
1157
- }
1158
- });
1159
-
1160
- // ../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/kill.js
1161
- var require_kill = __commonJS({
1162
- "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/kill.js"(exports, module) {
1163
- "use strict";
1164
- var os = __require("os");
1165
- var onExit = require_signal_exit();
1166
- var pFinally = require_p_finally();
1167
- var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
1168
- var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
1169
- const killResult = kill(signal);
1170
- setKillTimeout(kill, signal, options, killResult);
1171
- return killResult;
1172
- };
1173
- var setKillTimeout = (kill, signal, options, killResult) => {
1174
- if (!shouldForceKill(signal, options, killResult)) {
1175
- return;
1176
- }
1177
- const timeout = getForceKillAfterTimeout(options);
1178
- setTimeout(() => {
1179
- kill("SIGKILL");
1180
- }, timeout).unref();
1181
- };
1182
- var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => {
1183
- return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
1184
- };
1185
- var isSigterm = (signal) => {
1186
- return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
1187
- };
1188
- var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
1189
- if (forceKillAfterTimeout === true) {
1190
- return DEFAULT_FORCE_KILL_TIMEOUT;
1191
- }
1192
- if (!Number.isInteger(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
1193
- throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
1194
- }
1195
- return forceKillAfterTimeout;
1196
- };
1197
- var spawnedCancel = (spawned, context) => {
1198
- const killResult = spawned.kill();
1199
- if (killResult) {
1200
- context.isCanceled = true;
1201
- }
1202
- };
1203
- var timeoutKill = (spawned, signal, reject) => {
1204
- spawned.kill(signal);
1205
- reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
1206
- };
1207
- var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
1208
- if (timeout === 0 || timeout === void 0) {
1209
- return spawnedPromise;
1210
- }
1211
- if (!Number.isInteger(timeout) || timeout < 0) {
1212
- throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
1213
- }
1214
- let timeoutId;
1215
- const timeoutPromise = new Promise((resolve, reject) => {
1216
- timeoutId = setTimeout(() => {
1217
- timeoutKill(spawned, killSignal, reject);
1218
- }, timeout);
1219
- });
1220
- const safeSpawnedPromise = pFinally(spawnedPromise, () => {
1221
- clearTimeout(timeoutId);
1222
- });
1223
- return Promise.race([timeoutPromise, safeSpawnedPromise]);
1224
- };
1225
- var setExitHandler = (spawned, { cleanup, detached }, timedPromise) => {
1226
- if (!cleanup || detached) {
1227
- return timedPromise;
1228
- }
1229
- const removeExitHandler = onExit(() => {
1230
- spawned.kill();
1231
- });
1232
- return pFinally(timedPromise, removeExitHandler);
1233
- };
1234
- module.exports = {
1235
- spawnedKill,
1236
- spawnedCancel,
1237
- setupTimeout,
1238
- setExitHandler
1239
- };
1240
- }
1241
- });
1242
-
1243
- // ../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js
1244
- var require_is_stream = __commonJS({
1245
- "../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports, module) {
1246
- "use strict";
1247
- var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
1248
- isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
1249
- isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object";
1250
- isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream);
1251
- isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function";
1252
- module.exports = isStream;
1253
- }
1254
- });
1255
-
1256
- // ../../node_modules/.pnpm/pump@3.0.4/node_modules/pump/index.js
1257
- var require_pump = __commonJS({
1258
- "../../node_modules/.pnpm/pump@3.0.4/node_modules/pump/index.js"(exports, module) {
1259
- var once = require_once();
1260
- var eos = require_end_of_stream();
1261
- var fs;
1262
- try {
1263
- fs = __require("fs");
1264
- } catch (e) {
1265
- }
1266
- var noop = function() {
1267
- };
1268
- var ancient = typeof process === "undefined" ? false : /^v?\.0/.test(process.version);
1269
- var isFn = function(fn) {
1270
- return typeof fn === "function";
1271
- };
1272
- var isFS = function(stream) {
1273
- if (!ancient)
1274
- return false;
1275
- if (!fs)
1276
- return false;
1277
- return (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close);
1278
- };
1279
- var isRequest = function(stream) {
1280
- return stream.setHeader && isFn(stream.abort);
1281
- };
1282
- var destroyer = function(stream, reading, writing, callback) {
1283
- callback = once(callback);
1284
- var closed = false;
1285
- stream.on("close", function() {
1286
- closed = true;
1287
- });
1288
- eos(stream, { readable: reading, writable: writing }, function(err) {
1289
- if (err)
1290
- return callback(err);
1291
- closed = true;
1292
- callback();
1293
- });
1294
- var destroyed = false;
1295
- return function(err) {
1296
- if (closed)
1297
- return;
1298
- if (destroyed)
1299
- return;
1300
- destroyed = true;
1301
- if (isFS(stream))
1302
- return stream.close(noop);
1303
- if (isRequest(stream))
1304
- return stream.abort();
1305
- if (isFn(stream.destroy))
1306
- return stream.destroy();
1307
- callback(err || new Error("stream was destroyed"));
1308
- };
1309
- };
1310
- var call = function(fn) {
1311
- fn();
1312
- };
1313
- var pipe = function(from, to) {
1314
- return from.pipe(to);
1315
- };
1316
- var pump = function() {
1317
- var streams = Array.prototype.slice.call(arguments);
1318
- var callback = isFn(streams[streams.length - 1] || noop) && streams.pop() || noop;
1319
- if (Array.isArray(streams[0]))
1320
- streams = streams[0];
1321
- if (streams.length < 2)
1322
- throw new Error("pump requires two streams per minimum");
1323
- var error;
1324
- var destroys = streams.map(function(stream, i) {
1325
- var reading = i < streams.length - 1;
1326
- var writing = i > 0;
1327
- return destroyer(stream, reading, writing, function(err) {
1328
- if (!error)
1329
- error = err;
1330
- if (err)
1331
- destroys.forEach(call);
1332
- if (reading)
1333
- return;
1334
- destroys.forEach(call);
1335
- callback(error);
1336
- });
1337
- });
1338
- return streams.reduce(pipe);
1339
- };
1340
- module.exports = pump;
1341
- }
1342
- });
1343
-
1344
- // ../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/buffer-stream.js
1345
- var require_buffer_stream = __commonJS({
1346
- "../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/buffer-stream.js"(exports, module) {
1347
- "use strict";
1348
- var { PassThrough: PassThroughStream } = __require("stream");
1349
- module.exports = (options) => {
1350
- options = { ...options };
1351
- const { array } = options;
1352
- let { encoding } = options;
1353
- const isBuffer = encoding === "buffer";
1354
- let objectMode = false;
1355
- if (array) {
1356
- objectMode = !(encoding || isBuffer);
1357
- } else {
1358
- encoding = encoding || "utf8";
1359
- }
1360
- if (isBuffer) {
1361
- encoding = null;
1362
- }
1363
- const stream = new PassThroughStream({ objectMode });
1364
- if (encoding) {
1365
- stream.setEncoding(encoding);
1366
- }
1367
- let length = 0;
1368
- const chunks = [];
1369
- stream.on("data", (chunk) => {
1370
- chunks.push(chunk);
1371
- if (objectMode) {
1372
- length = chunks.length;
1373
- } else {
1374
- length += chunk.length;
1375
- }
1376
- });
1377
- stream.getBufferedValue = () => {
1378
- if (array) {
1379
- return chunks;
1380
- }
1381
- return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
1382
- };
1383
- stream.getBufferedLength = () => length;
1384
- return stream;
1385
- };
1386
- }
1387
- });
1388
-
1389
- // ../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/index.js
1390
- var require_get_stream = __commonJS({
1391
- "../../node_modules/.pnpm/get-stream@5.2.0/node_modules/get-stream/index.js"(exports, module) {
1392
- "use strict";
1393
- var { constants: BufferConstants } = __require("buffer");
1394
- var pump = require_pump();
1395
- var bufferStream = require_buffer_stream();
1396
- var MaxBufferError = class extends Error {
1397
- constructor() {
1398
- super("maxBuffer exceeded");
1399
- this.name = "MaxBufferError";
1400
- }
1401
- };
1402
- async function getStream(inputStream, options) {
1403
- if (!inputStream) {
1404
- return Promise.reject(new Error("Expected a stream"));
1405
- }
1406
- options = {
1407
- maxBuffer: Infinity,
1408
- ...options
1409
- };
1410
- const { maxBuffer } = options;
1411
- let stream;
1412
- await new Promise((resolve, reject) => {
1413
- const rejectPromise = (error) => {
1414
- if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
1415
- error.bufferedData = stream.getBufferedValue();
1416
- }
1417
- reject(error);
1418
- };
1419
- stream = pump(inputStream, bufferStream(options), (error) => {
1420
- if (error) {
1421
- rejectPromise(error);
1422
- return;
1423
- }
1424
- resolve();
1425
- });
1426
- stream.on("data", () => {
1427
- if (stream.getBufferedLength() > maxBuffer) {
1428
- rejectPromise(new MaxBufferError());
1429
- }
1430
- });
1431
- });
1432
- return stream.getBufferedValue();
1433
- }
1434
- module.exports = getStream;
1435
- module.exports.default = getStream;
1436
- module.exports.buffer = (stream, options) => getStream(stream, { ...options, encoding: "buffer" });
1437
- module.exports.array = (stream, options) => getStream(stream, { ...options, array: true });
1438
- module.exports.MaxBufferError = MaxBufferError;
1439
- }
1440
- });
1441
-
1442
- // ../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
1443
- var require_merge_stream = __commonJS({
1444
- "../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports, module) {
1445
- "use strict";
1446
- var { PassThrough } = __require("stream");
1447
- module.exports = function() {
1448
- var sources = [];
1449
- var output = new PassThrough({ objectMode: true });
1450
- output.setMaxListeners(0);
1451
- output.add = add;
1452
- output.isEmpty = isEmpty;
1453
- output.on("unpipe", remove);
1454
- Array.prototype.slice.call(arguments).forEach(add);
1455
- return output;
1456
- function add(source) {
1457
- if (Array.isArray(source)) {
1458
- source.forEach(add);
1459
- return this;
1460
- }
1461
- sources.push(source);
1462
- source.once("end", remove.bind(null, source));
1463
- source.once("error", output.emit.bind(output, "error"));
1464
- source.pipe(output, { end: false });
1465
- return this;
1466
- }
1467
- function isEmpty() {
1468
- return sources.length == 0;
1469
- }
1470
- function remove(source) {
1471
- sources = sources.filter(function(it) {
1472
- return it !== source;
1473
- });
1474
- if (!sources.length && output.readable) {
1475
- output.end();
1476
- }
1477
- }
1478
- };
1479
- }
1480
- });
1481
-
1482
- // ../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stream.js
1483
- var require_stream = __commonJS({
1484
- "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/stream.js"(exports, module) {
1485
- "use strict";
1486
- var isStream = require_is_stream();
1487
- var getStream = require_get_stream();
1488
- var mergeStream = require_merge_stream();
1489
- var handleInput = (spawned, input) => {
1490
- if (input === void 0 || spawned.stdin === void 0) {
1491
- return;
1492
- }
1493
- if (isStream(input)) {
1494
- input.pipe(spawned.stdin);
1495
- } else {
1496
- spawned.stdin.end(input);
1497
- }
1498
- };
1499
- var makeAllStream = (spawned, { all }) => {
1500
- if (!all || !spawned.stdout && !spawned.stderr) {
1501
- return;
1502
- }
1503
- const mixed = mergeStream();
1504
- if (spawned.stdout) {
1505
- mixed.add(spawned.stdout);
1506
- }
1507
- if (spawned.stderr) {
1508
- mixed.add(spawned.stderr);
1509
- }
1510
- return mixed;
1511
- };
1512
- var getBufferedData = async (stream, streamPromise) => {
1513
- if (!stream) {
1514
- return;
1515
- }
1516
- stream.destroy();
1517
- try {
1518
- return await streamPromise;
1519
- } catch (error) {
1520
- return error.bufferedData;
1521
- }
1522
- };
1523
- var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
1524
- if (!stream || !buffer) {
1525
- return;
1526
- }
1527
- if (encoding) {
1528
- return getStream(stream, { encoding, maxBuffer });
1529
- }
1530
- return getStream.buffer(stream, { maxBuffer });
1531
- };
1532
- var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
1533
- const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
1534
- const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
1535
- const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
1536
- try {
1537
- return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
1538
- } catch (error) {
1539
- return Promise.all([
1540
- { error, signal: error.signal, timedOut: error.timedOut },
1541
- getBufferedData(stdout, stdoutPromise),
1542
- getBufferedData(stderr, stderrPromise),
1543
- getBufferedData(all, allPromise)
1544
- ]);
1545
- }
1546
- };
1547
- var validateInputSync = ({ input }) => {
1548
- if (isStream(input)) {
1549
- throw new TypeError("The `input` option cannot be a stream in sync mode");
1550
- }
1551
- };
1552
- module.exports = {
1553
- handleInput,
1554
- makeAllStream,
1555
- getSpawnedResult,
1556
- validateInputSync
1557
- };
1558
- }
1559
- });
1560
-
1561
- // ../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/promise.js
1562
- var require_promise = __commonJS({
1563
- "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/promise.js"(exports, module) {
1564
- "use strict";
1565
- var mergePromiseProperty = (spawned, promise, property) => {
1566
- const value = typeof promise === "function" ? (...args) => promise()[property](...args) : promise[property].bind(promise);
1567
- Object.defineProperty(spawned, property, {
1568
- value,
1569
- writable: true,
1570
- enumerable: false,
1571
- configurable: true
1572
- });
1573
- };
1574
- var mergePromise = (spawned, promise) => {
1575
- mergePromiseProperty(spawned, promise, "then");
1576
- mergePromiseProperty(spawned, promise, "catch");
1577
- if (Promise.prototype.finally) {
1578
- mergePromiseProperty(spawned, promise, "finally");
1579
- }
1580
- return spawned;
1581
- };
1582
- var getSpawnedPromise = (spawned) => {
1583
- return new Promise((resolve, reject) => {
1584
- spawned.on("exit", (exitCode, signal) => {
1585
- resolve({ exitCode, signal });
1586
- });
1587
- spawned.on("error", (error) => {
1588
- reject(error);
1589
- });
1590
- if (spawned.stdin) {
1591
- spawned.stdin.on("error", (error) => {
1592
- reject(error);
1593
- });
1594
- }
1595
- });
1596
- };
1597
- module.exports = {
1598
- mergePromise,
1599
- getSpawnedPromise
1600
- };
1601
- }
1602
- });
1603
-
1604
- // ../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/command.js
1605
- var require_command = __commonJS({
1606
- "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/lib/command.js"(exports, module) {
1607
- "use strict";
1608
- var SPACES_REGEXP = / +/g;
1609
- var joinCommand = (file, args = []) => {
1610
- if (!Array.isArray(args)) {
1611
- return file;
1612
- }
1613
- return [file, ...args].join(" ");
1614
- };
1615
- var handleEscaping = (tokens, token, index) => {
1616
- if (index === 0) {
1617
- return [token];
1618
- }
1619
- const previousToken = tokens[tokens.length - 1];
1620
- if (previousToken.endsWith("\\")) {
1621
- return [...tokens.slice(0, -1), `${previousToken.slice(0, -1)} ${token}`];
1622
- }
1623
- return [...tokens, token];
1624
- };
1625
- var parseCommand = (command) => {
1626
- return command.trim().split(SPACES_REGEXP).reduce(handleEscaping, []);
1627
- };
1628
- module.exports = {
1629
- joinCommand,
1630
- parseCommand
1631
- };
1632
- }
1633
- });
1634
-
1635
- // ../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/index.js
1636
- var require_execa = __commonJS({
1637
- "../../node_modules/.pnpm/execa@3.2.0/node_modules/execa/index.js"(exports, module) {
1638
- "use strict";
1639
- var path = __require("path");
1640
- var childProcess = __require("child_process");
1641
- var crossSpawn = require_cross_spawn();
1642
- var stripFinalNewline = require_strip_final_newline();
1643
- var npmRunPath = require_npm_run_path();
1644
- var onetime = require_onetime();
1645
- var makeError = require_error();
1646
- var normalizeStdio = require_stdio();
1647
- var { spawnedKill, spawnedCancel, setupTimeout, setExitHandler } = require_kill();
1648
- var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream();
1649
- var { mergePromise, getSpawnedPromise } = require_promise();
1650
- var { joinCommand, parseCommand } = require_command();
1651
- var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
1652
- var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
1653
- const env = extendEnv ? { ...process.env, ...envOption } : envOption;
1654
- if (preferLocal) {
1655
- return npmRunPath.env({ env, cwd: localDir, execPath });
1656
- }
1657
- return env;
1658
- };
1659
- var handleArgs = (file, args, options = {}) => {
1660
- const parsed = crossSpawn._parse(file, args, options);
1661
- file = parsed.command;
1662
- args = parsed.args;
1663
- options = parsed.options;
1664
- options = {
1665
- maxBuffer: DEFAULT_MAX_BUFFER,
1666
- buffer: true,
1667
- stripFinalNewline: true,
1668
- extendEnv: true,
1669
- preferLocal: false,
1670
- localDir: options.cwd || process.cwd(),
1671
- execPath: process.execPath,
1672
- encoding: "utf8",
1673
- reject: true,
1674
- cleanup: true,
1675
- all: false,
1676
- ...options,
1677
- windowsHide: true
1678
- };
1679
- options.env = getEnv(options);
1680
- options.stdio = normalizeStdio(options);
1681
- if (process.platform === "win32" && path.basename(file, ".exe") === "cmd") {
1682
- args.unshift("/q");
1683
- }
1684
- return { file, args, options, parsed };
1685
- };
1686
- var handleOutput = (options, value, error) => {
1687
- if (typeof value !== "string" && !Buffer.isBuffer(value)) {
1688
- return error === void 0 ? void 0 : "";
1689
- }
1690
- if (options.stripFinalNewline) {
1691
- return stripFinalNewline(value);
1692
- }
1693
- return value;
1694
- };
1695
- var execa = (file, args, options) => {
1696
- const parsed = handleArgs(file, args, options);
1697
- const command = joinCommand(file, args);
1698
- let spawned;
1699
- try {
1700
- spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
1701
- } catch (error) {
1702
- const dummySpawned = new childProcess.ChildProcess();
1703
- const errorPromise = Promise.reject(makeError({
1704
- error,
1705
- stdout: "",
1706
- stderr: "",
1707
- all: "",
1708
- command,
1709
- parsed,
1710
- timedOut: false,
1711
- isCanceled: false,
1712
- killed: false
1713
- }));
1714
- return mergePromise(dummySpawned, errorPromise);
1715
- }
1716
- const spawnedPromise = getSpawnedPromise(spawned);
1717
- const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
1718
- const processDone = setExitHandler(spawned, parsed.options, timedPromise);
1719
- const context = { isCanceled: false };
1720
- spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
1721
- spawned.cancel = spawnedCancel.bind(null, spawned, context);
1722
- const handlePromise = async () => {
1723
- const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
1724
- const stdout = handleOutput(parsed.options, stdoutResult);
1725
- const stderr = handleOutput(parsed.options, stderrResult);
1726
- const all = handleOutput(parsed.options, allResult);
1727
- if (error || exitCode !== 0 || signal !== null) {
1728
- const returnedError = makeError({
1729
- error,
1730
- exitCode,
1731
- signal,
1732
- stdout,
1733
- stderr,
1734
- all,
1735
- command,
1736
- parsed,
1737
- timedOut,
1738
- isCanceled: context.isCanceled,
1739
- killed: spawned.killed
1740
- });
1741
- if (!parsed.options.reject) {
1742
- return returnedError;
1743
- }
1744
- throw returnedError;
1745
- }
1746
- return {
1747
- command,
1748
- exitCode: 0,
1749
- stdout,
1750
- stderr,
1751
- all,
1752
- failed: false,
1753
- timedOut: false,
1754
- isCanceled: false,
1755
- killed: false
1756
- };
1757
- };
1758
- const handlePromiseOnce = onetime(handlePromise);
1759
- crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);
1760
- handleInput(spawned, parsed.options.input);
1761
- spawned.all = makeAllStream(spawned, parsed.options);
1762
- return mergePromise(spawned, handlePromiseOnce);
1763
- };
1764
- module.exports = execa;
1765
- module.exports.sync = (file, args, options) => {
1766
- const parsed = handleArgs(file, args, options);
1767
- const command = joinCommand(file, args);
1768
- validateInputSync(parsed.options);
1769
- let result;
1770
- try {
1771
- result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
1772
- } catch (error) {
1773
- throw makeError({
1774
- error,
1775
- stdout: "",
1776
- stderr: "",
1777
- all: "",
1778
- command,
1779
- parsed,
1780
- timedOut: false,
1781
- isCanceled: false,
1782
- killed: false
1783
- });
1784
- }
1785
- const stdout = handleOutput(parsed.options, result.stdout, result.error);
1786
- const stderr = handleOutput(parsed.options, result.stderr, result.error);
1787
- if (result.error || result.status !== 0 || result.signal !== null) {
1788
- const error = makeError({
1789
- stdout,
1790
- stderr,
1791
- error: result.error,
1792
- signal: result.signal,
1793
- exitCode: result.status,
1794
- command,
1795
- parsed,
1796
- timedOut: result.error && result.error.code === "ETIMEDOUT",
1797
- isCanceled: false,
1798
- killed: result.signal !== null
1799
- });
1800
- if (!parsed.options.reject) {
1801
- return error;
1802
- }
1803
- throw error;
1804
- }
1805
- return {
1806
- command,
1807
- exitCode: 0,
1808
- stdout,
1809
- stderr,
1810
- failed: false,
1811
- timedOut: false,
1812
- isCanceled: false,
1813
- killed: false
1814
- };
1815
- };
1816
- module.exports.command = (command, options) => {
1817
- const [file, ...args] = parseCommand(command);
1818
- return execa(file, args, options);
1819
- };
1820
- module.exports.commandSync = (command, options) => {
1821
- const [file, ...args] = parseCommand(command);
1822
- return execa.sync(file, args, options);
1823
- };
1824
- module.exports.node = (scriptPath, args, options = {}) => {
1825
- if (args && !Array.isArray(args) && typeof args === "object") {
1826
- options = args;
1827
- args = [];
1828
- }
1829
- const stdio = normalizeStdio.node(options);
1830
- const { nodePath = process.execPath, nodeOptions = process.execArgv } = options;
1831
- return execa(
1832
- nodePath,
1833
- [
1834
- ...nodeOptions,
1835
- scriptPath,
1836
- ...Array.isArray(args) ? args : []
1837
- ],
1838
- {
1839
- ...options,
1840
- stdin: void 0,
1841
- stdout: void 0,
1842
- stderr: void 0,
1843
- stdio,
1844
- shell: false
1845
- }
1846
- );
1847
- };
1848
- }
1849
- });
1850
-
1851
- export {
1852
- require_isexe,
1853
- require_execa
1854
- };