powerlines 0.27.0 → 0.29.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.
- package/dist/{api-CHbGX3BG.d.ts → api-DE9Ixr0u.d.cts} +2 -2
- package/dist/{api-DGMQopJ5.d.cts → api-S471id5Y.d.ts} +2 -2
- package/dist/api.cjs +3 -3
- package/dist/api.d.cts +6 -2
- package/dist/api.d.ts +6 -2
- package/dist/api.js +2 -2
- package/dist/astro.cjs +5 -5
- package/dist/astro.d.cts +5 -1
- package/dist/astro.d.ts +5 -1
- package/dist/astro.js +4 -4
- package/dist/{chunk-RCYXXBJ3.cjs → chunk-246ZHDQL.cjs} +667 -231
- package/dist/{chunk-FZ6J2GMT.js → chunk-575Z57QD.js} +2 -2
- package/dist/{chunk-CF7B5HOG.cjs → chunk-57GCROWS.cjs} +4 -4
- package/dist/{chunk-KW66GUWJ.cjs → chunk-AGFJZWS3.cjs} +4 -4
- package/dist/{chunk-BH4JSKPK.js → chunk-FCZMWEL7.js} +3 -3
- package/dist/chunk-LRZLY3R7.cjs +12 -0
- package/dist/{chunk-PYID3NKT.js → chunk-M7SQJLGB.js} +6 -5
- package/dist/{chunk-HG7JY6AQ.cjs → chunk-N6UOEGTC.cjs} +7 -6
- package/dist/{chunk-ISPXQBOL.js → chunk-O5PLPU55.js} +3 -3
- package/dist/{chunk-2DWFEC7G.js → chunk-Q4ZLKJS2.js} +668 -232
- package/dist/{chunk-ON3LABX3.cjs → chunk-SALASTMK.cjs} +2 -2
- package/dist/{chunk-CSJMUAPJ.js → chunk-TARQ5ZEQ.js} +3 -3
- package/dist/chunk-X56DYZYO.js +9 -0
- package/dist/chunk-YEBH46ZU.cjs +12 -0
- package/dist/{chunk-YULFP33E.cjs → chunk-YFKHICPO.cjs} +2 -2
- package/dist/{chunk-P647W2BA.js → chunk-ZFMDBIE2.js} +2 -2
- package/dist/{context-BjOICcQB.d.cts → context-BwnxICfB.d.cts} +100 -25
- package/dist/{context-BqTYt9FC.d.ts → context-p7xgIm3D.d.ts} +100 -25
- package/dist/esbuild.cjs +7 -7
- package/dist/esbuild.d.cts +5 -1
- package/dist/esbuild.d.ts +5 -1
- package/dist/esbuild.js +4 -4
- package/dist/farm.cjs +4 -4
- package/dist/farm.d.cts +5 -1
- package/dist/farm.d.ts +5 -1
- package/dist/farm.js +3 -3
- package/dist/index.cjs +21 -21
- package/dist/index.d.cts +17 -5
- package/dist/index.d.ts +17 -5
- package/dist/index.js +10 -7
- package/dist/lib/{api-Cxmk8sFc.d.ts → api-1xCU-974.d.ts} +2 -2
- package/dist/lib/{api-_rRpguWX.d.cts → api-BvkhY-MU.d.cts} +2 -2
- package/dist/lib/build/esbuild.cjs +9 -6
- package/dist/lib/build/esbuild.cjs.map +1 -0
- package/dist/lib/build/esbuild.d.cts +6 -2
- package/dist/lib/build/esbuild.d.ts +6 -2
- package/dist/lib/build/esbuild.js +6 -3
- package/dist/lib/build/esbuild.js.map +1 -0
- package/dist/lib/build/index.cjs +47 -27
- package/dist/lib/build/index.cjs.map +1 -0
- package/dist/lib/build/index.d.cts +9 -4
- package/dist/lib/build/index.d.ts +9 -4
- package/dist/lib/build/index.js +15 -11
- package/dist/lib/build/index.js.map +1 -0
- package/dist/lib/build/rolldown.cjs +6 -4
- package/dist/lib/build/rolldown.cjs.map +1 -0
- package/dist/lib/build/rolldown.d.cts +6 -2
- package/dist/lib/build/rolldown.d.ts +6 -2
- package/dist/lib/build/rolldown.js +5 -3
- package/dist/lib/build/rolldown.js.map +1 -0
- package/dist/lib/build/rollup.cjs +6 -4
- package/dist/lib/build/rollup.cjs.map +1 -0
- package/dist/lib/build/rollup.d.cts +6 -2
- package/dist/lib/build/rollup.d.ts +6 -2
- package/dist/lib/build/rollup.js +4 -2
- package/dist/lib/build/rollup.js.map +1 -0
- package/dist/lib/build/rspack.cjs +5 -3
- package/dist/lib/build/rspack.cjs.map +1 -0
- package/dist/lib/build/rspack.d.cts +6 -2
- package/dist/lib/build/rspack.d.ts +6 -2
- package/dist/lib/build/rspack.js +4 -2
- package/dist/lib/build/rspack.js.map +1 -0
- package/dist/lib/build/tsdown.cjs +25 -0
- package/dist/lib/build/tsdown.cjs.map +1 -0
- package/dist/lib/build/tsdown.d.cts +60 -0
- package/dist/lib/build/tsdown.d.ts +60 -0
- package/dist/lib/build/tsdown.js +4 -0
- package/dist/lib/build/tsdown.js.map +1 -0
- package/dist/lib/build/tsup.cjs +10 -7
- package/dist/lib/build/tsup.cjs.map +1 -0
- package/dist/lib/build/tsup.d.cts +6 -2
- package/dist/lib/build/tsup.d.ts +6 -2
- package/dist/lib/build/tsup.js +7 -4
- package/dist/lib/build/tsup.js.map +1 -0
- package/dist/lib/build/unbuild.cjs +9 -7
- package/dist/lib/build/unbuild.cjs.map +1 -0
- package/dist/lib/build/unbuild.d.cts +8 -4
- package/dist/lib/build/unbuild.d.ts +8 -4
- package/dist/lib/build/unbuild.js +6 -4
- package/dist/lib/build/unbuild.js.map +1 -0
- package/dist/lib/build/vite.cjs +9 -6
- package/dist/lib/build/vite.cjs.map +1 -0
- package/dist/lib/build/vite.d.cts +6 -2
- package/dist/lib/build/vite.d.ts +6 -2
- package/dist/lib/build/vite.js +7 -4
- package/dist/lib/build/vite.js.map +1 -0
- package/dist/lib/build/webpack.cjs +5 -3
- package/dist/lib/build/webpack.cjs.map +1 -0
- package/dist/lib/build/webpack.d.cts +6 -2
- package/dist/lib/build/webpack.d.ts +6 -2
- package/dist/lib/build/webpack.js +4 -2
- package/dist/lib/build/webpack.js.map +1 -0
- package/dist/lib/{chunk-UNUP4XMO.cjs → chunk-23BFL3LB.cjs} +6 -4
- package/dist/lib/chunk-23BFL3LB.cjs.map +1 -0
- package/dist/lib/{chunk-26M3IUSK.js → chunk-26JHNKA7.js} +3 -1
- package/dist/lib/chunk-26JHNKA7.js.map +1 -0
- package/dist/lib/{chunk-4V5OI73E.cjs → chunk-2HAOX4Q2.cjs} +205 -124
- package/dist/lib/chunk-2HAOX4Q2.cjs.map +1 -0
- package/dist/lib/{chunk-2RHE4SGK.js → chunk-2IXO6SBG.js} +3 -1
- package/dist/lib/chunk-2IXO6SBG.js.map +1 -0
- package/dist/lib/{chunk-K3NBD5LL.cjs → chunk-2JR645O3.cjs} +5 -3
- package/dist/lib/chunk-2JR645O3.cjs.map +1 -0
- package/dist/lib/{chunk-Z5JKSYRP.cjs → chunk-2OMOKN7Y.cjs} +236 -73
- package/dist/lib/chunk-2OMOKN7Y.cjs.map +1 -0
- package/dist/lib/{chunk-ENRLU4UR.js → chunk-35EO5Y7R.js} +3 -1
- package/dist/lib/chunk-35EO5Y7R.js.map +1 -0
- package/dist/lib/{chunk-NDYKRNPQ.js → chunk-367E23MI.js} +3 -1
- package/dist/lib/chunk-367E23MI.js.map +1 -0
- package/dist/lib/{chunk-I76RI47U.cjs → chunk-3DKBH67A.cjs} +19 -15
- package/dist/lib/chunk-3DKBH67A.cjs.map +1 -0
- package/dist/lib/chunk-3GMJQ5G3.cjs +4 -0
- package/dist/lib/chunk-3GMJQ5G3.cjs.map +1 -0
- package/dist/lib/{chunk-OEF6EHQV.js → chunk-45D4XIOK.js} +3 -1
- package/dist/lib/chunk-45D4XIOK.js.map +1 -0
- package/dist/lib/chunk-4BPHC6QQ.js +3 -0
- package/dist/lib/chunk-4BPHC6QQ.js.map +1 -0
- package/dist/lib/{chunk-Q4D2L67H.cjs → chunk-4NBEK7BB.cjs} +8 -7
- package/dist/lib/chunk-4NBEK7BB.cjs.map +1 -0
- package/dist/lib/{chunk-AJDYMANR.cjs → chunk-4UN7FLKQ.cjs} +6 -4
- package/dist/lib/chunk-4UN7FLKQ.cjs.map +1 -0
- package/dist/lib/{chunk-QR2N3DPP.js → chunk-5QJRVWP3.js} +4 -2
- package/dist/lib/chunk-5QJRVWP3.js.map +1 -0
- package/dist/lib/{chunk-ONETLSPO.js → chunk-5QMQ5G73.js} +4 -2
- package/dist/lib/chunk-5QMQ5G73.js.map +1 -0
- package/dist/lib/{chunk-H7A5QVLY.cjs → chunk-62ZJYXT3.cjs} +7 -5
- package/dist/lib/chunk-62ZJYXT3.cjs.map +1 -0
- package/dist/lib/{chunk-JA4HSQRN.cjs → chunk-632PWWU7.cjs} +5 -3
- package/dist/lib/chunk-632PWWU7.cjs.map +1 -0
- package/dist/lib/{chunk-PIFNMTKN.cjs → chunk-63DAS6TJ.cjs} +6 -4
- package/dist/lib/chunk-63DAS6TJ.cjs.map +1 -0
- package/dist/lib/{chunk-OL35IC6Z.js → chunk-6OGQTUXF.js} +3 -1
- package/dist/lib/chunk-6OGQTUXF.js.map +1 -0
- package/dist/lib/{chunk-HE6HOGLS.js → chunk-7CDTHZ3R.js} +200 -37
- package/dist/lib/chunk-7CDTHZ3R.js.map +1 -0
- package/dist/lib/{chunk-QDRITYHV.cjs → chunk-7OO4SKFN.cjs} +6 -4
- package/dist/lib/chunk-7OO4SKFN.cjs.map +1 -0
- package/dist/lib/{chunk-SHUYVCID.js → chunk-7QVYU63E.js} +2 -0
- package/dist/lib/chunk-7QVYU63E.js.map +1 -0
- package/dist/lib/{chunk-GANVMM73.js → chunk-7R23HVGQ.js} +3 -1
- package/dist/lib/chunk-7R23HVGQ.js.map +1 -0
- package/dist/lib/chunk-A4RSMLXW.cjs +13 -0
- package/dist/lib/chunk-A4RSMLXW.cjs.map +1 -0
- package/dist/lib/{chunk-6OYSDQXE.cjs → chunk-AQNUFK3L.cjs} +47 -9
- package/dist/lib/chunk-AQNUFK3L.cjs.map +1 -0
- package/dist/lib/{chunk-HRRI4KOM.cjs → chunk-BJGMF356.cjs} +8 -6
- package/dist/lib/chunk-BJGMF356.cjs.map +1 -0
- package/dist/lib/{chunk-GLFOKUTH.cjs → chunk-BQA4H72F.cjs} +12 -10
- package/dist/lib/chunk-BQA4H72F.cjs.map +1 -0
- package/dist/lib/chunk-CLOW34EQ.js +3 -0
- package/dist/lib/chunk-CLOW34EQ.js.map +1 -0
- package/dist/lib/{chunk-VHCBD2IS.js → chunk-CTMPQSK7.js} +54 -1
- package/dist/lib/chunk-CTMPQSK7.js.map +1 -0
- package/dist/lib/{chunk-M263EZ4F.js → chunk-D55ZAZCX.js} +3 -1
- package/dist/lib/chunk-D55ZAZCX.js.map +1 -0
- package/dist/lib/{chunk-7GCAHOJK.js → chunk-D5IEZABI.js} +4 -2
- package/dist/lib/chunk-D5IEZABI.js.map +1 -0
- package/dist/lib/chunk-DQJCGJ5P.js +3 -0
- package/dist/lib/chunk-DQJCGJ5P.js.map +1 -0
- package/dist/lib/{chunk-KFDNKOXM.js → chunk-EBBGE5FN.js} +20 -2
- package/dist/lib/chunk-EBBGE5FN.js.map +1 -0
- package/dist/lib/chunk-FFATMOAQ.js +14 -0
- package/dist/lib/chunk-FFATMOAQ.js.map +1 -0
- package/dist/lib/chunk-FJMP4CXA.js +3 -0
- package/dist/lib/chunk-FJMP4CXA.js.map +1 -0
- package/dist/lib/{chunk-4PTER5EV.js → chunk-FKPVNUDU.js} +3 -1
- package/dist/lib/chunk-FKPVNUDU.js.map +1 -0
- package/dist/lib/{chunk-ZGMEHSNN.js → chunk-FPFPUYXS.js} +3 -1
- package/dist/lib/chunk-FPFPUYXS.js.map +1 -0
- package/dist/lib/{chunk-N5XEKCVW.cjs → chunk-FQZQA4EJ.cjs} +13 -20
- package/dist/lib/chunk-FQZQA4EJ.cjs.map +1 -0
- package/dist/lib/{chunk-3T56KQ7U.cjs → chunk-GDODHF3Y.cjs} +6 -4
- package/dist/lib/chunk-GDODHF3Y.cjs.map +1 -0
- package/dist/lib/chunk-GTNYRHTO.js +3 -0
- package/dist/lib/chunk-GTNYRHTO.js.map +1 -0
- package/dist/lib/chunk-HCJQJ2NV.cjs +203 -0
- package/dist/lib/chunk-HCJQJ2NV.cjs.map +1 -0
- package/dist/lib/{chunk-32Q2PG5D.js → chunk-HDUSUF6L.js} +3 -1
- package/dist/lib/chunk-HDUSUF6L.js.map +1 -0
- package/dist/lib/{chunk-TANQDHYY.js → chunk-HQ6TGY34.js} +3 -1
- package/dist/lib/chunk-HQ6TGY34.js.map +1 -0
- package/dist/lib/{chunk-JG4IL7XL.cjs → chunk-HYQXPNVP.cjs} +4 -2
- package/dist/lib/chunk-HYQXPNVP.cjs.map +1 -0
- package/dist/lib/{chunk-KJDASLW3.js → chunk-JEB4OVD5.js} +70 -14
- package/dist/lib/chunk-JEB4OVD5.js.map +1 -0
- package/dist/lib/{chunk-GK75G3OD.cjs → chunk-JSU4O5TH.cjs} +7 -5
- package/dist/lib/chunk-JSU4O5TH.cjs.map +1 -0
- package/dist/lib/chunk-K3FDM5F3.cjs +4 -0
- package/dist/lib/chunk-K3FDM5F3.cjs.map +1 -0
- package/dist/lib/{chunk-ZDBHX3VV.cjs → chunk-K7EXK3ZX.cjs} +142 -85
- package/dist/lib/chunk-K7EXK3ZX.cjs.map +1 -0
- package/dist/lib/{chunk-N5YLKWC2.js → chunk-KLU5DWCZ.js} +5 -11
- package/dist/lib/chunk-KLU5DWCZ.js.map +1 -0
- package/dist/lib/{chunk-R3E56AJ4.cjs → chunk-LIZRGQES.cjs} +7 -5
- package/dist/lib/chunk-LIZRGQES.cjs.map +1 -0
- package/dist/lib/{chunk-UJYCAW2D.cjs → chunk-LQMUXGB5.cjs} +37 -10
- package/dist/lib/chunk-LQMUXGB5.cjs.map +1 -0
- package/dist/lib/{chunk-CU23POMD.js → chunk-LSSLZECF.js} +4 -2
- package/dist/lib/chunk-LSSLZECF.js.map +1 -0
- package/dist/lib/{chunk-4NHFXDTQ.cjs → chunk-MFC7UJHT.cjs} +5 -3
- package/dist/lib/chunk-MFC7UJHT.cjs.map +1 -0
- package/dist/lib/{chunk-6RLV3FIS.js → chunk-MJ6WN3XA.js} +4 -2
- package/dist/lib/chunk-MJ6WN3XA.js.map +1 -0
- package/dist/lib/{chunk-HM52GHX3.js → chunk-MZ3GS5X3.js} +31 -4
- package/dist/lib/chunk-MZ3GS5X3.js.map +1 -0
- package/dist/lib/{chunk-T6KEXFRH.cjs → chunk-NPSC73QO.cjs} +10 -8
- package/dist/lib/chunk-NPSC73QO.cjs.map +1 -0
- package/dist/lib/{chunk-NST5TNW6.js → chunk-OC2AD37X.js} +3 -1
- package/dist/lib/chunk-OC2AD37X.js.map +1 -0
- package/dist/lib/{chunk-WUE7NTBW.cjs → chunk-OGEFARN2.cjs} +12 -10
- package/dist/lib/chunk-OGEFARN2.cjs.map +1 -0
- package/dist/lib/{chunk-3OCI4TH7.cjs → chunk-OXOTWH3L.cjs} +6 -4
- package/dist/lib/chunk-OXOTWH3L.cjs.map +1 -0
- package/dist/{plugin-utils/chunk-USNT2KNT.cjs → lib/chunk-PK6SKIKE.cjs} +2 -0
- package/dist/lib/chunk-PK6SKIKE.cjs.map +1 -0
- package/dist/lib/{chunk-XBM7FHNK.js → chunk-Q25ZPXA7.js} +3 -1
- package/dist/lib/chunk-Q25ZPXA7.js.map +1 -0
- package/dist/lib/{chunk-XUYQYUWZ.cjs → chunk-QBE4SZN6.cjs} +6 -4
- package/dist/lib/chunk-QBE4SZN6.cjs.map +1 -0
- package/dist/lib/{chunk-GA3RXX4R.cjs → chunk-QHTL2U3L.cjs} +10 -8
- package/dist/lib/chunk-QHTL2U3L.cjs.map +1 -0
- package/dist/lib/chunk-QMKA57N4.cjs +4 -0
- package/dist/lib/chunk-QMKA57N4.cjs.map +1 -0
- package/dist/lib/{chunk-MRAGQ33T.js → chunk-RHADQ6HA.js} +4 -2
- package/dist/lib/chunk-RHADQ6HA.js.map +1 -0
- package/dist/lib/{chunk-4SULM54S.js → chunk-RNSQODBR.js} +190 -109
- package/dist/lib/chunk-RNSQODBR.js.map +1 -0
- package/dist/lib/{chunk-2NZADVP5.cjs → chunk-RQICHHZM.cjs} +4 -2
- package/dist/lib/chunk-RQICHHZM.cjs.map +1 -0
- package/dist/lib/{chunk-YGSXCTX2.js → chunk-RTFLBGJI.js} +4 -3
- package/dist/lib/chunk-RTFLBGJI.js.map +1 -0
- package/dist/lib/chunk-SIYSGNDD.js +100 -0
- package/dist/lib/chunk-SIYSGNDD.js.map +1 -0
- package/dist/lib/chunk-SP5FOE5B.cjs +109 -0
- package/dist/lib/chunk-SP5FOE5B.cjs.map +1 -0
- package/dist/lib/{chunk-67DW5UDQ.js → chunk-SUABYS33.js} +5 -3
- package/dist/lib/chunk-SUABYS33.js.map +1 -0
- package/dist/lib/{chunk-CP77I6WM.js → chunk-US6LDIXH.js} +100 -43
- package/dist/lib/chunk-US6LDIXH.js.map +1 -0
- package/dist/lib/chunk-UYDY7RRQ.cjs +4 -0
- package/dist/lib/chunk-UYDY7RRQ.cjs.map +1 -0
- package/dist/lib/{chunk-AHK7GRPM.js → chunk-W2KADD56.js} +4 -2
- package/dist/lib/chunk-W2KADD56.js.map +1 -0
- package/dist/lib/chunk-XBOHJTOI.cjs +4 -0
- package/dist/lib/chunk-XBOHJTOI.cjs.map +1 -0
- package/dist/lib/{chunk-XLHFUATD.cjs → chunk-Y5KONJVR.cjs} +55 -2
- package/dist/lib/chunk-Y5KONJVR.cjs.map +1 -0
- package/dist/lib/chunk-YF57WETC.cjs +16 -0
- package/dist/lib/chunk-YF57WETC.cjs.map +1 -0
- package/dist/lib/{chunk-AFLI3CLM.js → chunk-YFB6OGXJ.js} +4 -2
- package/dist/lib/chunk-YFB6OGXJ.js.map +1 -0
- package/dist/lib/{chunk-L56XA427.js → chunk-YJEZASNU.js} +41 -3
- package/dist/lib/chunk-YJEZASNU.js.map +1 -0
- package/dist/lib/{chunk-A2NW7WAN.js → chunk-YMEXAI6M.js} +3 -1
- package/dist/lib/chunk-YMEXAI6M.js.map +1 -0
- package/dist/lib/{chunk-YYEAV24J.cjs → chunk-YYG2XJQN.cjs} +30 -11
- package/dist/lib/chunk-YYG2XJQN.cjs.map +1 -0
- package/dist/lib/{chunk-NDC5BKCD.cjs → chunk-YZ2NKI4K.cjs} +4 -2
- package/dist/lib/chunk-YZ2NKI4K.cjs.map +1 -0
- package/dist/lib/{chunk-YYN6TKSY.cjs → chunk-ZFOPHCGK.cjs} +4 -2
- package/dist/lib/chunk-ZFOPHCGK.cjs.map +1 -0
- package/dist/lib/{chunk-HL4KTZDB.cjs → chunk-ZGTXKPKZ.cjs} +5 -3
- package/dist/lib/chunk-ZGTXKPKZ.cjs.map +1 -0
- package/dist/lib/{chunk-4W6WV35V.js → chunk-ZLWW2MXD.js} +21 -15
- package/dist/lib/chunk-ZLWW2MXD.js.map +1 -0
- package/dist/lib/{chunk-YB54H3SQ.js → chunk-ZVZFMMNL.js} +10 -6
- package/dist/lib/chunk-ZVZFMMNL.js.map +1 -0
- package/dist/lib/{chunk-D6MI2V6R.cjs → chunk-ZWLSNYIN.cjs} +23 -17
- package/dist/lib/chunk-ZWLSNYIN.cjs.map +1 -0
- package/dist/lib/{config-DMXVnKGF.d.cts → config-CFT-8XXu.d.cts} +104 -21
- package/dist/lib/{config-B2q8Me0M.d.ts → config-CwebNcAh.d.ts} +104 -21
- package/dist/lib/config-file.cjs +6 -4
- package/dist/lib/config-file.cjs.map +1 -0
- package/dist/lib/config-file.d.cts +6 -2
- package/dist/lib/config-file.d.ts +6 -2
- package/dist/lib/config-file.js +4 -2
- package/dist/lib/config-file.js.map +1 -0
- package/dist/lib/contexts/api-context.cjs +20 -17
- package/dist/lib/contexts/api-context.cjs.map +1 -0
- package/dist/lib/contexts/api-context.d.cts +29 -6
- package/dist/lib/contexts/api-context.d.ts +29 -6
- package/dist/lib/contexts/api-context.js +19 -16
- package/dist/lib/contexts/api-context.js.map +1 -0
- package/dist/lib/contexts/context.cjs +17 -14
- package/dist/lib/contexts/context.cjs.map +1 -0
- package/dist/lib/contexts/context.d.cts +78 -11
- package/dist/lib/contexts/context.d.ts +78 -11
- package/dist/lib/contexts/context.js +16 -13
- package/dist/lib/contexts/context.js.map +1 -0
- package/dist/lib/contexts/environment-context.cjs +19 -16
- package/dist/lib/contexts/environment-context.cjs.map +1 -0
- package/dist/lib/contexts/environment-context.d.cts +10 -5
- package/dist/lib/contexts/environment-context.d.ts +10 -5
- package/dist/lib/contexts/environment-context.js +18 -15
- package/dist/lib/contexts/environment-context.js.map +1 -0
- package/dist/lib/contexts/index.cjs +24 -21
- package/dist/lib/contexts/index.cjs.map +1 -0
- package/dist/lib/contexts/index.d.cts +9 -4
- package/dist/lib/contexts/index.d.ts +9 -4
- package/dist/lib/contexts/index.js +20 -17
- package/dist/lib/contexts/index.js.map +1 -0
- package/dist/lib/contexts/plugin-context.cjs +5 -3
- package/dist/lib/contexts/plugin-context.cjs.map +1 -0
- package/dist/lib/contexts/plugin-context.d.cts +8 -4
- package/dist/lib/contexts/plugin-context.d.ts +8 -4
- package/dist/lib/contexts/plugin-context.js +4 -2
- package/dist/lib/contexts/plugin-context.js.map +1 -0
- package/dist/lib/entry.cjs +13 -10
- package/dist/lib/entry.cjs.map +1 -0
- package/dist/lib/entry.d.cts +6 -2
- package/dist/lib/entry.d.ts +6 -2
- package/dist/lib/entry.js +5 -2
- package/dist/lib/entry.js.map +1 -0
- package/dist/lib/fs/helpers.cjs +18 -12
- package/dist/lib/fs/helpers.cjs.map +1 -0
- package/dist/lib/fs/helpers.d.cts +10 -1
- package/dist/lib/fs/helpers.d.ts +10 -1
- package/dist/lib/fs/helpers.js +4 -2
- package/dist/lib/fs/helpers.js.map +1 -0
- package/dist/lib/fs/index.cjs +12 -9
- package/dist/lib/fs/index.cjs.map +1 -0
- package/dist/lib/fs/index.d.cts +7 -3
- package/dist/lib/fs/index.d.ts +7 -3
- package/dist/lib/fs/index.js +11 -8
- package/dist/lib/fs/index.js.map +1 -0
- package/dist/lib/fs/storage/base.cjs +5 -3
- package/dist/lib/fs/storage/base.cjs.map +1 -0
- package/dist/lib/fs/storage/base.d.cts +42 -1
- package/dist/lib/fs/storage/base.d.ts +42 -1
- package/dist/lib/fs/storage/base.js +4 -2
- package/dist/lib/fs/storage/base.js.map +1 -0
- package/dist/lib/fs/storage/file-system.cjs +7 -5
- package/dist/lib/fs/storage/file-system.cjs.map +1 -0
- package/dist/lib/fs/storage/file-system.d.cts +34 -2
- package/dist/lib/fs/storage/file-system.d.ts +34 -2
- package/dist/lib/fs/storage/file-system.js +6 -4
- package/dist/lib/fs/storage/file-system.js.map +1 -0
- package/dist/lib/fs/storage/index.cjs +10 -8
- package/dist/lib/fs/storage/index.cjs.map +1 -0
- package/dist/lib/fs/storage/index.d.cts +4 -2
- package/dist/lib/fs/storage/index.d.ts +4 -2
- package/dist/lib/fs/storage/index.js +7 -5
- package/dist/lib/fs/storage/index.js.map +1 -0
- package/dist/lib/fs/storage/virtual.cjs +6 -4
- package/dist/lib/fs/storage/virtual.cjs.map +1 -0
- package/dist/lib/fs/storage/virtual.d.cts +2 -1
- package/dist/lib/fs/storage/virtual.d.ts +2 -1
- package/dist/lib/fs/storage/virtual.js +5 -3
- package/dist/lib/fs/storage/virtual.js.map +1 -0
- package/dist/lib/fs/vfs.cjs +11 -8
- package/dist/lib/fs/vfs.cjs.map +1 -0
- package/dist/lib/fs/vfs.d.cts +51 -7
- package/dist/lib/fs/vfs.d.ts +51 -7
- package/dist/lib/fs/vfs.js +10 -7
- package/dist/lib/fs/vfs.js.map +1 -0
- package/dist/lib/{fs-Dg-aTfiN.d.cts → fs-abWbkR69.d.cts} +85 -4
- package/dist/lib/{fs-Dg-aTfiN.d.ts → fs-abWbkR69.d.ts} +85 -4
- package/dist/lib/index.cjs +98 -95
- package/dist/lib/index.cjs.map +1 -0
- package/dist/lib/index.d.cts +10 -6
- package/dist/lib/index.d.ts +10 -6
- package/dist/lib/index.js +38 -35
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/{internal-CfIJWv8T.d.cts → internal-BavTJeC5.d.cts} +2 -2
- package/dist/lib/{internal-CGIi3MOX.d.ts → internal-DxQ28691.d.ts} +2 -2
- package/dist/lib/logger.cjs +6 -4
- package/dist/lib/logger.cjs.map +1 -0
- package/dist/lib/logger.d.cts +6 -2
- package/dist/lib/logger.d.ts +6 -2
- package/dist/lib/logger.js +4 -2
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/typescript/import-transformer.cjs +5 -3
- package/dist/lib/typescript/import-transformer.cjs.map +1 -0
- package/dist/lib/typescript/import-transformer.d.cts +6 -2
- package/dist/lib/typescript/import-transformer.d.ts +6 -2
- package/dist/lib/typescript/import-transformer.js +4 -2
- package/dist/lib/typescript/import-transformer.js.map +1 -0
- package/dist/lib/typescript/index.cjs +21 -19
- package/dist/lib/typescript/index.cjs.map +1 -0
- package/dist/lib/typescript/index.d.cts +6 -2
- package/dist/lib/typescript/index.d.ts +6 -2
- package/dist/lib/typescript/index.js +8 -6
- package/dist/lib/typescript/index.js.map +1 -0
- package/dist/lib/typescript/isolated-decl.cjs +5 -3
- package/dist/lib/typescript/isolated-decl.cjs.map +1 -0
- package/dist/lib/typescript/isolated-decl.js +4 -2
- package/dist/lib/typescript/isolated-decl.js.map +1 -0
- package/dist/lib/typescript/ts-morph.cjs +6 -4
- package/dist/lib/typescript/ts-morph.cjs.map +1 -0
- package/dist/lib/typescript/ts-morph.d.cts +8 -4
- package/dist/lib/typescript/ts-morph.d.ts +8 -4
- package/dist/lib/typescript/ts-morph.js +4 -2
- package/dist/lib/typescript/ts-morph.js.map +1 -0
- package/dist/lib/typescript/tsconfig.cjs +11 -9
- package/dist/lib/typescript/tsconfig.cjs.map +1 -0
- package/dist/lib/typescript/tsconfig.js +4 -2
- package/dist/lib/typescript/tsconfig.js.map +1 -0
- package/dist/lib/unplugin/factory.cjs +23 -21
- package/dist/lib/unplugin/factory.cjs.map +1 -0
- package/dist/lib/unplugin/factory.d.cts +8 -4
- package/dist/lib/unplugin/factory.d.ts +8 -4
- package/dist/lib/unplugin/factory.js +22 -20
- package/dist/lib/unplugin/factory.js.map +1 -0
- package/dist/lib/unplugin/helpers.cjs +5 -3
- package/dist/lib/unplugin/helpers.cjs.map +1 -0
- package/dist/lib/unplugin/helpers.d.cts +6 -2
- package/dist/lib/unplugin/helpers.d.ts +6 -2
- package/dist/lib/unplugin/helpers.js +4 -2
- package/dist/lib/unplugin/helpers.js.map +1 -0
- package/dist/lib/unplugin/index.cjs +28 -26
- package/dist/lib/unplugin/index.cjs.map +1 -0
- package/dist/lib/unplugin/index.d.cts +9 -5
- package/dist/lib/unplugin/index.d.ts +9 -5
- package/dist/lib/unplugin/index.js +25 -23
- package/dist/lib/unplugin/index.js.map +1 -0
- package/dist/lib/unplugin/plugin.cjs +8 -6
- package/dist/lib/unplugin/plugin.cjs.map +1 -0
- package/dist/lib/unplugin/plugin.d.cts +10 -19
- package/dist/lib/unplugin/plugin.d.ts +10 -19
- package/dist/lib/unplugin/plugin.js +7 -5
- package/dist/lib/unplugin/plugin.js.map +1 -0
- package/dist/lib/{unplugin-Da9GAj4a.d.ts → unplugin-CpYxomBB.d.ts} +2 -2
- package/dist/lib/{unplugin-B_F1TZK4.d.cts → unplugin-DVAN82cd.d.cts} +2 -2
- package/dist/lib/utilities/bundle.cjs +8 -5
- package/dist/lib/utilities/bundle.cjs.map +1 -0
- package/dist/lib/utilities/bundle.d.cts +6 -2
- package/dist/lib/utilities/bundle.d.ts +6 -2
- package/dist/lib/utilities/bundle.js +7 -4
- package/dist/lib/utilities/bundle.js.map +1 -0
- package/dist/lib/utilities/cache.cjs +7 -5
- package/dist/lib/utilities/cache.cjs.map +1 -0
- package/dist/lib/utilities/cache.d.cts +6 -2
- package/dist/lib/utilities/cache.d.ts +6 -2
- package/dist/lib/utilities/cache.js +5 -3
- package/dist/lib/utilities/cache.js.map +1 -0
- package/dist/lib/utilities/file-header.cjs +6 -4
- package/dist/lib/utilities/file-header.cjs.map +1 -0
- package/dist/lib/utilities/file-header.d.cts +6 -2
- package/dist/lib/utilities/file-header.d.ts +6 -2
- package/dist/lib/utilities/file-header.js +4 -2
- package/dist/lib/utilities/file-header.js.map +1 -0
- package/dist/lib/utilities/index.cjs +45 -42
- package/dist/lib/utilities/index.cjs.map +1 -0
- package/dist/lib/utilities/index.d.cts +6 -2
- package/dist/lib/utilities/index.d.ts +6 -2
- package/dist/lib/utilities/index.js +17 -14
- package/dist/lib/utilities/index.js.map +1 -0
- package/dist/lib/utilities/meta.cjs +10 -8
- package/dist/lib/utilities/meta.cjs.map +1 -0
- package/dist/lib/utilities/meta.d.cts +6 -2
- package/dist/lib/utilities/meta.d.ts +6 -2
- package/dist/lib/utilities/meta.js +4 -2
- package/dist/lib/utilities/meta.js.map +1 -0
- package/dist/lib/utilities/resolve.cjs +9 -6
- package/dist/lib/utilities/resolve.cjs.map +1 -0
- package/dist/lib/utilities/resolve.d.cts +6 -2
- package/dist/lib/utilities/resolve.d.ts +6 -2
- package/dist/lib/utilities/resolve.js +8 -5
- package/dist/lib/utilities/resolve.js.map +1 -0
- package/dist/lib/utilities/source-file.cjs +7 -5
- package/dist/lib/utilities/source-file.cjs.map +1 -0
- package/dist/lib/utilities/source-file.d.cts +6 -2
- package/dist/lib/utilities/source-file.d.ts +6 -2
- package/dist/lib/utilities/source-file.js +4 -2
- package/dist/lib/utilities/source-file.js.map +1 -0
- package/dist/lib/utilities/source-map.cjs +5 -3
- package/dist/lib/utilities/source-map.cjs.map +1 -0
- package/dist/lib/utilities/source-map.d.cts +6 -2
- package/dist/lib/utilities/source-map.d.ts +6 -2
- package/dist/lib/utilities/source-map.js +4 -2
- package/dist/lib/utilities/source-map.js.map +1 -0
- package/dist/lib/utilities/worker.cjs +7 -5
- package/dist/lib/utilities/worker.cjs.map +1 -0
- package/dist/lib/utilities/worker.d.cts +6 -2
- package/dist/lib/utilities/worker.d.ts +6 -2
- package/dist/lib/utilities/worker.js +5 -3
- package/dist/lib/utilities/worker.js.map +1 -0
- package/dist/lib/utilities/write-file.cjs +5 -3
- package/dist/lib/utilities/write-file.cjs.map +1 -0
- package/dist/lib/utilities/write-file.d.cts +6 -2
- package/dist/lib/utilities/write-file.d.ts +6 -2
- package/dist/lib/utilities/write-file.js +4 -2
- package/dist/lib/utilities/write-file.js.map +1 -0
- package/dist/next.cjs +5 -5
- package/dist/next.js +4 -4
- package/dist/nuxt.cjs +7 -7
- package/dist/nuxt.js +5 -5
- package/dist/plugin-utils/{chunk-GV7O3E7P.js → chunk-36OM2X4L.js} +4 -2
- package/dist/plugin-utils/chunk-36OM2X4L.js.map +1 -0
- package/dist/plugin-utils/{chunk-SHUYVCID.js → chunk-7QVYU63E.js} +2 -0
- package/dist/plugin-utils/chunk-7QVYU63E.js.map +1 -0
- package/dist/plugin-utils/{chunk-XIXI67PY.js → chunk-7YN6UEMJ.js} +4 -2
- package/dist/plugin-utils/chunk-7YN6UEMJ.js.map +1 -0
- package/dist/plugin-utils/{chunk-DZZPNO5H.cjs → chunk-B2V5OVYF.cjs} +6 -4
- package/dist/plugin-utils/chunk-B2V5OVYF.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-NFXNZFMN.cjs → chunk-DUIPLC7F.cjs} +5 -3
- package/dist/plugin-utils/chunk-DUIPLC7F.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-SEH3RVMF.js → chunk-G32M72GJ.js} +3 -1
- package/dist/plugin-utils/chunk-G32M72GJ.js.map +1 -0
- package/dist/plugin-utils/{chunk-5MO4BCOW.cjs → chunk-GH7PPING.cjs} +4 -2
- package/dist/plugin-utils/chunk-GH7PPING.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-CYVV2MB7.js → chunk-H7GJUBNY.js} +3 -1
- package/dist/plugin-utils/chunk-H7GJUBNY.js.map +1 -0
- package/dist/plugin-utils/{chunk-ECFS7DPV.cjs → chunk-ID47RJFS.cjs} +9 -7
- package/dist/plugin-utils/chunk-ID47RJFS.cjs.map +1 -0
- package/dist/plugin-utils/chunk-NRJ5QYX2.js +14 -0
- package/dist/plugin-utils/chunk-NRJ5QYX2.js.map +1 -0
- package/dist/{lib/chunk-USNT2KNT.cjs → plugin-utils/chunk-PK6SKIKE.cjs} +2 -0
- package/dist/plugin-utils/chunk-PK6SKIKE.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-QKMG6ZAU.js → chunk-QQ63YK2G.js} +4 -2
- package/dist/plugin-utils/chunk-QQ63YK2G.js.map +1 -0
- package/dist/plugin-utils/chunk-RBMEE2JC.cjs +16 -0
- package/dist/plugin-utils/chunk-RBMEE2JC.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-UNAGYQRB.cjs → chunk-UXLKUCEY.cjs} +9 -7
- package/dist/plugin-utils/chunk-UXLKUCEY.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-F65J5WOX.cjs → chunk-VJGI676W.cjs} +16 -14
- package/dist/plugin-utils/chunk-VJGI676W.cjs.map +1 -0
- package/dist/plugin-utils/{chunk-L277XSSN.js → chunk-X4BI25Z5.js} +3 -1
- package/dist/plugin-utils/chunk-X4BI25Z5.js.map +1 -0
- package/dist/plugin-utils/{context-y3G_SQPM.d.cts → context-BwokDIBz.d.cts} +167 -10
- package/dist/plugin-utils/{context-y3G_SQPM.d.ts → context-BwokDIBz.d.ts} +167 -10
- package/dist/plugin-utils/context-helpers.cjs +6 -4
- package/dist/plugin-utils/context-helpers.cjs.map +1 -0
- package/dist/plugin-utils/context-helpers.d.cts +4 -1
- package/dist/plugin-utils/context-helpers.d.ts +4 -1
- package/dist/plugin-utils/context-helpers.js +4 -2
- package/dist/plugin-utils/context-helpers.js.map +1 -0
- package/dist/plugin-utils/enforce.cjs +8 -6
- package/dist/plugin-utils/enforce.cjs.map +1 -0
- package/dist/plugin-utils/enforce.d.cts +4 -1
- package/dist/plugin-utils/enforce.d.ts +4 -1
- package/dist/plugin-utils/enforce.js +7 -5
- package/dist/plugin-utils/enforce.js.map +1 -0
- package/dist/plugin-utils/extend.cjs +7 -5
- package/dist/plugin-utils/extend.cjs.map +1 -0
- package/dist/plugin-utils/extend.d.cts +4 -1
- package/dist/plugin-utils/extend.d.ts +4 -1
- package/dist/plugin-utils/extend.js +6 -4
- package/dist/plugin-utils/extend.js.map +1 -0
- package/dist/plugin-utils/get-config-path.cjs +5 -3
- package/dist/plugin-utils/get-config-path.cjs.map +1 -0
- package/dist/plugin-utils/get-config-path.d.cts +4 -1
- package/dist/plugin-utils/get-config-path.d.ts +4 -1
- package/dist/plugin-utils/get-config-path.js +4 -2
- package/dist/plugin-utils/get-config-path.js.map +1 -0
- package/dist/plugin-utils/helpers.cjs +17 -15
- package/dist/plugin-utils/helpers.cjs.map +1 -0
- package/dist/plugin-utils/helpers.d.cts +14 -11
- package/dist/plugin-utils/helpers.d.ts +14 -11
- package/dist/plugin-utils/helpers.js +4 -2
- package/dist/plugin-utils/helpers.js.map +1 -0
- package/dist/plugin-utils/index.cjs +30 -28
- package/dist/plugin-utils/index.cjs.map +1 -0
- package/dist/plugin-utils/index.d.cts +4 -1
- package/dist/plugin-utils/index.d.ts +4 -1
- package/dist/plugin-utils/index.js +10 -8
- package/dist/plugin-utils/index.js.map +1 -0
- package/dist/plugin-utils/merge.cjs +6 -4
- package/dist/plugin-utils/merge.cjs.map +1 -0
- package/dist/plugin-utils/merge.d.cts +4 -1
- package/dist/plugin-utils/merge.d.ts +4 -1
- package/dist/plugin-utils/merge.js +5 -3
- package/dist/plugin-utils/merge.js.map +1 -0
- package/dist/plugin-utils/paths.cjs +5 -3
- package/dist/plugin-utils/paths.cjs.map +1 -0
- package/dist/plugin-utils/paths.d.cts +5 -1
- package/dist/plugin-utils/paths.d.ts +5 -1
- package/dist/plugin-utils/paths.js +4 -2
- package/dist/plugin-utils/paths.js.map +1 -0
- package/dist/rolldown.cjs +17 -9
- package/dist/rolldown.d.cts +5 -1
- package/dist/rolldown.d.ts +5 -1
- package/dist/rolldown.js +4 -9
- package/dist/rollup.cjs +4 -4
- package/dist/rollup.d.cts +5 -1
- package/dist/rollup.d.ts +5 -1
- package/dist/rollup.js +3 -3
- package/dist/rspack.cjs +4 -4
- package/dist/rspack.d.cts +5 -1
- package/dist/rspack.d.ts +5 -1
- package/dist/rspack.js +3 -3
- package/dist/tsdown.cjs +114 -0
- package/dist/tsdown.d.cts +28 -0
- package/dist/tsdown.d.ts +28 -0
- package/dist/tsdown.js +108 -0
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types/api.d.cts +6 -2
- package/dist/types/api.d.ts +6 -2
- package/dist/types/babel.d.cts +5 -1
- package/dist/types/babel.d.ts +5 -1
- package/dist/types/build.d.cts +11 -10
- package/dist/types/build.d.ts +11 -10
- package/dist/types/commands.d.cts +5 -1
- package/dist/types/commands.d.ts +5 -1
- package/dist/types/config.d.cts +5 -1
- package/dist/types/config.d.ts +5 -1
- package/dist/types/context.cjs +2 -2
- package/dist/types/context.d.cts +5 -1
- package/dist/types/context.d.ts +5 -1
- package/dist/types/context.js +1 -1
- package/dist/types/fs.cjs +4 -4
- package/dist/types/fs.d.cts +85 -4
- package/dist/types/fs.d.ts +85 -4
- package/dist/types/fs.js +1 -1
- package/dist/types/hooks.d.cts +5 -1
- package/dist/types/hooks.d.ts +5 -1
- package/dist/types/index.cjs +6 -6
- package/dist/types/index.d.cts +7 -3
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.js +2 -2
- package/dist/types/internal.d.cts +6 -2
- package/dist/types/internal.d.ts +6 -2
- package/dist/types/plugin.d.cts +5 -1
- package/dist/types/plugin.d.ts +5 -1
- package/dist/types/resolved.d.cts +5 -1
- package/dist/types/resolved.d.ts +5 -1
- package/dist/types/unplugin.d.cts +6 -2
- package/dist/types/unplugin.d.ts +6 -2
- package/dist/unloader.cjs +4 -4
- package/dist/unloader.d.cts +5 -1
- package/dist/unloader.d.ts +5 -1
- package/dist/unloader.js +3 -3
- package/dist/unplugin.cjs +10 -8
- package/dist/unplugin.d.cts +8 -17
- package/dist/unplugin.d.ts +8 -17
- package/dist/unplugin.js +8 -6
- package/dist/vite.cjs +7 -7
- package/dist/vite.d.cts +5 -1
- package/dist/vite.d.ts +5 -1
- package/dist/vite.js +4 -4
- package/dist/webpack.cjs +7 -7
- package/dist/webpack.d.cts +5 -1
- package/dist/webpack.d.ts +5 -1
- package/dist/webpack.js +4 -4
- package/package.json +72 -48
- package/dist/chunk-GBIIAZH5.cjs +0 -13
- package/dist/chunk-QXHINXRM.js +0 -11
- package/dist/chunk-UWLQNNZE.cjs +0 -12
- package/dist/config.cjs +0 -13
- package/dist/config.d.cts +0 -45
- package/dist/config.d.ts +0 -45
- package/dist/config.js +0 -4
- package/dist/lib/chunk-35FGUJFD.cjs +0 -2
- package/dist/lib/chunk-DX2VAXZB.cjs +0 -11
- package/dist/lib/chunk-FFT4PWRM.js +0 -1
- package/dist/lib/chunk-GKCWJVF7.cjs +0 -147
- package/dist/lib/chunk-H5JWMXTZ.js +0 -1
- package/dist/lib/chunk-I2DQRMX3.js +0 -1
- package/dist/lib/chunk-K2SFTPN3.cjs +0 -2
- package/dist/lib/chunk-MVIKYHBX.cjs +0 -2
- package/dist/lib/chunk-NQAHFTUW.js +0 -1
- package/dist/lib/chunk-NYNHNTHT.js +0 -1
- package/dist/lib/chunk-VVSEE3JE.cjs +0 -2
- package/dist/lib/chunk-YK4PYVLM.cjs +0 -2
- package/dist/plugin-utils/chunk-K2GWRZPV.js +0 -12
- package/dist/plugin-utils/chunk-VWFJOPKC.cjs +0 -14
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
2
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Jiti } from 'jiti';
|
|
5
6
|
import { SourceMap } from 'magic-string';
|
|
7
|
+
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
6
8
|
import { Range } from 'semver';
|
|
7
9
|
import { Project } from 'ts-morph';
|
|
10
|
+
import { RequestInfo, Response } from 'undici';
|
|
8
11
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext, UnpluginMessage } from 'unplugin';
|
|
9
12
|
import { Format } from '@storm-software/build-tools/types';
|
|
10
13
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -18,7 +21,7 @@ import ts from 'typescript';
|
|
|
18
21
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
22
|
|
|
20
23
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
21
|
-
type BuildVariant = UnpluginBuildVariant | "tsup" | "unbuild";
|
|
24
|
+
type BuildVariant = UnpluginBuildVariant | "tsup" | "tsdown" | "unbuild";
|
|
22
25
|
interface BuildConfig {
|
|
23
26
|
/**
|
|
24
27
|
* The platform to build the project for
|
|
@@ -220,6 +223,18 @@ interface StorageAdapter {
|
|
|
220
223
|
* @param key - The key whose value should be removed.
|
|
221
224
|
*/
|
|
222
225
|
removeSync: (key: string) => void;
|
|
226
|
+
/**
|
|
227
|
+
* Creates a directory at the specified path.
|
|
228
|
+
*
|
|
229
|
+
* @param dirPath - The path of the directory to create.
|
|
230
|
+
*/
|
|
231
|
+
mkdir: (dirPath: string) => Promise<void>;
|
|
232
|
+
/**
|
|
233
|
+
* Synchronously creates a directory at the specified path.
|
|
234
|
+
*
|
|
235
|
+
* @param dirPath - The path of the directory to create.
|
|
236
|
+
*/
|
|
237
|
+
mkdirSync: (dirPath: string) => void;
|
|
223
238
|
/**
|
|
224
239
|
* Remove all entries from the storage that match the provided base path.
|
|
225
240
|
*
|
|
@@ -246,6 +261,34 @@ interface StorageAdapter {
|
|
|
246
261
|
* @returns The list of keys.
|
|
247
262
|
*/
|
|
248
263
|
listSync: (base?: string) => string[];
|
|
264
|
+
/**
|
|
265
|
+
* Checks if the given key is a directory.
|
|
266
|
+
*
|
|
267
|
+
* @param key - The key to check.
|
|
268
|
+
* @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
|
|
269
|
+
*/
|
|
270
|
+
isDirectory: (key: string) => Promise<boolean>;
|
|
271
|
+
/**
|
|
272
|
+
* Synchronously checks if the given key is a directory.
|
|
273
|
+
*
|
|
274
|
+
* @param key - The key to check.
|
|
275
|
+
* @returns `true` if the key is a directory, otherwise `false`.
|
|
276
|
+
*/
|
|
277
|
+
isDirectorySync: (key: string) => boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Checks if the given key is a file.
|
|
280
|
+
*
|
|
281
|
+
* @param key - The key to check.
|
|
282
|
+
* @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
|
|
283
|
+
*/
|
|
284
|
+
isFile: (key: string) => Promise<boolean>;
|
|
285
|
+
/**
|
|
286
|
+
* Synchronously checks if the given key is a file.
|
|
287
|
+
*
|
|
288
|
+
* @param key - The key to check.
|
|
289
|
+
* @returns `true` if the key is a file, otherwise `false`.
|
|
290
|
+
*/
|
|
291
|
+
isFileSync: (key: string) => boolean;
|
|
249
292
|
/**
|
|
250
293
|
* Releases any resources held by the storage adapter.
|
|
251
294
|
*/
|
|
@@ -381,6 +424,34 @@ interface VirtualFileSystemInterface {
|
|
|
381
424
|
* @returns `true` if the file is virtual, otherwise `false`.
|
|
382
425
|
*/
|
|
383
426
|
isVirtual: (path: string) => boolean;
|
|
427
|
+
/**
|
|
428
|
+
* Checks if the given key is a directory.
|
|
429
|
+
*
|
|
430
|
+
* @param key - The key to check.
|
|
431
|
+
* @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
|
|
432
|
+
*/
|
|
433
|
+
isDirectory: (key: string) => Promise<boolean>;
|
|
434
|
+
/**
|
|
435
|
+
* Synchronously checks if the given key is a directory.
|
|
436
|
+
*
|
|
437
|
+
* @param key - The key to check.
|
|
438
|
+
* @returns `true` if the key is a directory, otherwise `false`.
|
|
439
|
+
*/
|
|
440
|
+
isDirectorySync: (key: string) => boolean;
|
|
441
|
+
/**
|
|
442
|
+
* Checks if the given key is a file.
|
|
443
|
+
*
|
|
444
|
+
* @param key - The key to check.
|
|
445
|
+
* @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
|
|
446
|
+
*/
|
|
447
|
+
isFile: (key: string) => Promise<boolean>;
|
|
448
|
+
/**
|
|
449
|
+
* Synchronously checks if the given key is a file.
|
|
450
|
+
*
|
|
451
|
+
* @param key - The key to check.
|
|
452
|
+
* @returns `true` if the key is a file, otherwise `false`.
|
|
453
|
+
*/
|
|
454
|
+
isFileSync: (key: string) => boolean;
|
|
384
455
|
/**
|
|
385
456
|
* Gets the metadata of a file in the virtual file system (VFS).
|
|
386
457
|
*
|
|
@@ -446,6 +517,18 @@ interface VirtualFileSystemInterface {
|
|
|
446
517
|
* @param options - Options for writing the file.
|
|
447
518
|
*/
|
|
448
519
|
writeSync: (path: string, data: string, options?: WriteOptions) => void;
|
|
520
|
+
/**
|
|
521
|
+
* Creates a directory at the specified path.
|
|
522
|
+
*
|
|
523
|
+
* @param dirPath - The path of the directory to create.
|
|
524
|
+
*/
|
|
525
|
+
mkdir: (dirPath: string) => Promise<void>;
|
|
526
|
+
/**
|
|
527
|
+
* Synchronously creates a directory at the specified path.
|
|
528
|
+
*
|
|
529
|
+
* @param dirPath - The path of the directory to create.
|
|
530
|
+
*/
|
|
531
|
+
mkdirSync: (dirPath: string) => void;
|
|
449
532
|
/**
|
|
450
533
|
* Moves a file from one path to another in the virtual file system (VFS).
|
|
451
534
|
*
|
|
@@ -466,28 +549,28 @@ interface VirtualFileSystemInterface {
|
|
|
466
549
|
* @param srcPath - The source path to copy
|
|
467
550
|
* @param destPath - The destination path to copy to
|
|
468
551
|
*/
|
|
469
|
-
copy: (srcPath: string, destPath: string) => Promise<void>;
|
|
552
|
+
copy: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => Promise<void>;
|
|
470
553
|
/**
|
|
471
554
|
* Synchronously copies a file from one path to another in the virtual file system (VFS).
|
|
472
555
|
*
|
|
473
556
|
* @param srcPath - The source path to copy
|
|
474
557
|
* @param destPath - The destination path to copy to
|
|
475
558
|
*/
|
|
476
|
-
copySync: (srcPath: string, destPath: string) => void;
|
|
559
|
+
copySync: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => void;
|
|
477
560
|
/**
|
|
478
561
|
* Glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
479
562
|
*
|
|
480
563
|
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
481
564
|
* @returns An array of file paths matching the provided pattern(s)
|
|
482
565
|
*/
|
|
483
|
-
glob: (
|
|
566
|
+
glob: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => Promise<string[]>;
|
|
484
567
|
/**
|
|
485
568
|
* Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
486
569
|
*
|
|
487
570
|
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
488
571
|
* @returns An array of file paths matching the provided pattern(s)
|
|
489
572
|
*/
|
|
490
|
-
globSync: (
|
|
573
|
+
globSync: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => string[];
|
|
491
574
|
/**
|
|
492
575
|
* A helper function to resolve modules using the Jiti resolver
|
|
493
576
|
*
|
|
@@ -558,7 +641,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
558
641
|
/**
|
|
559
642
|
* The resolved options for the Powerlines project configuration.
|
|
560
643
|
*/
|
|
561
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
644
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
562
645
|
/**
|
|
563
646
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
564
647
|
*/
|
|
@@ -929,6 +1012,22 @@ type PluginConfig<TContext extends PluginContext = PluginContext> = string | Plu
|
|
|
929
1012
|
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
930
1013
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
931
1014
|
type ProjectType = "application" | "library";
|
|
1015
|
+
interface DeployConfig {
|
|
1016
|
+
/**
|
|
1017
|
+
* The deployment variant being used by the Powerlines engine.
|
|
1018
|
+
*
|
|
1019
|
+
* @example
|
|
1020
|
+
* ```ts
|
|
1021
|
+
* export default defineConfig({
|
|
1022
|
+
* deploy: {
|
|
1023
|
+
* variant: "cloudflare"
|
|
1024
|
+
* }
|
|
1025
|
+
* });
|
|
1026
|
+
*
|
|
1027
|
+
* ```
|
|
1028
|
+
*/
|
|
1029
|
+
variant?: string;
|
|
1030
|
+
}
|
|
932
1031
|
interface OutputConfig {
|
|
933
1032
|
/**
|
|
934
1033
|
* The path to output the final compiled files to
|
|
@@ -1013,6 +1112,13 @@ interface BaseConfig {
|
|
|
1013
1112
|
* Configuration for the output of the build process
|
|
1014
1113
|
*/
|
|
1015
1114
|
output?: OutputConfig;
|
|
1115
|
+
/**
|
|
1116
|
+
* Configuration for cleaning the build artifacts
|
|
1117
|
+
*
|
|
1118
|
+
* @remarks
|
|
1119
|
+
* If set to `false`, the cleaning process will be disabled.
|
|
1120
|
+
*/
|
|
1121
|
+
clean?: Record<string, any> | false;
|
|
1016
1122
|
/**
|
|
1017
1123
|
* Configuration for linting the source code
|
|
1018
1124
|
*
|
|
@@ -1051,7 +1157,7 @@ interface BaseConfig {
|
|
|
1051
1157
|
* @remarks
|
|
1052
1158
|
* If set to `false`, the deployment will be disabled.
|
|
1053
1159
|
*/
|
|
1054
|
-
deploy?:
|
|
1160
|
+
deploy?: DeployConfig | false;
|
|
1055
1161
|
/**
|
|
1056
1162
|
* The path to the tsconfig file to be used by the compiler
|
|
1057
1163
|
*
|
|
@@ -1178,7 +1284,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1178
1284
|
*/
|
|
1179
1285
|
framework?: string;
|
|
1180
1286
|
}
|
|
1181
|
-
|
|
1287
|
+
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
1182
1288
|
/**
|
|
1183
1289
|
* Configuration provided to build processes
|
|
1184
1290
|
*
|
|
@@ -1198,7 +1304,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
1198
1304
|
*/
|
|
1199
1305
|
override?: Partial<TBuildResolvedConfig>;
|
|
1200
1306
|
};
|
|
1201
|
-
}
|
|
1307
|
+
}
|
|
1202
1308
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1203
1309
|
/**
|
|
1204
1310
|
* The configuration provided while executing Powerlines commands.
|
|
@@ -1251,6 +1357,18 @@ interface InitContextOptions {
|
|
|
1251
1357
|
*/
|
|
1252
1358
|
isHighPriority: boolean;
|
|
1253
1359
|
}
|
|
1360
|
+
interface FetchOptions extends FetchRequestOptions {
|
|
1361
|
+
/**
|
|
1362
|
+
* An indicator specifying that the request should bypass any caching
|
|
1363
|
+
*/
|
|
1364
|
+
skipCache?: boolean;
|
|
1365
|
+
}
|
|
1366
|
+
interface ParseOptions extends ParserOptions {
|
|
1367
|
+
/**
|
|
1368
|
+
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1369
|
+
*/
|
|
1370
|
+
allowReturnOutsideFunction?: boolean;
|
|
1371
|
+
}
|
|
1254
1372
|
/**
|
|
1255
1373
|
* The unresolved Powerlines context.
|
|
1256
1374
|
*
|
|
@@ -1267,6 +1385,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1267
1385
|
*/
|
|
1268
1386
|
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
1269
1387
|
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
1388
|
+
sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
|
|
1270
1389
|
output: TResolvedConfig["output"];
|
|
1271
1390
|
};
|
|
1272
1391
|
/**
|
|
@@ -1386,6 +1505,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1386
1505
|
* This instance is created lazily on first access.
|
|
1387
1506
|
*/
|
|
1388
1507
|
program: Project;
|
|
1508
|
+
/**
|
|
1509
|
+
* A function to perform HTTP fetch requests
|
|
1510
|
+
*
|
|
1511
|
+
* @remarks
|
|
1512
|
+
* This function uses a caching layer to avoid duplicate requests during the Powerlines process.
|
|
1513
|
+
*
|
|
1514
|
+
* @example
|
|
1515
|
+
* ```ts
|
|
1516
|
+
* const response = await context.fetch("https://api.example.com/data");
|
|
1517
|
+
* const data = await response.json();
|
|
1518
|
+
* ```
|
|
1519
|
+
*
|
|
1520
|
+
* @see https://github.com/nodejs/undici
|
|
1521
|
+
*
|
|
1522
|
+
* @param input - The URL to fetch.
|
|
1523
|
+
* @param options - The fetch request options.
|
|
1524
|
+
* @returns A promise that resolves to a response returned by the fetch.
|
|
1525
|
+
*/
|
|
1526
|
+
fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1529
|
+
*
|
|
1530
|
+
* @remarks
|
|
1531
|
+
* This function can be used to parse TypeScript code into an AST for further analysis or transformation.
|
|
1532
|
+
*
|
|
1533
|
+
* @example
|
|
1534
|
+
* ```ts
|
|
1535
|
+
* const ast = context.parse("const x: number = 42;");
|
|
1536
|
+
* ```
|
|
1537
|
+
*
|
|
1538
|
+
* @see https://rollupjs.org/plugin-development/#this-parse
|
|
1539
|
+
* @see https://github.com/oxc/oxc
|
|
1540
|
+
*
|
|
1541
|
+
* @param code - The source code to parse.
|
|
1542
|
+
* @param options - The options to pass to the parser.
|
|
1543
|
+
* @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1544
|
+
*/
|
|
1545
|
+
parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
|
|
1389
1546
|
/**
|
|
1390
1547
|
* A helper function to resolve modules using the Jiti resolver
|
|
1391
1548
|
*
|
|
@@ -1485,6 +1642,6 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1485
1642
|
*/
|
|
1486
1643
|
logger: LogFn;
|
|
1487
1644
|
}
|
|
1488
|
-
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =
|
|
1645
|
+
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1489
1646
|
|
|
1490
1647
|
export type { BuildVariant as B, ConfigResult as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, BasePluginHookFunctions as e, PluginHookFunctions as f, PluginHookObject as g, PluginConfigObject as h, PluginConfigTuple as i, PluginConfig as j, PluginHook as k, EnvironmentConfig as l, EnvironmentResolvedConfig as m };
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { EnvPaths } from '@stryke/env/get-env-paths';
|
|
2
|
+
import { FetchRequestOptions } from '@stryke/http/fetch';
|
|
2
3
|
import { MaybePromise, NonUndefined, FunctionLike, DeepPartial as DeepPartial$1 } from '@stryke/types/base';
|
|
3
4
|
import { PackageJson } from '@stryke/types/package-json';
|
|
4
5
|
import { Jiti } from 'jiti';
|
|
5
6
|
import { SourceMap } from 'magic-string';
|
|
7
|
+
import { ParserOptions, ParseResult } from 'oxc-parser';
|
|
6
8
|
import { Range } from 'semver';
|
|
7
9
|
import { Project } from 'ts-morph';
|
|
10
|
+
import { RequestInfo, Response } from 'undici';
|
|
8
11
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginBuildContext, UnpluginMessage } from 'unplugin';
|
|
9
12
|
import { Format } from '@storm-software/build-tools/types';
|
|
10
13
|
import { LogLevelLabel } from '@storm-software/config-tools/types';
|
|
@@ -18,7 +21,7 @@ import ts from 'typescript';
|
|
|
18
21
|
import { ArrayValues } from '@stryke/types/array';
|
|
19
22
|
|
|
20
23
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
21
|
-
type BuildVariant = UnpluginBuildVariant | "tsup" | "unbuild";
|
|
24
|
+
type BuildVariant = UnpluginBuildVariant | "tsup" | "tsdown" | "unbuild";
|
|
22
25
|
interface BuildConfig {
|
|
23
26
|
/**
|
|
24
27
|
* The platform to build the project for
|
|
@@ -220,6 +223,18 @@ interface StorageAdapter {
|
|
|
220
223
|
* @param key - The key whose value should be removed.
|
|
221
224
|
*/
|
|
222
225
|
removeSync: (key: string) => void;
|
|
226
|
+
/**
|
|
227
|
+
* Creates a directory at the specified path.
|
|
228
|
+
*
|
|
229
|
+
* @param dirPath - The path of the directory to create.
|
|
230
|
+
*/
|
|
231
|
+
mkdir: (dirPath: string) => Promise<void>;
|
|
232
|
+
/**
|
|
233
|
+
* Synchronously creates a directory at the specified path.
|
|
234
|
+
*
|
|
235
|
+
* @param dirPath - The path of the directory to create.
|
|
236
|
+
*/
|
|
237
|
+
mkdirSync: (dirPath: string) => void;
|
|
223
238
|
/**
|
|
224
239
|
* Remove all entries from the storage that match the provided base path.
|
|
225
240
|
*
|
|
@@ -246,6 +261,34 @@ interface StorageAdapter {
|
|
|
246
261
|
* @returns The list of keys.
|
|
247
262
|
*/
|
|
248
263
|
listSync: (base?: string) => string[];
|
|
264
|
+
/**
|
|
265
|
+
* Checks if the given key is a directory.
|
|
266
|
+
*
|
|
267
|
+
* @param key - The key to check.
|
|
268
|
+
* @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
|
|
269
|
+
*/
|
|
270
|
+
isDirectory: (key: string) => Promise<boolean>;
|
|
271
|
+
/**
|
|
272
|
+
* Synchronously checks if the given key is a directory.
|
|
273
|
+
*
|
|
274
|
+
* @param key - The key to check.
|
|
275
|
+
* @returns `true` if the key is a directory, otherwise `false`.
|
|
276
|
+
*/
|
|
277
|
+
isDirectorySync: (key: string) => boolean;
|
|
278
|
+
/**
|
|
279
|
+
* Checks if the given key is a file.
|
|
280
|
+
*
|
|
281
|
+
* @param key - The key to check.
|
|
282
|
+
* @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
|
|
283
|
+
*/
|
|
284
|
+
isFile: (key: string) => Promise<boolean>;
|
|
285
|
+
/**
|
|
286
|
+
* Synchronously checks if the given key is a file.
|
|
287
|
+
*
|
|
288
|
+
* @param key - The key to check.
|
|
289
|
+
* @returns `true` if the key is a file, otherwise `false`.
|
|
290
|
+
*/
|
|
291
|
+
isFileSync: (key: string) => boolean;
|
|
249
292
|
/**
|
|
250
293
|
* Releases any resources held by the storage adapter.
|
|
251
294
|
*/
|
|
@@ -381,6 +424,34 @@ interface VirtualFileSystemInterface {
|
|
|
381
424
|
* @returns `true` if the file is virtual, otherwise `false`.
|
|
382
425
|
*/
|
|
383
426
|
isVirtual: (path: string) => boolean;
|
|
427
|
+
/**
|
|
428
|
+
* Checks if the given key is a directory.
|
|
429
|
+
*
|
|
430
|
+
* @param key - The key to check.
|
|
431
|
+
* @returns A promise that resolves to `true` if the key is a directory, otherwise `false`.
|
|
432
|
+
*/
|
|
433
|
+
isDirectory: (key: string) => Promise<boolean>;
|
|
434
|
+
/**
|
|
435
|
+
* Synchronously checks if the given key is a directory.
|
|
436
|
+
*
|
|
437
|
+
* @param key - The key to check.
|
|
438
|
+
* @returns `true` if the key is a directory, otherwise `false`.
|
|
439
|
+
*/
|
|
440
|
+
isDirectorySync: (key: string) => boolean;
|
|
441
|
+
/**
|
|
442
|
+
* Checks if the given key is a file.
|
|
443
|
+
*
|
|
444
|
+
* @param key - The key to check.
|
|
445
|
+
* @returns A promise that resolves to `true` if the key is a file, otherwise `false`.
|
|
446
|
+
*/
|
|
447
|
+
isFile: (key: string) => Promise<boolean>;
|
|
448
|
+
/**
|
|
449
|
+
* Synchronously checks if the given key is a file.
|
|
450
|
+
*
|
|
451
|
+
* @param key - The key to check.
|
|
452
|
+
* @returns `true` if the key is a file, otherwise `false`.
|
|
453
|
+
*/
|
|
454
|
+
isFileSync: (key: string) => boolean;
|
|
384
455
|
/**
|
|
385
456
|
* Gets the metadata of a file in the virtual file system (VFS).
|
|
386
457
|
*
|
|
@@ -446,6 +517,18 @@ interface VirtualFileSystemInterface {
|
|
|
446
517
|
* @param options - Options for writing the file.
|
|
447
518
|
*/
|
|
448
519
|
writeSync: (path: string, data: string, options?: WriteOptions) => void;
|
|
520
|
+
/**
|
|
521
|
+
* Creates a directory at the specified path.
|
|
522
|
+
*
|
|
523
|
+
* @param dirPath - The path of the directory to create.
|
|
524
|
+
*/
|
|
525
|
+
mkdir: (dirPath: string) => Promise<void>;
|
|
526
|
+
/**
|
|
527
|
+
* Synchronously creates a directory at the specified path.
|
|
528
|
+
*
|
|
529
|
+
* @param dirPath - The path of the directory to create.
|
|
530
|
+
*/
|
|
531
|
+
mkdirSync: (dirPath: string) => void;
|
|
449
532
|
/**
|
|
450
533
|
* Moves a file from one path to another in the virtual file system (VFS).
|
|
451
534
|
*
|
|
@@ -466,28 +549,28 @@ interface VirtualFileSystemInterface {
|
|
|
466
549
|
* @param srcPath - The source path to copy
|
|
467
550
|
* @param destPath - The destination path to copy to
|
|
468
551
|
*/
|
|
469
|
-
copy: (srcPath: string, destPath: string) => Promise<void>;
|
|
552
|
+
copy: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => Promise<void>;
|
|
470
553
|
/**
|
|
471
554
|
* Synchronously copies a file from one path to another in the virtual file system (VFS).
|
|
472
555
|
*
|
|
473
556
|
* @param srcPath - The source path to copy
|
|
474
557
|
* @param destPath - The destination path to copy to
|
|
475
558
|
*/
|
|
476
|
-
copySync: (srcPath: string, destPath: string) => void;
|
|
559
|
+
copySync: (srcPath: string | URL | Omit<AssetGlob, "output">, destPath: string | URL) => void;
|
|
477
560
|
/**
|
|
478
561
|
* Glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
479
562
|
*
|
|
480
563
|
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
481
564
|
* @returns An array of file paths matching the provided pattern(s)
|
|
482
565
|
*/
|
|
483
|
-
glob: (
|
|
566
|
+
glob: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => Promise<string[]>;
|
|
484
567
|
/**
|
|
485
568
|
* Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
486
569
|
*
|
|
487
570
|
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
488
571
|
* @returns An array of file paths matching the provided pattern(s)
|
|
489
572
|
*/
|
|
490
|
-
globSync: (
|
|
573
|
+
globSync: (patterns: string | Omit<AssetGlob, "output"> | (string | Omit<AssetGlob, "output">)[]) => string[];
|
|
491
574
|
/**
|
|
492
575
|
* A helper function to resolve modules using the Jiti resolver
|
|
493
576
|
*
|
|
@@ -558,7 +641,7 @@ type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> &
|
|
|
558
641
|
/**
|
|
559
642
|
* The resolved options for the Powerlines project configuration.
|
|
560
643
|
*/
|
|
561
|
-
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework">> & {
|
|
644
|
+
type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "platform" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "variant" | "type" | "output" | "logLevel" | "framework" | "sourceRoot"> & Required<Pick<TUserConfig, "name" | "title" | "plugins" | "mode" | "environments" | "tsconfig" | "lint" | "test" | "build" | "transform" | "deploy" | "framework" | "sourceRoot">> & {
|
|
562
645
|
/**
|
|
563
646
|
* The configuration options that were provided inline to the Powerlines CLI.
|
|
564
647
|
*/
|
|
@@ -929,6 +1012,22 @@ type PluginConfig<TContext extends PluginContext = PluginContext> = string | Plu
|
|
|
929
1012
|
type PartialPlugin<in out TContext extends PluginContext = PluginContext> = DeepPartial$1<Plugin<TContext>>;
|
|
930
1013
|
type PartialPluginFactory<in out TContext extends PluginContext = PluginContext, TOptions = any> = (options: TOptions) => MaybePromise<PartialPlugin<TContext>>;
|
|
931
1014
|
type ProjectType = "application" | "library";
|
|
1015
|
+
interface DeployConfig {
|
|
1016
|
+
/**
|
|
1017
|
+
* The deployment variant being used by the Powerlines engine.
|
|
1018
|
+
*
|
|
1019
|
+
* @example
|
|
1020
|
+
* ```ts
|
|
1021
|
+
* export default defineConfig({
|
|
1022
|
+
* deploy: {
|
|
1023
|
+
* variant: "cloudflare"
|
|
1024
|
+
* }
|
|
1025
|
+
* });
|
|
1026
|
+
*
|
|
1027
|
+
* ```
|
|
1028
|
+
*/
|
|
1029
|
+
variant?: string;
|
|
1030
|
+
}
|
|
932
1031
|
interface OutputConfig {
|
|
933
1032
|
/**
|
|
934
1033
|
* The path to output the final compiled files to
|
|
@@ -1013,6 +1112,13 @@ interface BaseConfig {
|
|
|
1013
1112
|
* Configuration for the output of the build process
|
|
1014
1113
|
*/
|
|
1015
1114
|
output?: OutputConfig;
|
|
1115
|
+
/**
|
|
1116
|
+
* Configuration for cleaning the build artifacts
|
|
1117
|
+
*
|
|
1118
|
+
* @remarks
|
|
1119
|
+
* If set to `false`, the cleaning process will be disabled.
|
|
1120
|
+
*/
|
|
1121
|
+
clean?: Record<string, any> | false;
|
|
1016
1122
|
/**
|
|
1017
1123
|
* Configuration for linting the source code
|
|
1018
1124
|
*
|
|
@@ -1051,7 +1157,7 @@ interface BaseConfig {
|
|
|
1051
1157
|
* @remarks
|
|
1052
1158
|
* If set to `false`, the deployment will be disabled.
|
|
1053
1159
|
*/
|
|
1054
|
-
deploy?:
|
|
1160
|
+
deploy?: DeployConfig | false;
|
|
1055
1161
|
/**
|
|
1056
1162
|
* The path to the tsconfig file to be used by the compiler
|
|
1057
1163
|
*
|
|
@@ -1178,7 +1284,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1178
1284
|
*/
|
|
1179
1285
|
framework?: string;
|
|
1180
1286
|
}
|
|
1181
|
-
|
|
1287
|
+
interface UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedConfig extends BuildResolvedConfig = BuildResolvedConfig, TBuildVariant extends string = any> extends Omit<CommonUserConfig, "build"> {
|
|
1182
1288
|
/**
|
|
1183
1289
|
* Configuration provided to build processes
|
|
1184
1290
|
*
|
|
@@ -1198,7 +1304,7 @@ type UserConfig<TBuildConfig extends BuildConfig = BuildConfig, TBuildResolvedCo
|
|
|
1198
1304
|
*/
|
|
1199
1305
|
override?: Partial<TBuildResolvedConfig>;
|
|
1200
1306
|
};
|
|
1201
|
-
}
|
|
1307
|
+
}
|
|
1202
1308
|
type PowerlinesCommand = "new" | "prepare" | "build" | "lint" | "test" | "docs" | "deploy" | "clean";
|
|
1203
1309
|
/**
|
|
1204
1310
|
* The configuration provided while executing Powerlines commands.
|
|
@@ -1251,6 +1357,18 @@ interface InitContextOptions {
|
|
|
1251
1357
|
*/
|
|
1252
1358
|
isHighPriority: boolean;
|
|
1253
1359
|
}
|
|
1360
|
+
interface FetchOptions extends FetchRequestOptions {
|
|
1361
|
+
/**
|
|
1362
|
+
* An indicator specifying that the request should bypass any caching
|
|
1363
|
+
*/
|
|
1364
|
+
skipCache?: boolean;
|
|
1365
|
+
}
|
|
1366
|
+
interface ParseOptions extends ParserOptions {
|
|
1367
|
+
/**
|
|
1368
|
+
* When true this allows return statements to be outside functions to e.g. support parsing CommonJS code.
|
|
1369
|
+
*/
|
|
1370
|
+
allowReturnOutsideFunction?: boolean;
|
|
1371
|
+
}
|
|
1254
1372
|
/**
|
|
1255
1373
|
* The unresolved Powerlines context.
|
|
1256
1374
|
*
|
|
@@ -1267,6 +1385,7 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1267
1385
|
*/
|
|
1268
1386
|
config: Omit<TResolvedConfig["userConfig"], "build" | "output"> & Required<Pick<TResolvedConfig["userConfig"], "build" | "output">> & {
|
|
1269
1387
|
projectRoot: NonUndefined<TResolvedConfig["userConfig"]["root"]>;
|
|
1388
|
+
sourceRoot: NonUndefined<TResolvedConfig["userConfig"]["sourceRoot"]>;
|
|
1270
1389
|
output: TResolvedConfig["output"];
|
|
1271
1390
|
};
|
|
1272
1391
|
/**
|
|
@@ -1386,6 +1505,44 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1386
1505
|
* This instance is created lazily on first access.
|
|
1387
1506
|
*/
|
|
1388
1507
|
program: Project;
|
|
1508
|
+
/**
|
|
1509
|
+
* A function to perform HTTP fetch requests
|
|
1510
|
+
*
|
|
1511
|
+
* @remarks
|
|
1512
|
+
* This function uses a caching layer to avoid duplicate requests during the Powerlines process.
|
|
1513
|
+
*
|
|
1514
|
+
* @example
|
|
1515
|
+
* ```ts
|
|
1516
|
+
* const response = await context.fetch("https://api.example.com/data");
|
|
1517
|
+
* const data = await response.json();
|
|
1518
|
+
* ```
|
|
1519
|
+
*
|
|
1520
|
+
* @see https://github.com/nodejs/undici
|
|
1521
|
+
*
|
|
1522
|
+
* @param input - The URL to fetch.
|
|
1523
|
+
* @param options - The fetch request options.
|
|
1524
|
+
* @returns A promise that resolves to a response returned by the fetch.
|
|
1525
|
+
*/
|
|
1526
|
+
fetch: (input: RequestInfo, options?: FetchOptions) => Promise<Response>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Parse code using [Oxc-Parser](https://github.com/oxc/oxc) into an (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1529
|
+
*
|
|
1530
|
+
* @remarks
|
|
1531
|
+
* This function can be used to parse TypeScript code into an AST for further analysis or transformation.
|
|
1532
|
+
*
|
|
1533
|
+
* @example
|
|
1534
|
+
* ```ts
|
|
1535
|
+
* const ast = context.parse("const x: number = 42;");
|
|
1536
|
+
* ```
|
|
1537
|
+
*
|
|
1538
|
+
* @see https://rollupjs.org/plugin-development/#this-parse
|
|
1539
|
+
* @see https://github.com/oxc/oxc
|
|
1540
|
+
*
|
|
1541
|
+
* @param code - The source code to parse.
|
|
1542
|
+
* @param options - The options to pass to the parser.
|
|
1543
|
+
* @returns An (ESTree-compatible)[https://github.com/estree/estree] AST object.
|
|
1544
|
+
*/
|
|
1545
|
+
parse: (code: string, options?: ParseOptions) => Promise<ParseResult>;
|
|
1389
1546
|
/**
|
|
1390
1547
|
* A helper function to resolve modules using the Jiti resolver
|
|
1391
1548
|
*
|
|
@@ -1485,6 +1642,6 @@ interface PluginContext<out TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1485
1642
|
*/
|
|
1486
1643
|
logger: LogFn;
|
|
1487
1644
|
}
|
|
1488
|
-
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> =
|
|
1645
|
+
type BuildPluginContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> = UnpluginBuildContext & PluginContext<TResolvedConfig>;
|
|
1489
1646
|
|
|
1490
1647
|
export type { BuildVariant as B, ConfigResult as C, ExternalPluginHookFunctions as E, GenerateTypesResult as G, PluginContext as P, ResolvedConfig as R, UnresolvedContext as U, Plugin as a, PluginFactory as b, PartialPlugin as c, PartialPluginFactory as d, BasePluginHookFunctions as e, PluginHookFunctions as f, PluginHookObject as g, PluginConfigObject as h, PluginConfigTuple as i, PluginConfig as j, PluginHook as k, EnvironmentConfig as l, EnvironmentResolvedConfig as m };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkDUIPLC7F_cjs = require('./chunk-DUIPLC7F.cjs');
|
|
4
|
+
require('./chunk-PK6SKIKE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "getOrganizationName", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkDUIPLC7F_cjs.getOrganizationName; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "getWorkspaceName", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkDUIPLC7F_cjs.getWorkspaceName; }
|
|
15
15
|
});
|
|
16
|
+
//# sourceMappingURL=context-helpers.cjs.map
|
|
17
|
+
//# sourceMappingURL=context-helpers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"context-helpers.cjs"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { U as UnresolvedContext } from './context-
|
|
1
|
+
import { U as UnresolvedContext } from './context-BwokDIBz.cjs';
|
|
2
2
|
import '@stryke/env/get-env-paths';
|
|
3
|
+
import '@stryke/http/fetch';
|
|
3
4
|
import '@stryke/types/base';
|
|
4
5
|
import '@stryke/types/package-json';
|
|
5
6
|
import 'jiti';
|
|
6
7
|
import 'magic-string';
|
|
8
|
+
import 'oxc-parser';
|
|
7
9
|
import 'semver';
|
|
8
10
|
import 'ts-morph';
|
|
11
|
+
import 'undici';
|
|
9
12
|
import 'unplugin';
|
|
10
13
|
import '@storm-software/build-tools/types';
|
|
11
14
|
import '@storm-software/config-tools/types';
|