powerlines 0.24.8 → 0.25.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-C32Buv5_.d.ts → api-BTK8aYwE.d.cts} +1 -1
- package/dist/{api-wzd5AREv.d.cts → api-eyrYBmQh.d.ts} +1 -1
- package/dist/api.cjs +8 -6
- package/dist/api.d.cts +20 -22
- package/dist/api.d.ts +20 -22
- package/dist/api.js +7 -5
- package/dist/astro.cjs +12 -10
- package/dist/astro.d.cts +19 -21
- package/dist/astro.d.ts +19 -21
- package/dist/astro.js +10 -8
- package/dist/{chunk-JKBJF3UI.js → chunk-2MYPFASJ.js} +2 -0
- package/dist/chunk-2VIXD2XB.js +3 -0
- package/dist/{chunk-OB7MYWHE.js → chunk-44PO64SX.js} +4 -2
- package/dist/chunk-4JCNAKOE.cjs +4 -0
- package/dist/{chunk-QH4TS5V4.cjs → chunk-6MFZ436T.cjs} +978 -1032
- package/dist/chunk-6ZGIV2SU.cjs +4 -0
- package/dist/chunk-7BZQBW77.cjs +4 -0
- package/dist/{chunk-JQCWV4DT.js → chunk-7LKYXMB3.js} +2 -0
- package/dist/{chunk-SHUYVCID.js → chunk-7QVYU63E.js} +2 -0
- package/dist/chunk-AFJCY3R6.js +3 -0
- package/dist/chunk-AXIRZAL7.js +3 -0
- package/dist/chunk-BTNHSS2P.cjs +13 -0
- package/dist/{chunk-FQXHIKCM.cjs → chunk-C2U4ATHO.cjs} +9 -7
- package/dist/chunk-DFLNRC3B.cjs +4 -0
- package/dist/chunk-DS7OM4NX.cjs +4 -0
- package/dist/{chunk-W5X3ZEZ5.js → chunk-EBXVKPUX.js} +2 -0
- package/dist/{chunk-X74SYWFL.cjs → chunk-G2EHTXK6.cjs} +9 -7
- package/dist/chunk-GIE6OE3X.js +3 -0
- package/dist/chunk-HJW7OH6E.js +3 -0
- package/dist/{chunk-MOXO6WJO.js → chunk-HSIMIWOH.js} +3 -1
- package/dist/{chunk-5IBA5HC2.cjs → chunk-HTJKPEWU.cjs} +6 -4
- package/dist/chunk-IHUNA3MO.cjs +4 -0
- package/dist/chunk-JU2HWIWS.js +12 -0
- package/dist/{chunk-BCHFSOQ4.js → chunk-LQXE5JHF.js} +906 -957
- package/dist/chunk-MBBNZS6K.cjs +16 -0
- package/dist/{chunk-3TNZWTLG.js → chunk-NNADGQRN.js} +5 -3
- package/dist/chunk-OYASPHNL.js +3 -0
- package/dist/chunk-PCCFAZML.js +3 -0
- package/dist/{chunk-USNT2KNT.cjs → chunk-PK6SKIKE.cjs} +2 -0
- package/dist/{chunk-ETKZMGLN.cjs → chunk-PSTCR335.cjs} +2 -0
- package/dist/chunk-Q7EJVZVI.cjs +4 -0
- package/dist/{chunk-CJSGAITR.js → chunk-S7MXT5A2.js} +3 -1
- package/dist/{chunk-7RWEBVQC.cjs → chunk-SDVEUTY2.cjs} +13 -11
- package/dist/{chunk-OLCL34MI.js → chunk-SYDUPBME.js} +6 -4
- package/dist/chunk-TLHFXGYV.js +3 -0
- package/dist/chunk-TP5MEMLG.cjs +12 -0
- package/dist/chunk-VNRXLY2T.js +3 -0
- package/dist/chunk-VQCQRLGM.cjs +4 -0
- package/dist/chunk-XZO6ZJQP.cjs +4 -0
- package/dist/{chunk-XP7OML7S.cjs → chunk-YUX7LOBU.cjs} +2 -0
- package/dist/chunk-YZZUOOPS.cjs +4 -0
- package/dist/chunk-Z5H7LD6W.js +3 -0
- package/dist/{chunk-VBR53KGY.js → chunk-Z5UEYORO.js} +5 -3
- package/dist/{chunk-PAMSESZV.cjs → chunk-Z6ARQDHR.cjs} +2 -0
- package/dist/config.cjs +5 -3
- package/dist/config.d.cts +19 -21
- package/dist/config.d.ts +19 -21
- package/dist/config.js +4 -2
- package/dist/{resolved-CSqGKlA5.d.cts → context-TizkCfOv.d.cts} +848 -849
- package/dist/{resolved-BABoCnXm.d.ts → context-jhcT1Vi1.d.ts} +848 -849
- package/dist/esbuild.cjs +13 -11
- package/dist/esbuild.d.cts +19 -21
- package/dist/esbuild.d.ts +19 -21
- package/dist/esbuild.js +10 -8
- package/dist/farm.cjs +9 -7
- package/dist/farm.d.cts +19 -21
- package/dist/farm.d.ts +19 -21
- package/dist/farm.js +8 -6
- package/dist/index.cjs +39 -41
- package/dist/index.d.cts +30 -55
- package/dist/index.d.ts +30 -55
- package/dist/index.js +20 -18
- package/dist/lib/{api-CDUN9en8.d.ts → api-CCOhyMZo.d.cts} +1 -1
- package/dist/lib/{api-BRMITKt-.d.cts → api-CpJJXdtL.d.ts} +1 -1
- package/dist/lib/build/esbuild.cjs +5 -5
- package/dist/lib/build/esbuild.d.cts +2 -2
- package/dist/lib/build/esbuild.d.ts +2 -2
- package/dist/lib/build/esbuild.js +2 -2
- package/dist/lib/build/index.cjs +25 -25
- package/dist/lib/build/index.d.cts +4 -4
- package/dist/lib/build/index.d.ts +4 -4
- package/dist/lib/build/index.js +9 -9
- package/dist/lib/build/rolldown.cjs +3 -3
- package/dist/lib/build/rolldown.d.cts +2 -2
- package/dist/lib/build/rolldown.d.ts +2 -2
- package/dist/lib/build/rolldown.js +2 -2
- package/dist/lib/build/rollup.cjs +3 -3
- package/dist/lib/build/rollup.d.cts +2 -2
- package/dist/lib/build/rollup.d.ts +2 -2
- package/dist/lib/build/rollup.js +1 -1
- package/dist/lib/build/rspack.cjs +2 -2
- package/dist/lib/build/rspack.d.cts +2 -2
- package/dist/lib/build/rspack.d.ts +2 -2
- package/dist/lib/build/rspack.js +1 -1
- package/dist/lib/build/tsup.cjs +6 -6
- package/dist/lib/build/tsup.d.cts +2 -2
- package/dist/lib/build/tsup.d.ts +2 -2
- package/dist/lib/build/tsup.js +3 -3
- package/dist/lib/build/unbuild.cjs +5 -5
- package/dist/lib/build/unbuild.d.cts +4 -4
- package/dist/lib/build/unbuild.d.ts +4 -4
- package/dist/lib/build/unbuild.js +2 -2
- package/dist/lib/build/vite.cjs +5 -5
- package/dist/lib/build/vite.d.cts +2 -2
- package/dist/lib/build/vite.d.ts +2 -2
- package/dist/lib/build/vite.js +3 -3
- package/dist/lib/build/webpack.cjs +2 -2
- package/dist/lib/build/webpack.d.cts +2 -2
- package/dist/lib/build/webpack.d.ts +2 -2
- package/dist/lib/build/webpack.js +1 -1
- package/dist/lib/chunk-3T56KQ7U.cjs +49 -0
- package/dist/lib/{chunk-PZLO6FZW.js → chunk-3W53W5J2.js} +2 -2
- package/dist/lib/chunk-4W6WV35V.js +108 -0
- package/dist/lib/chunk-6OYSDQXE.cjs +139 -0
- package/dist/lib/{chunk-EV357RFB.cjs → chunk-7MHUTBEC.cjs} +1 -3
- package/dist/lib/{chunk-A2NFSQ5K.js → chunk-7OVZZWGY.js} +1 -1
- package/dist/lib/chunk-A2NW7WAN.js +47 -0
- package/dist/lib/chunk-D6MI2V6R.cjs +115 -0
- package/dist/lib/{chunk-VHLINWXG.js → chunk-DLVVEHMU.js} +1 -1
- package/dist/lib/{chunk-XLYMVIVD.cjs → chunk-DNQBXFNE.cjs} +10 -10
- package/dist/lib/{chunk-UGVHYKKN.js → chunk-DYLE5FD3.js} +39 -2
- package/dist/lib/{chunk-AKBAX4FH.js → chunk-EN52JYUK.js} +1 -1
- package/dist/lib/{chunk-JYDGFQIV.cjs → chunk-F2CXZUSB.cjs} +1 -1
- package/dist/lib/{chunk-7VJ42H2I.cjs → chunk-HRRI4KOM.cjs} +1 -3
- package/dist/lib/{chunk-LPRZ3HD4.cjs → chunk-IXTLRVAK.cjs} +3 -3
- package/dist/lib/{chunk-SYF7QG2J.js → chunk-J3BW52BU.js} +1 -1
- package/dist/lib/chunk-KFDNKOXM.js +56 -0
- package/dist/lib/chunk-L56XA427.js +137 -0
- package/dist/lib/{chunk-6PPZCPME.cjs → chunk-LOW2TIQ6.cjs} +2 -2
- package/dist/lib/{chunk-TMZCGC5U.js → chunk-MI55FDCZ.js} +1 -1
- package/dist/lib/{chunk-DUZJ7ZF2.cjs → chunk-MKKWFHGE.cjs} +2 -2
- package/dist/lib/{chunk-ISBHXSDH.cjs → chunk-N5XEKCVW.cjs} +1 -1
- package/dist/lib/{chunk-XZFEHPYE.js → chunk-N5YLKWC2.js} +1 -1
- package/dist/lib/chunk-NIRFKQAD.js +845 -0
- package/dist/lib/{chunk-YMHOAMCU.cjs → chunk-NLJR4WIX.cjs} +41 -4
- package/dist/lib/{chunk-L3HESXYF.cjs → chunk-NUE5DIH3.cjs} +3 -3
- package/dist/lib/chunk-OBA5U4Y2.js +1059 -0
- package/dist/lib/{chunk-FQLZZYYO.js → chunk-OEF6EHQV.js} +1 -3
- package/dist/lib/{chunk-WTTBXYFQ.js → chunk-OFXWRM3U.js} +2 -2
- package/dist/lib/chunk-ONETLSPO.js +85 -0
- package/dist/lib/{chunk-2OV26JXJ.cjs → chunk-PQRWG64T.cjs} +3 -3
- package/dist/lib/chunk-R33US3PV.cjs +1081 -0
- package/dist/lib/{chunk-OA7OL7HF.cjs → chunk-SFEEJZLK.cjs} +38 -66
- package/dist/lib/{chunk-H6EOZSIZ.js → chunk-TAVG226Z.js} +1 -1
- package/dist/lib/{chunk-DALRRHB4.cjs → chunk-TSFG3WEA.cjs} +1 -1
- package/dist/lib/{chunk-RMA2PMP7.cjs → chunk-TZCC5IWH.cjs} +3 -3
- package/dist/lib/chunk-VHCBD2IS.js +149 -0
- package/dist/lib/{chunk-HY6DNFCT.js → chunk-VODWHWD6.js} +2 -2
- package/dist/lib/{chunk-2X5DUDNT.js → chunk-W6GWSJ22.js} +2 -2
- package/dist/lib/chunk-WBSA6OG6.cjs +860 -0
- package/dist/lib/{chunk-TOCNXURI.cjs → chunk-WCXA5WFX.cjs} +4 -4
- package/dist/lib/{chunk-6I5PL7H2.js → chunk-WGSZ4X6N.js} +1 -3
- package/dist/lib/{chunk-T2KQZC5K.js → chunk-WLDQUTFD.js} +27 -54
- package/dist/lib/{chunk-AOHJEL2Q.js → chunk-WOKPJMGJ.js} +3 -3
- package/dist/lib/{chunk-TDJNFAOV.cjs → chunk-X6JDYLWM.cjs} +1 -1
- package/dist/lib/chunk-XLHFUATD.cjs +151 -0
- package/dist/lib/chunk-XUYQYUWZ.cjs +87 -0
- package/dist/lib/chunk-YYEAV24J.cjs +67 -0
- package/dist/lib/{config-D8KrE7SZ.d.cts → config-Cqxh4V21.d.cts} +58 -475
- package/dist/lib/{config-DBIFdRoq.d.ts → config-D-WwQL-4.d.ts} +58 -475
- package/dist/lib/config-file.d.cts +2 -2
- package/dist/lib/config-file.d.ts +2 -2
- package/dist/lib/contexts/api-context.cjs +12 -7
- package/dist/lib/contexts/api-context.d.cts +27 -4
- package/dist/lib/contexts/api-context.d.ts +27 -4
- package/dist/lib/contexts/api-context.js +11 -6
- package/dist/lib/contexts/context.cjs +10 -5
- package/dist/lib/contexts/context.d.cts +7 -7
- package/dist/lib/contexts/context.d.ts +7 -7
- package/dist/lib/contexts/context.js +9 -4
- package/dist/lib/contexts/environment-context.cjs +11 -6
- package/dist/lib/contexts/environment-context.d.cts +4 -4
- package/dist/lib/contexts/environment-context.d.ts +4 -4
- package/dist/lib/contexts/environment-context.js +10 -5
- package/dist/lib/contexts/index.cjs +14 -9
- package/dist/lib/contexts/index.d.cts +4 -4
- package/dist/lib/contexts/index.d.ts +4 -4
- package/dist/lib/contexts/index.js +11 -6
- package/dist/lib/contexts/plugin-context.d.cts +4 -4
- package/dist/lib/contexts/plugin-context.d.ts +4 -4
- package/dist/lib/entry.cjs +9 -9
- package/dist/lib/entry.d.cts +2 -2
- package/dist/lib/entry.d.ts +2 -2
- package/dist/lib/entry.js +1 -1
- package/dist/lib/fs/helpers.cjs +47 -0
- package/dist/lib/fs/helpers.d.cts +74 -0
- package/dist/lib/fs/helpers.d.ts +74 -0
- package/dist/lib/fs/helpers.js +2 -0
- package/dist/lib/fs/index.cjs +17 -0
- package/dist/lib/fs/index.d.cts +33 -0
- package/dist/lib/fs/index.d.ts +33 -0
- package/dist/lib/fs/index.js +8 -0
- package/dist/lib/fs/storage/base.cjs +11 -0
- package/dist/lib/fs/storage/base.d.cts +138 -0
- package/dist/lib/fs/storage/base.d.ts +138 -0
- package/dist/lib/fs/storage/base.js +2 -0
- package/dist/lib/fs/storage/file-system.cjs +13 -0
- package/dist/lib/fs/storage/file-system.d.cts +90 -0
- package/dist/lib/fs/storage/file-system.d.ts +90 -0
- package/dist/lib/fs/storage/file-system.js +4 -0
- package/dist/lib/fs/storage/index.cjs +22 -0
- package/dist/lib/fs/storage/index.d.cts +6 -0
- package/dist/lib/fs/storage/index.d.ts +6 -0
- package/dist/lib/fs/storage/index.js +5 -0
- package/dist/lib/fs/storage/virtual.cjs +12 -0
- package/dist/lib/fs/storage/virtual.d.cts +66 -0
- package/dist/lib/fs/storage/virtual.d.ts +66 -0
- package/dist/lib/fs/storage/virtual.js +3 -0
- package/dist/lib/fs/vfs.cjs +16 -0
- package/dist/lib/fs/vfs.d.cts +247 -0
- package/dist/lib/fs/vfs.d.ts +247 -0
- package/dist/lib/fs/vfs.js +7 -0
- package/dist/lib/fs-Dg-aTfiN.d.cts +378 -0
- package/dist/lib/fs-Dg-aTfiN.d.ts +378 -0
- package/dist/lib/index.cjs +62 -68
- package/dist/lib/index.d.cts +18 -356
- package/dist/lib/index.d.ts +18 -356
- package/dist/lib/index.js +19 -13
- package/dist/lib/{internal-CaGANOWK.d.cts → internal-Cl7s1iAA.d.cts} +2 -2
- package/dist/lib/{internal-1qCyw7bA.d.ts → internal-W5pvS6e9.d.ts} +2 -2
- package/dist/lib/logger.d.cts +2 -2
- package/dist/lib/logger.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.cjs +7 -45
- package/dist/lib/typescript/import-transformer.d.cts +2 -2
- package/dist/lib/typescript/import-transformer.d.ts +2 -2
- package/dist/lib/typescript/import-transformer.js +2 -47
- package/dist/lib/typescript/index.cjs +10 -22
- package/dist/lib/typescript/index.d.cts +4 -4
- package/dist/lib/typescript/index.d.ts +4 -4
- package/dist/lib/typescript/index.js +2 -2
- package/dist/lib/typescript/ts-morph.cjs +6 -2
- package/dist/lib/typescript/ts-morph.d.cts +28 -4
- package/dist/lib/typescript/ts-morph.d.ts +28 -4
- package/dist/lib/typescript/ts-morph.js +1 -1
- package/dist/lib/unplugin/factory.cjs +14 -9
- package/dist/lib/unplugin/factory.d.cts +4 -4
- package/dist/lib/unplugin/factory.d.ts +4 -4
- package/dist/lib/unplugin/factory.js +13 -8
- package/dist/lib/unplugin/helpers.d.cts +2 -2
- package/dist/lib/unplugin/helpers.d.ts +2 -2
- package/dist/lib/unplugin/index.cjs +16 -11
- package/dist/lib/unplugin/index.d.cts +4 -4
- package/dist/lib/unplugin/index.d.ts +4 -4
- package/dist/lib/unplugin/index.js +14 -9
- package/dist/lib/unplugin/plugin.cjs +2 -2
- package/dist/lib/unplugin/plugin.d.cts +4 -4
- package/dist/lib/unplugin/plugin.d.ts +4 -4
- package/dist/lib/unplugin/plugin.js +1 -1
- package/dist/lib/{unplugin-CEeJqADD.d.ts → unplugin-Cg2NoKj0.d.ts} +2 -2
- package/dist/lib/{unplugin-bUSyjd0S.d.cts → unplugin-trF-VLnO.d.cts} +2 -2
- package/dist/lib/utilities/bundle.cjs +4 -4
- package/dist/lib/utilities/bundle.d.cts +2 -2
- package/dist/lib/utilities/bundle.d.ts +2 -2
- package/dist/lib/utilities/bundle.js +3 -3
- package/dist/lib/utilities/cache.d.cts +2 -2
- package/dist/lib/utilities/cache.d.ts +2 -2
- package/dist/lib/utilities/file-header.d.cts +2 -2
- package/dist/lib/utilities/file-header.d.ts +2 -2
- package/dist/lib/utilities/index.cjs +22 -22
- package/dist/lib/utilities/index.d.cts +2 -2
- package/dist/lib/utilities/index.d.ts +2 -2
- package/dist/lib/utilities/index.js +6 -6
- package/dist/lib/utilities/meta.cjs +7 -7
- package/dist/lib/utilities/meta.d.cts +2 -2
- package/dist/lib/utilities/meta.d.ts +2 -2
- package/dist/lib/utilities/meta.js +1 -1
- package/dist/lib/utilities/resolve.cjs +5 -5
- package/dist/lib/utilities/resolve.d.cts +2 -2
- package/dist/lib/utilities/resolve.d.ts +2 -2
- package/dist/lib/utilities/resolve.js +4 -4
- package/dist/lib/utilities/source-file.d.cts +2 -2
- package/dist/lib/utilities/source-file.d.ts +2 -2
- package/dist/lib/utilities/source-map.d.cts +2 -2
- package/dist/lib/utilities/source-map.d.ts +2 -2
- package/dist/lib/utilities/worker.d.cts +2 -2
- package/dist/lib/utilities/worker.d.ts +2 -2
- package/dist/lib/utilities/write-file.d.cts +2 -2
- package/dist/lib/utilities/write-file.d.ts +2 -2
- package/dist/next.cjs +11 -9
- package/dist/next.js +9 -7
- package/dist/nuxt.cjs +13 -11
- package/dist/nuxt.js +11 -9
- package/dist/plugin-utils/{chunk-JHTLGE4X.js → chunk-K2GWRZPV.js} +1 -1
- package/dist/plugin-utils/{chunk-HSYQWNIH.cjs → chunk-VWFJOPKC.cjs} +1 -1
- package/dist/plugin-utils/{context-BITGF5LZ.d.cts → context-PtfEjz3_.d.cts} +187 -230
- package/dist/plugin-utils/{context-BITGF5LZ.d.ts → context-PtfEjz3_.d.ts} +187 -230
- package/dist/plugin-utils/context-helpers.d.cts +1 -2
- package/dist/plugin-utils/context-helpers.d.ts +1 -2
- package/dist/plugin-utils/enforce.d.cts +1 -2
- package/dist/plugin-utils/enforce.d.ts +1 -2
- package/dist/plugin-utils/extend.d.cts +1 -2
- package/dist/plugin-utils/extend.d.ts +1 -2
- package/dist/plugin-utils/get-config-path.d.cts +1 -2
- package/dist/plugin-utils/get-config-path.d.ts +1 -2
- package/dist/plugin-utils/helpers.d.cts +1 -2
- package/dist/plugin-utils/helpers.d.ts +1 -2
- package/dist/plugin-utils/index.cjs +2 -2
- package/dist/plugin-utils/index.d.cts +1 -2
- package/dist/plugin-utils/index.d.ts +1 -2
- package/dist/plugin-utils/index.js +1 -1
- package/dist/plugin-utils/merge.d.cts +1 -2
- package/dist/plugin-utils/merge.d.ts +1 -2
- package/dist/plugin-utils/paths.cjs +2 -2
- package/dist/plugin-utils/paths.d.cts +2 -3
- package/dist/plugin-utils/paths.d.ts +2 -3
- package/dist/plugin-utils/paths.js +1 -1
- package/dist/rolldown.cjs +9 -7
- package/dist/rolldown.d.cts +19 -21
- package/dist/rolldown.d.ts +19 -21
- package/dist/rolldown.js +8 -6
- package/dist/rollup.cjs +9 -7
- package/dist/rollup.d.cts +19 -21
- package/dist/rollup.d.ts +19 -21
- package/dist/rollup.js +8 -6
- package/dist/rspack.cjs +9 -7
- package/dist/rspack.d.cts +18 -20
- package/dist/rspack.d.ts +18 -20
- package/dist/rspack.js +8 -6
- package/dist/tsup.cjs +12 -10
- package/dist/tsup.js +10 -8
- package/dist/types/api.cjs +3 -1
- package/dist/types/api.cjs.map +1 -0
- package/dist/types/api.d.cts +20 -22
- package/dist/types/api.d.ts +20 -22
- package/dist/types/api.js +3 -1
- package/dist/types/api.js.map +1 -0
- package/dist/types/babel.cjs +3 -1
- package/dist/types/babel.cjs.map +1 -0
- package/dist/types/babel.d.cts +17 -19
- package/dist/types/babel.d.ts +17 -19
- package/dist/types/babel.js +3 -1
- package/dist/types/babel.js.map +1 -0
- package/dist/types/build.cjs +3 -1
- package/dist/types/build.cjs.map +1 -0
- package/dist/types/build.js +3 -1
- package/dist/types/build.js.map +1 -0
- package/dist/types/commands.cjs +5 -3
- package/dist/types/commands.cjs.map +1 -0
- package/dist/types/commands.d.cts +18 -20
- package/dist/types/commands.d.ts +18 -20
- package/dist/types/commands.js +4 -2
- package/dist/types/commands.js.map +1 -0
- package/dist/types/config.cjs +3 -1
- package/dist/types/config.cjs.map +1 -0
- package/dist/types/config.d.cts +2 -4
- package/dist/types/config.d.ts +2 -4
- package/dist/types/config.js +3 -1
- package/dist/types/config.js.map +1 -0
- package/dist/types/context.cjs +5 -3
- package/dist/types/context.cjs.map +1 -0
- package/dist/types/context.d.cts +8 -10
- package/dist/types/context.d.ts +8 -10
- package/dist/types/context.js +4 -2
- package/dist/types/context.js.map +1 -0
- package/dist/types/fs.cjs +10 -4
- package/dist/types/fs.cjs.map +1 -0
- package/dist/types/fs.d.cts +138 -184
- package/dist/types/fs.d.ts +138 -184
- package/dist/types/fs.js +4 -2
- package/dist/types/fs.js.map +1 -0
- package/dist/types/hooks.cjs +3 -1
- package/dist/types/hooks.cjs.map +1 -0
- package/dist/types/hooks.d.cts +19 -21
- package/dist/types/hooks.d.ts +19 -21
- package/dist/types/hooks.js +3 -1
- package/dist/types/hooks.js.map +1 -0
- package/dist/types/index.cjs +26 -20
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +13 -15
- package/dist/types/index.d.ts +13 -15
- package/dist/types/index.js +17 -15
- package/dist/types/index.js.map +1 -0
- package/dist/types/internal.cjs +2 -0
- package/dist/types/internal.cjs.map +1 -0
- package/dist/types/internal.d.cts +20 -22
- package/dist/types/internal.d.ts +20 -22
- package/dist/types/internal.js +2 -0
- package/dist/types/internal.js.map +1 -0
- package/dist/types/plugin.cjs +5 -3
- package/dist/types/plugin.cjs.map +1 -0
- package/dist/types/plugin.d.cts +9 -11
- package/dist/types/plugin.d.ts +9 -11
- package/dist/types/plugin.js +4 -2
- package/dist/types/plugin.js.map +1 -0
- package/dist/types/resolved.cjs +3 -1
- package/dist/types/resolved.cjs.map +1 -0
- package/dist/types/resolved.d.cts +7 -9
- package/dist/types/resolved.d.ts +7 -9
- package/dist/types/resolved.js +3 -1
- package/dist/types/resolved.js.map +1 -0
- package/dist/types/tsconfig.cjs +3 -1
- package/dist/types/tsconfig.cjs.map +1 -0
- package/dist/types/tsconfig.js +3 -1
- package/dist/types/tsconfig.js.map +1 -0
- package/dist/types/typedoc.cjs +3 -1
- package/dist/types/typedoc.cjs.map +1 -0
- package/dist/types/typedoc.js +3 -1
- package/dist/types/typedoc.js.map +1 -0
- package/dist/types/unplugin.cjs +3 -1
- package/dist/types/unplugin.cjs.map +1 -0
- package/dist/types/unplugin.d.cts +11 -13
- package/dist/types/unplugin.d.ts +11 -13
- package/dist/types/unplugin.js +3 -1
- package/dist/types/unplugin.js.map +1 -0
- package/dist/unloader.cjs +9 -7
- package/dist/unloader.d.cts +19 -21
- package/dist/unloader.d.ts +19 -21
- package/dist/unloader.js +8 -6
- package/dist/unplugin.cjs +20 -20
- package/dist/unplugin.d.cts +19 -21
- package/dist/unplugin.d.ts +19 -21
- package/dist/unplugin.js +10 -10
- package/dist/vite.cjs +13 -11
- package/dist/vite.d.cts +19 -21
- package/dist/vite.d.ts +19 -21
- package/dist/vite.js +10 -8
- package/dist/webpack.cjs +12 -10
- package/dist/webpack.d.cts +19 -21
- package/dist/webpack.d.ts +19 -21
- package/dist/webpack.js +9 -7
- package/package.json +72 -19
- package/schemas/fs.capnp +4 -59
- package/dist/chunk-2NO7N5OW.cjs +0 -2
- package/dist/chunk-7GYTTM4M.cjs +0 -2
- package/dist/chunk-AENPRFWJ.cjs +0 -2
- package/dist/chunk-AYKZK666.cjs +0 -8
- package/dist/chunk-BUR2JQ6G.cjs +0 -11
- package/dist/chunk-DRXFQCNC.js +0 -1
- package/dist/chunk-FNZDWE4L.js +0 -1
- package/dist/chunk-GHJU2KGP.cjs +0 -2
- package/dist/chunk-GRU7B3QM.cjs +0 -2
- package/dist/chunk-HQFZ64VC.cjs +0 -2
- package/dist/chunk-J4BQZHTQ.js +0 -1
- package/dist/chunk-JGB5YQ2U.js +0 -1
- package/dist/chunk-KALR2O2F.cjs +0 -2
- package/dist/chunk-LOUZXJFY.cjs +0 -10
- package/dist/chunk-OO3YXM72.js +0 -1
- package/dist/chunk-QE3WGMAP.js +0 -1
- package/dist/chunk-SMNKPH4T.js +0 -1
- package/dist/chunk-T2P533I5.js +0 -1
- package/dist/chunk-V3MLQDZQ.js +0 -1
- package/dist/chunk-VT7NVLLU.js +0 -5
- package/dist/chunk-YRJ4MLVL.cjs +0 -2
- package/dist/chunk-ZC43PZXS.cjs +0 -2
- package/dist/lib/chunk-3MZQ4MQX.cjs +0 -2360
- package/dist/lib/chunk-5JAFU45Z.js +0 -2324
- package/dist/lib/chunk-HAXL7QE7.js +0 -154
- package/dist/lib/chunk-SAS5EPBD.cjs +0 -107
- package/dist/lib/chunk-WUYK74EH.cjs +0 -165
- package/dist/lib/chunk-YQ3ODCHV.js +0 -105
- package/dist/lib/typescript/compiler-host.cjs +0 -164
- package/dist/lib/typescript/compiler-host.d.cts +0 -63
- package/dist/lib/typescript/compiler-host.d.ts +0 -63
- package/dist/lib/typescript/compiler-host.js +0 -156
- package/dist/lib/typescript/program.cjs +0 -27
- package/dist/lib/typescript/program.d.cts +0 -68
- package/dist/lib/typescript/program.d.ts +0 -68
- package/dist/lib/typescript/program.js +0 -2
- /package/dist/{chunk-2NCILNCH.cjs → lib/chunk-K2SFTPN3.cjs} +0 -0
- /package/dist/{chunk-BLNT5INX.js → lib/chunk-NQAHFTUW.js} +0 -0
|
@@ -22,432 +22,10 @@ import MagicString, { SourceMap } from 'magic-string';
|
|
|
22
22
|
import { Range } from 'semver';
|
|
23
23
|
import { Project } from 'ts-morph';
|
|
24
24
|
import { TransformResult as TransformResult$1, ExternalIdResult, HookFilter, UnpluginOptions, UnpluginContext, UnpluginMessage, UnpluginBuildContext } from 'unplugin';
|
|
25
|
-
import {
|
|
26
|
-
import { StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
|
|
25
|
+
import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile, b as StoragePort, c as StoragePreset } from './fs-Dg-aTfiN.js';
|
|
27
26
|
import { ArrayValues } from '@stryke/types/array';
|
|
28
27
|
import { P as ParsedTypeScriptConfig, T as TSConfig } from './tsconfig-Bz-CiFqD.js';
|
|
29
28
|
|
|
30
|
-
declare const __VFS_PATCH__ = "__VFS_PATCH__";
|
|
31
|
-
declare const __VFS_REVERT__ = "__VFS_REVERT__";
|
|
32
|
-
type OutputModeType = "fs" | "virtual";
|
|
33
|
-
interface VirtualFileMetadata {
|
|
34
|
-
/**
|
|
35
|
-
* The identifier for the file data.
|
|
36
|
-
*/
|
|
37
|
-
id: string;
|
|
38
|
-
/**
|
|
39
|
-
* The timestamp of the virtual file.
|
|
40
|
-
*/
|
|
41
|
-
timestamp: number;
|
|
42
|
-
/**
|
|
43
|
-
* The type of the file.
|
|
44
|
-
*
|
|
45
|
-
* @remarks
|
|
46
|
-
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
47
|
-
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
48
|
-
* - `entry`: Indicates that the file is an entry point for execution.
|
|
49
|
-
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
50
|
-
*/
|
|
51
|
-
type: string;
|
|
52
|
-
/**
|
|
53
|
-
* The output mode of the file.
|
|
54
|
-
*/
|
|
55
|
-
mode: string;
|
|
56
|
-
/**
|
|
57
|
-
* Additional metadata associated with the file.
|
|
58
|
-
*/
|
|
59
|
-
properties: Record<string, string>;
|
|
60
|
-
}
|
|
61
|
-
interface VirtualFileData {
|
|
62
|
-
/**
|
|
63
|
-
* The identifier for the file data.
|
|
64
|
-
*/
|
|
65
|
-
id?: string;
|
|
66
|
-
/**
|
|
67
|
-
* The contents of the virtual file.
|
|
68
|
-
*/
|
|
69
|
-
code: string;
|
|
70
|
-
/**
|
|
71
|
-
* The type of the file.
|
|
72
|
-
*
|
|
73
|
-
* @remarks
|
|
74
|
-
* This string represents the purpose/function of the file in the virtual file system. A potential list of variants includes:
|
|
75
|
-
* - `builtin`: Indicates that the file is a built-in module provided by the system.
|
|
76
|
-
* - `entry`: Indicates that the file is an entry point for execution.
|
|
77
|
-
* - `chunk`: Indicates that the file is a code chunk, typically used in code-splitting scenarios.
|
|
78
|
-
* - `prebuilt-chunk`: Indicates that the file is a prebuilt code chunk.
|
|
79
|
-
* - `asset`: Indicates that the file is a static asset, such as an image or stylesheet.
|
|
80
|
-
* - `normal`: Indicates that the file is a standard file without any special role.
|
|
81
|
-
*/
|
|
82
|
-
type?: string;
|
|
83
|
-
/**
|
|
84
|
-
* The output mode of the file.
|
|
85
|
-
*/
|
|
86
|
-
mode?: string;
|
|
87
|
-
/**
|
|
88
|
-
* Additional metadata associated with the file.
|
|
89
|
-
*/
|
|
90
|
-
properties?: Record<string, string>;
|
|
91
|
-
}
|
|
92
|
-
interface VirtualFile extends Required<VirtualFileData>, VirtualFileMetadata {
|
|
93
|
-
/**
|
|
94
|
-
* An additional name for the file.
|
|
95
|
-
*/
|
|
96
|
-
path: string;
|
|
97
|
-
/**
|
|
98
|
-
* The timestamp of the virtual file.
|
|
99
|
-
*/
|
|
100
|
-
timestamp: number;
|
|
101
|
-
}
|
|
102
|
-
interface ResolveFSOptions {
|
|
103
|
-
mode?: OutputModeType;
|
|
104
|
-
}
|
|
105
|
-
type MakeDirectoryOptions = (Mode | MakeDirectoryOptions$1) & ResolveFSOptions;
|
|
106
|
-
interface PowerlinesWriteFileOptions extends ResolveFSOptions {
|
|
107
|
-
/**
|
|
108
|
-
* Should the file skip formatting before being written?
|
|
109
|
-
*
|
|
110
|
-
* @defaultValue false
|
|
111
|
-
*/
|
|
112
|
-
skipFormat?: boolean;
|
|
113
|
-
}
|
|
114
|
-
type NodeWriteFileOptions = WriteFileOptions$1;
|
|
115
|
-
type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
|
|
116
|
-
type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
|
|
117
|
-
interface ResolveOptions extends ResolveOptions$1 {
|
|
118
|
-
/**
|
|
119
|
-
* If true, the module is being resolved as an entry point.
|
|
120
|
-
*/
|
|
121
|
-
isEntry?: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* If true, the resolver will skip using the cache when resolving modules.
|
|
124
|
-
*/
|
|
125
|
-
skipCache?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* An array of external modules or patterns to exclude from resolution.
|
|
128
|
-
*/
|
|
129
|
-
external?: (string | RegExp)[];
|
|
130
|
-
/**
|
|
131
|
-
* An array of modules or patterns to include in the resolution, even if they are marked as external.
|
|
132
|
-
*/
|
|
133
|
-
noExternal?: (string | RegExp)[];
|
|
134
|
-
/**
|
|
135
|
-
* An array of patterns to match when resolving modules.
|
|
136
|
-
*/
|
|
137
|
-
skipNodeModulesBundle?: boolean;
|
|
138
|
-
}
|
|
139
|
-
interface VirtualFileSystemInterface {
|
|
140
|
-
/**
|
|
141
|
-
* Patches the File System to include the virtual file system (VFS) contents.
|
|
142
|
-
*/
|
|
143
|
-
[__VFS_PATCH__]: () => void;
|
|
144
|
-
/**
|
|
145
|
-
* Reverts the virtual file system (VFS) to its previous state.
|
|
146
|
-
*/
|
|
147
|
-
[__VFS_REVERT__]: () => void;
|
|
148
|
-
/**
|
|
149
|
-
* The underlying file metadata.
|
|
150
|
-
*/
|
|
151
|
-
metadata: Readonly<Record<string, VirtualFileMetadata>>;
|
|
152
|
-
/**
|
|
153
|
-
* A map of file paths to their module ids.
|
|
154
|
-
*/
|
|
155
|
-
ids: Readonly<Record<string, string>>;
|
|
156
|
-
/**
|
|
157
|
-
* A map of module ids to their file paths.
|
|
158
|
-
*/
|
|
159
|
-
paths: Readonly<Record<string, string>>;
|
|
160
|
-
/**
|
|
161
|
-
* Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
162
|
-
*
|
|
163
|
-
* @param pathOrId - The path or id to check.
|
|
164
|
-
* @param importer - The importer path, if any.
|
|
165
|
-
* @param options - Optional parameters for resolving the path.
|
|
166
|
-
* @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
|
|
167
|
-
*/
|
|
168
|
-
isVirtual: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
|
|
169
|
-
/**
|
|
170
|
-
* Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
171
|
-
*
|
|
172
|
-
* @param pathOrId - The path or id to check.
|
|
173
|
-
* @param importer - The importer path, if any.
|
|
174
|
-
* @param options - Optional parameters for resolving the path.
|
|
175
|
-
* @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
|
|
176
|
-
*/
|
|
177
|
-
isPhysical: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
|
|
178
|
-
/**
|
|
179
|
-
* Checks if a file exists in the virtual file system (VFS).
|
|
180
|
-
*
|
|
181
|
-
* @param path - The path of the file to check.
|
|
182
|
-
* @returns `true` if the file exists, otherwise `false`.
|
|
183
|
-
*/
|
|
184
|
-
isFile: (path: string) => boolean;
|
|
185
|
-
/**
|
|
186
|
-
* Checks if a directory exists in the virtual file system (VFS).
|
|
187
|
-
*
|
|
188
|
-
* @param path - The path of the directory to check.
|
|
189
|
-
* @returns `true` if the directory exists, otherwise `false`.
|
|
190
|
-
*/
|
|
191
|
-
isDirectory: (path: string) => boolean;
|
|
192
|
-
/**
|
|
193
|
-
* Checks if a file exists in the virtual file system (VFS).
|
|
194
|
-
*
|
|
195
|
-
* @param pathOrId - The path or id of the file.
|
|
196
|
-
* @returns `true` if the file exists, otherwise `false`.
|
|
197
|
-
*/
|
|
198
|
-
existsSync: (pathOrId: string) => boolean;
|
|
199
|
-
/**
|
|
200
|
-
* Gets the metadata of a file in the virtual file system (VFS).
|
|
201
|
-
*
|
|
202
|
-
* @param pathOrId - The path or id of the file.
|
|
203
|
-
* @returns The metadata of the file if it exists, otherwise undefined.
|
|
204
|
-
*/
|
|
205
|
-
getMetadata: (pathOrId: string) => VirtualFileMetadata | undefined;
|
|
206
|
-
/**
|
|
207
|
-
* Gets the stats of a file in the virtual file system (VFS).
|
|
208
|
-
*
|
|
209
|
-
* @param pathOrId - The path or id of the file.
|
|
210
|
-
* @param options - Optional parameters for getting the stats.
|
|
211
|
-
* @returns The stats of the file if it exists, otherwise undefined.
|
|
212
|
-
*/
|
|
213
|
-
lstat: (pathOrId: string, options?: StatSyncOptions & {
|
|
214
|
-
bigint?: false | undefined;
|
|
215
|
-
throwIfNoEntry: false;
|
|
216
|
-
}) => Promise<Stats>;
|
|
217
|
-
/**
|
|
218
|
-
* Gets the stats of a file in the virtual file system (VFS).
|
|
219
|
-
*
|
|
220
|
-
* @param pathOrId - The path or id of the file.
|
|
221
|
-
* @param options - Optional parameters for getting the stats.
|
|
222
|
-
* @returns The stats of the file if it exists, otherwise undefined.
|
|
223
|
-
*/
|
|
224
|
-
lstatSync: (pathOrId: string, options?: StatSyncOptions & {
|
|
225
|
-
bigint?: false | undefined;
|
|
226
|
-
throwIfNoEntry: false;
|
|
227
|
-
}) => Stats | undefined;
|
|
228
|
-
/**
|
|
229
|
-
* Gets the stats of a file in the virtual file system (VFS).
|
|
230
|
-
*
|
|
231
|
-
* @param pathOrId - The path or id of the file.
|
|
232
|
-
* @returns The stats of the file if it exists, otherwise false.
|
|
233
|
-
*/
|
|
234
|
-
stat: (pathOrId: string, options?: StatSyncOptions & {
|
|
235
|
-
bigint?: false | undefined;
|
|
236
|
-
throwIfNoEntry: false;
|
|
237
|
-
}) => Promise<Stats>;
|
|
238
|
-
/**
|
|
239
|
-
* Gets the stats of a file in the virtual file system (VFS).
|
|
240
|
-
*
|
|
241
|
-
* @param pathOrId - The path or id of the file.
|
|
242
|
-
* @returns The stats of the file if it exists, otherwise false.
|
|
243
|
-
*/
|
|
244
|
-
statSync: (pathOrId: string, options?: StatSyncOptions & {
|
|
245
|
-
bigint?: false | undefined;
|
|
246
|
-
throwIfNoEntry: false;
|
|
247
|
-
}) => Stats | undefined;
|
|
248
|
-
/**
|
|
249
|
-
* Lists files in a given path.
|
|
250
|
-
*
|
|
251
|
-
* @param path - The path to list files from.
|
|
252
|
-
* @param options - Options for listing files, such as encoding and recursion.
|
|
253
|
-
* @returns An array of file names in the specified path.
|
|
254
|
-
*/
|
|
255
|
-
readdirSync: (path: string, options?: {
|
|
256
|
-
encoding: BufferEncoding | null;
|
|
257
|
-
withFileTypes?: false | undefined;
|
|
258
|
-
recursive?: boolean | undefined;
|
|
259
|
-
} | BufferEncoding) => string[];
|
|
260
|
-
/**
|
|
261
|
-
* Lists files in a given path.
|
|
262
|
-
*
|
|
263
|
-
* @param path - The path to list files from.
|
|
264
|
-
* @param options - Options for listing files, such as encoding and recursion.
|
|
265
|
-
* @returns An array of file names in the specified path.
|
|
266
|
-
*/
|
|
267
|
-
readdir: (path: string, options?: {
|
|
268
|
-
encoding: BufferEncoding | null;
|
|
269
|
-
withFileTypes?: false | undefined;
|
|
270
|
-
recursive?: boolean | undefined;
|
|
271
|
-
} | BufferEncoding) => Promise<string[]>;
|
|
272
|
-
/**
|
|
273
|
-
* Removes a file or symbolic link in the virtual file system (VFS).
|
|
274
|
-
*
|
|
275
|
-
* @param path - The path to the file to remove.
|
|
276
|
-
* @returns A promise that resolves when the file is removed.
|
|
277
|
-
*/
|
|
278
|
-
unlinkSync: (path: string, options?: ResolveFSOptions) => void;
|
|
279
|
-
/**
|
|
280
|
-
* Asynchronously removes a file or symbolic link in the virtual file system (VFS).
|
|
281
|
-
*
|
|
282
|
-
* @param path - The path to the file to remove.
|
|
283
|
-
* @returns A promise that resolves when the file is removed.
|
|
284
|
-
*/
|
|
285
|
-
unlink: (path: string, options?: ResolveFSOptions) => Promise<void>;
|
|
286
|
-
/**
|
|
287
|
-
* Removes a directory in the virtual file system (VFS).
|
|
288
|
-
*
|
|
289
|
-
* @param path - The path to create the directory at.
|
|
290
|
-
* @param options - Options for creating the directory.
|
|
291
|
-
*/
|
|
292
|
-
rmdirSync: (path: string, options?: RmDirOptions & ResolveFSOptions) => any;
|
|
293
|
-
/**
|
|
294
|
-
* Removes a directory in the virtual file system (VFS).
|
|
295
|
-
*
|
|
296
|
-
* @param path - The path to create the directory at.
|
|
297
|
-
* @param options - Options for creating the directory.
|
|
298
|
-
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
299
|
-
*/
|
|
300
|
-
rmdir: (path: string, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
|
|
301
|
-
/**
|
|
302
|
-
* Removes a file or directory in the virtual file system (VFS).
|
|
303
|
-
*
|
|
304
|
-
* @param path - The path to the file or directory to remove.
|
|
305
|
-
* @param options - Options for removing the file or directory.
|
|
306
|
-
* @returns A promise that resolves when the file or directory is removed.
|
|
307
|
-
*/
|
|
308
|
-
rm: (path: string, options?: RmOptions & ResolveFSOptions) => Promise<void>;
|
|
309
|
-
/**
|
|
310
|
-
* Synchronously removes a file or directory in the virtual file system (VFS).
|
|
311
|
-
*
|
|
312
|
-
* @param path - The path to the file or directory to remove.
|
|
313
|
-
* @param options - Options for removing the file or directory.
|
|
314
|
-
*/
|
|
315
|
-
rmSync: (path: string, options?: RmOptions & ResolveFSOptions) => void;
|
|
316
|
-
/**
|
|
317
|
-
* Creates a directory in the virtual file system (VFS).
|
|
318
|
-
*
|
|
319
|
-
* @param path - The path to create the directory at.
|
|
320
|
-
* @param options - Options for creating the directory.
|
|
321
|
-
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
322
|
-
*/
|
|
323
|
-
mkdirSync: (path: string, options?: MakeDirectoryOptions) => string | undefined;
|
|
324
|
-
/**
|
|
325
|
-
* Creates a directory in the virtual file system (VFS).
|
|
326
|
-
*
|
|
327
|
-
* @param path - The path to create the directory at.
|
|
328
|
-
* @param options - Options for creating the directory.
|
|
329
|
-
* @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
|
|
330
|
-
*/
|
|
331
|
-
mkdir: (path: string, options?: MakeDirectoryOptions) => Promise<string | undefined>;
|
|
332
|
-
/**
|
|
333
|
-
* Reads a file from the virtual file system (VFS).
|
|
334
|
-
*
|
|
335
|
-
* @param pathOrId - The path or id of the file.
|
|
336
|
-
* @returns The contents of the file if it exists, otherwise undefined.
|
|
337
|
-
*/
|
|
338
|
-
readFile: (pathOrId: string) => Promise<string | undefined>;
|
|
339
|
-
/**
|
|
340
|
-
* Reads a file from the virtual file system (VFS).
|
|
341
|
-
*
|
|
342
|
-
* @param pathOrId - The path or id of the file.
|
|
343
|
-
*/
|
|
344
|
-
readFileSync: (pathOrId: string) => string | undefined;
|
|
345
|
-
/**
|
|
346
|
-
* Writes a file to the virtual file system (VFS).
|
|
347
|
-
*
|
|
348
|
-
* @param path - The path to the file.
|
|
349
|
-
* @param data - The contents of the file.
|
|
350
|
-
* @param options - Optional parameters for writing the file.
|
|
351
|
-
* @returns A promise that resolves when the file is written.
|
|
352
|
-
*/
|
|
353
|
-
writeFile: (path: string, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
|
|
354
|
-
/**
|
|
355
|
-
* Writes a file to the virtual file system (VFS).
|
|
356
|
-
*
|
|
357
|
-
* @param path - The path to the file.
|
|
358
|
-
* @param data - The contents of the file.
|
|
359
|
-
* @param options - Optional parameters for writing the file.
|
|
360
|
-
*/
|
|
361
|
-
writeFileSync: (path: string, data?: WriteFileData, options?: WriteFileOptions) => void;
|
|
362
|
-
/**
|
|
363
|
-
* Moves a file from one path to another in the virtual file system (VFS).
|
|
364
|
-
*
|
|
365
|
-
* @param srcPath - The source path to move
|
|
366
|
-
* @param destPath - The destination path to move to
|
|
367
|
-
*/
|
|
368
|
-
move: (srcPath: string, destPath: string) => Promise<void>;
|
|
369
|
-
/**
|
|
370
|
-
* Synchronously moves a file from one path to another in the virtual file system (VFS).
|
|
371
|
-
*
|
|
372
|
-
* @param srcPath - The source path to move
|
|
373
|
-
* @param destPath - The destination path to move to
|
|
374
|
-
*/
|
|
375
|
-
moveSync: (srcPath: string, destPath: string) => void;
|
|
376
|
-
/**
|
|
377
|
-
* Copies a file from one path to another in the virtual file system (VFS).
|
|
378
|
-
*
|
|
379
|
-
* @param srcPath - The source path to copy
|
|
380
|
-
* @param destPath - The destination path to copy to
|
|
381
|
-
*/
|
|
382
|
-
copy: (srcPath: string, destPath: string) => Promise<void>;
|
|
383
|
-
/**
|
|
384
|
-
* Synchronously copies a file from one path to another in the virtual file system (VFS).
|
|
385
|
-
*
|
|
386
|
-
* @param srcPath - The source path to copy
|
|
387
|
-
* @param destPath - The destination path to copy to
|
|
388
|
-
*/
|
|
389
|
-
copySync: (srcPath: string, destPath: string) => void;
|
|
390
|
-
/**
|
|
391
|
-
* Glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
392
|
-
*
|
|
393
|
-
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
394
|
-
* @returns An array of file paths matching the provided pattern(s)
|
|
395
|
-
*/
|
|
396
|
-
glob: (pattern: string | string[]) => Promise<string[]>;
|
|
397
|
-
/**
|
|
398
|
-
* Synchronously glob files in the virtual file system (VFS) based on the provided pattern(s).
|
|
399
|
-
*
|
|
400
|
-
* @param pattern - A pattern (or multiple patterns) to use to determine the file paths to return
|
|
401
|
-
* @returns An array of file paths matching the provided pattern(s)
|
|
402
|
-
*/
|
|
403
|
-
globSync: (pattern: string | string[]) => string[];
|
|
404
|
-
/**
|
|
405
|
-
* Resolves a path or id to a file path in the virtual file system.
|
|
406
|
-
*
|
|
407
|
-
* @param pathOrId - The path or id of the file to resolve.
|
|
408
|
-
* @returns The resolved path of the file if it exists, otherwise false.
|
|
409
|
-
*/
|
|
410
|
-
realpathSync: (pathOrId: string) => string;
|
|
411
|
-
/**
|
|
412
|
-
* A helper function to resolve modules using the Jiti resolver
|
|
413
|
-
*
|
|
414
|
-
* @remarks
|
|
415
|
-
* This function can be used to resolve modules relative to the project root directory.
|
|
416
|
-
*
|
|
417
|
-
* @example
|
|
418
|
-
* ```ts
|
|
419
|
-
* const resolvedPath = await context.resolve("some-module", "/path/to/importer");
|
|
420
|
-
* ```
|
|
421
|
-
*
|
|
422
|
-
* @param id - The module to resolve.
|
|
423
|
-
* @param importer - An optional path to the importer module.
|
|
424
|
-
* @param options - Additional resolution options.
|
|
425
|
-
* @returns A promise that resolves to the resolved module path.
|
|
426
|
-
*/
|
|
427
|
-
resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<string | undefined>;
|
|
428
|
-
/**
|
|
429
|
-
* A synchronous helper function to resolve modules using the Jiti resolver
|
|
430
|
-
*
|
|
431
|
-
* @remarks
|
|
432
|
-
* This function can be used to resolve modules relative to the project root directory.
|
|
433
|
-
*
|
|
434
|
-
* @example
|
|
435
|
-
* ```ts
|
|
436
|
-
* const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
|
|
437
|
-
* ```
|
|
438
|
-
*
|
|
439
|
-
* @param id - The module to resolve.
|
|
440
|
-
* @param importer - An optional path to the importer module.
|
|
441
|
-
* @param options - Additional resolution options.
|
|
442
|
-
* @returns The resolved module path.
|
|
443
|
-
*/
|
|
444
|
-
resolveSync: (id: string, importer?: string, options?: ResolveOptions) => string | undefined;
|
|
445
|
-
/**
|
|
446
|
-
* Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
|
|
447
|
-
*/
|
|
448
|
-
dispose: () => Promise<void>;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
29
|
type UnpluginBuildVariant = "rollup" | "webpack" | "rspack" | "vite" | "esbuild" | "farm" | "unloader" | "rolldown";
|
|
452
30
|
type BuildVariant = UnpluginBuildVariant | "tsup" | "unbuild";
|
|
453
31
|
type InferUnpluginVariant<TBuildVariant extends BuildVariant> = TBuildVariant extends "tsup" ? "esbuild" : TBuildVariant extends "unbuild" ? "rollup" : TBuildVariant;
|
|
@@ -623,7 +201,7 @@ interface ResolvedEntryTypeDefinition extends TypeDefinition {
|
|
|
623
201
|
*/
|
|
624
202
|
output?: string;
|
|
625
203
|
}
|
|
626
|
-
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "
|
|
204
|
+
type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "ssr" | "preview"> & Required<Pick<EnvironmentConfig, "consumer" | "ssr">> & {
|
|
627
205
|
/**
|
|
628
206
|
* The name of the environment
|
|
629
207
|
*/
|
|
@@ -634,9 +212,9 @@ type EnvironmentResolvedConfig = Omit<EnvironmentConfig, "consumer" | "mode" | "
|
|
|
634
212
|
preview?: ResolvedPreviewOptions;
|
|
635
213
|
};
|
|
636
214
|
type ResolvedAssetGlob = AssetGlob & Required<Pick<AssetGlob, "input">>;
|
|
637
|
-
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets"> & {
|
|
215
|
+
type OutputResolvedConfig = Required<Omit<OutputConfig, "assets" | "storage"> & {
|
|
638
216
|
assets: ResolvedAssetGlob[];
|
|
639
|
-
}>;
|
|
217
|
+
}> & Pick<OutputConfig, "storage">;
|
|
640
218
|
/**
|
|
641
219
|
* The resolved options for the Powerlines project configuration.
|
|
642
220
|
*/
|
|
@@ -1207,17 +785,15 @@ interface UnresolvedContext<TResolvedConfig extends ResolvedConfig = ResolvedCon
|
|
|
1207
785
|
* @param code - The source code of the builtin file
|
|
1208
786
|
* @param id - The unique identifier of the builtin file
|
|
1209
787
|
* @param path - An optional path to write the builtin file to
|
|
1210
|
-
* @param options - Options for writing the file
|
|
1211
788
|
*/
|
|
1212
|
-
emitBuiltin: (code: string, id: string, path?: string
|
|
789
|
+
emitBuiltin: (code: string, id: string, path?: string) => Promise<void>;
|
|
1213
790
|
/**
|
|
1214
791
|
* Resolves a entry virtual file and writes it to the VFS if it does not already exist
|
|
1215
792
|
*
|
|
1216
793
|
* @param code - The source code of the entry file
|
|
1217
794
|
* @param path - An optional path to write the entry file to
|
|
1218
|
-
* @param options - Options for writing the file
|
|
1219
795
|
*/
|
|
1220
|
-
emitEntry: (code: string, path: string
|
|
796
|
+
emitEntry: (code: string, path: string) => Promise<void>;
|
|
1221
797
|
/**
|
|
1222
798
|
* A function to update the context fields using a new user configuration options
|
|
1223
799
|
*/
|
|
@@ -1409,13 +985,16 @@ interface OutputConfig {
|
|
|
1409
985
|
*
|
|
1410
986
|
* @defaultValue "\{projectRoot\}/dist"
|
|
1411
987
|
*/
|
|
1412
|
-
|
|
988
|
+
buildPath?: string;
|
|
1413
989
|
/**
|
|
1414
|
-
* The
|
|
990
|
+
* The folder where the generated runtime artifacts will be located
|
|
1415
991
|
*
|
|
1416
|
-
* @
|
|
992
|
+
* @remarks
|
|
993
|
+
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
994
|
+
*
|
|
995
|
+
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
1417
996
|
*/
|
|
1418
|
-
|
|
997
|
+
artifactsPath?: string;
|
|
1419
998
|
/**
|
|
1420
999
|
* The path of the generated runtime declaration file relative to the workspace root.
|
|
1421
1000
|
*
|
|
@@ -1431,15 +1010,6 @@ interface OutputConfig {
|
|
|
1431
1010
|
* @defaultValue "powerlines"
|
|
1432
1011
|
*/
|
|
1433
1012
|
builtinPrefix?: string;
|
|
1434
|
-
/**
|
|
1435
|
-
* The folder where the generated runtime artifacts will be located
|
|
1436
|
-
*
|
|
1437
|
-
* @remarks
|
|
1438
|
-
* This folder will contain all runtime artifacts and builtins generated during the "prepare" phase.
|
|
1439
|
-
*
|
|
1440
|
-
* @defaultValue "\{projectRoot\}/.powerlines"
|
|
1441
|
-
*/
|
|
1442
|
-
artifactsFolder?: string;
|
|
1443
1013
|
/**
|
|
1444
1014
|
* The module format of the output files
|
|
1445
1015
|
*
|
|
@@ -1456,42 +1026,21 @@ interface OutputConfig {
|
|
|
1456
1026
|
* The assets can be specified as a string (path to the asset) or as an object with a `glob` property (to match multiple files). The paths are relative to the project root directory.
|
|
1457
1027
|
*/
|
|
1458
1028
|
assets?: Array<string | AssetGlob>;
|
|
1459
|
-
}
|
|
1460
|
-
interface BaseConfig {
|
|
1461
1029
|
/**
|
|
1462
|
-
*
|
|
1463
|
-
*/
|
|
1464
|
-
name?: string;
|
|
1465
|
-
/**
|
|
1466
|
-
* The project display title
|
|
1030
|
+
* A string preset or a custom {@link StoragePort} to provide fine-grained control over generated/output file storage.
|
|
1467
1031
|
*
|
|
1468
1032
|
* @remarks
|
|
1469
|
-
*
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
/**
|
|
1473
|
-
* A description of the project
|
|
1474
|
-
*
|
|
1475
|
-
* @remarks
|
|
1476
|
-
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
1477
|
-
*/
|
|
1478
|
-
description?: string;
|
|
1479
|
-
/**
|
|
1480
|
-
* The log level to use for the Powerlines processes.
|
|
1033
|
+
* If a string preset is provided, it must be one of the following values:
|
|
1034
|
+
* - `"virtual"`: Uses the local file system for storage.
|
|
1035
|
+
* - `"fs"`: Uses an in-memory virtual file system for storage.
|
|
1481
1036
|
*
|
|
1482
|
-
* @
|
|
1483
|
-
*/
|
|
1484
|
-
logLevel?: LogLevelLabel | null;
|
|
1485
|
-
/**
|
|
1486
|
-
* A custom logger function to use for logging messages
|
|
1487
|
-
*/
|
|
1488
|
-
customLogger?: LogFn;
|
|
1489
|
-
/**
|
|
1490
|
-
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
1037
|
+
* If a custom {@link StoragePort} is provided, it will be used for all file storage operations during the build process.
|
|
1491
1038
|
*
|
|
1492
|
-
* @defaultValue "
|
|
1039
|
+
* @defaultValue "virtual"
|
|
1493
1040
|
*/
|
|
1494
|
-
|
|
1041
|
+
storage?: StoragePort | StoragePreset;
|
|
1042
|
+
}
|
|
1043
|
+
interface BaseConfig {
|
|
1495
1044
|
/**
|
|
1496
1045
|
* The entry point(s) for the application
|
|
1497
1046
|
*/
|
|
@@ -1575,6 +1124,40 @@ interface EnvironmentConfig extends BaseConfig {
|
|
|
1575
1124
|
consumer?: "client" | "server";
|
|
1576
1125
|
}
|
|
1577
1126
|
interface CommonUserConfig extends BaseConfig {
|
|
1127
|
+
/**
|
|
1128
|
+
* The name of the project
|
|
1129
|
+
*/
|
|
1130
|
+
name?: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* The project display title
|
|
1133
|
+
*
|
|
1134
|
+
* @remarks
|
|
1135
|
+
* This option is used in documentation generation and other places where a human-readable title is needed.
|
|
1136
|
+
*/
|
|
1137
|
+
title?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* A description of the project
|
|
1140
|
+
*
|
|
1141
|
+
* @remarks
|
|
1142
|
+
* If this option is not provided, the build process will try to use the \`description\` value from the `\package.json\` file.
|
|
1143
|
+
*/
|
|
1144
|
+
description?: string;
|
|
1145
|
+
/**
|
|
1146
|
+
* The log level to use for the Powerlines processes.
|
|
1147
|
+
*
|
|
1148
|
+
* @defaultValue "info"
|
|
1149
|
+
*/
|
|
1150
|
+
logLevel?: LogLevelLabel | null;
|
|
1151
|
+
/**
|
|
1152
|
+
* A custom logger function to use for logging messages
|
|
1153
|
+
*/
|
|
1154
|
+
customLogger?: LogFn;
|
|
1155
|
+
/**
|
|
1156
|
+
* Explicitly set a mode to run in. This mode will be used at various points throughout the Powerlines processes, such as when compiling the source code.
|
|
1157
|
+
*
|
|
1158
|
+
* @defaultValue "production"
|
|
1159
|
+
*/
|
|
1160
|
+
mode?: "development" | "test" | "production";
|
|
1578
1161
|
/**
|
|
1579
1162
|
* The type of project being built
|
|
1580
1163
|
*
|
|
@@ -1625,7 +1208,7 @@ interface CommonUserConfig extends BaseConfig {
|
|
|
1625
1208
|
* A string identifier that allows a child framework or tool to identify itself when using Powerlines.
|
|
1626
1209
|
*
|
|
1627
1210
|
* @remarks
|
|
1628
|
-
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.
|
|
1211
|
+
* If no values are provided for {@link OutputConfig.dts | output.dts}, {@link OutputConfig.builtinPrefix | output.builtinPrefix}, or {@link OutputConfig.artifactsPath | output.artifactsFolder}, this value will be used as the default.
|
|
1629
1212
|
*
|
|
1630
1213
|
* @defaultValue "powerlines"
|
|
1631
1214
|
*/
|
|
@@ -1731,4 +1314,4 @@ type DeployInlineConfig<TUserConfig extends UserConfig = UserConfig> = InlineCon
|
|
|
1731
1314
|
command: "deploy";
|
|
1732
1315
|
};
|
|
1733
1316
|
|
|
1734
|
-
export
|
|
1317
|
+
export type { APIContext as A, BuildPlugin as B, Context as C, BuildInlineConfig as D, ESBuildResolvedBuildConfig as E, LintInlineConfig as F, DocsInlineConfig as G, HooksList as H, InitialUserConfig as I, DeployInlineConfig as J, LogFn as L, MetaInfo as M, NewInlineConfig as N, PowerlinesCommand as P, ResolvedEntryTypeDefinition as R, SelectHooksOptions as S, TsupBuildConfig as T, UnbuildBuildConfig as U, ViteResolvedBuildConfig as V, WorkspaceConfig as W, ParsedUserConfig as a, RolldownResolvedBuildConfig as b, RollupResolvedBuildConfig as c, TsupResolvedBuildConfig as d, UnbuildResolvedBuildConfig as e, ResolvedConfig as f, EnvironmentContext as g, Plugin as h, PluginContext as i, EnvironmentResolvedConfig as j, InitContextOptions as k, EnvironmentContextPlugin as l, HookKeys as m, InferHookHandler as n, Resolver as o, TransformResult as p, InferHookParameters as q, InferHookReturnType as r, UnpluginBuildVariant as s, InferResolvedConfig as t, InferUnpluginVariant as u, InferUserConfig as v, SourceFile as w, WorkerProcess as x, PrepareInlineConfig as y, CleanInlineConfig as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context,
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-Cqxh4V21.cjs';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -23,8 +23,8 @@ import 'magic-string';
|
|
|
23
23
|
import 'semver';
|
|
24
24
|
import 'ts-morph';
|
|
25
25
|
import 'unplugin';
|
|
26
|
+
import './fs-Dg-aTfiN.cjs';
|
|
26
27
|
import '@stryke/fs/resolve';
|
|
27
|
-
import 'node:fs';
|
|
28
28
|
import '@stryke/types/array';
|
|
29
29
|
import './tsconfig-Bz-CiFqD.cjs';
|
|
30
30
|
import '@stryke/types/tsconfig';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Jiti } from 'jiti';
|
|
2
|
-
import { C as Context,
|
|
2
|
+
import { C as Context, W as WorkspaceConfig, P as PowerlinesCommand, a as ParsedUserConfig } from './config-D-WwQL-4.js';
|
|
3
3
|
import '@storm-software/build-tools/types';
|
|
4
4
|
import '@storm-software/config-tools/types';
|
|
5
5
|
import '@storm-software/config/types';
|
|
@@ -23,8 +23,8 @@ import 'magic-string';
|
|
|
23
23
|
import 'semver';
|
|
24
24
|
import 'ts-morph';
|
|
25
25
|
import 'unplugin';
|
|
26
|
+
import './fs-Dg-aTfiN.js';
|
|
26
27
|
import '@stryke/fs/resolve';
|
|
27
|
-
import 'node:fs';
|
|
28
28
|
import '@stryke/types/array';
|
|
29
29
|
import './tsconfig-Bz-CiFqD.js';
|
|
30
30
|
import '@stryke/types/tsconfig';
|