@aussieljk/forkbook 0.0.1-5 → 0.0.1-7
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.
- package/dist/_browser-chunks/{Color-GTF4GM7L.js → Color-2YRIFQLC.js} +1 -1
- package/dist/_browser-chunks/WithTooltip-4R5JMWZ7.js +196 -0
- package/dist/_browser-chunks/{chunk-MJY6ITYT.js → chunk-4EFKUJG2.js} +10 -10
- package/dist/_browser-chunks/chunk-6AKCRYVX.js +6 -0
- package/dist/_browser-chunks/{chunk-FVSEPWWX.js → chunk-DAUHYZUB.js} +550 -1621
- package/dist/_browser-chunks/chunk-E47B5255.js +1149 -0
- package/dist/_browser-chunks/{chunk-K6GRZSXS.js → chunk-EQKMUQF3.js} +4 -3
- package/dist/_browser-chunks/{chunk-GU3X2J4S.js → chunk-FRAOQJDI.js} +3 -1
- package/dist/_browser-chunks/{chunk-2SCZVUKW.js → chunk-H4ZHAXN3.js} +1 -1
- package/dist/_browser-chunks/{chunk-HOSBMS2F.js → chunk-HTL5ODCB.js} +1 -1
- package/dist/_browser-chunks/{chunk-ZLWA5RIE.js → chunk-I4ATZPNZ.js} +1 -1
- package/dist/_browser-chunks/{chunk-6SHRDXGF.js → chunk-IJYLSHY7.js} +173 -87
- package/dist/_browser-chunks/{chunk-SZCSXISG.js → chunk-NA4ITZTK.js} +7 -5
- package/dist/_browser-chunks/chunk-NGMQJMCY.js +53 -0
- package/dist/_browser-chunks/{chunk-K2B36HKM.js → chunk-O24AZJZ7.js} +1 -1
- package/dist/_browser-chunks/{chunk-NMRSYACM.js → chunk-SFMQDIN2.js} +4 -3
- package/dist/_browser-chunks/{chunk-ZTQ5MEJ5.js → chunk-UMGDO2ZM.js} +3 -37
- package/dist/_browser-chunks/chunk-WVF42CP2.js +6027 -0
- package/dist/_browser-chunks/{chunk-52CW7FF7.js → chunk-YYWKZ7O3.js} +3 -1
- package/dist/_node-chunks/{attached-runtime-IOE3BXIY.js → attached-runtime-WFZCCGUB.js} +29 -29
- package/dist/_node-chunks/{builder-manager-GDFEGD72.js → builder-manager-DHKHRZK4.js} +155 -148
- package/dist/_node-chunks/{chunk-M2QB5ALN.js → chunk-3ZCGT6VF.js} +6 -6
- package/dist/_node-chunks/{chunk-SUJXQU74.js → chunk-4HGC3G6B.js} +46 -15
- package/dist/_node-chunks/{chunk-WMQ2VCTF.js → chunk-5PYQ573S.js} +7 -7
- package/dist/_node-chunks/{chunk-TYCDPVIH.js → chunk-64JPAW3T.js} +6 -6
- package/dist/_node-chunks/chunk-6CB3XSQ2.js +495 -0
- package/dist/_node-chunks/{chunk-MHDKWHOA.js → chunk-6K3ZE4HN.js} +6 -6
- package/dist/_node-chunks/{chunk-3DCJB2D4.js → chunk-6QZ3PX5R.js} +6 -6
- package/dist/_node-chunks/{chunk-6DOJKR3V.js → chunk-7HVDL6M3.js} +29843 -51588
- package/dist/_node-chunks/chunk-7PMQPS5E.js +347 -0
- package/dist/_node-chunks/{chunk-L5CY6HKG.js → chunk-7V5AOV2J.js} +7 -7
- package/dist/_node-chunks/{chunk-AXJJB2K6.js → chunk-7VHCAGBJ.js} +8 -8
- package/dist/_node-chunks/{chunk-3DX6THMV.js → chunk-ATX7SHS7.js} +8 -8
- package/dist/_node-chunks/{chunk-SDXU22OH.js → chunk-BQC6WCUS.js} +6 -6
- package/dist/_node-chunks/{chunk-D6B2DRQZ.js → chunk-BR4WDRY6.js} +8 -8
- package/dist/_node-chunks/{chunk-SJZQ44OR.js → chunk-BRHJ4P3A.js} +6 -6
- package/dist/_node-chunks/{chunk-N4FLP7AO.js → chunk-CBBFNVFZ.js} +7 -7
- package/dist/_node-chunks/{chunk-PHXCOTMO.js → chunk-CDFQORVD.js} +34 -949
- package/dist/_node-chunks/{chunk-SR3BCYEH.js → chunk-CENNLCU7.js} +6 -6
- package/dist/_node-chunks/{chunk-OTFIQXHR.js → chunk-CNMMDQC3.js} +27 -50
- package/dist/_node-chunks/{chunk-E4C2H45J.js → chunk-DMDZPUHM.js} +6 -6
- package/dist/_node-chunks/{chunk-45LRLOYO.js → chunk-DT45EUDD.js} +60 -134
- package/dist/_node-chunks/{chunk-KQFHT7SW.js → chunk-EAL4RVEF.js} +6 -6
- package/dist/_node-chunks/chunk-EFFWFE6W.js +11 -0
- package/dist/_node-chunks/{chunk-MDGNN3FJ.js → chunk-ESCZ2NSB.js} +6 -6
- package/dist/_node-chunks/{chunk-T2I453AJ.js → chunk-ESZIQTUH.js} +7 -7
- package/dist/_node-chunks/{chunk-HWY2CAUH.js → chunk-F3SAYS4R.js} +6 -6
- package/dist/_node-chunks/{chunk-LSP54OYM.js → chunk-FTUQ7T3V.js} +25 -8
- package/dist/_node-chunks/{chunk-AAAUVDWT.js → chunk-FVFSSIGA.js} +10 -10
- package/dist/_node-chunks/{chunk-GS4VNNSS.js → chunk-G2AANC4A.js} +6 -6
- package/dist/_node-chunks/{chunk-SAAQFJL4.js → chunk-HUMAXGH2.js} +6 -6
- package/dist/_node-chunks/{chunk-A4XRNDN4.js → chunk-I535GEPH.js} +7 -7
- package/dist/_node-chunks/{chunk-CK4EHW3K.js → chunk-J3Q56GX3.js} +25 -25
- package/dist/_node-chunks/{chunk-U47PBQZ3.js → chunk-JDKYP7FW.js} +10 -10
- package/dist/_node-chunks/{chunk-7TUSIVWS.js → chunk-JED5F3H2.js} +6 -6
- package/dist/_node-chunks/{chunk-UM5G27IC.js → chunk-JMS4H7QB.js} +7 -7
- package/dist/_node-chunks/{chunk-GR65OLAH.js → chunk-JOSJ64KD.js} +7 -7
- package/dist/_node-chunks/{chunk-XUHEL63G.js → chunk-JPHSU5OI.js} +6 -6
- package/dist/_node-chunks/{chunk-NYWD5LYM.js → chunk-JQICISDD.js} +6 -6
- package/dist/_node-chunks/{chunk-I3DKGHVD.js → chunk-JTLOSDYL.js} +9 -9
- package/dist/_node-chunks/{chunk-5KAJVK4E.js → chunk-K5RUOW42.js} +7 -7
- package/dist/_node-chunks/{chunk-UKEJISQU.js → chunk-KHWCZDIW.js} +650 -9
- package/dist/_node-chunks/chunk-KWER36VB.js +20 -0
- package/dist/_node-chunks/{chunk-YTBTCM22.js → chunk-LJTP5PAJ.js} +6 -6
- package/dist/_node-chunks/chunk-LZYYZ62Y.js +19 -0
- package/dist/_node-chunks/{chunk-CGXW2HFE.js → chunk-M7ZVSBNU.js} +6 -6
- package/dist/_node-chunks/{chunk-BTFSFATC.js → chunk-MBIIJTGQ.js} +11 -10
- package/dist/_node-chunks/{chunk-VBSVLIXU.js → chunk-MF3AT3JQ.js} +6 -6
- package/dist/_node-chunks/{chunk-AX2ALHBK.js → chunk-MF5BYASO.js} +9 -6
- package/dist/_node-chunks/{chunk-JJNO3SFI.js → chunk-MJFMB4WD.js} +9 -9
- package/dist/_node-chunks/{chunk-E4TBS4MV.js → chunk-MRWBN46D.js} +8 -8
- package/dist/_node-chunks/{chunk-QQXFB4YA.js → chunk-MZQXEAI6.js} +9 -9
- package/dist/_node-chunks/{chunk-TZ2TZW2K.js → chunk-NLPC2DDQ.js} +6 -6
- package/dist/_node-chunks/{chunk-HCX5R46Q.js → chunk-NQAFLS5U.js} +8 -8
- package/dist/_node-chunks/{chunk-5LE7GXEC.js → chunk-NSZGBFPR.js} +6 -6
- package/dist/_node-chunks/{chunk-WHDCECIV.js → chunk-NUYBFTOU.js} +7 -7
- package/dist/_node-chunks/{chunk-RCPKLP3X.js → chunk-O7VJA7SM.js} +7 -7
- package/dist/_node-chunks/{chunk-2GY2FKLH.js → chunk-OGJ7LDX3.js} +7 -7
- package/dist/_node-chunks/{chunk-F4Q7OCCN.js → chunk-OWT6AVWK.js} +8 -8
- package/dist/_node-chunks/{chunk-LCXIUTOU.js → chunk-P3GOMPP3.js} +7 -7
- package/dist/_node-chunks/{chunk-KCAPE7OJ.js → chunk-PQLXHVWK.js} +6 -6
- package/dist/_node-chunks/{chunk-V45RRBTK.js → chunk-Q6QRFKHB.js} +8 -8
- package/dist/_node-chunks/{chunk-VJSOHPVD.js → chunk-QSP42ZBM.js} +6 -6
- package/dist/_node-chunks/{chunk-7XUQM6SR.js → chunk-QWDR5OWQ.js} +14 -14
- package/dist/_node-chunks/{chunk-YLKS7U3M.js → chunk-QWRQXG2V.js} +8 -8
- package/dist/_node-chunks/{chunk-4WO3GNZQ.js → chunk-R6AKCXPH.js} +6 -6
- package/dist/_node-chunks/{chunk-AXQ6LLSE.js → chunk-RCY7TLET.js} +8 -8
- package/dist/_node-chunks/chunk-RKKMQA6N.js +620 -0
- package/dist/_node-chunks/{chunk-BV3QRFE6.js → chunk-RZ7UEP4N.js} +6 -6
- package/dist/_node-chunks/{chunk-OSJFTZ5N.js → chunk-S3HB4EWT.js} +6 -6
- package/dist/_node-chunks/{chunk-QZVFIEOM.js → chunk-SHH7JROR.js} +6 -6
- package/dist/_node-chunks/{chunk-Q33BYVLY.js → chunk-SWHTDOB4.js} +7 -7
- package/dist/_node-chunks/{chunk-ZPPVG262.js → chunk-SZYMLCHF.js} +6 -6
- package/dist/_node-chunks/{chunk-ES5QZBSB.js → chunk-TOGDRW2W.js} +6 -6
- package/dist/_node-chunks/{chunk-J64XMUPF.js → chunk-U3E7E4Q2.js} +10 -10
- package/dist/_node-chunks/{chunk-RECGEABN.js → chunk-U6DHF3RM.js} +7 -7
- package/dist/_node-chunks/{chunk-OB2XHL53.js → chunk-UAG3XK32.js} +31 -30
- package/dist/_node-chunks/{chunk-BBD2KUV4.js → chunk-UF6Q6L5C.js} +22 -20
- package/dist/_node-chunks/chunk-UGXN7JTT.js +18 -0
- package/dist/_node-chunks/{chunk-EWAGCBER.js → chunk-UNCBLHIP.js} +8 -8
- package/dist/_node-chunks/chunk-UPJMGWMZ.js +25 -0
- package/dist/_node-chunks/chunk-UVV24PG4.js +69 -0
- package/dist/_node-chunks/{chunk-E6KXSYWR.js → chunk-WBB4NQ6H.js} +6 -6
- package/dist/_node-chunks/{chunk-B2IOB2V3.js → chunk-WHOF2BJB.js} +7 -7
- package/dist/_node-chunks/{chunk-FA36CEN4.js → chunk-WME5NEJA.js} +6 -6
- package/dist/_node-chunks/{chunk-BFZG4UTW.js → chunk-X63YMAHP.js} +7 -7
- package/dist/_node-chunks/chunk-Y2GHAOKI.js +25 -0
- package/dist/_node-chunks/{chunk-AXG3EMKS.js → chunk-Y6G64J5S.js} +7 -15
- package/dist/_node-chunks/chunk-YVIPYJ53.js +2609 -0
- package/dist/_node-chunks/{chunk-NDGTNFUN.js → chunk-YZWUD7I5.js} +16 -13
- package/dist/_node-chunks/{chunk-VN3A5CEH.js → chunk-ZIDIYSJQ.js} +7 -7
- package/dist/_node-chunks/chunk-ZSGOW4WQ.js +20 -0
- package/dist/_node-chunks/dist-5EG56KTF.js +16 -0
- package/dist/_node-chunks/dist-UEXSNGGQ.js +27 -0
- package/dist/_node-chunks/{local-runtime-RW6AAWSX.js → local-runtime-UN5QK2SE.js} +20 -20
- package/dist/_node-chunks/{mdx-plugin-BKWCT6CB.js → mdx-plugin-6M6CMNL3.js} +2263 -130
- package/dist/_node-chunks/{monorepo-ZFJ6HM34.js → monorepo-253VKW4B.js} +11 -11
- package/dist/_node-chunks/{monorepo-optimized-tests-relaxed-limits-no-story-deletion-C3EW4VJW.js → monorepo-optimized-tests-relaxed-limits-no-story-deletion-3ZOE54OQ.js} +11 -11
- package/dist/_node-chunks/optimized-tests-JSWLRMEI.js +22 -0
- package/dist/_node-chunks/{pattern-copy-play-2ZMJNCBS.js → pattern-copy-play-CCCJRMSL.js} +9 -9
- package/dist/_node-chunks/postinstallAddon-VMANBHPR.js +20 -0
- package/dist/_node-chunks/{rehype-external-links-RT5Z62RV.js → rehype-external-links-LJTPLCGD.js} +9 -9
- package/dist/_node-chunks/{rehype-slug-H5TWHJ6G.js → rehype-slug-KQI7ULEZ.js} +9 -9
- package/dist/_node-chunks/{relaxed-limits-DYLWZGE4.js → relaxed-limits-MUE2NI7S.js} +11 -11
- package/dist/_node-chunks/{run-65LLGSVR.js → run-PGZMPNMS.js} +246 -13
- package/dist/_node-chunks/{run-BQQLK454.js → run-SYLR25HA.js} +17 -17
- package/dist/_node-chunks/session-id-J4A25UQ6.js +23 -0
- package/dist/_node-chunks/{setup-NEO7XX66.js → setup-XZWSUYPG.js} +8 -8
- package/dist/_node-chunks/{vitest.config.4.template-6P3FZQTY.js → vitest.config.4.template-T25YYRGV.js} +7 -7
- package/dist/actions/decorator.js +2 -1
- package/dist/actions/index.js +2 -1
- package/dist/addon-a11y/index.js +2 -1
- package/dist/addon-a11y/manager.js +6 -5
- package/dist/addon-a11y/preset.js +7 -7
- package/dist/addon-a11y/preview.js +2 -1
- package/dist/addon-docs/blocks.js +28 -14
- package/dist/addon-docs/manager.js +2 -2
- package/dist/addon-docs/preset.js +10 -10
- package/dist/addon-links/index.js +3 -2
- package/dist/addon-links/preview.d.ts +1 -1
- package/dist/addon-links/preview.js +3 -2
- package/dist/addon-links/react/index.js +2 -1
- package/dist/addon-mcp/preset.js +8 -8
- package/dist/addon-mcp/tools/preview-stories/preview-stories-app-script.js +21 -44
- package/dist/addon-ondevice-actions/index.js +5 -1
- package/dist/addon-ondevice-actions/register.js +5 -1
- package/dist/addon-themes/postinstall.js +7 -7
- package/dist/addon-vitest/constants.js +8 -8
- package/dist/addon-vitest/manager.js +2 -2
- package/dist/addon-vitest/node/coverage-reporter.js +8 -8
- package/dist/addon-vitest/node/vitest.js +16 -16
- package/dist/addon-vitest/postinstall.js +10 -10
- package/dist/addon-vitest/preset.js +15 -16
- package/dist/addon-vitest/vitest-plugin/global-setup.js +7 -7
- package/dist/addon-vitest/vitest-plugin/index.js +17 -17
- package/dist/babel/index.d.ts +91 -842
- package/dist/babel/index.js +13 -19
- package/dist/bin/core.js +61 -60
- package/dist/bin/dispatcher.js +16 -11
- package/dist/bin/loader.js +16 -15
- package/dist/builder-vite/index.js +15 -15
- package/dist/builder-vite/preset.js +13 -13
- package/dist/{chunk-Jf7j2Ot0.d.ts → chunk-BGhyFTJO.d.ts} +1 -1
- package/dist/{chunk-Ce6uhJuR.d.ts → chunk-B_ZhEPlo.d.ts} +1 -1
- package/dist/{chunk-CZHsX9Zo.d.ts → chunk-CMaYrou5.d.ts} +1 -1
- package/dist/chunk-CV4-Z2pn.d.ts +30 -0
- package/dist/{chunk-B2t1tGRh.d.ts → chunk-CYuvV2sR.d.ts} +11 -13
- package/dist/{chunk-DpljNJTz.d.ts → chunk-LrH1y9J2.d.ts} +39 -0
- package/dist/cli/index.d.ts +13 -866
- package/dist/cli/index.js +42 -4952
- package/dist/cli/tools/sdk/child-host.d.ts +1 -1
- package/dist/cli/tools/sdk/child-host.js +17 -17
- package/dist/cli/tools/sdk/index.d.ts +1 -1
- package/dist/cli/tools/sdk/index.js +18 -18
- package/dist/cli-commands/bin/index.js +7 -7
- package/dist/client-logger/index.js +3 -1
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +35 -37
- package/dist/components/index.d.ts +14 -231
- package/dist/components/index.js +2512 -8359
- package/dist/core-events/index.d.ts +3 -2
- package/dist/core-events/index.js +3 -1
- package/dist/core-server/index.d.ts +2 -2
- package/dist/core-server/index.js +450 -147
- package/dist/core-server/presets/common-manager.js +62 -866
- package/dist/core-server/presets/common-override-preset.js +12 -10
- package/dist/core-server/presets/common-preset.js +39 -40
- package/dist/create/bin/index.js +7 -7
- package/dist/create/index.js +15 -15
- package/dist/csf/index.d.ts +1 -1
- package/dist/csf/index.js +27 -93
- package/dist/csf-tools/index.d.ts +14 -12
- package/dist/csf-tools/index.js +14 -14
- package/dist/instrumenter/index.js +3 -1
- package/dist/manager/_manager-chunks/{globals-runtime-BgVwdR45.js → globals-runtime-4fCHtNC6.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DW1HVuLt.js → globals-runtime-BKPOYSwp.js} +410 -379
- package/dist/manager/_manager-chunks/{globals-runtime-zVfMhZAt.js → globals-runtime-BMIT8BJb.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-CUBVmgcG.js → globals-runtime-BO0pfoqL.js} +4 -4
- package/dist/manager/_manager-chunks/{globals-runtime-Bke4A4DG.js → globals-runtime-BZKYJxYC.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-D_YKR9nf.js → globals-runtime-Bpc_ftuT.js} +1252 -539
- package/dist/manager/_manager-chunks/{globals-runtime-DCOX9nD5.js → globals-runtime-CBviMKtt.js} +1 -17
- package/dist/manager/_manager-chunks/{globals-runtime-CTB3rhS1.js → globals-runtime-CI-C7ncS.js} +10 -10
- package/dist/manager/_manager-chunks/{globals-runtime-Cr3nYYcT.js → globals-runtime-CI_p54Ha.js} +59 -60
- package/dist/manager/_manager-chunks/{globals-runtime-CiLcg4q9.js → globals-runtime-CTyYXvUm.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-DqNrRmOM.js → globals-runtime-CoCzM1V_.js} +93 -2146
- package/dist/manager/_manager-chunks/{globals-runtime-CXKb33hg.js → globals-runtime-CzEhVGVp.js} +141 -54
- package/dist/manager/_manager-chunks/{globals-runtime-CF4o9_wT.js → globals-runtime-D82vqOGq.js} +2 -1
- package/dist/manager/_manager-chunks/{globals-runtime-ALpzCL93.js → globals-runtime-DB8fVA5g.js} +2 -145
- package/dist/manager/_manager-chunks/{globals-runtime-DMvB3-IM.js → globals-runtime-DMq1Phbl.js} +153 -141
- package/dist/manager/_manager-chunks/globals-runtime-DOPUchia.js +5282 -0
- package/dist/manager/_manager-chunks/{globals-runtime-BcNHymiF.js → globals-runtime-Dbt08xWQ.js} +1 -1
- package/dist/manager/_manager-chunks/{globals-runtime-m07udJ_K.js → globals-runtime-kmPSyf3j.js} +637 -1730
- package/dist/manager/_manager-chunks/{runtime-DMig8mT7.js → runtime-5o_11Jae.js} +4 -3
- package/dist/manager/_manager-chunks/{runtime-DrjpEyLM.js → runtime-B4U0u9p4.js} +5 -147
- package/dist/manager/_manager-chunks/{runtime-B-eSQdxk.js → runtime-BM30BmeT.js} +503 -44
- package/dist/manager/_manager-chunks/{runtime-EITvVbkG.js → runtime-BdGkqNEt.js} +1 -2
- package/dist/manager/_manager-chunks/{runtime-a5zd7km2.js → runtime-Cf0p9DUx.js} +5 -531
- package/dist/manager/_manager-chunks/{runtime-Cdz2BHhM.js → runtime-D-nYLsdk.js} +57 -34
- package/dist/manager/_manager-chunks/runtime-D09XMY6V.js +294 -0
- package/dist/manager/_manager-chunks/{runtime-Bldwclun.js → runtime-DvrwKw7z.js} +92 -303
- package/dist/manager/_manager-chunks/{runtime-DGHNKNQl.js → runtime-DzxaTqVN.js} +10 -29
- package/dist/manager/_manager-chunks/runtime-P663lpsR.js +528 -0
- package/dist/manager/_manager-chunks/{runtime-Cmu7D8A0.js → runtime-ecY5qnmo.js} +193 -184
- package/dist/manager/globals-runtime.js +1 -1
- package/dist/manager/runtime.js +1 -1
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +22 -28
- package/dist/manager-errors.d.ts +1 -1
- package/dist/mcp/index.js +8 -8
- package/dist/mocking-utils/index.js +16 -11
- package/dist/nextjs-vite/index.js +3 -2
- package/dist/nextjs-vite/node/index.js +7 -7
- package/dist/nextjs-vite/node-stand-ins/index.d.ts +68 -0
- package/dist/nextjs-vite/node-stand-ins/index.js +145 -0
- package/dist/nextjs-vite/preset.js +93 -14
- package/dist/nextjs-vite/vite-plugin/index.js +7 -7
- package/dist/nextjs-vite-plugin/index.d.ts +1 -2
- package/dist/nextjs-vite-plugin/index.js +12 -27
- package/dist/nextjs-vite-plugin/mocks/storybook.global.js +8 -8
- package/dist/node-logger/index.d.ts +65 -72
- package/dist/node-logger/index.js +11 -12
- package/dist/oxc-parser/index.js +11 -13
- package/dist/oxc-parser/worker.js +10 -10
- package/dist/preview/_chunks/{runtime-DVM_AHbR.js → runtime-6P-h06Te.js} +51 -50
- package/dist/preview/_chunks/{runtime-BoxmlDdB.js → runtime-B9KKIDGa.js} +202 -81
- package/dist/preview/_chunks/{runtime-BIzIdDbb.js → runtime-BPwAnlRx.js} +482 -334
- package/dist/preview/_chunks/{runtime-q3wt0e_N.js → runtime-BUnOhg9h.js} +2 -2
- package/dist/preview/_chunks/runtime-Bcv1hJky.js +6305 -0
- package/dist/preview/_chunks/{runtime-CqHxptiK.js → runtime-C1jgT6tJ.js} +93 -2145
- package/dist/preview/_chunks/{runtime-D7B4bVe_.js → runtime-C8QFpkFV.js} +6 -6
- package/dist/preview/_chunks/{runtime-CijtAN7R.js → runtime-DdqR8Fd0.js} +15 -6
- package/dist/preview/_chunks/{runtime-B3y8ocOg.js → runtime-DvBfMhis.js} +2 -2
- package/dist/preview/_chunks/{runtime-BZSnICCg.js → runtime-WapFVPAh.js} +29 -29
- package/dist/preview/runtime.js +1 -1
- package/dist/preview-api/index.d.ts +1 -1
- package/dist/preview-api/index.js +2 -1
- package/dist/preview-errors.d.ts +1 -1
- package/dist/react/docgen/docgen-worker.js +11 -12
- package/dist/react/entry-preview.js +2 -1
- package/dist/react/index.js +6 -4
- package/dist/react/preset.js +13 -14
- package/dist/react/preview.js +3 -2
- package/dist/react-native/bin/get-stories.js +8 -8
- package/dist/react-native/index.js +25 -211
- package/dist/react-native/metro/node.js +10 -9
- package/dist/react-native/metro/withStorybook.js +11 -10
- package/dist/react-native/scripts/generate.js +8 -8
- package/dist/react-vite/node/index.js +7 -7
- package/dist/react-vite/preset.js +7 -7
- package/dist/router/index.js +3 -1
- package/dist/server-errors.d.ts +1 -1
- package/dist/server-errors.js +9 -9
- package/dist/shared/open-service/index.d.ts +1 -1
- package/dist/shared/open-service/services/docgen/worker/docgen-worker.js +9 -9
- package/dist/telemetry/index.js +43 -45
- package/dist/test/index.js +808 -573
- package/dist/theming/create.js +2 -1
- package/dist/theming/index.js +22 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +21 -44
- package/dist/_browser-chunks/WithTooltip-V55S6YCY.js +0 -1619
- package/dist/_browser-chunks/chunk-5P4QA6MY.js +0 -20
- package/dist/_browser-chunks/chunk-UDQ3XQFC.js +0 -108
- package/dist/_node-chunks/chunk-6QQTZT3Z.js +0 -19
- package/dist/_node-chunks/chunk-BRD332PB.js +0 -3008
- package/dist/_node-chunks/chunk-E2XKJLXK.js +0 -4731
- package/dist/_node-chunks/chunk-F2LQJXAB.js +0 -29
- package/dist/_node-chunks/chunk-MCZZMBPA.js +0 -20
- package/dist/_node-chunks/chunk-MMFUHYSU.js +0 -23
- package/dist/_node-chunks/chunk-UGFY5LEG.js +0 -18
- package/dist/_node-chunks/chunk-UO5ZOCSQ.js +0 -662
- package/dist/_node-chunks/chunk-UW35FCXF.js +0 -20
- package/dist/_node-chunks/chunk-VMUXW2E2.js +0 -5414
- package/dist/_node-chunks/chunk-VNXE7UJL.js +0 -51
- package/dist/_node-chunks/chunk-VRJJ43P2.js +0 -11
- package/dist/_node-chunks/chunk-WCJUS7OC.js +0 -1877
- package/dist/_node-chunks/chunk-WMBMSNB7.js +0 -36
- package/dist/_node-chunks/chunk-YV2QBXU6.js +0 -3823
- package/dist/_node-chunks/chunk-ZZNBVMBU.js +0 -25
- package/dist/_node-chunks/dist-VFUGPNLK.js +0 -16
- package/dist/_node-chunks/globby-N7LO32D3.js +0 -2884
- package/dist/_node-chunks/jiti-SJDZ7LQB.js +0 -3848
- package/dist/_node-chunks/lib-4HD6QL5R.js +0 -366
- package/dist/_node-chunks/optimized-tests-LVKXZ3HQ.js +0 -22
- package/dist/_node-chunks/postinstallAddon-I6MAL6PW.js +0 -20
- package/dist/_node-chunks/session-id-6Z2RXBTG.js +0 -23
- package/dist/chunk-BfBzpgct.d.ts +0 -916
- package/dist/core-server/presets/common-manager.css +0 -170
- package/dist/manager/_manager-chunks/globals-runtime-Bon7UvQk.js +0 -9766
- package/dist/manager/_manager-chunks/globals-runtime-DDOIxI_l.js +0 -1584
- package/dist/manager/_manager-chunks/runtime-CuJiHYCp.js +0 -22
- package/dist/manager/_manager-chunks/runtime-DFhLVh8q.js +0 -456
- package/dist/preview/_chunks/runtime-BTPtVY1p.js +0 -1102
- package/dist/preview/_chunks/runtime-DZToXfvO.js +0 -9767
package/dist/chunk-BfBzpgct.d.ts
DELETED
|
@@ -1,916 +0,0 @@
|
|
|
1
|
-
import { Duplex, Readable, Writable } from "node:stream";
|
|
2
|
-
import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
|
|
3
|
-
import { SignalConstants } from "node:os";
|
|
4
|
-
import { ChildProcess } from "node:child_process";
|
|
5
|
-
|
|
6
|
-
//#region ../../node_modules/execa/types/utils.d.ts
|
|
7
|
-
type Not<Value extends boolean> = Value extends true ? false : true;
|
|
8
|
-
type And<First extends boolean, Second extends boolean> = First extends true ? Second : false;
|
|
9
|
-
type Or<First extends boolean, Second extends boolean> = First extends true ? true : Second;
|
|
10
|
-
type Unless<Condition extends boolean, ThenValue, ElseValue = never> = Condition extends true ? ElseValue : ThenValue;
|
|
11
|
-
type AndUnless<Condition extends boolean, ThenValue, ElseValue = unknown> = Condition extends true ? ElseValue : ThenValue;
|
|
12
|
-
// Whether any of T's union element is the same as one of U's union element.
|
|
13
|
-
// `&` does not work here.
|
|
14
|
-
type Intersects<T, U> = true extends (T extends U ? true : false) ? true : false;
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region ../../node_modules/execa/types/transform/normalize.d.ts
|
|
17
|
-
// `options.std*: Generator`
|
|
18
|
-
// @todo Use `string`, `Uint8Array` or `unknown` for both the argument and the return type, based on whether `encoding: 'buffer'` and `objectMode: true` are used.
|
|
19
|
-
// See https://github.com/sindresorhus/execa/issues/694
|
|
20
|
-
type GeneratorTransform<IsSync extends boolean> = (chunk: unknown) => Unless<IsSync, AsyncGenerator<unknown, void, void>> | Generator<unknown, void, void>;
|
|
21
|
-
type GeneratorFinal<IsSync extends boolean> = () => Unless<IsSync, AsyncGenerator<unknown, void, void>> | Generator<unknown, void, void>;
|
|
22
|
-
type TransformCommon = {
|
|
23
|
-
/**
|
|
24
|
-
If `true`, allow `transformOptions.transform` and `transformOptions.final` to return any type, not just `string` or `Uint8Array`.
|
|
25
|
-
*/
|
|
26
|
-
readonly objectMode?: boolean;
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
A transform or an array of transforms can be passed to the `stdin`, `stdout`, `stderr` or `stdio` option.
|
|
30
|
-
|
|
31
|
-
A transform is either a generator function or a plain object with the following members.
|
|
32
|
-
*/
|
|
33
|
-
type GeneratorTransformFull<IsSync extends boolean> = {
|
|
34
|
-
/**
|
|
35
|
-
Map or filter the input or output of the subprocess.
|
|
36
|
-
*/
|
|
37
|
-
readonly transform: GeneratorTransform<IsSync>;
|
|
38
|
-
/**
|
|
39
|
-
Create additional lines after the last one.
|
|
40
|
-
*/
|
|
41
|
-
readonly final?: GeneratorFinal<IsSync>;
|
|
42
|
-
/**
|
|
43
|
-
If `true`, iterate over arbitrary chunks of `Uint8Array`s instead of line `string`s.
|
|
44
|
-
*/
|
|
45
|
-
readonly binary?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
If `true`, keep newlines in each `line` argument. Also, this allows multiple `yield`s to produces a single line.
|
|
48
|
-
*/
|
|
49
|
-
readonly preserveNewlines?: boolean;
|
|
50
|
-
} & TransformCommon;
|
|
51
|
-
// `options.std*: Duplex`
|
|
52
|
-
type DuplexTransform = {
|
|
53
|
-
readonly transform: Duplex;
|
|
54
|
-
} & TransformCommon;
|
|
55
|
-
// `options.std*: TransformStream`
|
|
56
|
-
type WebTransform = {
|
|
57
|
-
readonly transform: TransformStream;
|
|
58
|
-
} & TransformCommon;
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region ../../node_modules/execa/types/stdio/type.d.ts
|
|
61
|
-
type IsStandardStream<FdNumber extends string> = FdNumber extends keyof StandardStreams ? true : false;
|
|
62
|
-
type StandardStreams = readonly ['stdin', 'stdout', 'stderr'];
|
|
63
|
-
// When `options.stdin|stdout|stderr|stdio` is set to one of those values, no stream is created
|
|
64
|
-
type NoStreamStdioOption<FdNumber extends string> = 'ignore' | 'inherit' | 'ipc' | number | Readable | Writable | Unless<IsStandardStream<FdNumber>, undefined> | readonly [NoStreamStdioOption<FdNumber>];
|
|
65
|
-
// `options.stdio` when it is not an array
|
|
66
|
-
type SimpleStdioOption<IsSync extends boolean, IsExtra extends boolean, IsArray extends boolean> = undefined | 'pipe' | Unless<And<And<Not<IsSync>, IsArray>, IsExtra>, 'inherit'> | Unless<IsArray, 'ignore'> | Unless<IsSync, 'overlapped'>; // Values available in both `options.stdin|stdio` and `options.stdout|stderr|stdio`
|
|
67
|
-
type CommonStdioOption<IsSync extends boolean, IsExtra extends boolean, IsArray extends boolean> = SimpleStdioOption<IsSync, IsExtra, IsArray> | URL | {
|
|
68
|
-
readonly file: string;
|
|
69
|
-
readonly append?: boolean;
|
|
70
|
-
} | GeneratorTransform<IsSync> | GeneratorTransformFull<IsSync> | Unless<And<Not<IsSync>, IsArray>, 3 | 4 | 5 | 6 | 7 | 8 | 9> | Unless<Or<IsSync, IsArray>, 'ipc'> | Unless<IsSync, DuplexTransform | WebTransform | TransformStream>; // Synchronous iterables excluding strings, Uint8Arrays and Arrays
|
|
71
|
-
type IterableObject<IsArray extends boolean> = Iterable<unknown> & object & {
|
|
72
|
-
readonly BYTES_PER_ELEMENT?: never;
|
|
73
|
-
} & AndUnless<IsArray, {
|
|
74
|
-
readonly lastIndexOf?: never;
|
|
75
|
-
}>; // `process.stdin|stdout|stderr` are `Duplex` with a `fd` property.
|
|
76
|
-
// This ensures they can only be passed to `stdin`/`stdout`/`stderr`, based on their direction.
|
|
77
|
-
type ProcessStdinFd = {
|
|
78
|
-
readonly fd?: 0;
|
|
79
|
-
};
|
|
80
|
-
type ProcessStdoutStderrFd = {
|
|
81
|
-
readonly fd?: 1 | 2;
|
|
82
|
-
}; // Values available only in `options.stdin|stdio`
|
|
83
|
-
type InputStdioOption<IsSync extends boolean = boolean, IsExtra extends boolean = boolean, IsArray extends boolean = boolean> = 0 | Unless<And<IsSync, IsExtra>, Uint8Array | IterableObject<IsArray>> | Unless<And<IsSync, IsArray>, Readable & ProcessStdinFd> | Unless<IsSync, (AsyncIterable<unknown> & ProcessStdinFd) | ReadableStream>;
|
|
84
|
-
// Values available only in `options.stdout|stderr|stdio`
|
|
85
|
-
type OutputStdioOption<IsSync extends boolean, IsArray extends boolean> = 1 | 2 | Unless<And<IsSync, IsArray>, Writable & ProcessStdoutStderrFd> | Unless<IsSync, WritableStream>; // `options.stdin` array items
|
|
86
|
-
type StdinSingleOption<IsSync extends boolean, IsExtra extends boolean, IsArray extends boolean> = CommonStdioOption<IsSync, IsExtra, IsArray> | InputStdioOption<IsSync, IsExtra, IsArray>; // `options.stdin`
|
|
87
|
-
type StdinOptionCommon<IsSync extends boolean = boolean, IsExtra extends boolean = boolean> = StdinSingleOption<IsSync, IsExtra, false> | ReadonlyArray<StdinSingleOption<IsSync, IsExtra, true>>;
|
|
88
|
-
// `options.stdout|stderr` array items
|
|
89
|
-
type StdoutStderrSingleOption<IsSync extends boolean, IsExtra extends boolean, IsArray extends boolean> = CommonStdioOption<IsSync, IsExtra, IsArray> | OutputStdioOption<IsSync, IsArray>; // `options.stdout|stderr`
|
|
90
|
-
type StdoutStderrOptionCommon<IsSync extends boolean = boolean, IsExtra extends boolean = boolean> = StdoutStderrSingleOption<IsSync, IsExtra, false> | ReadonlyArray<StdoutStderrSingleOption<IsSync, IsExtra, true>>;
|
|
91
|
-
// `options.stdio[3+]`
|
|
92
|
-
type StdioExtraOptionCommon<IsSync extends boolean> = StdinOptionCommon<IsSync, true> | StdoutStderrOptionCommon<IsSync, true>; // `options.stdin|stdout|stderr|stdio` array items
|
|
93
|
-
type StdioSingleOption<IsSync extends boolean = boolean, IsExtra extends boolean = boolean, IsArray extends boolean = boolean> = StdinSingleOption<IsSync, IsExtra, IsArray> | StdoutStderrSingleOption<IsSync, IsExtra, IsArray>; // Get `options.stdin|stdout|stderr|stdio` items if it is an array, else keep as is
|
|
94
|
-
type StdioSingleOptionItems<StdioOptionType> = StdioOptionType extends readonly StdioSingleOption[] ? StdioOptionType[number] : StdioOptionType;
|
|
95
|
-
// `options.stdin|stdout|stderr|stdio`
|
|
96
|
-
type StdioOptionCommon<IsSync extends boolean = boolean> = StdinOptionCommon<IsSync> | StdoutStderrOptionCommon<IsSync>;
|
|
97
|
-
// `options.stdio` when it is an array
|
|
98
|
-
type StdioOptionsArray<IsSync extends boolean = boolean> = readonly [StdinOptionCommon<IsSync, false>, StdoutStderrOptionCommon<IsSync, false>, StdoutStderrOptionCommon<IsSync, false>, ...ReadonlyArray<StdioExtraOptionCommon<IsSync>>];
|
|
99
|
-
// `options.stdio`
|
|
100
|
-
type StdioOptionsProperty<IsSync extends boolean = boolean> = SimpleStdioOption<IsSync, false, false> | StdioOptionsArray<IsSync>;
|
|
101
|
-
//#endregion
|
|
102
|
-
//#region ../../node_modules/execa/types/ipc.d.ts
|
|
103
|
-
// Message when the `serialization` option is `'advanced'`
|
|
104
|
-
type AdvancedMessage = string | number | boolean | null | object; // Message when the `serialization` option is `'json'`
|
|
105
|
-
type JsonMessage = string | number | boolean | null | readonly JsonMessage[] | {
|
|
106
|
-
readonly [key: string | number]: JsonMessage;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
Type of messages exchanged between a process and its subprocess using `sendMessage()`, `getOneMessage()` and `getEachMessage()`.
|
|
110
|
-
|
|
111
|
-
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
112
|
-
*/
|
|
113
|
-
type Message<Serialization extends Options['serialization'] = Options['serialization']> = Serialization extends 'json' ? JsonMessage : AdvancedMessage;
|
|
114
|
-
/**
|
|
115
|
-
Options to `sendMessage()` and `subprocess.sendMessage()`
|
|
116
|
-
*/
|
|
117
|
-
type SendMessageOptions = {
|
|
118
|
-
/**
|
|
119
|
-
Throw when the other process is not receiving or listening to messages.
|
|
120
|
-
@default false
|
|
121
|
-
*/
|
|
122
|
-
readonly strict?: boolean;
|
|
123
|
-
}; // IPC methods in subprocess
|
|
124
|
-
/**
|
|
125
|
-
Send a `message` to the parent process.
|
|
126
|
-
|
|
127
|
-
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
128
|
-
*/
|
|
129
|
-
/**
|
|
130
|
-
Options to `getOneMessage()` and `subprocess.getOneMessage()`
|
|
131
|
-
*/
|
|
132
|
-
type GetOneMessageOptions<Serialization extends Options['serialization']> = {
|
|
133
|
-
/**
|
|
134
|
-
Ignore any `message` that returns `false`.
|
|
135
|
-
*/
|
|
136
|
-
readonly filter?: (message: Message<Serialization>) => boolean;
|
|
137
|
-
/**
|
|
138
|
-
Keep the subprocess alive while `getOneMessage()` is waiting.
|
|
139
|
-
@default true
|
|
140
|
-
*/
|
|
141
|
-
readonly reference?: boolean;
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
Receive a single `message` from the parent process.
|
|
145
|
-
|
|
146
|
-
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
147
|
-
*/
|
|
148
|
-
/**
|
|
149
|
-
Options to `getEachMessage()` and `subprocess.getEachMessage()`
|
|
150
|
-
*/
|
|
151
|
-
type GetEachMessageOptions = {
|
|
152
|
-
/**
|
|
153
|
-
Keep the subprocess alive while `getEachMessage()` is waiting.
|
|
154
|
-
@default true
|
|
155
|
-
*/
|
|
156
|
-
readonly reference?: boolean;
|
|
157
|
-
};
|
|
158
|
-
/**
|
|
159
|
-
Iterate over each `message` from the parent process.
|
|
160
|
-
|
|
161
|
-
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
162
|
-
*/
|
|
163
|
-
// IPC methods in the subprocess
|
|
164
|
-
type IpcMethods<IpcEnabled extends boolean, Serialization extends Options['serialization']> = IpcEnabled extends true ? {
|
|
165
|
-
/**
|
|
166
|
-
Send a `message` to the subprocess.
|
|
167
|
-
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
168
|
-
*/
|
|
169
|
-
sendMessage(message: Message<Serialization>, sendMessageOptions?: SendMessageOptions): Promise<void>;
|
|
170
|
-
/**
|
|
171
|
-
Receive a single `message` from the subprocess.
|
|
172
|
-
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
173
|
-
*/
|
|
174
|
-
getOneMessage(getOneMessageOptions?: GetOneMessageOptions<Serialization>): Promise<Message<Serialization>>;
|
|
175
|
-
/**
|
|
176
|
-
Iterate over each `message` from the subprocess.
|
|
177
|
-
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
178
|
-
*/
|
|
179
|
-
getEachMessage(getEachMessageOptions?: GetEachMessageOptions): AsyncIterableIterator<Message<Serialization>>;
|
|
180
|
-
} // Those methods only work if the `ipc` option is `true`.
|
|
181
|
-
// At runtime, they are actually defined, in order to provide with a nice error message.
|
|
182
|
-
// At type check time, they are typed as `undefined` to prevent calling them.
|
|
183
|
-
: {
|
|
184
|
-
sendMessage: undefined;
|
|
185
|
-
getOneMessage: undefined;
|
|
186
|
-
getEachMessage: undefined;
|
|
187
|
-
};
|
|
188
|
-
// Whether IPC is enabled, based on the `ipc`, `ipcInput` and `gracefulCancel` options
|
|
189
|
-
type HasIpc<OptionsType extends Options> = HasIpcOption<OptionsType['ipc'], 'ipcInput' extends keyof OptionsType ? OptionsType['ipcInput'] : undefined, 'gracefulCancel' extends keyof OptionsType ? OptionsType['gracefulCancel'] : undefined>;
|
|
190
|
-
type HasIpcOption<IpcOption extends Options['ipc'], IpcInputOption extends Options['ipcInput'], GracefulCancelOption extends Options['gracefulCancel']> = IpcOption extends true ? true : IpcOption extends false ? false : IpcInputOption extends undefined ? GracefulCancelOption extends true ? true : false : true;
|
|
191
|
-
//#endregion
|
|
192
|
-
//#region ../../node_modules/execa/types/arguments/fd-options.d.ts
|
|
193
|
-
type FileDescriptorOption = `fd${number}`; // `from` option of `subprocess.readable|duplex|iterable|pipe()`
|
|
194
|
-
// Also used by fd-specific options
|
|
195
|
-
type FromOption = 'stdout' | 'stderr' | 'all' | FileDescriptorOption;
|
|
196
|
-
// `to` option of `subprocess.writable|duplex|pipe()`
|
|
197
|
-
type ToOption = 'stdin' | FileDescriptorOption;
|
|
198
|
-
//#endregion
|
|
199
|
-
//#region ../../node_modules/execa/types/arguments/specific.d.ts
|
|
200
|
-
// Options which can be fd-specific like `{verbose: {stdout: 'none', stderr: 'full'}}`
|
|
201
|
-
type FdGenericOption<OptionType> = OptionType | GenericOptionObject<OptionType>;
|
|
202
|
-
type GenericOptionObject<OptionType> = { readonly [FdName in GenericFromOption]?: OptionType };
|
|
203
|
-
type GenericFromOption = FromOption | 'ipc'; // Retrieve fd-specific option's value
|
|
204
|
-
type FdSpecificOption<GenericOption extends FdGenericOption<unknown>, FdNumber extends string> = GenericOption extends GenericOptionObject<unknown> ? FdSpecificObjectOption<GenericOption, FdNumber> : GenericOption;
|
|
205
|
-
type FdSpecificObjectOption<GenericOption extends GenericOptionObject<unknown>, FdNumber extends string> = keyof GenericOption extends GenericFromOption ? FdNumberToFromOption<FdNumber, keyof GenericOption> extends never ? undefined : GenericOption[FdNumberToFromOption<FdNumber, keyof GenericOption>] : GenericOption;
|
|
206
|
-
type FdNumberToFromOption<FdNumber extends string, GenericOptionKeys extends GenericFromOption> = FdNumber extends '1' ? 'stdout' extends GenericOptionKeys ? 'stdout' : 'fd1' extends GenericOptionKeys ? 'fd1' : 'all' extends GenericOptionKeys ? 'all' : never : FdNumber extends '2' ? 'stderr' extends GenericOptionKeys ? 'stderr' : 'fd2' extends GenericOptionKeys ? 'fd2' : 'all' extends GenericOptionKeys ? 'all' : never : `fd${FdNumber}` extends GenericOptionKeys ? `fd${FdNumber}` : 'ipc' extends GenericOptionKeys ? 'ipc' : never;
|
|
207
|
-
//#endregion
|
|
208
|
-
//#region ../../node_modules/execa/types/return/final-error.d.ts
|
|
209
|
-
// `result.*` defined only on failure, i.e. on `error.*`
|
|
210
|
-
type ErrorProperties = 'name' | 'message' | 'stack' | 'cause' | 'shortMessage' | 'originalMessage' | 'code';
|
|
211
|
-
//#endregion
|
|
212
|
-
//#region ../../node_modules/execa/types/stdio/array.d.ts
|
|
213
|
-
// `options.stdio`, normalized as an array
|
|
214
|
-
type StdioOptionNormalizedArray<OptionsType extends CommonOptions> = StdioOptionNormalized<OptionsType['stdio']>;
|
|
215
|
-
type StdioOptionNormalized<StdioOption extends CommonOptions['stdio']> = StdioOption extends StdioOptionsArray ? StdioOption : StdioOption extends StdinOptionCommon ? StdioOption extends StdoutStderrOptionCommon ? readonly [StdioOption, StdioOption, StdioOption] : DefaultStdioOption : DefaultStdioOption; // `options.stdio` default value
|
|
216
|
-
type DefaultStdioOption = readonly ['pipe', 'pipe', 'pipe'];
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region ../../node_modules/execa/types/stdio/option.d.ts
|
|
219
|
-
// `options.stdin|stdout|stderr|stdio` for a given file descriptor
|
|
220
|
-
type FdStdioOption<FdNumber extends string, OptionsType extends CommonOptions> = FdStdioOptionProperty<FdNumber, OptionsType>;
|
|
221
|
-
type FdStdioOptionProperty<FdNumber extends string, OptionsType extends CommonOptions> = string extends FdNumber ? StdioOptionCommon : FdNumber extends keyof StandardStreams ? StandardStreams[FdNumber] extends keyof OptionsType ? OptionsType[StandardStreams[FdNumber]] extends undefined ? FdStdioArrayOption<FdNumber, OptionsType> : OptionsType[StandardStreams[FdNumber]] : FdStdioArrayOption<FdNumber, OptionsType> : FdStdioArrayOption<FdNumber, OptionsType>; // `options.stdio[FdNumber]`, excluding `options.stdin|stdout|stderr`
|
|
222
|
-
type FdStdioArrayOption<FdNumber extends string, OptionsType extends CommonOptions> = FdStdioArrayOptionProperty<FdNumber, StdioOptionNormalizedArray<OptionsType>>;
|
|
223
|
-
type FdStdioArrayOptionProperty<FdNumber extends string, StdioOptionsType> = string extends FdNumber ? StdioOptionCommon | undefined : StdioOptionsType extends StdioOptionsArray ? FdNumber extends keyof StdioOptionsType ? StdioOptionsType[FdNumber] : StdioOptionNormalizedArray<CommonOptions> extends StdioOptionsType ? StdioOptionsType[number] : undefined : undefined;
|
|
224
|
-
//#endregion
|
|
225
|
-
//#region ../../node_modules/execa/types/transform/object-mode.d.ts
|
|
226
|
-
// Whether a file descriptor is in object mode
|
|
227
|
-
// I.e. whether `result.stdout|stderr|stdio|all` is an array of `unknown` due to `objectMode: true`
|
|
228
|
-
type IsObjectFd<FdNumber extends string, OptionsType extends CommonOptions> = IsObjectStdioOption<FdStdioOption<FdNumber, OptionsType>>;
|
|
229
|
-
type IsObjectStdioOption<StdioOptionType> = IsObjectStdioSingleOption<StdioSingleOptionItems<StdioOptionType>>;
|
|
230
|
-
type IsObjectStdioSingleOption<StdioSingleOptionType> = StdioSingleOptionType extends TransformCommon ? BooleanObjectMode<StdioSingleOptionType['objectMode']> : StdioSingleOptionType extends DuplexTransform ? StdioSingleOptionType['transform']['readableObjectMode'] : false;
|
|
231
|
-
type BooleanObjectMode<ObjectModeOption extends boolean | undefined> = ObjectModeOption extends true ? true : false;
|
|
232
|
-
//#endregion
|
|
233
|
-
//#region ../../node_modules/execa/types/stdio/direction.d.ts
|
|
234
|
-
// Whether `result.stdio[FdNumber]` is an input stream
|
|
235
|
-
type IsInputFd<FdNumber extends string, OptionsType extends CommonOptions> = FdNumber extends '0' ? true : Intersects<StdioSingleOptionItems<FdStdioArrayOption<FdNumber, OptionsType>>, InputStdioOption>;
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region ../../node_modules/execa/types/return/ignore.d.ts
|
|
238
|
-
// Whether `result.stdin|stdout|stderr|all|stdio[*]` is `undefined`
|
|
239
|
-
type IgnoresResultOutput<FdNumber extends string, OptionsType extends CommonOptions> = FdSpecificOption<OptionsType['buffer'], FdNumber> extends false ? true : IsInputFd<FdNumber, OptionsType> extends true ? true : IgnoresSubprocessOutput<FdNumber, OptionsType>;
|
|
240
|
-
// Whether `subprocess.stdout|stderr|all` is `undefined|null`
|
|
241
|
-
type IgnoresSubprocessOutput<FdNumber extends string, OptionsType extends CommonOptions> = IgnoresOutput<FdNumber, FdStdioOption<FdNumber, OptionsType>>;
|
|
242
|
-
type IgnoresOutput<FdNumber extends string, StdioOptionType> = StdioOptionType extends NoStreamStdioOption<FdNumber> ? true : false;
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region ../../node_modules/execa/types/arguments/encoding-option.d.ts
|
|
245
|
-
type DefaultEncodingOption = 'utf8';
|
|
246
|
-
type TextEncodingOption = DefaultEncodingOption | 'utf16le';
|
|
247
|
-
type BufferEncodingOption = 'buffer';
|
|
248
|
-
type BinaryEncodingOption = BufferEncodingOption | 'hex' | 'base64' | 'base64url' | 'latin1' | 'ascii';
|
|
249
|
-
// `options.encoding`
|
|
250
|
-
type EncodingOption = TextEncodingOption | BinaryEncodingOption | undefined;
|
|
251
|
-
//#endregion
|
|
252
|
-
//#region ../../node_modules/execa/types/return/result-stdout.d.ts
|
|
253
|
-
// `result.stdout|stderr|stdio`
|
|
254
|
-
type ResultStdioNotAll<FdNumber extends string, OptionsType extends CommonOptions> = ResultStdio<FdNumber, FdNumber, FdNumber, OptionsType>;
|
|
255
|
-
// `result.stdout|stderr|stdio|all`
|
|
256
|
-
type ResultStdio<MainFdNumber extends string, ObjectFdNumber extends string, LinesFdNumber extends string, OptionsType extends CommonOptions> = ResultStdioProperty<ObjectFdNumber, LinesFdNumber, IgnoresResultOutput<MainFdNumber, OptionsType>, OptionsType>;
|
|
257
|
-
type ResultStdioProperty<ObjectFdNumber extends string, LinesFdNumber extends string, StreamOutputIgnored, OptionsType extends CommonOptions> = StreamOutputIgnored extends true ? undefined : ResultStdioItem<IsObjectFd<ObjectFdNumber, OptionsType>, FdSpecificOption<OptionsType['lines'], LinesFdNumber>, OptionsType['encoding']>;
|
|
258
|
-
type ResultStdioItem<IsObjectResult, LinesOption extends boolean | undefined, Encoding extends CommonOptions['encoding']> = IsObjectResult extends true ? unknown[] : Encoding extends BufferEncodingOption ? Uint8Array : LinesOption extends true ? Encoding extends BinaryEncodingOption ? string : string[] : string;
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region ../../node_modules/execa/types/return/result-all.d.ts
|
|
261
|
-
// `result.all`
|
|
262
|
-
type ResultAll<OptionsType extends CommonOptions> = ResultAllProperty<OptionsType['all'], OptionsType>;
|
|
263
|
-
type ResultAllProperty<AllOption extends CommonOptions['all'], OptionsType extends CommonOptions> = AllOption extends true ? ResultStdio<AllMainFd<OptionsType>, AllObjectFd<OptionsType>, AllLinesFd<OptionsType>, OptionsType> : undefined;
|
|
264
|
-
type AllMainFd<OptionsType extends CommonOptions> = IgnoresResultOutput<'1', OptionsType> extends true ? '2' : '1';
|
|
265
|
-
type AllObjectFd<OptionsType extends CommonOptions> = IsObjectFd<'1', OptionsType> extends true ? '1' : '2';
|
|
266
|
-
type AllLinesFd<OptionsType extends CommonOptions> = FdSpecificOption<OptionsType['lines'], '1'> extends true ? '1' : '2';
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region ../../node_modules/execa/types/return/result-stdio.d.ts
|
|
269
|
-
// `result.stdio`
|
|
270
|
-
type ResultStdioArray<OptionsType extends CommonOptions> = MapResultStdio<StdioOptionNormalizedArray<OptionsType>, OptionsType>;
|
|
271
|
-
type MapResultStdio<StdioOptionsArrayType, OptionsType extends CommonOptions> = { -readonly [FdNumber in keyof StdioOptionsArrayType]: ResultStdioNotAll<FdNumber extends string ? FdNumber : string, OptionsType> };
|
|
272
|
-
//#endregion
|
|
273
|
-
//#region ../../node_modules/execa/types/return/result-ipc.d.ts
|
|
274
|
-
// `result.ipcOutput`
|
|
275
|
-
// This is empty unless the `ipc` option is `true`.
|
|
276
|
-
// Also, this is empty if the `buffer` option is `false`.
|
|
277
|
-
type ResultIpcOutput<IsSync, OptionsType extends CommonOptions> = IsSync extends true ? [] : ResultIpcAsync<FdSpecificOption<OptionsType['buffer'], 'ipc'>, HasIpc<StricterOptions<OptionsType, Options>>, OptionsType['serialization']>;
|
|
278
|
-
type ResultIpcAsync<BufferOption extends boolean | undefined, IpcEnabled extends boolean, SerializationOption extends CommonOptions['serialization']> = BufferOption extends false ? [] : IpcEnabled extends true ? Array<Message<SerializationOption>> : [];
|
|
279
|
-
//#endregion
|
|
280
|
-
//#region ../../node_modules/execa/types/return/result.d.ts
|
|
281
|
-
declare abstract class CommonResult<IsSync extends boolean, OptionsType extends CommonOptions> {
|
|
282
|
-
/**
|
|
283
|
-
The output of the subprocess on [`stdout`](https://en.wikipedia.org/wiki/Standard_streams#Standard_output_(stdout)).
|
|
284
|
-
This is `undefined` if the `stdout` option is set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
285
|
-
This is an array if the `lines` option is `true`, or if the `stdout` option is a transform in object mode.
|
|
286
|
-
*/
|
|
287
|
-
stdout: ResultStdioNotAll<'1', OptionsType>;
|
|
288
|
-
/**
|
|
289
|
-
The output of the subprocess on [`stderr`](https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)).
|
|
290
|
-
This is `undefined` if the `stderr` option is set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
291
|
-
This is an array if the `lines` option is `true`, or if the `stderr` option is a transform in object mode.
|
|
292
|
-
*/
|
|
293
|
-
stderr: ResultStdioNotAll<'2', OptionsType>;
|
|
294
|
-
/**
|
|
295
|
-
The output of the subprocess with `result.stdout` and `result.stderr` interleaved.
|
|
296
|
-
This requires the `all` option to be `true`.
|
|
297
|
-
This is `undefined` if both `stdout` and `stderr` options are set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
298
|
-
This is an array if the `lines` option is `true`, or if either the `stdout` or `stderr` option is a transform in object mode.
|
|
299
|
-
*/
|
|
300
|
-
all: ResultAll<OptionsType>;
|
|
301
|
-
/**
|
|
302
|
-
The output of the subprocess on `stdin`, `stdout`, `stderr` and other file descriptors.
|
|
303
|
-
Items are `undefined` when their corresponding `stdio` option is set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
304
|
-
Items are arrays when their corresponding `stdio` option is a transform in object mode.
|
|
305
|
-
*/
|
|
306
|
-
stdio: ResultStdioArray<OptionsType>;
|
|
307
|
-
/**
|
|
308
|
-
All the messages sent by the subprocess to the current process.
|
|
309
|
-
This is empty unless the `ipc` option is `true`. Also, this is empty if the `buffer` option is `false`.
|
|
310
|
-
*/
|
|
311
|
-
ipcOutput: ResultIpcOutput<IsSync, OptionsType>;
|
|
312
|
-
/**
|
|
313
|
-
Results of the other subprocesses that were piped into this subprocess.
|
|
314
|
-
This array is initially empty and is populated each time the `subprocess.pipe()` method resolves.
|
|
315
|
-
*/
|
|
316
|
-
pipedFrom: Unless<IsSync, Result[], []>;
|
|
317
|
-
/**
|
|
318
|
-
The file and arguments that were run.
|
|
319
|
-
*/
|
|
320
|
-
command: string;
|
|
321
|
-
/**
|
|
322
|
-
Same as `command` but escaped.
|
|
323
|
-
*/
|
|
324
|
-
escapedCommand: string;
|
|
325
|
-
/**
|
|
326
|
-
The current directory in which the command was run.
|
|
327
|
-
*/
|
|
328
|
-
cwd: string;
|
|
329
|
-
/**
|
|
330
|
-
Duration of the subprocess, in milliseconds.
|
|
331
|
-
*/
|
|
332
|
-
durationMs: number;
|
|
333
|
-
/**
|
|
334
|
-
Whether the subprocess failed to run.
|
|
335
|
-
When this is `true`, the result is an `ExecaError` instance with additional error-related properties.
|
|
336
|
-
*/
|
|
337
|
-
failed: boolean;
|
|
338
|
-
/**
|
|
339
|
-
Whether the subprocess timed out due to the `timeout` option.
|
|
340
|
-
*/
|
|
341
|
-
timedOut: boolean;
|
|
342
|
-
/**
|
|
343
|
-
Whether the subprocess was canceled using the `cancelSignal` option.
|
|
344
|
-
*/
|
|
345
|
-
isCanceled: boolean;
|
|
346
|
-
/**
|
|
347
|
-
Whether the subprocess was canceled using both the `cancelSignal` and the `gracefulCancel` options.
|
|
348
|
-
*/
|
|
349
|
-
isGracefullyCanceled: boolean;
|
|
350
|
-
/**
|
|
351
|
-
Whether the subprocess failed because its output was larger than the `maxBuffer` option.
|
|
352
|
-
*/
|
|
353
|
-
isMaxBuffer: boolean;
|
|
354
|
-
/**
|
|
355
|
-
Whether the subprocess was terminated by a signal (like `SIGTERM`) sent by either:
|
|
356
|
-
- The current process.
|
|
357
|
-
- Another process. This case is [not supported on Windows](https://nodejs.org/api/process.html#signal-events).
|
|
358
|
-
*/
|
|
359
|
-
isTerminated: boolean;
|
|
360
|
-
/**
|
|
361
|
-
Whether the subprocess was terminated by the `SIGKILL` signal sent by the `forceKillAfterDelay` option.
|
|
362
|
-
*/
|
|
363
|
-
isForcefullyTerminated: boolean;
|
|
364
|
-
/**
|
|
365
|
-
The numeric [exit code](https://en.wikipedia.org/wiki/Exit_status) of the subprocess that was run.
|
|
366
|
-
This is `undefined` when the subprocess could not be spawned or was terminated by a signal.
|
|
367
|
-
*/
|
|
368
|
-
exitCode?: number;
|
|
369
|
-
/**
|
|
370
|
-
The name of the signal (like `SIGTERM`) that terminated the subprocess, sent by either:
|
|
371
|
-
- The current process.
|
|
372
|
-
- Another process. This case is [not supported on Windows](https://nodejs.org/api/process.html#signal-events).
|
|
373
|
-
If a signal terminated the subprocess, this property is defined and included in the error message. Otherwise it is `undefined`.
|
|
374
|
-
*/
|
|
375
|
-
signal?: keyof SignalConstants;
|
|
376
|
-
/**
|
|
377
|
-
A human-friendly description of the signal that was used to terminate the subprocess.
|
|
378
|
-
If a signal terminated the subprocess, this property is defined and included in the error message. Otherwise it is `undefined`. It is also `undefined` when the signal is very uncommon which should seldomly happen.
|
|
379
|
-
*/
|
|
380
|
-
signalDescription?: string;
|
|
381
|
-
/**
|
|
382
|
-
Error message when the subprocess failed to run.
|
|
383
|
-
*/
|
|
384
|
-
message?: string;
|
|
385
|
-
/**
|
|
386
|
-
This is the same as `error.message` except it does not include the subprocess output.
|
|
387
|
-
*/
|
|
388
|
-
shortMessage?: string;
|
|
389
|
-
/**
|
|
390
|
-
Original error message. This is the same as `error.message` excluding the subprocess output and some additional information added by Execa.
|
|
391
|
-
This exists only in specific instances, such as during a timeout.
|
|
392
|
-
*/
|
|
393
|
-
originalMessage?: string;
|
|
394
|
-
/**
|
|
395
|
-
Underlying error, if there is one. For example, this is set by `subprocess.kill(error)`.
|
|
396
|
-
This is usually an `Error` instance.
|
|
397
|
-
*/
|
|
398
|
-
cause?: unknown;
|
|
399
|
-
/**
|
|
400
|
-
Node.js-specific [error code](https://nodejs.org/api/errors.html#errorcode), when available.
|
|
401
|
-
*/
|
|
402
|
-
code?: string; // We cannot `extend Error` because `message` must be optional. So we copy its types here.
|
|
403
|
-
readonly name?: Error['name'];
|
|
404
|
-
stack?: Error['stack'];
|
|
405
|
-
}
|
|
406
|
-
type SuccessResult<IsSync extends boolean = boolean, OptionsType extends CommonOptions = CommonOptions> = InstanceType<typeof CommonResult<IsSync, OptionsType>> & OmitErrorIfReject<OptionsType['reject']>;
|
|
407
|
-
type OmitErrorIfReject<RejectOption extends CommonOptions['reject']> = { [ErrorProperty in ErrorProperties]: RejectOption extends false ? unknown : never };
|
|
408
|
-
/**
|
|
409
|
-
Result of a subprocess successful execution.
|
|
410
|
-
|
|
411
|
-
When the subprocess fails, it is rejected with an `ExecaError` instead.
|
|
412
|
-
*/
|
|
413
|
-
type Result<OptionsType extends Options = Options> = SuccessResult<false, OptionsType>;
|
|
414
|
-
/**
|
|
415
|
-
Result of a subprocess successful execution.
|
|
416
|
-
|
|
417
|
-
When the subprocess fails, it is rejected with an `ExecaError` instead.
|
|
418
|
-
*/
|
|
419
|
-
type SyncResult<OptionsType extends SyncOptions = SyncOptions> = SuccessResult<true, OptionsType>;
|
|
420
|
-
//#endregion
|
|
421
|
-
//#region ../../node_modules/execa/types/verbose.d.ts
|
|
422
|
-
type VerboseOption = FdGenericOption<'none' | 'short' | 'full' | VerboseFunction>;
|
|
423
|
-
type VerboseFunction = (verboseLine: string, verboseObject: MinimalVerboseObject) => string | void;
|
|
424
|
-
type GenericVerboseObject = {
|
|
425
|
-
/**
|
|
426
|
-
Event type. This can be:
|
|
427
|
-
- `'command'`: subprocess start
|
|
428
|
-
- `'output'`: `stdout`/`stderr` output
|
|
429
|
-
- `'ipc'`: IPC output
|
|
430
|
-
- `'error'`: subprocess failure
|
|
431
|
-
- `'duration'`: subprocess success or failure
|
|
432
|
-
*/
|
|
433
|
-
type: 'command' | 'output' | 'ipc' | 'error' | 'duration';
|
|
434
|
-
/**
|
|
435
|
-
Depending on `verboseObject.type`, this is:
|
|
436
|
-
- `'command'`: the `result.escapedCommand`
|
|
437
|
-
- `'output'`: one line from `result.stdout` or `result.stderr`
|
|
438
|
-
- `'ipc'`: one IPC message from `result.ipcOutput`
|
|
439
|
-
- `'error'`: the `error.shortMessage`
|
|
440
|
-
- `'duration'`: the `result.durationMs`
|
|
441
|
-
*/
|
|
442
|
-
message: string;
|
|
443
|
-
/**
|
|
444
|
-
The file and arguments that were run. This is the same as `result.escapedCommand`.
|
|
445
|
-
*/
|
|
446
|
-
escapedCommand: string;
|
|
447
|
-
/**
|
|
448
|
-
Serial number identifying the subprocess within the current process. It is incremented from `'0'`.
|
|
449
|
-
This is helpful when multiple subprocesses are running at the same time.
|
|
450
|
-
This is similar to a [PID](https://en.wikipedia.org/wiki/Process_identifier) except it has no maximum limit, which means it never repeats. Also, it is usually shorter.
|
|
451
|
-
*/
|
|
452
|
-
commandId: string;
|
|
453
|
-
/**
|
|
454
|
-
Event date/time.
|
|
455
|
-
*/
|
|
456
|
-
timestamp: Date;
|
|
457
|
-
/**
|
|
458
|
-
Whether another subprocess is piped into this subprocess. This is `false` when `result.pipedFrom` is empty.
|
|
459
|
-
*/
|
|
460
|
-
piped: boolean;
|
|
461
|
-
};
|
|
462
|
-
type MinimalVerboseObject = GenericVerboseObject & {
|
|
463
|
-
// We cannot use the `CommonOptions` type because it would make this type recursive
|
|
464
|
-
options: object;
|
|
465
|
-
result?: never;
|
|
466
|
-
};
|
|
467
|
-
/**
|
|
468
|
-
Subprocess event object, for logging purpose, using the `verbose` option and `execa()`.
|
|
469
|
-
*/
|
|
470
|
-
//#endregion
|
|
471
|
-
//#region ../../node_modules/execa/types/arguments/options.d.ts
|
|
472
|
-
type CommonOptions<IsSync extends boolean = boolean> = {
|
|
473
|
-
/**
|
|
474
|
-
Prefer locally installed binaries when looking for a binary to execute.
|
|
475
|
-
@default `true` with `$`, `false` otherwise
|
|
476
|
-
*/
|
|
477
|
-
readonly preferLocal?: boolean;
|
|
478
|
-
/**
|
|
479
|
-
Preferred path to find locally installed binaries, when using the `preferLocal` option.
|
|
480
|
-
@default `cwd` option
|
|
481
|
-
*/
|
|
482
|
-
readonly localDir?: string | URL;
|
|
483
|
-
/**
|
|
484
|
-
If `true`, runs with Node.js. The first argument must be a Node.js file.
|
|
485
|
-
The subprocess inherits the current Node.js [CLI flags](https://nodejs.org/api/cli.html#options) and version. This can be overridden using the `nodeOptions` and `nodePath` options.
|
|
486
|
-
@default `true` with `execaNode()`, `false` otherwise
|
|
487
|
-
*/
|
|
488
|
-
readonly node?: boolean;
|
|
489
|
-
/**
|
|
490
|
-
List of [CLI flags](https://nodejs.org/api/cli.html#cli_options) passed to the Node.js executable.
|
|
491
|
-
Requires the `node` option to be `true`.
|
|
492
|
-
@default [`process.execArgv`](https://nodejs.org/api/process.html#process_process_execargv) (current Node.js CLI flags)
|
|
493
|
-
*/
|
|
494
|
-
readonly nodeOptions?: readonly string[];
|
|
495
|
-
/**
|
|
496
|
-
Path to the Node.js executable.
|
|
497
|
-
Requires the `node` option to be `true`.
|
|
498
|
-
@default [`process.execPath`](https://nodejs.org/api/process.html#process_process_execpath) (current Node.js executable)
|
|
499
|
-
*/
|
|
500
|
-
readonly nodePath?: string | URL;
|
|
501
|
-
/**
|
|
502
|
-
If `true`, runs the command inside of a [shell](https://en.wikipedia.org/wiki/Shell_(computing)).
|
|
503
|
-
Uses [`/bin/sh`](https://en.wikipedia.org/wiki/Unix_shell) on UNIX and [`cmd.exe`](https://en.wikipedia.org/wiki/Cmd.exe) on Windows. A different shell can be specified as a string. The shell should understand the `-c` switch on UNIX or `/d /s /c` on Windows.
|
|
504
|
-
We recommend against using this option.
|
|
505
|
-
@default false
|
|
506
|
-
*/
|
|
507
|
-
readonly shell?: boolean | string | URL;
|
|
508
|
-
/**
|
|
509
|
-
Current [working directory](https://en.wikipedia.org/wiki/Working_directory) of the subprocess.
|
|
510
|
-
This is also used to resolve the `nodePath` option when it is a relative path.
|
|
511
|
-
@default process.cwd()
|
|
512
|
-
*/
|
|
513
|
-
readonly cwd?: string | URL;
|
|
514
|
-
/**
|
|
515
|
-
[Environment variables](https://en.wikipedia.org/wiki/Environment_variable).
|
|
516
|
-
Unless the `extendEnv` option is `false`, the subprocess also uses the current process' environment variables ([`process.env`](https://nodejs.org/api/process.html#processenv)).
|
|
517
|
-
@default [process.env](https://nodejs.org/api/process.html#processenv)
|
|
518
|
-
*/
|
|
519
|
-
readonly env?: Readonly<Partial<Record<string, string>>>;
|
|
520
|
-
/**
|
|
521
|
-
If `true`, the subprocess uses both the `env` option and the current process' environment variables ([`process.env`](https://nodejs.org/api/process.html#processenv)).
|
|
522
|
-
If `false`, only the `env` option is used, not `process.env`.
|
|
523
|
-
@default true
|
|
524
|
-
*/
|
|
525
|
-
readonly extendEnv?: boolean;
|
|
526
|
-
/**
|
|
527
|
-
Write some input to the subprocess' [`stdin`](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)).
|
|
528
|
-
See also the `inputFile` and `stdin` options.
|
|
529
|
-
*/
|
|
530
|
-
readonly input?: string | Uint8Array | Readable;
|
|
531
|
-
/**
|
|
532
|
-
Use a file as input to the subprocess' [`stdin`](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)).
|
|
533
|
-
See also the `input` and `stdin` options.
|
|
534
|
-
*/
|
|
535
|
-
readonly inputFile?: string | URL;
|
|
536
|
-
/**
|
|
537
|
-
How to setup the subprocess' [standard input](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)). This can be `'pipe'`, `'overlapped'`, `'ignore`, `'inherit'`, a file descriptor integer, a Node.js `Readable` stream, a web `ReadableStream`, a `{ file: 'path' }` object, a file URL, an `Iterable`, an `AsyncIterable`, an `Uint8Array`, a generator function, a `Duplex` or a web `TransformStream`.
|
|
538
|
-
This can be an array of values such as `['inherit', 'pipe']` or `[fileUrl, 'pipe']`.
|
|
539
|
-
@default `'inherit'` with `$`, `'pipe'` otherwise
|
|
540
|
-
*/
|
|
541
|
-
readonly stdin?: StdinOptionCommon<IsSync>;
|
|
542
|
-
/**
|
|
543
|
-
How to setup the subprocess' [standard output](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)). This can be `'pipe'`, `'overlapped'`, `'ignore`, `'inherit'`, a file descriptor integer, a Node.js `Writable` stream, a web `WritableStream`, a `{ file: 'path' }` object, a file URL, a generator function, a `Duplex` or a web `TransformStream`.
|
|
544
|
-
This can be an array of values such as `['inherit', 'pipe']` or `[fileUrl, 'pipe']`.
|
|
545
|
-
@default 'pipe'
|
|
546
|
-
*/
|
|
547
|
-
readonly stdout?: StdoutStderrOptionCommon<IsSync>;
|
|
548
|
-
/**
|
|
549
|
-
How to setup the subprocess' [standard error](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)). This can be `'pipe'`, `'overlapped'`, `'ignore`, `'inherit'`, a file descriptor integer, a Node.js `Writable` stream, a web `WritableStream`, a `{ file: 'path' }` object, a file URL, a generator function, a `Duplex` or a web `TransformStream`.
|
|
550
|
-
This can be an array of values such as `['inherit', 'pipe']` or `[fileUrl, 'pipe']`.
|
|
551
|
-
@default 'pipe'
|
|
552
|
-
*/
|
|
553
|
-
readonly stderr?: StdoutStderrOptionCommon<IsSync>;
|
|
554
|
-
/**
|
|
555
|
-
Like the `stdin`, `stdout` and `stderr` options but for all [file descriptors](https://en.wikipedia.org/wiki/File_descriptor) at once. For example, `{stdio: ['ignore', 'pipe', 'pipe']}` is the same as `{stdin: 'ignore', stdout: 'pipe', stderr: 'pipe'}`.
|
|
556
|
-
A single string can be used as a shortcut.
|
|
557
|
-
The array can have more than 3 items, to create additional file descriptors beyond `stdin`/`stdout`/`stderr`.
|
|
558
|
-
@default 'pipe'
|
|
559
|
-
*/
|
|
560
|
-
readonly stdio?: StdioOptionsProperty<IsSync>;
|
|
561
|
-
/**
|
|
562
|
-
Add a `subprocess.all` stream and a `result.all` property. They contain the combined/interleaved output of the subprocess' `stdout` and `stderr`.
|
|
563
|
-
@default false
|
|
564
|
-
*/
|
|
565
|
-
readonly all?: boolean;
|
|
566
|
-
/**
|
|
567
|
-
If the subprocess outputs text, specifies its character encoding, either [`'utf8'`](https://en.wikipedia.org/wiki/UTF-8) or [`'utf16le'`](https://en.wikipedia.org/wiki/UTF-16).
|
|
568
|
-
If it outputs binary data instead, this should be either:
|
|
569
|
-
- `'buffer'`: returns the binary output as an `Uint8Array`.
|
|
570
|
-
- [`'hex'`](https://en.wikipedia.org/wiki/Hexadecimal), [`'base64'`](https://en.wikipedia.org/wiki/Base64), [`'base64url'`](https://en.wikipedia.org/wiki/Base64#URL_applications), [`'latin1'`](https://nodejs.org/api/buffer.html#buffers-and-character-encodings) or [`'ascii'`](https://nodejs.org/api/buffer.html#buffers-and-character-encodings): encodes the binary output as a string.
|
|
571
|
-
The output is available with `result.stdout`, `result.stderr` and `result.stdio`.
|
|
572
|
-
@default 'utf8'
|
|
573
|
-
*/
|
|
574
|
-
readonly encoding?: EncodingOption;
|
|
575
|
-
/**
|
|
576
|
-
Set `result.stdout`, `result.stderr`, `result.all` and `result.stdio` as arrays of strings, splitting the subprocess' output into lines.
|
|
577
|
-
This cannot be used if the `encoding` option is binary.
|
|
578
|
-
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
579
|
-
@default false
|
|
580
|
-
*/
|
|
581
|
-
readonly lines?: FdGenericOption<boolean>;
|
|
582
|
-
/**
|
|
583
|
-
Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from the output.
|
|
584
|
-
If the `lines` option is true, this applies to each output line instead.
|
|
585
|
-
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
586
|
-
@default true
|
|
587
|
-
*/
|
|
588
|
-
readonly stripFinalNewline?: FdGenericOption<boolean>;
|
|
589
|
-
/**
|
|
590
|
-
Largest amount of data allowed on `stdout`, `stderr` and `stdio`.
|
|
591
|
-
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
592
|
-
When reached, `error.isMaxBuffer` becomes `true`.
|
|
593
|
-
@default 100_000_000
|
|
594
|
-
*/
|
|
595
|
-
readonly maxBuffer?: FdGenericOption<number>;
|
|
596
|
-
/**
|
|
597
|
-
When `buffer` is `false`, the `result.stdout`, `result.stderr`, `result.all` and `result.stdio` properties are not set.
|
|
598
|
-
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
599
|
-
@default true
|
|
600
|
-
*/
|
|
601
|
-
readonly buffer?: FdGenericOption<boolean>;
|
|
602
|
-
/**
|
|
603
|
-
Enables exchanging messages with the subprocess using `subprocess.sendMessage(message)`, `subprocess.getOneMessage()` and `subprocess.getEachMessage()`.
|
|
604
|
-
The subprocess must be a Node.js file.
|
|
605
|
-
@default `true` if the `node`, `ipcInput` or `gracefulCancel` option is set, `false` otherwise
|
|
606
|
-
*/
|
|
607
|
-
readonly ipc?: Unless<IsSync, boolean>;
|
|
608
|
-
/**
|
|
609
|
-
Specify the kind of serialization used for sending messages between subprocesses when using the `ipc` option.
|
|
610
|
-
@default 'advanced'
|
|
611
|
-
*/
|
|
612
|
-
readonly serialization?: Unless<IsSync, 'json' | 'advanced'>;
|
|
613
|
-
/**
|
|
614
|
-
Sends an IPC message when the subprocess starts.
|
|
615
|
-
The subprocess must be a Node.js file. The value's type depends on the `serialization` option.
|
|
616
|
-
*/
|
|
617
|
-
readonly ipcInput?: Unless<IsSync, Message>;
|
|
618
|
-
/**
|
|
619
|
-
If `verbose` is `'short'`, prints the command on [`stderr`](https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)): its file, arguments, duration and (if it failed) error message.
|
|
620
|
-
If `verbose` is `'full'` or a function, the command's [`stdout`](https://en.wikipedia.org/wiki/Standard_streams#Standard_output_(stdout)), `stderr` and IPC messages are also printed.
|
|
621
|
-
A function can be passed to customize logging.
|
|
622
|
-
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
623
|
-
@default 'none'
|
|
624
|
-
*/
|
|
625
|
-
readonly verbose?: VerboseOption;
|
|
626
|
-
/**
|
|
627
|
-
Setting this to `false` resolves the result's promise with the error instead of rejecting it.
|
|
628
|
-
@default true
|
|
629
|
-
*/
|
|
630
|
-
readonly reject?: boolean;
|
|
631
|
-
/**
|
|
632
|
-
If `timeout` is greater than `0`, the subprocess will be terminated if it runs for longer than that amount of milliseconds.
|
|
633
|
-
On timeout, `error.timedOut` becomes `true`.
|
|
634
|
-
@default 0
|
|
635
|
-
*/
|
|
636
|
-
readonly timeout?: number;
|
|
637
|
-
/**
|
|
638
|
-
When the `cancelSignal` is [aborted](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort), terminate the subprocess using a `SIGTERM` signal.
|
|
639
|
-
When aborted, `error.isCanceled` becomes `true`.
|
|
640
|
-
@example
|
|
641
|
-
```
|
|
642
|
-
import {execaNode} from 'execa';
|
|
643
|
-
const controller = new AbortController();
|
|
644
|
-
const cancelSignal = controller.signal;
|
|
645
|
-
setTimeout(() => {
|
|
646
|
-
controller.abort();
|
|
647
|
-
}, 5000);
|
|
648
|
-
try {
|
|
649
|
-
await execaNode({cancelSignal})`build.js`;
|
|
650
|
-
} catch (error) {
|
|
651
|
-
if (error.isCanceled) {
|
|
652
|
-
console.error('Canceled by cancelSignal.');
|
|
653
|
-
}
|
|
654
|
-
throw error;
|
|
655
|
-
}
|
|
656
|
-
```
|
|
657
|
-
*/
|
|
658
|
-
readonly cancelSignal?: Unless<IsSync, AbortSignal>;
|
|
659
|
-
/**
|
|
660
|
-
When the `cancelSignal` option is [aborted](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort), do not send any `SIGTERM`. Instead, abort the [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) returned by `getCancelSignal()`. The subprocess should use it to terminate gracefully.
|
|
661
|
-
The subprocess must be a Node.js file.
|
|
662
|
-
When aborted, `error.isGracefullyCanceled` becomes `true`.
|
|
663
|
-
@default false
|
|
664
|
-
*/
|
|
665
|
-
readonly gracefulCancel?: Unless<IsSync, boolean>;
|
|
666
|
-
/**
|
|
667
|
-
If the subprocess is terminated but does not exit, forcefully exit it by sending [`SIGKILL`](https://en.wikipedia.org/wiki/Signal_(IPC)#SIGKILL).
|
|
668
|
-
When this happens, `error.isForcefullyTerminated` becomes `true`.
|
|
669
|
-
@default 5000
|
|
670
|
-
*/
|
|
671
|
-
readonly forceKillAfterDelay?: Unless<IsSync, number | boolean>;
|
|
672
|
-
/**
|
|
673
|
-
Default [signal](https://en.wikipedia.org/wiki/Signal_(IPC)) used to terminate the subprocess.
|
|
674
|
-
This can be either a name (like `'SIGTERM'`) or a number (like `9`).
|
|
675
|
-
@default 'SIGTERM'
|
|
676
|
-
*/
|
|
677
|
-
readonly killSignal?: keyof SignalConstants | number;
|
|
678
|
-
/**
|
|
679
|
-
Run the subprocess independently from the current process.
|
|
680
|
-
@default false
|
|
681
|
-
*/
|
|
682
|
-
readonly detached?: Unless<IsSync, boolean>;
|
|
683
|
-
/**
|
|
684
|
-
Kill the subprocess when the current process exits.
|
|
685
|
-
@default true
|
|
686
|
-
*/
|
|
687
|
-
readonly cleanup?: Unless<IsSync, boolean>;
|
|
688
|
-
/**
|
|
689
|
-
Sets the [user identifier](https://en.wikipedia.org/wiki/User_identifier) of the subprocess.
|
|
690
|
-
@default current user identifier
|
|
691
|
-
*/
|
|
692
|
-
readonly uid?: number;
|
|
693
|
-
/**
|
|
694
|
-
Sets the [group identifier](https://en.wikipedia.org/wiki/Group_identifier) of the subprocess.
|
|
695
|
-
@default current group identifier
|
|
696
|
-
*/
|
|
697
|
-
readonly gid?: number;
|
|
698
|
-
/**
|
|
699
|
-
Value of [`argv[0]`](https://nodejs.org/api/process.html#processargv0) sent to the subprocess.
|
|
700
|
-
@default file being executed
|
|
701
|
-
*/
|
|
702
|
-
readonly argv0?: string;
|
|
703
|
-
/**
|
|
704
|
-
On Windows, do not create a new console window.
|
|
705
|
-
@default true
|
|
706
|
-
*/
|
|
707
|
-
readonly windowsHide?: boolean;
|
|
708
|
-
/**
|
|
709
|
-
If `false`, escapes the command arguments on Windows.
|
|
710
|
-
@default `true` if the `shell` option is `true`, `false` otherwise
|
|
711
|
-
*/
|
|
712
|
-
readonly windowsVerbatimArguments?: boolean;
|
|
713
|
-
};
|
|
714
|
-
/**
|
|
715
|
-
Subprocess options.
|
|
716
|
-
|
|
717
|
-
Some options are related to the subprocess output: `verbose`, `lines`, `stripFinalNewline`, `buffer`, `maxBuffer`. By default, those options apply to all file descriptors (`stdout`, `stderr`, etc.). A plain object can be passed instead to apply them to only `stdout`, `stderr`, `all` (both stdout and stderr), `ipc`, `fd3`, etc.
|
|
718
|
-
|
|
719
|
-
@example
|
|
720
|
-
|
|
721
|
-
```
|
|
722
|
-
// Same value for stdout and stderr
|
|
723
|
-
await execa({verbose: 'full'})`npm run build`;
|
|
724
|
-
|
|
725
|
-
// Different values for stdout and stderr
|
|
726
|
-
await execa({verbose: {stdout: 'none', stderr: 'full'}})`npm run build`;
|
|
727
|
-
```
|
|
728
|
-
*/
|
|
729
|
-
type Options = CommonOptions<false>;
|
|
730
|
-
/**
|
|
731
|
-
Subprocess options, with synchronous methods.
|
|
732
|
-
|
|
733
|
-
Some options are related to the subprocess output: `verbose`, `lines`, `stripFinalNewline`, `buffer`, `maxBuffer`. By default, those options apply to all file descriptors (`stdout`, `stderr`, etc.). A plain object can be passed instead to apply them to only `stdout`, `stderr`, `all` (both stdout and stderr), `ipc`, `fd3`, etc.
|
|
734
|
-
|
|
735
|
-
@example
|
|
736
|
-
|
|
737
|
-
```
|
|
738
|
-
// Same value for stdout and stderr
|
|
739
|
-
execaSync({verbose: 'full'})`npm run build`;
|
|
740
|
-
|
|
741
|
-
// Different values for stdout and stderr
|
|
742
|
-
execaSync({verbose: {stdout: 'none', stderr: 'full'}})`npm run build`;
|
|
743
|
-
```
|
|
744
|
-
*/
|
|
745
|
-
type SyncOptions = CommonOptions<true>;
|
|
746
|
-
type StricterOptions<WideOptions extends CommonOptions, StrictOptions extends CommonOptions> = WideOptions extends StrictOptions ? WideOptions : StrictOptions;
|
|
747
|
-
//#endregion
|
|
748
|
-
//#region ../../node_modules/execa/types/methods/template.d.ts
|
|
749
|
-
type TemplateExpressionItem = string | number | Result | SyncResult;
|
|
750
|
-
/**
|
|
751
|
-
Value allowed inside `${...}` when using the template string syntax.
|
|
752
|
-
*/
|
|
753
|
-
type TemplateExpression = TemplateExpressionItem | readonly TemplateExpressionItem[];
|
|
754
|
-
//#endregion
|
|
755
|
-
//#region ../../node_modules/execa/types/pipe.d.ts
|
|
756
|
-
// `subprocess.pipe()` options
|
|
757
|
-
type PipeOptions = {
|
|
758
|
-
/**
|
|
759
|
-
Which stream to pipe from the source subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
760
|
-
`"all"` pipes both `stdout` and `stderr`. This requires the `all` option to be `true`.
|
|
761
|
-
*/
|
|
762
|
-
readonly from?: FromOption;
|
|
763
|
-
/**
|
|
764
|
-
Which stream to pipe to the destination subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
765
|
-
*/
|
|
766
|
-
readonly to?: ToOption;
|
|
767
|
-
/**
|
|
768
|
-
Unpipe the subprocess when the signal aborts.
|
|
769
|
-
*/
|
|
770
|
-
readonly unpipeSignal?: AbortSignal;
|
|
771
|
-
}; // `subprocess.pipe()`
|
|
772
|
-
type PipableSubprocess = {
|
|
773
|
-
/**
|
|
774
|
-
[Pipe](https://nodejs.org/api/stream.html#readablepipedestination-options) the subprocess' `stdout` to a second Execa subprocess' `stdin`. This resolves with that second subprocess' result. If either subprocess is rejected, this is rejected with that subprocess' error instead.
|
|
775
|
-
This follows the same syntax as `execa(file, arguments?, options?)` except both regular options and pipe-specific options can be specified.
|
|
776
|
-
*/
|
|
777
|
-
pipe<OptionsType extends Options & PipeOptions = {}>(file: string | URL, arguments?: readonly string[], options?: OptionsType): Promise<Result<OptionsType>> & PipableSubprocess;
|
|
778
|
-
pipe<OptionsType extends Options & PipeOptions = {}>(file: string | URL, options?: OptionsType): Promise<Result<OptionsType>> & PipableSubprocess;
|
|
779
|
-
/**
|
|
780
|
-
Like `subprocess.pipe(file, arguments?, options?)` but using a `command` template string instead. This follows the same syntax as `$`.
|
|
781
|
-
*/
|
|
782
|
-
pipe(templates: TemplateStringsArray, ...expressions: readonly TemplateExpression[]): Promise<Result<{}>> & PipableSubprocess;
|
|
783
|
-
pipe<OptionsType extends Options & PipeOptions = {}>(options: OptionsType): (templates: TemplateStringsArray, ...expressions: readonly TemplateExpression[]) => Promise<Result<OptionsType>> & PipableSubprocess;
|
|
784
|
-
/**
|
|
785
|
-
Like `subprocess.pipe(file, arguments?, options?)` but using the return value of another `execa()` call instead.
|
|
786
|
-
*/
|
|
787
|
-
pipe<Destination extends ResultPromise>(destination: Destination, options?: PipeOptions): Promise<Awaited<Destination>> & PipableSubprocess;
|
|
788
|
-
};
|
|
789
|
-
//#endregion
|
|
790
|
-
//#region ../../node_modules/execa/types/convert.d.ts
|
|
791
|
-
// `subprocess.readable|duplex|iterable()` options
|
|
792
|
-
type ReadableOptions = {
|
|
793
|
-
/**
|
|
794
|
-
Which stream to read from the subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
795
|
-
`"all"` reads both `stdout` and `stderr`. This requires the `all` option to be `true`.
|
|
796
|
-
@default 'stdout'
|
|
797
|
-
*/
|
|
798
|
-
readonly from?: FromOption;
|
|
799
|
-
/**
|
|
800
|
-
If `false`, iterates over lines. Each line is a string.
|
|
801
|
-
If `true`, iterates over arbitrary chunks of data. Each line is an [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) (with `subprocess.iterable()`) or a [`Buffer`](https://nodejs.org/api/buffer.html#class-buffer) (with `subprocess.readable()`/`subprocess.duplex()`).
|
|
802
|
-
This is always `true` when the `encoding` option is binary.
|
|
803
|
-
@default `false` with `subprocess.iterable()`, `true` otherwise
|
|
804
|
-
*/
|
|
805
|
-
readonly binary?: boolean;
|
|
806
|
-
/**
|
|
807
|
-
If both this option and the `binary` option is `false`, [newlines](https://en.wikipedia.org/wiki/Newline) are stripped from each line.
|
|
808
|
-
@default `false` with `subprocess.iterable()`, `true` otherwise
|
|
809
|
-
*/
|
|
810
|
-
readonly preserveNewlines?: boolean;
|
|
811
|
-
};
|
|
812
|
-
// `subprocess.writable|duplex()` options
|
|
813
|
-
type WritableOptions = {
|
|
814
|
-
/**
|
|
815
|
-
Which stream to write to the subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
816
|
-
@default 'stdin'
|
|
817
|
-
*/
|
|
818
|
-
readonly to?: ToOption;
|
|
819
|
-
};
|
|
820
|
-
// `subprocess.duplex()` options
|
|
821
|
-
type DuplexOptions = ReadableOptions & WritableOptions;
|
|
822
|
-
// `subprocess.iterable()` return value
|
|
823
|
-
type SubprocessAsyncIterable<BinaryOption extends boolean | undefined, EncodingOption extends Options['encoding']> = AsyncIterableIterator<EncodingOption extends BinaryEncodingOption ? Uint8Array : BinaryOption extends true ? Uint8Array : string>;
|
|
824
|
-
//#endregion
|
|
825
|
-
//#region ../../node_modules/execa/types/subprocess/stdout.d.ts
|
|
826
|
-
// `subprocess.stdin|stdout|stderr|stdio`
|
|
827
|
-
type SubprocessStdioStream<FdNumber extends string, OptionsType extends Options> = SubprocessStream<FdNumber, IgnoresSubprocessOutput<FdNumber, OptionsType>, OptionsType>;
|
|
828
|
-
type SubprocessStream<FdNumber extends string, StreamResultIgnored, OptionsType extends Options> = StreamResultIgnored extends true ? null : InputOutputStream<IsInputFd<FdNumber, OptionsType>>;
|
|
829
|
-
type InputOutputStream<IsInput extends boolean> = IsInput extends true ? Writable : Readable;
|
|
830
|
-
//#endregion
|
|
831
|
-
//#region ../../node_modules/execa/types/subprocess/stdio.d.ts
|
|
832
|
-
// `subprocess.stdio`
|
|
833
|
-
type SubprocessStdioArray<OptionsType extends Options> = MapStdioStreams<StdioOptionNormalizedArray<OptionsType>, OptionsType>;
|
|
834
|
-
// We cannot use mapped types because it must be compatible with Node.js `ChildProcess["stdio"]` which uses a tuple with exactly 5 items
|
|
835
|
-
type MapStdioStreams<StdioOptionsArrayType, OptionsType extends Options> = [SubprocessStdioStream<'0', OptionsType>, SubprocessStdioStream<'1', OptionsType>, SubprocessStdioStream<'2', OptionsType>, '3' extends keyof StdioOptionsArrayType ? SubprocessStdioStream<'3', OptionsType> : never, '4' extends keyof StdioOptionsArrayType ? SubprocessStdioStream<'4', OptionsType> : never];
|
|
836
|
-
//#endregion
|
|
837
|
-
//#region ../../node_modules/execa/types/subprocess/all.d.ts
|
|
838
|
-
// `subprocess.all`
|
|
839
|
-
type SubprocessAll<OptionsType extends Options> = AllStream<AllIgnored<OptionsType['all'], OptionsType>>;
|
|
840
|
-
type AllStream<IsIgnored> = IsIgnored extends true ? undefined : Readable;
|
|
841
|
-
type AllIgnored<AllOption, OptionsType extends Options> = AllOption extends true ? IgnoresSubprocessOutput<'1', OptionsType> extends true ? IgnoresSubprocessOutput<'2', OptionsType> : false : true;
|
|
842
|
-
//#endregion
|
|
843
|
-
//#region ../../node_modules/execa/types/subprocess/subprocess.d.ts
|
|
844
|
-
type ExecaCustomSubprocess<OptionsType extends Options> = {
|
|
845
|
-
/**
|
|
846
|
-
Process identifier ([PID](https://en.wikipedia.org/wiki/Process_identifier)).
|
|
847
|
-
This is `undefined` if the subprocess failed to spawn.
|
|
848
|
-
*/
|
|
849
|
-
pid?: number;
|
|
850
|
-
/**
|
|
851
|
-
The subprocess [`stdin`](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)) as a stream.
|
|
852
|
-
This is `null` if the `stdin` option is set to `'inherit'`, `'ignore'`, `Readable` or `integer`.
|
|
853
|
-
*/
|
|
854
|
-
stdin: SubprocessStdioStream<'0', OptionsType>;
|
|
855
|
-
/**
|
|
856
|
-
The subprocess [`stdout`](https://en.wikipedia.org/wiki/Standard_streams#Standard_output_(stdout)) as a stream.
|
|
857
|
-
This is `null` if the `stdout` option is set to `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
858
|
-
*/
|
|
859
|
-
stdout: SubprocessStdioStream<'1', OptionsType>;
|
|
860
|
-
/**
|
|
861
|
-
The subprocess [`stderr`](https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)) as a stream.
|
|
862
|
-
This is `null` if the `stderr` option is set to `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
863
|
-
*/
|
|
864
|
-
stderr: SubprocessStdioStream<'2', OptionsType>;
|
|
865
|
-
/**
|
|
866
|
-
Stream combining/interleaving `subprocess.stdout` and `subprocess.stderr`.
|
|
867
|
-
This requires the `all` option to be `true`.
|
|
868
|
-
This is `undefined` if `stdout` and `stderr` options are set to `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
869
|
-
*/
|
|
870
|
-
all: SubprocessAll<OptionsType>;
|
|
871
|
-
/**
|
|
872
|
-
The subprocess `stdin`, `stdout`, `stderr` and other files descriptors as an array of streams.
|
|
873
|
-
Each array item is `null` if the corresponding `stdin`, `stdout`, `stderr` or `stdio` option is set to `'inherit'`, `'ignore'`, `Stream` or `integer`, or if the `buffer` option is `false`.
|
|
874
|
-
*/
|
|
875
|
-
stdio: SubprocessStdioArray<OptionsType>;
|
|
876
|
-
/**
|
|
877
|
-
Sends a [signal](https://nodejs.org/api/os.html#signal-constants) to the subprocess. The default signal is the `killSignal` option. `killSignal` defaults to `SIGTERM`, which terminates the subprocess.
|
|
878
|
-
This returns `false` when the signal could not be sent, for example when the subprocess has already exited.
|
|
879
|
-
When an error is passed as argument, it is set to the subprocess' `error.cause`. The subprocess is then terminated with the default signal. This does not emit the [`error` event](https://nodejs.org/api/child_process.html#event-error).
|
|
880
|
-
[More info.](https://nodejs.org/api/child_process.html#subprocesskillsignal)
|
|
881
|
-
*/
|
|
882
|
-
kill(signal?: keyof SignalConstants | number, error?: Error): boolean;
|
|
883
|
-
kill(error?: Error): boolean;
|
|
884
|
-
/**
|
|
885
|
-
Subprocesses are [async iterables](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator). They iterate over each output line.
|
|
886
|
-
*/
|
|
887
|
-
[Symbol.asyncIterator](): SubprocessAsyncIterable<undefined, OptionsType['encoding']>;
|
|
888
|
-
/**
|
|
889
|
-
Same as `subprocess[Symbol.asyncIterator]` except options can be provided.
|
|
890
|
-
*/
|
|
891
|
-
iterable<IterableOptions extends ReadableOptions = {}>(readableOptions?: IterableOptions): SubprocessAsyncIterable<IterableOptions['binary'], OptionsType['encoding']>;
|
|
892
|
-
/**
|
|
893
|
-
Converts the subprocess to a readable stream.
|
|
894
|
-
*/
|
|
895
|
-
readable(readableOptions?: ReadableOptions): Readable;
|
|
896
|
-
/**
|
|
897
|
-
Converts the subprocess to a writable stream.
|
|
898
|
-
*/
|
|
899
|
-
writable(writableOptions?: WritableOptions): Writable;
|
|
900
|
-
/**
|
|
901
|
-
Converts the subprocess to a duplex stream.
|
|
902
|
-
*/
|
|
903
|
-
duplex(duplexOptions?: DuplexOptions): Duplex;
|
|
904
|
-
} & IpcMethods<HasIpc<OptionsType>, OptionsType['serialization']> & PipableSubprocess;
|
|
905
|
-
/**
|
|
906
|
-
[`child_process` instance](https://nodejs.org/api/child_process.html#child_process_class_childprocess) with additional methods and properties.
|
|
907
|
-
*/
|
|
908
|
-
type Subprocess<OptionsType extends Options = Options> = Omit<ChildProcess, keyof ExecaCustomSubprocess<OptionsType>> & ExecaCustomSubprocess<OptionsType>;
|
|
909
|
-
/**
|
|
910
|
-
The return value of all asynchronous methods is both:
|
|
911
|
-
- the subprocess.
|
|
912
|
-
- a `Promise` either resolving with its successful `result`, or rejecting with its `error`.
|
|
913
|
-
*/
|
|
914
|
-
type ResultPromise<OptionsType extends Options = Options> = Subprocess<OptionsType> & Promise<Result<OptionsType>>;
|
|
915
|
-
//#endregion
|
|
916
|
-
export { Options as n, ResultPromise as t };
|